/* Crimora City — the city gates (landing) */
@property --cg-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
    --cg-gold: #e0b84c; --cg-gold-hi: #f6dc8a; --cg-gold-lo: #a6812a;
    --cg-ink: #05080f; --cg-text: #eef1f6; --cg-mute: #8b97a9;
    --cg-ease: cubic-bezier(.65, 0, .18, 1); --cg-out: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body.cg-body { background: var(--cg-ink); color: var(--cg-text); font-family: "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.cg-body a { color: inherit; text-decoration: none; }
.cg-body.is-locked { overflow: hidden; }

#cpScene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.cg-shade { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: calc(1 - var(--day, 0) * .3); background: linear-gradient(to bottom, rgba(5,8,15,.1), rgba(5,8,15,.55) 70%, rgba(5,8,15,.8)); }
.cg-grain { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ───── Gates intro ───── */
.cg-gates { position: fixed; inset: 0; z-index: 100; display: flex; }
.cg-gates.is-gone { display: none; }
.cg-door {
    position: relative; flex: 1; transition: transform 1.3s var(--cg-ease) .3s;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 46px),
        linear-gradient(180deg, #0f1522, #070a12 60%, #0c0f18);
    box-shadow: inset 0 0 120px rgba(0,0,0,.8);
}
.cg-door::before { content: ""; position: absolute; inset: 7% 0 7% 0; border-block: 2px solid rgba(224,184,76,.25); }
.cg-door::after { /* rivets */ content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(224,184,76,.5) 2px, transparent 3px) 0 0 / 46px 120px; opacity: .35; }
.cg-door--l { transform-origin: left center; border-right: 0; }
.cg-door--r { transform-origin: right center; }
.cg-door--r { background:
        repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 46px),
        linear-gradient(180deg, #0f1522, #070a12 60%, #0c0f18); }
/* depth: light sheen, shaded top and bottom, cast shadow, glow along the seam (original look kept) */
.cg-door { box-shadow: inset 0 0 120px rgba(0,0,0,.8); transition: transform 1.3s var(--cg-ease) .3s; }
.cg-door--l { box-shadow: inset 0 0 120px rgba(0,0,0,.8); }
.cg-door--r { box-shadow: inset 0 0 120px rgba(0,0,0,.8); }
.cg-door::before { background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 9%, transparent 91%, rgba(0,0,0,.45)); box-shadow: 0 -2px 10px rgba(224,184,76,.10), 0 2px 10px rgba(224,184,76,.10); }
.cg-gates.open .cg-door--l { transform: translateX(-102%); }
.cg-gates.open .cg-door--r { transform: translateX(102%); }
.cg-seal {
    --sz: min(260px, 52vw);
    position: absolute; z-index: 5; top: 50%; width: var(--sz); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
    background: radial-gradient(circle, #1a1608, #080a10 70%); box-shadow: 0 0 0 2px rgba(224,184,76,.6), 0 0 60px rgba(224,184,76,.35), inset 0 0 40px rgba(224,184,76,.15);
    animation: cg-seal .6s var(--cg-out) backwards;
}
.cg-seal--l { --tx: 50%; right: 0; transform: translate(50%, -50%); clip-path: inset(-400px calc(50% - 4px) -400px -400px); }
.cg-seal--r { --tx: -50%; left: 0; transform: translate(-50%, -50%); clip-path: inset(-400px -400px -400px calc(50% - 4px)); }
.cg-seal::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; padding: 2px; background: conic-gradient(from var(--cg-ang), transparent 0 60%, var(--cg-gold-hi) 90%, transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: cg-spin 2.2s linear infinite; }
.cg-seal .wm { text-align: center; justify-items: center; gap: 6px; }
.cg-seal .wm strong { font-size: clamp(1.3rem, 4vw, 1.9rem); text-shadow: 0 0 24px rgba(224,184,76,.5); }
.cg-seal .wm small { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
/* scale inside `transform` (not the separate scale property) so each half keeps its centre on the seam while it grows */
@keyframes cg-seal { from { transform: translate(var(--tx), -50%) scale(.7); } }
@keyframes cg-wm { from { opacity: 0; filter: blur(6px); } }
.cg-seal .wm { animation: cg-wm .6s ease .1s both; }
@keyframes cg-spin { to { --cg-ang: 360deg; } }
.cg-beam { position: absolute; z-index: 0; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%) scaleX(0); background: linear-gradient(180deg, transparent, #fff6d6, transparent); box-shadow: 0 0 80px 30px rgba(246,220,138,.6); opacity: 0; transition: transform 1.2s var(--cg-ease) .25s, opacity .4s ease .25s; }
.cg-gates.open .cg-beam { opacity: 1; transform: translateX(-50%) scaleX(90); animation: cg-beam 1.6s ease .25s both; }
@keyframes cg-beam { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
.cg-skip { position: absolute; z-index: 4; bottom: 28px; left: 50%; transform: translateX(-50%); font: 600 .68rem "JetBrains Mono", monospace; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.35); }
.cg-gates.open .cg-skip { opacity: 0; transition: opacity .3s; }

/* ───── Header ───── */
.cg-header { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px clamp(18px, 4vw, 48px); transition: background .4s, backdrop-filter .4s, padding .4s var(--cg-out), box-shadow .4s; }
.cg-header.is-scrolled { background: rgba(5,8,15,.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding-block: 10px; box-shadow: 0 1px 0 rgba(255,255,255,.07); }
.cg-brand { transition: transform .4s var(--cg-out); }
.cg-brand:hover { transform: translateY(-1px); }
.cg-nav { display: flex; gap: 6px; }
.cg-nav a { position: relative; padding: 8px 14px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cg-mute); transition: color .3s; }
.cg-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px; background: var(--cg-gold-hi); transform: scaleX(0); transition: transform .45s var(--cg-out); }
.cg-nav a:hover { color: var(--cg-text); } .cg-nav a:hover::after { transform: scaleX(1); }
.cg-actions { display: flex; align-items: center; gap: 10px; }
.ec-landing-session-name { font-size: .78rem; color: var(--cg-mute); }

.cg-btn {
    position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer;
    padding: 12px 22px; border-radius: 13px; font: 700 .78rem "Inter", sans-serif; letter-spacing: .1em; text-transform: uppercase;
    transition: transform .4s var(--cg-out), box-shadow .4s, background .3s;
}
.cg-btn--gold { color: #1a1304; background: linear-gradient(135deg, var(--cg-gold-hi), var(--cg-gold) 50%, var(--cg-gold-lo)); box-shadow: 0 12px 30px -10px rgba(224,184,76,.65), inset 0 1px 0 rgba(255,255,255,.55); }
.cg-btn--gold::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-20deg); transition: left .9s var(--cg-ease); }
.cg-btn--gold:hover::before { left: 120%; }
.cg-btn--gold:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(224,184,76,.8), inset 0 1px 0 rgba(255,255,255,.6); }
.cg-btn--ghost { color: var(--cg-text); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); backdrop-filter: blur(10px); }
.cg-btn--ghost:hover { transform: translateY(-3px); background: rgba(224,184,76,.1); box-shadow: inset 0 0 0 1px rgba(224,184,76,.6); }
.cg-btn--lg { padding: 18px 32px; font-size: .86rem; border-radius: 15px; }
.cg-btn .arr { transition: transform .45s var(--cg-out); font-size: 1.1rem; } .cg-btn:hover .arr { transform: translateX(6px); }

