/* The Real Software. Same family as RAZEN: a soft grey page, white cards, near-black text, one crimson accent. */
:root {
  --bg: #f5f5f7; --panel: #fff; --panel-2: #ececf0; --ink: #1c1c1f; --ink-2: #515157; --ink-3: #6e6e75;
  --line: rgb(0 0 0 / 6%); --accent: #d62450; --accent-2: #b71943; --accent-soft: #fff1f3; --on-accent: #fff;
  --dark: #0b0b0d; --dark-2: #1c1c1f; --on-dark: #f5f5f7; --on-dark-2: #b9b9c0;
  --shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 14px 34px -16px rgb(0 0 0 / 16%);
  --chrome: rgb(245 245 247 / 78%);
  --ease: cubic-bezier(.2, .8, .2, 1); --gutter: clamp(16px, 4.5vw, 40px); --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0b0b0d; --panel: #1c1c1f; --panel-2: #2c2c30; --ink: #f5f5f7; --ink-2: #c9c9cf; --ink-3: #98989f;
  --line: rgb(255 255 255 / 8%); --accent: #ff5c7f; --accent-2: #ff7195; --accent-soft: #3a1520; --on-accent: #1a0509;
  --dark: #151517; --dark-2: #232326; --shadow: 0 1px 2px rgb(0 0 0 / 40%); --chrome: rgb(11 11 13 / 78%);
} }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.035em; text-wrap: balance; font-weight: 700; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }

/* Buttons: tactile, one fill. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: 0 1.6rem; border-radius: 16px; border: 0; font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer; color: var(--on-accent); background: var(--accent); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 60%, transparent), inset 0 1px 0 rgb(255 255 255 / 20%); transition: transform .35s var(--ease), background-color .2s, box-shadow .35s var(--ease); touch-action: manipulation; }
.btn:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn.soft { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.btn.soft:hover { background: var(--panel-2); }
.btn.ghost-dark { background: rgb(255 255 255 / 12%); color: var(--on-dark); box-shadow: none; }
.btn.ghost-dark:hover { background: rgb(255 255 255 / 20%); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* Navigation: a plain bar that blurs once the page moves. */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top); transition: background-color .3s, box-shadow .3s; }
.nav.scrolled { background: var(--chrome); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 var(--line); }
.nav-in { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 700; letter-spacing: -.02em; font-size: 1.0625rem; }
.brand i { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; transition: transform .5s var(--ease); }
.brand:hover i { transform: rotate(-8deg) scale(1.06); }
.brand i svg { width: 18px; height: 18px; }
.links { display: flex; align-items: center; gap: .25rem; }
.links a:not(.btn) { padding: .6rem .95rem; border-radius: 12px; text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--ink-2); transition: color .2s, background-color .2s; }
.links a:not(.btn):hover { color: var(--ink); background: var(--line); }
.links .btn { min-height: 42px; padding: 0 1.1rem; border-radius: 13px; font-size: .9375rem; margin-left: .4rem; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--panel); box-shadow: var(--shadow); cursor: pointer; place-items: center; color: var(--ink); }
.menu-btn { position: relative; }
.menu-btn i { position: absolute; left: 14px; top: 50%; width: 18px; height: 2px; margin-top: -1px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease); }
.menu-btn i:first-child { transform: translateY(-4px); } .menu-btn i:last-child { transform: translateY(4px); }
.menu-open .menu-btn i:first-child { transform: rotate(45deg); } .menu-open .menu-btn i:last-child { transform: rotate(-45deg); }
@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .links { position: fixed; inset: 0; padding: 96px var(--gutter) 40px; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .5rem; background: var(--bg); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s; z-index: -1; }
  .menu-open .links { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .menu-open .nav { background: var(--bg); }
  .links a:not(.btn) { font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink); padding: .7rem .25rem; opacity: 0; transform: translateY(14px); }
  .menu-open .links a:not(.btn) { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease); }
  .menu-open .links a:nth-child(2) { transition-delay: .06s; } .menu-open .links a:nth-child(3) { transition-delay: .12s; }
  .links .btn { margin: 1rem 0 0; min-height: 56px; font-size: 1.0625rem; }
}

