/* raycubed — home page */

/* ------------------------------------------------------------------ hero: giant glass headline */
.home-hero {
  position: relative;
  isolation: isolate;
  min-height: max(100svh, 700px);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 110px var(--pad) 44px;
  overflow: hidden;
}
.home-hero .hero-scrim {
  background:
    linear-gradient(to bottom, rgb(10 15 36 / .35), transparent 20%),
    linear-gradient(to top, rgb(10 15 36 / .78) 0%, rgb(10 15 36 / .25) 32%, transparent 55%);
}
.home-hero > :not(.hero-canvas):not(.hero-fallback):not(.hero-scrim) { position: relative; z-index: 2; }

.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.hero-copy { display: grid; gap: 14px; max-width: 560px; }
.hero-tagline { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.1vw, 30px); letter-spacing: -.01em; line-height: 1.1; text-transform: uppercase; }
.home-hero .hero-actions { margin: 0; flex: none; }

.scroll-cue { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; width: 26px; height: 40px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .35); }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; border-radius: 2px; translate: -50% 0; background: var(--white); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(12px); } }

/* ------------------------------------------------------------------ feature strip */
.feature-strip { list-style: none; margin-block: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.feature-strip li { display: grid; gap: 4px; align-content: start; padding: 28px 22px 4px 0; }
.feature-strip li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.feature-strip svg { font-size: 30px; margin-bottom: 16px; --sw: 1.15; color: var(--white); }
.feature-strip b { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.feature-strip span { font-size: 14.5px; color: var(--text-3); }

/* ------------------------------------------------------------------ how it works: sticky story */
.how-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); }
.how-stage-wrap { position: relative; }
.how-stage { position: sticky; top: 120px; height: min(560px, 70vh); display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 45%, rgb(30 143 255 / .20), transparent 70%),
    repeating-linear-gradient(90deg, rgb(255 255 255 / .025) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, rgb(255 255 255 / .05), rgb(255 255 255 / .015));
}
.stage { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; filter: blur(14px); transform: scale(.94);
  transition: opacity .6s ease, filter .6s var(--smooth), transform var(--bouncy-ms) var(--bouncy); }
.how-stage[data-step="1"] .stage-1, .how-stage[data-step="2"] .stage-2, .how-stage[data-step="3"] .stage-3 { opacity: 1; filter: none; transform: none; }