/* ───── Layout ───── */
.cg-main { position: relative; z-index: 5; }
.cg-section { width: min(1160px, calc(100% - 36px)); margin: 0 auto; padding: clamp(70px, 11vw, 140px) 0 0; }
.cg-kicker { font: 700 .68rem "JetBrains Mono", monospace; letter-spacing: .26em; text-transform: uppercase; color: var(--cg-gold); display: inline-flex; align-items: center; gap: 10px; }
.cg-kicker::before { content: ""; width: 26px; height: 1px; background: var(--cg-gold); }

[data-reveal] { opacity: 0; transform: translateY(40px); filter: blur(6px); transition: opacity .9s ease, transform 1.1s var(--cg-out), filter .9s ease; transition-delay: calc(var(--d, 0) * 90ms); }
[data-reveal].is-visible { opacity: 1; transform: none; filter: none; }

/* hero */
.cg-hero { min-height: 100vh; width: min(1160px, calc(100% - 36px)); margin: 0 auto; padding: 130px 0 70px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.cg-title { margin: 18px 0 20px; font: 700 clamp(3rem, 7.2vw, 6.4rem)/.94 "Oswald", sans-serif; text-transform: uppercase; letter-spacing: -.005em; text-shadow: 0 10px 60px rgba(0,0,0,.6); }
.cg-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .14em; margin-bottom: -.14em; }
.cg-title .w > span { display: inline-block; transform: translateY(115%) rotate(7deg); opacity: 0; transition: transform .9s var(--cg-out), opacity .5s ease; transition-delay: calc(var(--i) * 70ms + var(--base, 2.5s)); }
.cg-live .cg-title .w > span { transform: none; opacity: 1; }
.cg-title em { font-style: normal; background: linear-gradient(95deg, var(--cg-gold-hi), var(--cg-gold) 55%, var(--cg-gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cg-lead { margin: 0 0 30px; max-width: 46ch; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.6; color: #b4bdcc; }
.cg-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.cg-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .76rem; font-weight: 600; color: var(--cg-mute); }
.cg-trust span { display: inline-flex; align-items: center; gap: 8px; }
.cg-trust i { width: 7px; height: 7px; border-radius: 50%; background: var(--cg-gold); box-shadow: 0 0 10px var(--cg-gold); animation: cg-blink 2.4s ease-in-out infinite; }
@keyframes cg-blink { 50% { opacity: .35; } }

/* console card */
.cg-card, .cg-feature, .cg-step {
    --mx: 50%; --my: 0%;
    position: relative; border-radius: 22px; overflow: hidden;
    background: linear-gradient(145deg, rgba(16,22,36,.72), rgba(7,10,17,.8)); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
    box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.07), inset 0 1px 0 rgba(255,255,255,.08);
}
.cg-card::after, .cg-feature::after, .cg-step::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(224,184,76,.12), transparent 60%); opacity: 0; transition: opacity .4s; }
.cg-card:hover::after, .cg-feature:hover::after, .cg-step:hover::after { opacity: 1; }
.cg-console { padding: 24px; display: grid; gap: 20px; transform: perspective(1200px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .5s var(--cg-out); }
.cg-console::before { content: ""; position: absolute; inset: -1px; border-radius: 23px; padding: 1.5px; pointer-events: none; background: conic-gradient(from var(--cg-ang), transparent 0 62%, rgba(246,220,138,.9) 88%, transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: cg-spin 9s linear infinite; }
.cg-top { display: flex; justify-content: space-between; align-items: center; font: 700 .68rem "JetBrains Mono", monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--cg-mute); }
.cg-top strong { color: var(--cg-text); } .cg-top > div { display: flex; align-items: center; gap: 10px; }
.cg-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: cg-ping 1.8s infinite; }
@keyframes cg-ping { to { box-shadow: 0 0 0 10px rgba(74,222,128,0); } }
.cg-id { display: flex; align-items: center; gap: 14px; }
.cg-avatar { width: 54px; height: 54px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; font: 700 1rem "Oswald", sans-serif; color: var(--cg-gold-hi); background: linear-gradient(145deg, rgba(224,184,76,.25), rgba(224,184,76,.05)); box-shadow: inset 0 0 0 1px rgba(224,184,76,.35); }
.cg-avatar img { width: 100%; height: 100%; object-fit: cover; } .cg-avatar [hidden] { display: none; }
.cg-id > div:nth-child(2) { flex: 1; min-width: 0; } .cg-id span { display: block; font-size: .7rem; color: var(--cg-mute); }
.cg-id strong { display: block; font: 600 1.15rem "Oswald", sans-serif; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-level { font: 700 .7rem "JetBrains Mono", monospace; padding: 6px 10px; border-radius: 8px; color: #1a1304; background: linear-gradient(135deg, var(--cg-gold-hi), var(--cg-gold)); }
.cg-res { display: grid; gap: 13px; }
.cg-res > article > div:first-child { display: flex; justify-content: space-between; font-size: .72rem; margin-bottom: 6px; color: var(--cg-mute); } .cg-res strong { color: var(--cg-text); font-weight: 600; }
.cg-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.cg-bar i { display: block; height: 100%; width: var(--fill, 100%); border-radius: 6px; background: linear-gradient(90deg, var(--cg-gold-lo), var(--cg-gold-hi)); box-shadow: 0 0 14px rgba(224,184,76,.6); transition: width 1.6s var(--cg-out) .5s; }
.cg-res article:nth-child(1) { --rc: #ff4b55; }
.cg-res article:nth-child(2) { --rc: #ffd83d; }
.cg-res article:nth-child(3) { --rc: #35cfff; }
.cg-res article:nth-child(4) { --rc: #ff9f2f; }
.cg-res .cg-bar i { background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 64%, #111), var(--rc)); box-shadow: 0 0 11px color-mix(in srgb, var(--rc) 42%, transparent); }
.cg-res article > div:first-child span { color: color-mix(in srgb, var(--rc) 80%, white); font-weight: 700; }
[data-reveal]:not(.is-visible) .cg-bar i { width: 0; }
.cg-events { display: grid; gap: 4px; }
.cg-events > div { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 12px; transition: background .3s, transform .4s var(--cg-out); }
.cg-events > div:hover { background: rgba(224,184,76,.07); transform: translateX(4px); }
.cg-events .n { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 700 .68rem "JetBrains Mono", monospace; color: var(--cg-gold-hi); box-shadow: inset 0 0 0 1px rgba(224,184,76,.3); background: rgba(224,184,76,.08); }
.cg-events p { margin: 0; } .cg-events strong { display: block; font-size: .82rem; } .cg-events small { color: var(--cg-mute); font-size: .74rem; }

/* scroll cue */
.cg-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 24px; height: 40px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.cg-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; border-radius: 3px; background: var(--cg-gold-hi); transform: translateX(-50%); animation: cg-cue 1.8s var(--cg-ease) infinite; }
@keyframes cg-cue { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }
.cg-hero-wrap { position: relative; }

/* ticker */
.cg-ticker { margin-top: clamp(40px, 7vw, 90px); overflow: hidden; border-block: 1px solid rgba(255,255,255,.07); background: rgba(5,8,15,.5); backdrop-filter: blur(8px); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.cg-ticker div { display: flex; width: max-content; animation: cg-tick 38s linear infinite; }
.cg-ticker span { padding: 16px 28px; font: 600 .78rem "Oswald", sans-serif; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.5); white-space: nowrap; }
.cg-ticker span::after { content: "◆"; margin-left: 56px; color: var(--cg-gold); font-size: .6rem; }
@keyframes cg-tick { to { transform: translateX(-50%); } }

/* features */
.cg-head h2 { margin: 14px 0 0; font: 700 clamp(2rem, 4.4vw, 3.4rem)/1.02 "Oswald", sans-serif; text-transform: uppercase; max-width: 18ch; }
.cg-head h2 em { font-style: normal; color: var(--cg-gold-hi); }
.cg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.cg-feature { padding: 28px 26px 26px; transition: transform .6s var(--cg-out), box-shadow .4s; }
.cg-feature:hover { transform: translateY(-8px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), inset 0 0 0 1px rgba(224,184,76,.4); }
.cg-fi { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: var(--cg-gold-hi); background: linear-gradient(145deg, rgba(224,184,76,.2), rgba(224,184,76,.04)); box-shadow: inset 0 0 0 1px rgba(224,184,76,.28); margin-bottom: 20px; transition: transform .6s var(--cg-out), box-shadow .4s; }
.cg-feature:hover .cg-fi { transform: rotate(-9deg) scale(1.12); box-shadow: inset 0 0 0 1px rgba(246,220,138,.7), 0 0 30px rgba(224,184,76,.4); }
.cg-fi svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cg-feature h3 { margin: 0 0 8px; font: 600 1.3rem "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .03em; }
.cg-feature p { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--cg-mute); }
.cg-feature .no { position: absolute; top: 18px; right: 22px; font: 700 .7rem "JetBrains Mono", monospace; color: rgba(255,255,255,.18); transition: color .3s; }
.cg-feature:hover .no { color: var(--cg-gold); }

/* path */
/* path: compact timeline */
.cg-path { margin-top: 34px; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; list-style: none; padding: 0; }
.cg-path { --end: calc((100% - 84px) / 4 - 18px); }
.cg-path::before { content: ""; position: absolute; left: 18px; right: var(--end); top: 17px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.1); }
.cg-path::after { content: ""; position: absolute; left: 18px; top: 17px; height: 2px; border-radius: 2px; width: calc(100% - 18px - var(--end)); transform: scaleX(var(--prog, 0)); transform-origin: left; background: linear-gradient(90deg, var(--cg-gold-lo), var(--cg-gold-hi)); box-shadow: 0 0 14px var(--cg-gold); transition: transform 1.2s var(--cg-ease); }
.cg-step { position: relative; z-index: 1; padding: 50px 0 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; overflow: visible; }
.cg-step::after { display: none; }
.cg-step .badge { position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 .7rem "JetBrains Mono", monospace; color: var(--cg-mute); background: #0b101b; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.2), 0 0 0 5px rgba(5,8,15,.9); transition: all .6s var(--cg-out); }
.cg-step.on .badge { color: #1a1304; background: linear-gradient(135deg, var(--cg-gold-hi), var(--cg-gold)); box-shadow: 0 0 0 5px rgba(5,8,15,.9), 0 0 22px rgba(224,184,76,.65); transform: scale(1.08); }
.cg-step h3 { margin: 0 0 4px; font: 600 1.05rem "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .05em; transition: color .4s; }
.cg-step.on h3 { color: var(--cg-gold-hi); }
.cg-step p { margin: 0; font-size: .82rem; line-height: 1.45; color: #a3aebf; max-width: 24ch; }

/* final CTA */
.cg-final { margin: clamp(80px, 12vw, 150px) auto 0; width: min(1160px, calc(100% - 36px)); text-align: center; padding: clamp(44px, 7vw, 90px) 24px; border-radius: 30px; position: relative; overflow: hidden; background: radial-gradient(90% 120% at 50% 0%, rgba(224,184,76,.22), transparent 60%), linear-gradient(145deg, rgba(20,17,8,.8), rgba(7,10,17,.85)); box-shadow: inset 0 0 0 1px rgba(224,184,76,.25), 0 40px 100px -30px #000; backdrop-filter: blur(14px); }
.cg-final h2 { margin: 16px auto 30px; max-width: 16ch; font: 700 clamp(2.2rem, 5.4vw, 4.2rem)/1 "Oswald", sans-serif; text-transform: uppercase; }
.cg-final h2 em { font-style: normal; background: linear-gradient(95deg, var(--cg-gold-hi), var(--cg-gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cg-final .cg-cta { justify-content: center; margin: 0; }
.cg-footer { position: relative; z-index: 5; margin-top: 90px; padding: 30px clamp(18px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; color: var(--cg-mute); font-size: .76rem; border-top: 1px solid rgba(255,255,255,.07); background: rgba(5,8,15,.7); backdrop-filter: blur(10px); }
 .cg-footer p { margin: 0; }

.cg-body :focus-visible { outline: 2px solid var(--cg-gold-hi); outline-offset: 3px; }

@media (max-width: 980px) {
    .cg-hero { grid-template-columns: 1fr; padding-top: 110px; }
    .cg-grid { grid-template-columns: repeat(2, 1fr); }
    .cg-path { grid-template-columns: repeat(2, 1fr); row-gap: 30px; } .cg-path::before, .cg-path::after { display: none; }
    .cg-nav { display: none; }
}
@media (max-width: 620px) {
    .cg-grid, .cg-path { grid-template-columns: 1fr; }
    .cg-cue { display: none; }
    .cg-btn--lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    html { scroll-behavior: auto; }
}

/* wordmark (matches the navbar brand) */
.wm { display: grid; gap: 2px; white-space: nowrap; text-align: left; }
.wm strong { color: var(--cg-gold-hi); font: 600 15px "Oswald", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.wm small { color: #8b97a9; font-size: 10px; letter-spacing: .05em; }

.cg-header::before { content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none; background: linear-gradient(rgba(5,8,15,.55), transparent); }
.cg-title, .cg-lead, .cg-trust { text-shadow: 0 2px 24px rgba(0,0,0,.55); }
.cg-clock { font: 600 .68rem "JetBrains Mono", monospace; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-right: 6px; }
.cg-lead { color: #d3dae6; }
.cg-trust { color: #c3ccda; }

/* features: compact horizontal cards */
.cg-grid { gap: 12px; margin-top: 30px; }
.cg-feature { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; padding: 16px 18px; border-radius: 18px; }
.cg-feature::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(var(--cg-gold-hi), var(--cg-gold-lo)); box-shadow: 0 0 14px var(--cg-gold); transform: scaleY(0); transition: transform .55s var(--cg-out); }
.cg-feature:hover::before { transform: scaleY(1); }
.cg-feature:hover { transform: translateY(-4px); }
.cg-feature .cg-fi { grid-row: 1 / span 2; width: 44px; height: 44px; margin: 0; border-radius: 13px; }
.cg-feature .cg-fi svg { width: 21px; height: 21px; }
.cg-feature h3 { margin: 1px 0 3px; font-size: 1.02rem; letter-spacing: .05em; }
.cg-feature p { font-size: .8rem; line-height: 1.4; color: #a3aebf; }
.cg-feature .no { display: none; }
@media (max-width: 980px) { .cg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cg-grid { grid-template-columns: 1fr; } }

/* tighter vertical rhythm */
.cg-section { padding-top: clamp(34px, 4.5vw, 56px); }
.cg-hero { padding-bottom: 36px; }
.cg-ticker { margin-top: 18px; }
.cg-grid { margin-top: 22px; }
.cg-path { margin-top: 24px; }
.cg-final { margin-top: clamp(40px, 5vw, 60px); padding: clamp(32px, 4.5vw, 52px) 24px; }
.cg-final h2 { margin: 12px auto 22px; }
.cg-footer { margin-top: 44px; }
.cg-head h2 { margin-top: 10px; }

/* phones: compact header with both Sign in and Create account */
@media (max-width: 620px) {
    .cg-header { padding: 10px 12px; gap: 8px; }
    .cg-clock { display: none; }
    .cg-brand strong { font-size: 12px; letter-spacing: .06em; }
    .cg-brand small { display: none; }
    .cg-actions { gap: 6px; margin-left: auto; }
    .cg-header .cg-btn { padding: 9px 12px; font-size: .62rem; letter-spacing: .06em; border-radius: 10px; white-space: nowrap; }
}

/* gold seam edge: drawn as its own strip so it can stop short of the badge */
.cg-edge { position: absolute; top: 0; bottom: 0; width: 28px; pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(50% - 160px), transparent calc(50% - 140px), transparent calc(50% + 140px), #000 calc(50% + 160px), #000 100%);
    mask-image: linear-gradient(180deg, #000 0, #000 calc(50% - 160px), transparent calc(50% - 140px), transparent calc(50% + 140px), #000 calc(50% + 160px), #000 100%); }
.cg-door--l .cg-edge { right: 0; background: linear-gradient(90deg, transparent, rgba(224,184,76,.2) 85%, rgba(224,184,76,.5) calc(100% - 3px), rgba(224,184,76,.5)); }
.cg-door--r .cg-edge { left: 0; background: linear-gradient(270deg, transparent, rgba(224,184,76,.2) 85%, rgba(224,184,76,.5) calc(100% - 3px), rgba(224,184,76,.5)); }

/* The badge is one whole element while the gates are closed (no split line to leak through);
   at the moment the gates open it is swapped for the two halves that travel with the doors. */
.cg-seal--whole { --tx: -50%; left: 50%; right: auto; transform: translate(-50%, -50%); clip-path: none; z-index: 6; }
/* the swap waits for the doors to start moving (same .3s delay), so the whole badge stays solid until then */
.cg-seal--l, .cg-seal--r { visibility: hidden; transition: visibility 0s linear .3s; }
.cg-seal--whole { transition: visibility 0s linear .3s; }
.cg-gates.open .cg-seal--l, .cg-gates.open .cg-seal--r { visibility: visible; }
.cg-gates.open .cg-seal--whole { visibility: hidden; }

/* doors always sit above the light beam, so the beam only shows in the gap as they open */
.cg-door { z-index: 1; }
.cg-seal--whole { z-index: 6; }

.cg-continue { width: 100%; padding: 15px 22px; margin-top: 2px; }

/* phones: slimmer everything */
@media (max-width: 620px) {
    .cg-header { padding: 8px 10px; }
    .cg-header .cg-btn { padding: 7px 10px; font-size: .56rem; font-weight: 600; border-radius: 8px; }
    .cg-hero { width: calc(100% - 24px); padding: 84px 0 20px; min-height: auto; gap: 18px; }
    .cg-kicker { font-size: .56rem; letter-spacing: .18em; }
    .cg-title { font-size: clamp(2rem, 10vw, 2.6rem); margin: 10px 0 10px; font-weight: 600; }
    .cg-lead { font-size: .84rem; line-height: 1.5; margin-bottom: 16px; }
    .cg-cta { gap: 8px; margin-bottom: 16px; }
    .cg-btn--lg { padding: 11px 18px; font-size: .68rem; font-weight: 600; border-radius: 10px; }
    .cg-trust { font-size: .66rem; gap: 4px 14px; font-weight: 500; }
    .cg-card { border-radius: 16px; }
    .cg-console { padding: 14px; gap: 12px; }
    .cg-top { font-size: .56rem; }
    .cg-avatar { width: 40px; height: 40px; border-radius: 12px; }
    .cg-id strong { font-size: .95rem; font-weight: 500; }
    .cg-id span { font-size: .62rem; }
    .cg-level { font-size: .6rem; padding: 4px 8px; }
    .cg-res { gap: 9px; } .cg-res > article > div:first-child { font-size: .64rem; margin-bottom: 4px; }
    .cg-bar { height: 4px; }
    .cg-continue { padding: 11px 16px; }
    .cg-ticker span { padding: 10px 18px; font-size: .62rem; font-weight: 500; }
    .cg-section { width: calc(100% - 24px); padding-top: 28px; }
    .cg-head h2 { font-size: 1.5rem; font-weight: 600; }
    .cg-grid { gap: 8px; margin-top: 16px; }
    .cg-feature { padding: 11px 13px; border-radius: 14px; grid-template-columns: 36px 1fr; column-gap: 11px; }
    .cg-feature .cg-fi { width: 36px; height: 36px; border-radius: 10px; } .cg-feature .cg-fi svg { width: 17px; height: 17px; }
    .cg-feature h3 { font-size: .88rem; font-weight: 500; margin-bottom: 1px; }
    .cg-feature p { font-size: .72rem; }
    .cg-path { margin-top: 16px; row-gap: 18px; gap: 14px; }
    .cg-step { padding-top: 40px; } .cg-step .badge { width: 30px; height: 30px; font-size: .6rem; }
    .cg-step h3 { font-size: .9rem; font-weight: 500; } .cg-step p { font-size: .72rem; }
    .cg-final { width: calc(100% - 24px); padding: 26px 14px; border-radius: 20px; margin-top: 30px; }
    .cg-final h2 { font-size: 1.55rem; font-weight: 600; margin: 8px auto 14px; }
    .cg-footer { margin-top: 28px; padding: 18px 12px; font-size: .68rem; }
    .cg-seal { --sz: min(200px, 56vw); }
    .cg-seal .wm strong { font-size: 1.1rem; font-weight: 500; }
}

/* phones: every button matches the login and register buttons (38px tall, same type) */
@media (max-width: 620px) {
    .cg-btn, .cg-btn--lg, .cg-header .cg-btn, .cg-continue {
        height: 38px; padding: 0 16px; font-size: .68rem; font-weight: 600; letter-spacing: .08em; border-radius: 10px; gap: 8px;
    }
    .cg-btn .arr { font-size: .9rem; }
    .cg-btn--lg, .cg-continue { width: 100%; }
    .cg-header .cg-btn { width: auto; padding: 0 12px; }
}