/* Hero */
.hero { padding: calc(68px + clamp(40px, 9vw, 110px)) 0 clamp(56px, 8vw, 100px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
h1.display { font-size: clamp(2.5rem, 5.5vw, 4.75rem); line-height: 1.02; letter-spacing: -.045em; }
.lead { margin-top: 1.5rem; font-size: clamp(1.1rem, 2.2vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.word > span { display: inline-block; }
.hero-note { margin-top: 1.5rem; font-size: .9375rem; color: var(--ink-3); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* The live RAZEN phone */
.stage { position: relative; display: grid; place-items: center; padding: 8px 0; }
.stage::before { content: ""; position: absolute; width: 84%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); opacity: .14; filter: blur(70px); transform: translateY(6%); }
.phone { position: relative; width: min(100%, 330px); aspect-ratio: 9 / 18.4; border-radius: 46px; padding: 11px; background: #0b0b0d; box-shadow: 0 40px 80px -30px rgb(0 0 0 / 45%), 0 0 0 1.5px #2c2c30 inset; transform: perspective(1200px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .5s var(--ease); will-change: transform; }
.screen { height: 100%; border-radius: 36px; background: #f5f5f7; color: #1c1c1f; overflow: hidden; display: flex; flex-direction: column; padding: 38px 16px 14px; gap: 10px; position: relative; font-size: 13px; line-height: 1.4; }
.screen::before { content: ""; position: absolute; top: 9px; left: 50%; width: 82px; height: 22px; border-radius: 12px; background: #0b0b0d; transform: translateX(-50%); }
.s-title { font-weight: 700; font-size: 21px; letter-spacing: -.035em; line-height: 1.1; }
.s-sub { color: #6e6e75; font-size: 12px; margin-top: 2px; }
.s-card { background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 8px 20px -12px rgb(0 0 0 / 14%); }
.s-seg { display: grid; grid-template-columns: repeat(3, 1fr); background: #ececf0; border-radius: 11px; padding: 3px; gap: 2px; position: relative; }
.s-seg b { position: relative; z-index: 1; text-align: center; padding: 7px 0; font-size: 12px; font-weight: 600; color: #515157; transition: color .3s; }
.s-seg b.on { color: #1c1c1f; }
.s-seg i { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); background: #fff; border-radius: 9px; box-shadow: 0 1px 3px rgb(0 0 0 / 12%); transition: transform .5s var(--ease); }
.s-rate { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.s-rate strong { font-size: 30px; letter-spacing: -.04em; font-weight: 700; font-variant-numeric: tabular-nums; }
.s-rate span { color: #6e6e75; font-size: 12px; }
.s-desc { margin-top: 4px; color: #515157; font-size: 12px; min-height: 34px; }
.s-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.s-chip { background: #fff1f3; color: #b71943; border-radius: 999px; padding: 5px 10px; font-size: 11.5px; font-weight: 600; animation: chip .6s var(--ease) both; }
.s-bar { margin-top: auto; display: flex; align-items: center; gap: 10px; background: #1c1c1f; color: #f5f5f7; border-radius: 18px; padding: 10px 12px; }
.s-bar .mic { width: 30px; height: 30px; border-radius: 50%; background: #d62450; display: grid; place-items: center; flex: none; }
.s-bar .mic svg { width: 15px; height: 15px; }
.s-bar p { font-size: 12px; line-height: 1.3; flex: 1; min-height: 31px; }
.wave { display: flex; align-items: center; gap: 2px; height: 18px; }
.wave u { width: 2.5px; border-radius: 2px; background: #ff7195; height: 5px; animation: wave 1.1s ease-in-out infinite; text-decoration: none; }
.wave u:nth-child(2) { animation-delay: .12s } .wave u:nth-child(3) { animation-delay: .24s } .wave u:nth-child(4) { animation-delay: .36s } .wave u:nth-child(5) { animation-delay: .48s }
@keyframes wave { 0%, 100% { height: 4px } 50% { height: 17px } }
@keyframes chip { from { opacity: 0; transform: translateY(8px) scale(.9) } }
.swap { transition: opacity .25s, transform .35s var(--ease); } .swap.out { opacity: 0; transform: translateY(6px); }
.goals { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.4rem; }
.goal { min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 0; background: var(--panel); color: var(--ink); font: 600 .9375rem var(--font); box-shadow: var(--shadow); cursor: pointer; transition: transform .3s var(--ease), background-color .25s, color .25s; touch-action: manipulation; }
.goal:hover { transform: translateY(-2px); } .goal:active { transform: scale(.95); }
.goal[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.stage-cap { text-align: center; font-size: .875rem; color: var(--ink-3); margin-top: .8rem; }
.stage-wrap { display: flex; flex-direction: column; }

/* Sections */
section { position: relative; }
.sec { padding: clamp(72px, 11vw, 160px) 0; }
h2.big { font-size: clamp(2.1rem, 5.2vw, 3.9rem); line-height: 1.04; letter-spacing: -.04em; max-width: 16em; }
.sec-lead { margin-top: 1.1rem; max-width: 38em; font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--ink-2); }

/* The statement band */
.band { padding: clamp(64px, 9vw, 130px) 0; }
.band p { font-size: clamp(1.6rem, 4.3vw, 3.2rem); line-height: 1.14; letter-spacing: -.035em; font-weight: 650; max-width: 22em; color: var(--ink-3); }
.band p em { font-style: normal; color: var(--ink); }
.band .w { transition: color .5s var(--ease); }

/* RAZEN: a dark field */
.product { background: var(--dark); color: var(--on-dark); border-radius: clamp(28px, 4vw, 48px); margin-inline: clamp(8px, 1.6vw, 20px); overflow: hidden; }
.product .sec-lead { color: var(--on-dark-2); }
.product-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: clamp(36px, 5vw, 64px); }
.tile { background: var(--dark-2); border-radius: 26px; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: .7rem; min-height: 230px; transition: transform .5s var(--ease), background-color .3s; }
.tile:hover { transform: translateY(-4px); background: #2a2a2e; }
.tile h3 { font-size: clamp(1.3rem, 2.3vw, 1.75rem); line-height: 1.12; }
.tile p { color: var(--on-dark-2); font-size: 1rem; }
.tile.a { grid-column: span 4; } .tile.b { grid-column: span 2; } .tile.c { grid-column: span 2; } .tile.d { grid-column: span 2; } .tile.e { grid-column: span 2; }
.tile.hot { background: var(--accent); color: var(--on-accent); } .tile.hot p { color: inherit; opacity: .9; } .tile.hot:hover { background: var(--accent-2); }
.big-num { font-size: clamp(3rem, 6vw, 5rem); line-height: 1; letter-spacing: -.05em; font-weight: 700; margin-top: auto; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.chips span { background: rgb(255 255 255 / 10%); border-radius: 999px; padding: .4rem .85rem; font-size: .9rem; font-weight: 500; }
@media (max-width: 860px) { .product-grid { grid-template-columns: 1fr 1fr; } .tile.a { grid-column: span 2; } .tile.b, .tile.c, .tile.d, .tile.e { grid-column: span 1; } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } .tile.a, .tile.b, .tile.c, .tile.d, .tile.e { grid-column: span 1; } .tile { min-height: 0; } }
.product-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; align-items: center; }
.product-cta small { color: var(--on-dark-2); font-size: .9375rem; }

/* Principles */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(36px, 5vw, 60px); }
.card { background: var(--panel); border-radius: 26px; padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); transition: transform .5s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.12; }
.card p { margin-top: .8rem; color: var(--ink-2); }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

/* Company */
.company { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.facts { background: var(--panel); border-radius: 26px; padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow); }
.facts dl { margin: 0; display: grid; gap: 1.2rem; }
.facts dt { font-size: .875rem; color: var(--ink-3); }
.facts dd { margin: .15rem 0 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.facts a { text-decoration-color: var(--accent); text-underline-offset: 4px; }
@media (max-width: 860px) { .company { grid-template-columns: 1fr; } }

/* Contact */
.contact { margin-inline: clamp(8px, 1.6vw, 20px); background: var(--accent); color: var(--on-accent); border-radius: clamp(28px, 4vw, 48px); padding: clamp(48px, 8vw, 110px) 0; overflow: hidden; }
.contact h2 { font-size: clamp(2.3rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -.045em; max-width: 12em; }
.contact p { margin-top: 1.2rem; font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 30em; opacity: .92; }
.contact .btn { background: var(--on-accent); color: var(--accent); box-shadow: none; margin-top: 2rem; min-height: 60px; font-size: 1.0625rem; }
.contact .btn:hover { background: #fff; }
.mail { display: block; margin-top: 1.1rem; font-size: 1rem; opacity: .9; overflow-wrap: anywhere; }

/* Footer */
.foot { padding: clamp(56px, 8vw, 100px) 0 calc(36px + env(safe-area-inset-bottom)); }
.foot-name { font-size: clamp(2.6rem, 11.5vw, 10.5rem); line-height: .92; letter-spacing: -.06em; font-weight: 700; color: var(--panel-2); user-select: none; white-space: nowrap; overflow: hidden; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; margin-top: 2rem; color: var(--ink-3); font-size: .9375rem; }
.foot-row nav { display: flex; gap: 1.4rem; flex-wrap: wrap; } .foot-row a { text-decoration: none; } .foot-row a:hover { color: var(--ink); }

/* Plain document pages */
.doc { padding: calc(68px + clamp(40px, 7vw, 90px)) 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 1.04; letter-spacing: -.04em; }
.doc .meta { margin-top: .9rem; color: var(--ink-3); }
.doc h2 { font-size: 1.4rem; margin-top: 2.6rem; letter-spacing: -.025em; }
.doc p, .doc li { margin-top: .9rem; color: var(--ink-2); }
.doc ul { padding-left: 1.2rem; } .doc a { text-underline-offset: 3px; text-decoration-color: var(--accent); }
.nf { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 24px; }
.nf h1 { font-size: clamp(5rem, 22vw, 12rem); line-height: .9; letter-spacing: -.06em; color: var(--accent); }

/* Reveal: only hidden when script is running, so content never depends on it. */
.js [data-r] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-r].in { opacity: 1; transform: none; }
.js .word > span { transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--w, 0) * 55ms + 120ms); }
.js .loaded .word > span { transform: none; }
.js [data-hero] { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 500ms); }
.js .loaded [data-hero] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .js [data-r], .js [data-hero], .js .word > span { opacity: 1; transform: none; }
}
@media print { .nav, .stage-wrap { display: none; } }

.product .next { margin-top: 2.2rem; }

/* FAQ */
.faq { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--panel); border-radius: 22px; box-shadow: var(--shadow); transition: transform .4s var(--ease); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 26px; font-weight: 650; font-size: 1.125rem; letter-spacing: -.02em; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 26px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .45s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 26px 24px; margin: 0; color: var(--ink-2); animation: faq-in .5s var(--ease) both; }
.faq details a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