/* stage 1: a card taps the reader */
.stage-1 .reader-render { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.stage-1 .tap-card { position: absolute; left: 50%; top: 50%; translate: 20px -30%; transform: rotate(-8deg); }
.how-stage[data-step="1"] .tap-card { animation: tap 3.2s var(--smooth) infinite; }
.how-stage[data-step="1"] .reader-ring { animation: ring 3.2s ease infinite; }
@keyframes tap {
  0%, 100% { transform: translate(120px, 40px) rotate(14deg); opacity: 0; }
  12% { opacity: 1; }
  38%, 58% { transform: translate(-75px, -55px) rotate(-6deg); opacity: 1; }
  80% { transform: translate(120px, 40px) rotate(14deg); opacity: 0; }
}
@keyframes ring {
  0%, 36%, 72%, 100% { box-shadow: inset 0 0 0 2px rgb(255 255 255 / .28); }
  42%, 62% { box-shadow: inset 0 0 0 2.5px var(--pink), 0 0 30px 6px rgb(202 40 113 / .7), inset 0 0 18px rgb(202 40 113 / .5); }
}
.waves { position: absolute; left: 50%; top: 42%; translate: -50% -50%; width: 10px; height: 10px; }
.waves i { position: absolute; inset: -40px; border-radius: 50%; box-shadow: 0 0 0 1px rgb(202 40 113 / .7); opacity: 0; }
.how-stage[data-step="1"] .waves i { animation: wave 3.2s ease-out infinite; }
.waves i:nth-child(2) { animation-delay: .18s !important; }
.waves i:nth-child(3) { animation-delay: .36s !important; }
@keyframes wave { 0%, 40% { transform: scale(.4); opacity: 0; } 45% { opacity: .9; } 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* stage 2: event syncs to the cloud */
.stage-2 { align-content: center; gap: 0; }
.toast {
  display: flex; align-items: center; gap: 12px;
  width: min(360px, 84%);
  padding: 14px 16px;
  border-radius: 22px;
  background: rgb(255 255 255 / .12);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16), inset 0 1px 0 rgb(255 255 255 / .2), 0 20px 40px -20px rgb(0 0 0 / .6);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.toast b { display: block; font-size: 15px; }
.toast small { color: var(--text-2); font-size: 13px; }
.toast-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: linear-gradient(135deg, var(--blue), var(--pink)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); }
.sync-line { width: 2px; height: 90px; margin: 0 auto; background: repeating-linear-gradient(180deg, rgb(255 255 255 / .5) 0 5px, transparent 5px 11px); background-size: 2px 22px; }
.how-stage[data-step="2"] .sync-line { animation: flow .8s linear infinite; }
@keyframes flow { to { background-position: 0 22px; } }
.how-stage[data-step="2"] .toast { animation: drop var(--bouncy-ms) var(--bouncy) both; }
@keyframes drop { from { transform: translateY(-30px) scale(.94); opacity: 0; } }
.cloud-node { display: grid; justify-items: center; gap: 10px; margin: 0 auto; }
.cloud-node svg { width: 64px; height: 64px; padding: 16px; border-radius: 22px; box-sizing: border-box; background: rgb(30 143 255 / .18); box-shadow: inset 0 0 0 1px rgb(92 176 255 / .5), 0 0 40px rgb(30 143 255 / .35); --sw: 1.3; }
.how-stage[data-step="2"] .cloud-node svg { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cloud-node span { font-size: 13px; color: var(--text-2); }

/* stage 3: timesheet exported */
.sheet-card { width: min(380px, 86%); padding: 10px; border-radius: 26px; background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.sheet-row { display: flex; justify-content: space-between; padding: 13px 14px; border-radius: 14px; font-size: 15px; color: var(--text-2); }
.sheet-row + .sheet-row { border-top: 1px solid var(--line); }
.sheet-row.head { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.sheet-row b { color: var(--white); font-variant-numeric: tabular-nums; }
.sheet-done { margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 16px; font-weight: 600; background: rgb(30 143 255 / .2); box-shadow: inset 0 0 0 1px rgb(92 176 255 / .5); }
.sheet-done svg { --sw: 1.8; }
.how-stage[data-step="3"] .sheet-row, .how-stage[data-step="3"] .sheet-done { animation: rise .7s var(--bouncy) both; }
.how-stage[data-step="3"] .sheet-row:nth-child(2) { animation-delay: .08s; }
.how-stage[data-step="3"] .sheet-row:nth-child(3) { animation-delay: .16s; }
.how-stage[data-step="3"] .sheet-row:nth-child(4) { animation-delay: .24s; }
.how-stage[data-step="3"] .sheet-done { animation-delay: .4s; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }

.how-steps { list-style: none; margin: 0; padding: 0; }
.how-step { min-height: 62vh; display: grid; align-content: center; gap: 14px; padding: 40px 0; opacity: .35; transition: opacity .5s ease; }
.how-step.is-current { opacity: 1; }
.how-step:first-child { min-height: 46vh; align-content: start; padding-top: 10vh; }
.step-num { font: 500 13px/1 var(--display); letter-spacing: .1em; color: var(--blue-2); }
.how-step p { color: var(--text-2); font-size: 17px; max-width: 460px; }
.how-step .list-check { margin-top: 6px; }

/* ------------------------------------------------------------------ live dashboard window */
.dash-section { overflow: clip; }
.dash-window {
  --p: 0;
  position: relative;
  border-radius: 26px;
  background: linear-gradient(180deg, #121A3C, #0B1029);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1), inset 0 1px 0 rgb(255 255 255 / .12), 0 60px 120px -40px rgb(0 0 0 / .8), 0 0 140px -40px rgb(30 143 255 / .45);
  transform: perspective(1800px) rotateX(calc((1 - var(--p)) * 18deg)) scale(calc(.9 + var(--p) * .1)) translateY(calc((1 - var(--p)) * 40px));
  transform-origin: 50% 0;
  overflow: hidden;
}
.dash-bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.dash-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgb(255 255 255 / .16); }
.dash-bar span { margin: 0 auto; padding: 4px 14px; border-radius: 999px; font-size: 12.5px; color: var(--text-3); background: rgb(255 255 255 / .05); }
.dash-body { display: grid; grid-template-columns: 200px 1fr; min-height: 520px; }
.dash-side { display: grid; align-content: start; gap: 4px; padding: 18px 14px; border-right: 1px solid var(--line); }
.dash-side img { margin: 2px 8px 18px; height: 26px; width: auto; }
.dash-side a { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 10px; font-size: 14px; color: var(--text-2); }
.dash-side a svg { font-size: 18px; --ia: transparent; }
.dash-side a.is-on { color: var(--white); background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px var(--line); }
.dash-side a.is-on svg { --ia: var(--pink); }
.dash-main { padding: 22px 24px 24px; display: grid; gap: 18px; align-content: start; }
.dash-head { display: flex; justify-content: space-between; align-items: center; }
.dash-head small { display: block; font-size: 12.5px; color: var(--text-3); }
.dash-head b { font-size: 20px; letter-spacing: -.02em; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: rgb(202 40 113 / .16); box-shadow: inset 0 0 0 1px rgb(202 40 113 / .45); }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgb(202 40 113 / .6); } 50% { box-shadow: 0 0 0 6px rgb(202 40 113 / 0); } }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { padding: 16px 16px 14px; border-radius: 16px; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 6px; }
.kpi small { font-size: 12.5px; color: var(--text-3); }
.kpi b { font-size: 28px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi b em { font-style: normal; font-size: 15px; color: var(--text-3); font-weight: 500; margin-left: 2px; }
.kpi .delta { font-size: 12.5px; color: var(--text-3); }
.meter { height: 5px; border-radius: 3px; background: rgb(255 255 255 / .08); overflow: hidden; }
.meter i { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--blue-2)); transition: width .8s var(--smooth); }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.panel { padding: 18px; border-radius: 18px; background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px var(--line); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.panel-head b { font-size: 14.5px; }
.panel-head small { font-size: 12.5px; color: var(--text-3); }
.bars { height: 210px; display: flex; align-items: flex-end; gap: 6px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--blue-2), rgb(30 143 255 / .25)); transform-origin: bottom; transform: scaleY(calc(.05 + var(--p) * .95)); transition: transform .9s var(--smooth) calc(var(--i) * 25ms); }
.bars i.peak { background: linear-gradient(180deg, #FF6FAF, rgb(202 40 113 / .3)); }
.tap-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tap-list li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 12px; font-size: 13.5px; }
.tap-list li .avatar { width: 30px; height: 30px; font-size: 10.5px; }
.tap-list li small { display: block; color: var(--text-3); font-size: 12px; }
.tap-list li time { font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 13px; }
.tap-list li.is-new { animation: drop var(--bouncy-ms) var(--bouncy) both; background: rgb(255 255 255 / .05); }

/* ------------------------------------------------------------------ privacy */
.privacy-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.privacy-grid .section-head { position: sticky; top: 130px; }
.privacy-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pcard { padding: 28px; display: grid; gap: 14px; align-content: start; }
.pcard p { color: var(--text-2); font-size: 15px; }

/* ------------------------------------------------------------------ integrations */
.integrations { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: clamp(32px, 5vw, 64px); align-items: center;
  background:
    radial-gradient(60% 80% at 100% 0%, rgb(30 143 255 / .18), transparent 70%),
    linear-gradient(180deg, rgb(255 255 255 / .055), rgb(255 255 255 / .02)); }
.int-copy { display: grid; gap: 16px; }
.int-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.int-list li { display: grid; gap: 6px; padding: 20px; border-radius: 22px; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--line); }
.int-list .icon-tile { margin-bottom: 8px; width: 46px; height: 46px; font-size: 22px; border-radius: 14px; }
.int-list b { font-size: 15.5px; }
.int-list small { font-size: 13.5px; color: var(--text-3); }

/* ------------------------------------------------------------------ faq */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .feature-strip li, .feature-strip li + li { padding: 26px 18px 20px 0; border-left: 0; }
  .feature-strip li:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .feature-strip li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .feature-strip li:last-child { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .how-grid { grid-template-columns: 1fr; }
  .how-stage-wrap { position: relative; }
  .how-stage { position: relative; top: 0; height: 300px; }
  .how-step, .how-step:first-child { min-height: 0; padding: 48px 0; opacity: 1; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .privacy-grid, .faq-wrap, .integrations { grid-template-columns: 1fr; }
  .privacy-grid .section-head { position: static; }
}
@media (max-width: 900px) {
  .home-hero { padding: 96px 16px calc(104px + env(safe-area-inset-bottom)); min-height: 100svh; }
  .home-hero .lede { font-size: 15.5px; }
  .glass-headline { font-size: clamp(76px, 25vw, 200px); }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .privacy-cards, .int-list { grid-template-columns: 1fr; }
  .how-stage { height: 260px; }
  .stage-1 .reader-render { scale: .8; }
  .dash-main { padding: 16px; }
  .kpi b { font-size: 22px; }
  .bars { height: 150px; }
}
