:root {
    color-scheme: dark;
    --bg: #05080c;
    --bg-soft: #090f15;
    --surface: rgba(14, 21, 28, .76);
    --surface-strong: rgba(18, 28, 37, .92);
    --text: #f2f6f9;
    --text-soft: #d6e2ea;
    --muted: #93a6b4;
    --subtle: #667887;
    --accent: #82cffb;
    --accent-2: #9090ed;
    --gold: #dfba68;
    --line: rgba(180, 218, 241, .13);
    --line-strong: rgba(180, 218, 241, .23);
    --shadow: 0 38px 120px rgba(0, 0, 0, .42);
    --display-font: "Iowan Old Style", "Baskerville", "Times New Roman", ui-serif, serif;
    --body-font: Inter, "SF Pro Display", "Avenir Next", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ease-out: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--bg); border-radius: 0; }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--text); background: var(--bg); border-radius: 0; font-family: var(--body-font); font-size: 14px; line-height: 1.55; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.site-ambient { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, #060a0f 0%, #05080c 44%, #030506 100%); }
.site-ambient::before { content: ""; position: absolute; width: 80vw; height: 80vw; min-width: 760px; min-height: 760px; left: -20vw; top: -48vw; border-radius: 50%; background: radial-gradient(circle, rgba(91, 179, 231, .14), rgba(55, 106, 138, .025) 48%, transparent 70%); animation: ambient-float 18s ease-in-out infinite alternate; }
.site-ambient::after { content: ""; position: absolute; width: 64vw; height: 64vw; min-width: 620px; min-height: 620px; right: -28vw; top: 3vw; border-radius: 50%; background: radial-gradient(circle, rgba(221, 178, 86, .075), rgba(102, 74, 30, .018) 50%, transparent 70%); animation: ambient-float 22s ease-in-out -8s infinite alternate-reverse; }
.site-grid { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .3; background-image: linear-gradient(rgba(162, 205, 232, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(162, 205, 232, .025) 1px, transparent 1px); background-size: 78px 78px; mask-image: linear-gradient(to bottom, black, transparent 82%); }
.site-grain { position: fixed; inset: -30%; z-index: -1; pointer-events: none; opacity: .038; transform: rotate(7deg); background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
.shell { width: min(1240px, calc(100% - 44px)); margin: 0 auto; }

.header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; background: rgba(5, 8, 12, .54); backdrop-filter: blur(24px) saturate(120%); }
.header::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { position: relative; width: 29px; height: 31px; flex: 0 0 auto; }
.brand-mark span { position: absolute; top: 5px; width: 14px; height: 21px; border: 1px solid rgba(186, 225, 249, .68); border-radius: 5px; background: linear-gradient(160deg, rgba(180, 225, 252, .12), rgba(55, 107, 139, .02)); box-shadow: inset 0 0 12px rgba(134, 207, 250, .05); }
.brand-mark span:nth-child(1) { left: 0; transform: rotate(-13deg); }
.brand-mark span:nth-child(2) { left: 8px; top: 2px; z-index: 2; height: 25px; border-color: var(--accent); background: linear-gradient(160deg, rgba(180, 225, 252, .18), rgba(55, 107, 139, .03)); box-shadow: 0 0 18px rgba(112, 198, 250, .12); }
.brand-mark span:nth-child(3) { right: 0; transform: rotate(13deg); }
.brand-name { display: inline-block; color: transparent; font-family: var(--display-font); font-size: 19px; font-weight: 700; line-height: 1; letter-spacing: .045em; background: linear-gradient(105deg, #80602b 0%, #e6bd67 13%, #fff0bd 24%, #71bce7 39%, #d8efff 48%, #e9c775 61%, #a4772f 74%, #6eb8e2 88%, #d8ae59 100%); background-size: 280% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 24px rgba(111, 181, 224, .13), 0 0 18px rgba(222, 177, 84, .09); animation: reflecta-shimmer 7s linear infinite; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-switcher { position: relative; }
.language-switcher summary { width: 40px; height: 40px; display: grid; place-items: center; list-style: none; cursor: pointer; border: 1px solid transparent; border-radius: 50%; color: var(--muted); transition: color .18s ease, border-color .18s ease, background .18s ease; }
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary:hover, .language-switcher[open] summary { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.04); }
.language-switcher summary svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.language-menu { position: absolute; top: calc(100% + 9px); right: 0; min-width: 92px; display: grid; gap: 4px; padding: 7px; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(11, 17, 23, .96); box-shadow: 0 18px 46px rgba(0,0,0,.34); backdrop-filter: blur(20px); }
.language-menu a { min-height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: .76rem; font-weight: 740; letter-spacing: .08em; }
.language-menu a:hover, .language-menu a[aria-current="page"] { color: var(--text); background: rgba(130,207,251,.09); }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 19px; border: 1px solid transparent; border-radius: 12px; text-decoration: none; font-size: .84rem; font-weight: 720; transition: transform .2s var(--ease-out), border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #071018; background: linear-gradient(135deg, #b7e8ff 0%, #80caef 44%, #9999ee 100%); box-shadow: 0 15px 38px rgba(86, 166, 211, .18), inset 0 1px 0 rgba(255,255,255,.58); }
.button-primary:hover { box-shadow: 0 20px 48px rgba(86, 166, 211, .25), inset 0 1px 0 rgba(255,255,255,.62); }
.button-secondary { color: var(--text-soft); border-color: var(--line); background: rgba(255,255,255,.026); }
.button-secondary:hover { border-color: var(--line-strong); background: rgba(255,255,255,.052); }

.hero { position: relative; min-height: 900px; display: grid; align-items: center; padding: 60px 0 66px; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: min(780px, 72vw); height: min(780px, 72vw); left: 54%; top: 43%; transform: translate(-50%, -50%); border: 1px solid rgba(170, 216, 244, .055); border-radius: 50%; box-shadow: 0 0 0 92px rgba(170, 216, 244, .018), 0 0 0 184px rgba(170, 216, 244, .012); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(650px, 1.2fr) minmax(420px, .8fr); align-items: center; gap: clamp(12px, 1.8vw, 28px); }
.hero-copy-block { position: relative; z-index: 4; }
.eyebrow { color: var(--accent); font-size: .64rem; font-weight: 780; letter-spacing: .18em; text-transform: uppercase; }
h1, h2 { font-family: var(--display-font); font-weight: 500; text-wrap: balance; }
h1 { max-width: none; margin: 16px 0 20px; font-size: clamp(2rem, 2.75vw, 2.82rem); line-height: 1.04; letter-spacing: -.042em; white-space: nowrap; }
.hero-copy { max-width: 670px; margin: 0; color: var(--muted); font-size: clamp(.84rem, 1vw, .94rem); line-height: 1.64; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.launch-note { width: fit-content; display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; color: var(--text-soft); font-size: .76rem; }
.launch-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #72d9b3; box-shadow: 0 0 16px rgba(114, 217, 179, .7); }

.hero-visual { position: relative; min-height: 630px; isolation: isolate; transform: translateY(4px) scale(1.38); transform-origin: center center; }
.visual-halo { position: absolute; width: 515px; height: 515px; left: 50%; top: 47%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(115, 197, 242, .12), rgba(111, 105, 218, .035) 46%, transparent 69%); filter: blur(2px); animation: halo-breathe 8s ease-in-out infinite; }
.visual-orbit { position: absolute; width: 505px; height: 505px; left: 50%; top: 47%; transform: translate(-50%, -50%) rotate(-11deg); border: 1px solid rgba(169, 215, 243, .11); border-radius: 50%; }
.visual-orbit::before, .visual-orbit::after { content: ""; position: absolute; width: 10px; height: 10px; border: 1px solid rgba(170, 219, 249, .42); border-radius: 50%; background: var(--bg); box-shadow: 0 0 18px rgba(113, 199, 248, .2); }
.visual-orbit::before { left: 50px; top: 88px; }
.visual-orbit::after { right: 23px; bottom: 136px; }
.visual-core { position: absolute; width: 264px; height: 360px; left: 50%; top: 48%; transform: translate(-50%, -50%); display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 38px; background: linear-gradient(150deg, rgba(26, 42, 54, .88), rgba(8, 14, 19, .96)); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05); }
.visual-core::before { content: ""; width: 110px; height: 110px; border: 1px solid rgba(165, 215, 246, .18); border-radius: 50%; box-shadow: inset 0 0 40px rgba(105, 190, 241, .07), 0 0 60px rgba(105, 190, 241, .06); }
.visual-core::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #d7effe; box-shadow: 0 0 24px #8fd6ff; }
.system-card { position: absolute; width: 228px; min-height: 134px; padding: 17px; border: 1px solid var(--line); border-radius: 19px; background: rgba(12, 19, 25, .82); backdrop-filter: blur(20px); box-shadow: 0 22px 60px rgba(0,0,0,.24); animation: card-float 8s ease-in-out infinite; }
.system-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, rgba(255,255,255,.04), transparent 36%); pointer-events: none; }
.system-card strong { display: block; margin-bottom: 5px; color: var(--text-soft); font-family: var(--display-font); font-size: 1.14rem; font-weight: 560; }
.system-card span { display: block; color: var(--muted); font-size: .69rem; line-height: 1.43; }
.system-card-icon { width: 31px; height: 31px; display: grid !important; place-items: center; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--accent) !important; background: rgba(255,255,255,.03); font-size: .8rem !important; font-weight: 800; }
.system-card--tarot { left: -36px; top: 68px; transform: rotate(-3deg); }
.system-card--runes { right: -56px; top: 186px; transform: rotate(3deg); animation-delay: -2.6s; }
.system-card--mac { left: -20px; bottom: 13px; transform: rotate(2deg); animation-delay: -5.2s; }
.visual-thread { position: absolute; inset: 0; pointer-events: none; }
.visual-thread path { fill: none; stroke: url(#thread-gradient); stroke-width: 1.2; stroke-dasharray: 5 8; opacity: .55; }

.section { position: relative; padding: 72px 0; }
.section--compact { padding: 50px 0; }
.section-kicker { color: var(--gold); font-size: .64rem; font-weight: 780; letter-spacing: .18em; text-transform: uppercase; }
.section-heading { max-width: 820px; margin-bottom: 34px; }
.section h2 { margin: 11px 0 13px; font-size: clamp(1.72rem, 2.85vw, 2.52rem); line-height: 1.04; letter-spacing: -.04em; }
.section-heading p { max-width: 740px; margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.62; }
.section-rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

.systems { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.system { min-height: 270px; padding: 28px 28px; border-right: 1px solid var(--line); }
.system:last-child { border-right: 0; }
.system-index { color: var(--subtle); font-size: .64rem; letter-spacing: .16em; }
.system-symbol { width: 42px; height: 42px; display: grid; place-items: center; margin: 42px 0 22px; border: 1px solid var(--line); border-radius: 13px; color: var(--accent); background: rgba(255,255,255,.022); font-weight: 800; }
.system h3 { margin: 0 0 9px; font-family: var(--display-font); font-size: 1.36rem; font-weight: 560; }
.system p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }

.product-stage { position: relative; padding: 1px; border-radius: 28px; background: linear-gradient(135deg, rgba(132, 207, 250, .3), rgba(223, 186, 104, .13), rgba(143, 144, 237, .22)); box-shadow: var(--shadow); }
.product-window { min-height: 560px; display: grid; grid-template-columns: 180px minmax(0, 1fr) 260px; overflow: hidden; border-radius: 27px; background: #080d12; }
.product-sidebar, .product-tree { padding: 23px 17px; border-color: var(--line); background: rgba(12, 18, 24, .86); }
.product-sidebar { border-right: 1px solid var(--line); }
.product-tree { border-left: 1px solid var(--line); }
.product-logo { margin-bottom: 26px; font-family: var(--display-font); color: #dceaf3; }
.product-nav { display: grid; gap: 6px; }
.product-nav span, .tree-line { height: 35px; display: flex; align-items: center; padding: 0 10px; border-radius: 9px; color: var(--subtle); font-size: .68rem; }
.product-nav span:first-child { color: var(--text-soft); background: rgba(126, 202, 246, .07); }
.product-main { padding: 34px; background: radial-gradient(circle at 70% 0, rgba(102, 184, 232, .08), transparent 40%), #080d12; }
.product-main small { color: var(--accent); font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; }
.product-main h3 { max-width: 540px; margin: 14px 0 22px; font-family: var(--display-font); font-size: clamp(1.7rem, 3vw, 2.45rem); font-weight: 520; line-height: 1.02; letter-spacing: -.035em; }
.reading-preview { min-height: 315px; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 21px; background: radial-gradient(circle, rgba(113, 192, 238, .08), transparent 60%), rgba(255,255,255,.012); }
.preview-card { width: 96px; aspect-ratio: 2/3; border: 1px solid var(--line-strong); border-radius: 13px; background: linear-gradient(150deg, #1d2d39, #0c1218); box-shadow: 0 24px 50px rgba(0,0,0,.3); }
.preview-card:nth-child(1) { transform: rotate(-7deg) translateY(16px); }
.preview-card:nth-child(2) { transform: translateY(-13px); background: linear-gradient(150deg, #233742, #0e151c); }
.preview-card:nth-child(3) { transform: rotate(7deg) translateY(16px); }
.tree-label { color: var(--subtle); font-size: .63rem; font-weight: 760; letter-spacing: .14em; text-transform: uppercase; margin: 2px 9px 15px; }
.tree-line { position: relative; padding-left: 34px; }
.tree-line::before { content: ""; position: absolute; left: 12px; width: 14px; height: 14px; border: 1px solid var(--line); border-radius: 5px; }
.tree-line.is-active { color: var(--text-soft); background: rgba(128, 203, 246, .07); }
.tree-line.is-active::before { border-color: var(--accent); box-shadow: 0 0 15px rgba(119, 198, 245, .14); }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.flow-step { position: relative; min-height: 225px; padding: 27px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow-step:last-child { border-right: 0; }
.flow-number { display: block; margin-bottom: 54px; color: var(--subtle); font-family: var(--display-font); font-size: 1.05rem; }
.flow-step h3 { margin: 0 0 9px; font-family: var(--display-font); font-size: 1.18rem; font-weight: 560; }
.flow-step p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.58; }

.capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.capability { min-height: 170px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.026), rgba(255,255,255,.01)); }
.capability small { color: var(--accent); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.capability h3 { margin: 27px 0 8px; font-family: var(--display-font); font-size: 1.27rem; font-weight: 560; }
.capability p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.58; }

.data-panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; padding: 45px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(140deg, rgba(20, 32, 42, .78), rgba(8, 13, 18, .88)); box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.data-panel h2 { margin-top: 12px; font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.data-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.data-list li { position: relative; padding: 14px 0 14px 27px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.data-list li:last-child { border-bottom: 0; }
.data-list li::before { content: ""; position: absolute; left: 3px; top: 21px; width: 6px; height: 6px; border: 1px solid var(--accent); border-radius: 50%; }

.cta { position: relative; overflow: hidden; padding: 76px 30px; border: 1px solid var(--line); border-radius: 28px 28px 0 0; text-align: center; background: radial-gradient(circle at 50% -20%, rgba(105, 190, 239, .18), transparent 54%), rgba(255,255,255,.012); }
.cta::before { content: ""; position: absolute; width: 550px; height: 550px; left: 50%; bottom: -500px; transform: translateX(-50%); border: 1px solid rgba(219, 184, 105, .16); border-radius: 50%; box-shadow: 0 0 0 72px rgba(219, 184, 105, .018), 0 0 0 144px rgba(117, 193, 237, .014); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { max-width: 780px; margin: 0 auto 14px; font-size: clamp(1.8rem, 3vw, 2.55rem); }
.cta p { max-width: 650px; margin: 0 auto 25px; color: var(--muted); font-size: .9rem; }
.footer { padding: 34px 0; border-top: 1px solid var(--line); color: var(--subtle); font-size: .72rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

@keyframes reflecta-shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 280% 50%; } }
@keyframes ambient-float { from { transform: translate3d(-2%, -2%, 0) scale(.96); } to { transform: translate3d(3%, 4%, 0) scale(1.04); } }
@keyframes halo-breathe { 0%, 100% { transform: translate(-50%, -50%) scale(.94); opacity: .75; } 50% { transform: translate(-50%, -50%) scale(1.04); opacity: 1; } }
@keyframes card-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

@media (max-width: 1120px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy-block { max-width: 920px; }
    h1 { white-space: normal; }
    .hero-visual { width: min(690px, 100%); margin: 0 auto; transform: translateY(-24px) scale(1.16); }
    .product-window { grid-template-columns: 86px minmax(0, 1fr) 240px; }
    .product-nav span { font-size: 0; }
    .product-nav span::before { content: ""; width: 20px; height: 20px; margin: auto; border: 1px solid var(--line); border-radius: 7px; }
    .product-logo { font-size: 0; }
    .product-logo::before { content: "◌"; font-size: 1rem; }
    .flow { grid-template-columns: repeat(2, 1fr); }
    .flow-step:nth-child(2) { border-right: 0; }
    .systems { grid-template-columns: 1fr; }
    .system { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
    .system:last-child { border-bottom: 0; }
    .system-symbol { margin: 30px 0 20px; }
}

@media (max-width: 760px) {
    .shell { width: min(100% - 24px, 1240px); }
    .header-inner { min-height: 64px; }
    .header .button { display: none; }
    .brand-name { font-size: 18px; }
    .hero { min-height: auto; padding: 68px 0 54px; }
    .hero::before { width: 620px; height: 620px; }
    h1 { font-size: clamp(2rem, 9.5vw, 3rem); }
    .hero-actions .button { width: 100%; }
    .hero-visual { min-height: 510px; transform: scale(.82); transform-origin: center top; margin-bottom: -76px; }
    .system-card--runes { right: -20px; }
    .section { padding: 64px 0; }
    .section--compact { padding: 44px 0; }
    .section h2 { font-size: clamp(1.75rem, 8vw, 2.55rem); }
    .product-stage { border-radius: 22px; }
    .product-window { min-height: 500px; grid-template-columns: minmax(0, 1fr); border-radius: 21px; }
    .product-sidebar, .product-tree { display: none; }
    .product-main { padding: 24px 17px; }
    .reading-preview { min-height: 285px; gap: 10px; padding: 18px; }
    .preview-card { width: 80px; }
    .flow, .capability-grid, .data-panel { grid-template-columns: 1fr; }
    .flow-step { min-height: 195px; border-right: 0; }
    .flow-number { margin-bottom: 38px; }
    .data-panel { gap: 25px; padding: 27px 21px; }
    .cta { padding: 58px 21px; }
}

@media (max-width: 520px) {
    .hero-visual { min-height: 455px; transform: scale(.68); width: 130%; margin-left: -15%; margin-bottom: -125px; }
    .launch-note { align-items: flex-start; }
    .system { padding: 25px 20px; }
    .capability { padding: 21px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
