/* ==========================================================================
   Hubdex Store - Main stylesheet
   ========================================================================== */

:root {
    --bg: #030c1d;
    --bg-2: #071a36;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-2: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.12);
    --text: #f2f7ff;
    --muted: #a8b8d0;
    --primary: #1d6fe8;
    --primary-2: #0ea5e9;
    --accent: #22d3ee;
    --cyan: #22d3ee;
    --success: #22c55e;
    --danger: #ff5c7a;
    --grad: linear-gradient(135deg, #1d6fe8 0%, #0ea5e9 45%, #22d3ee 100%);
    --grad-text: linear-gradient(135deg, #38bdf8 0%, #22d3ee 50%, #67e8f9 100%);
    --grad-deep: linear-gradient(135deg, #1d4ed8 0%, #0369a1 55%, #0891b2 100%);
    --grad-soft: linear-gradient(135deg, rgba(29, 111, 232, .25), rgba(34, 211, 238, .14));
    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 20px 60px -20px rgba(0, 6, 20, 0.7);
    --shadow-glow: 0 12px 40px -8px rgba(14, 165, 233, 0.45);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: #030c1d; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: radial-gradient(1200px 700px at 10% 0, #0a2d66 0%, transparent 60%),
                radial-gradient(900px 600px at 110% 10%, #0b3d5c 0%, transparent 55%),
                linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%) var(--bg);
    background-repeat: no-repeat;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: #7dd3fc; text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--primary); color: #fff; }

.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 1000;
    background: #fff; color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }

/* ---------- Animated background ---------- */
.bg-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
    animation: float 18s var(--ease) infinite alternate;
}
.blob-1 { width: 520px; height: 520px; background: #1d6fe8; top: -140px; left: -120px; }
.blob-2 { width: 460px; height: 460px; background: #22d3ee; top: 30%; right: -160px; animation-delay: -6s; opacity: .35; }
.blob-3 { width: 420px; height: 420px; background: #1e40af; bottom: -180px; left: 30%; animation-delay: -12s; opacity: .25; }
.grid-overlay {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
}
@keyframes float {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(60px, 40px) scale(1.08); }
    100% { transform: translate(-40px, 80px) scale(.95); }
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100; height: var(--header-h);
    display: flex; align-items: center;
    transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled {
    background: rgba(3, 12, 29, .72);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 1px 0 var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 56px; width: auto; }
.site-footer .brand-logo { height: 60px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; list-style: none; gap: 6px; }
.site-nav ul a {
    display: block; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .95rem;
}
.site-nav ul a:hover, .site-nav ul a.active { color: #fff; background: var(--surface); }
.nav-toggle {
    display: none; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    width: 46px; height: 46px; place-items: center; cursor: pointer; color: #fff;
}
.nav-toggle-close { display: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
    font-weight: 700; font-size: 1rem; white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-primary { background: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 100%); background-size: 160% 160%; color: #031024; box-shadow: var(--shadow-glow); }
.btn-primary:hover { color: #031024; background-position: 100% 0; box-shadow: 0 16px 50px -8px rgba(14, 165, 233, .7); }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); color: #fff; }
.btn-ghost:hover { background: var(--surface-2); color: #fff; }
.btn-light { background: #fff; color: #0a2d66; }
.btn-light:hover { color: #0a2d66; box-shadow: 0 14px 40px -10px rgba(255,255,255,.6); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading .btn-label::after { content: "..."; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Shared bits ---------- */
.gradient-text {
    background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
    background-size: 200% 200%; animation: shine 6s linear infinite;
}
@keyframes shine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); color: #e3eefc; font-size: .88rem; font-weight: 600;
    backdrop-filter: blur(8px); margin-bottom: 22px;
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); position: relative; }
.pulse-dot::after {
    content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--success);
    animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.eyebrow {
    display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: #7dd3fc; margin-bottom: 12px;
}
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: #dbe8fb; font-weight: 500; }
.meta { color: var(--muted); font-size: .92rem; }

.section { padding: 96px 0; position: relative; }
.section-tight { padding: 56px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.content-card, .feature-card, .form-card, .stat-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.content-card { padding: 40px; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 96px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .gradient-text { display: inline-block; }
.hero-desc { color: var(--muted); font-size: 1.05rem; max-width: 560px; }

/* Countdown */
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 32px 0; max-width: 540px; }
.cd-item {
    text-align: center; padding: 18px 8px 14px; border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
    border: 1px solid var(--border); position: relative; overflow: hidden;
}
.cd-item::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad);
}
.cd-num { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd-num.tick { animation: tick .5s var(--ease); }
@keyframes tick { from { transform: translateY(-6px); opacity: .3; } to { transform: none; opacity: 1; } }
.cd-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.countdown.launched { display: block; text-align: center; padding: 18px; border-radius: var(--radius); background: var(--grad-soft); border: 1px solid var(--border); font-weight: 700; }

/* Notify form */
.notify-form { max-width: 540px; }
.notify-field {
    display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; border-radius: 999px;
    background: rgba(255,255,255,.08); border: 1px solid var(--border);
    transition: border-color .2s, box-shadow .2s;
}
.notify-field:focus-within { border-color: rgba(14, 165, 233, .8); box-shadow: 0 0 0 4px rgba(14, 165, 233, .2); }
.notify-field > .icon { color: var(--muted); flex: 0 0 auto; }
.notify-field input {
    flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 12px 4px; font-size: 1rem;
}
.notify-field input::placeholder { color: #7f93b3; }
.form-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0 6px; }
.form-message { margin: 10px 0 0 6px; font-weight: 600; font-size: .95rem; min-height: 1.4em; }
.form-message.is-success { color: #6ee7a8; }
.form-message.is-error { color: var(--danger); }
.notify-form.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Social */
.social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.social a {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--border); color: #e3eefc;
    transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.social a:hover { transform: translateY(-3px); background: var(--grad); border-color: transparent; color: #fff; }
.social-hero { margin-top: 28px; }

/* Hero visual */
.hero-visual { position: relative; min-height: 480px; display: grid; place-items: center; }
.visual-ring {
    position: absolute; width: 440px; height: 440px; border-radius: 50%;
    background: conic-gradient(from 0deg, #1d6fe8, #0ea5e9, #22d3ee, #22d3ee, #1d6fe8);
    filter: blur(60px); opacity: .45; animation: spin 16s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mock-window {
    position: relative; width: min(440px, 100%); border-radius: 24px; overflow: hidden;
    background: rgba(7, 22, 46, .85); border: 1px solid rgba(255,255,255,.16);
    box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.04) inset;
    backdrop-filter: blur(20px); transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
    animation: hover-y 6s ease-in-out infinite;
}
@keyframes hover-y { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mock-bar span:nth-child(2) { background: #febc2e; }
.mock-bar span:nth-child(3) { background: #28c840; }
.mock-bar em { margin-left: 10px; font-style: normal; font-size: .78rem; color: var(--muted); background: rgba(255,255,255,.06); padding: 4px 12px; border-radius: 999px; }
.mock-body { padding: 18px; }
.mock-banner {
    display: flex; justify-content: space-between; align-items: center; padding: 22px; border-radius: 18px;
    background: var(--grad-deep); margin-bottom: 16px; color: #fff;
}
.mock-banner small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; opacity: .85; font-weight: 700; }
.mock-banner strong { display: block; font-size: 1.35rem; line-height: 1.2; margin: 6px 0 12px; }
.mock-pill { display: inline-block; font-size: .72rem; background: rgba(255,255,255,.22); padding: 5px 12px; border-radius: 999px; font-weight: 700; }
.mock-banner-art { opacity: .9; filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); animation: hover-y 4s ease-in-out infinite; }
.mock-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-card { background: rgba(255,255,255,.06); border-radius: 14px; padding: 10px; }
.mock-thumb { aspect-ratio: 1; border-radius: 10px; margin-bottom: 10px; }
.t1 { background: linear-gradient(135deg, #22d3ee, #1d6fe8); }
.t2 { background: linear-gradient(135deg, #22d3ee, #ffb547); }
.t3 { background: linear-gradient(135deg, #0ea5e9, #22c55e); }
.mock-card i { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.18); margin-bottom: 6px; }
.mock-card i.short { width: 60%; }
.mock-card b { display: block; height: 18px; width: 50%; border-radius: 6px; background: rgba(14, 165, 233,.6); margin-top: 8px; }

.float-card {
    position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    background: rgba(255,255,255,.95); color: #071a36; border-radius: 16px; box-shadow: var(--shadow);
    animation: hover-y 5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .9rem; line-height: 1.2; }
.float-card small { display: block; font-size: .76rem; color: #5b6b86; }
.fc-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--grad); color: #fff; }
.fc-1 { top: 8%; left: -4%; animation-delay: -1s; }
.fc-2 { bottom: 10%; right: -6%; animation-delay: -2.5s; }
.fc-3 { bottom: 2%; left: 4%; flex-direction: column; align-items: flex-start; gap: 4px; animation-delay: -4s; }
.fc-stars { display: flex; gap: 2px; color: #ffb547; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature-card { padding: 30px 26px; transition: transform .35s var(--ease), border-color .35s, background .35s; position: relative; overflow: hidden; }
.feature-card::before {
    content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity .35s;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(14, 165, 233, .5); }
.feature-card:hover::before { opacity: 1; }
.feature-card > * { position: relative; }
.feature-card p { color: var(--muted); margin: 0; }
.feature-icon {
    display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; margin-bottom: 20px;
    background: var(--grad); color: #fff; box-shadow: var(--shadow-glow);
}

/* ---------- Progress ---------- */
.progress-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.progress-grid p { color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; }
.progress-list { display: grid; gap: 22px; padding: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.progress-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.progress-label h3 { margin: 0; font-size: 1rem; }
.progress-label span { color: #7dd3fc; font-weight: 800; }
.progress-track { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress-bar { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 1.6s var(--ease); }
.is-visible .progress-bar { width: var(--w); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .3s, background .3s; }
.faq-item[open] { border-color: rgba(14, 165, 233, .5); background: rgba(255,255,255,.08); }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 22px 60px 22px 26px; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.08rem; }
.faq-item summary::after {
    content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
    background: var(--surface-2); font-size: 1.3rem; font-weight: 600; transition: transform .3s var(--ease), background .3s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--grad); }
.faq-item p { padding: 0 26px 22px; margin: 0; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { padding-top: 32px; }
.cta-card {
    text-align: center; padding: 64px 32px; border-radius: 32px; background: var(--grad-deep); position: relative; overflow: hidden;
    box-shadow: 0 30px 80px -30px rgba(14, 165, 233, .8);
}
.cta-card::before, .cta-card::after {
    content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.12);
}
.cta-card::before { width: 320px; height: 320px; top: -140px; right: -80px; }
.cta-card::after { width: 220px; height: 220px; bottom: -110px; left: -60px; }
.cta-card > * { position: relative; z-index: 1; }
.cta-card p { color: rgba(255,255,255,.9); font-size: 1.1rem; margin-bottom: 28px; }

/* ---------- Inner page hero ---------- */
.page-hero { padding: 56px 0 24px; text-align: center; }
.page-hero .lead { max-width: 680px; margin-left: auto; margin-right: auto; }
.breadcrumb { display: inline-flex; gap: 10px; font-size: .9rem; color: var(--muted); margin-bottom: 20px; padding: 6px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-current] { color: #fff; font-weight: 600; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.split p { color: var(--muted); font-size: 1.04rem; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-card { padding: 30px 24px; text-align: center; transition: transform .3s var(--ease); }
.stat-card:hover { transform: translateY(-4px); }
.stat-card strong { display: block; font-size: 2rem; font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card span { color: var(--muted); font-size: .92rem; }
.company-dl { margin: 0; display: grid; gap: 0; }
.company-dl > div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.company-dl > div:last-child { border-bottom: 0; }
.company-dl dt { color: var(--muted); font-weight: 600; }
.company-dl dd { margin: 0; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.contact-info h2 { font-size: 1.8rem; }
.contact-info > p { color: var(--muted); }
.info-list { list-style: none; display: grid; gap: 14px; margin: 28px 0; }
.info-list li { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.info-list h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 2px; }
.info-list a, .info-list span { color: #fff; font-weight: 600; word-break: break-word; }
.info-icon { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; }
.legal-box { padding: 20px 22px; border-radius: var(--radius); background: var(--grad-soft); border: 1px solid var(--border); }
.legal-box h3 { margin-bottom: 6px; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.legal-box p { margin: 0; color: #e3eefc; }

.form-card { padding: 40px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.6rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; color: #e3eefc; }
.field label span[aria-hidden] { color: var(--accent); }
.field .optional { color: var(--muted); font-weight: 500; }
.field input, .field textarea {
    width: 100%; padding: 14px 16px; border-radius: 14px; outline: 0;
    background: rgba(255,255,255,.06); border: 1px solid var(--border);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input::placeholder, .field textarea::placeholder { color: #7f93b3; }
.field input:focus, .field textarea:focus { border-color: rgba(14, 165, 233, .8); box-shadow: 0 0 0 4px rgba(14, 165, 233, .2); background: rgba(255,255,255,.09); }
.field-error { display: block; min-height: 0; color: var(--danger); font-size: .85rem; margin-top: 6px; font-weight: 600; }
.field-error:empty { display: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.alert { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; margin-bottom: 24px; font-size: .95rem; }
.alert-success { background: rgba(34, 197, 94, .14); border: 1px solid rgba(34, 197, 94, .45); color: #c9f7da; }
.alert-success .icon { color: #6ee7a8; flex: 0 0 auto; }
.alert-error { background: rgba(255, 92, 122, .14); border: 1px solid rgba(255, 92, 122, .45); color: #ffd1da; }

/* ---------- Legal pages ---------- */
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 20px); padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.legal-toc h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.legal-toc ol { padding-left: 20px; display: grid; gap: 6px; font-size: .92rem; }
.legal-toc a { color: #cfe3fb; }
.legal-content h2 { font-size: 1.4rem; margin-top: 2em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.05rem; margin-top: 1.4em; color: #e3eefc; }
.legal-content p, .legal-content li { color: #c6d4ea; }
.legal-content ul { padding-left: 22px; margin-bottom: 1em; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sitemap ---------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sitemap-grid .content-card { padding: 30px; }
.sitemap-grid h2 { font-size: 1.25rem; }
.sitemap-list { list-style: none; display: grid; gap: 14px; }
.sitemap-list li { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid transparent; transition: border-color .25s, background .25s; }
.sitemap-list li:hover { border-color: rgba(14, 165, 233, .5); background: rgba(255,255,255,.07); }
.sitemap-list h3 { margin: 0 0 4px; font-size: 1rem; color: #fff; }
.sitemap-list p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- 404 ---------- */
.error-page { padding: 80px 0 120px; }
.error-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; margin: 0; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; border-top: 1px solid var(--border); background: rgba(2, 8, 20, .6); backdrop-filter: blur(10px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.footer-brand p { color: var(--muted); font-size: .95rem; margin: 18px 0 22px; max-width: 360px; }
.footer-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; }
.footer-contact .icon { color: #7dd3fc; flex: 0 0 auto; }
.footer-contact a { word-break: break-all; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid var(--border); font-size: .9rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-meta { opacity: .7; }

.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--shadow-glow);
    opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease);
}
.to-top .icon { transform: rotate(-90deg); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: #fff; transform: translateY(-3px); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .sitemap-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
    .hero-grid, .progress-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero { padding-top: 24px; text-align: center; }
    .hero-desc, .countdown, .notify-form { margin-left: auto; margin-right: auto; }
    .social-hero { justify-content: center; }
    .hero-visual { min-height: 420px; }
    .legal-layout { grid-template-columns: 1fr; }
    .legal-toc { position: static; }

    .nav-toggle { display: grid; }
    .site-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 16px;
        padding: 20px 24px 28px; background: rgba(3, 12, 29, .97); backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        opacity: 0; visibility: hidden; transform: translateY(-12px); transition: all .3s var(--ease);
    }
    .site-nav ul { flex-direction: column; }
    .site-nav ul a { padding: 14px 16px; font-size: 1.05rem; border-radius: 14px; }
    .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
    .nav-open .nav-toggle-open { display: none; }
    .nav-open .nav-toggle-close { display: block; }
    .nav-open .site-header { background: rgba(3, 12, 29, .97); }
}

@media (max-width: 640px) {
    :root { --header-h: 68px; }
    .brand-logo { height: 44px; }
    .container { padding: 0 16px; }
    .section { padding: 72px 0; }
    .section-tight { padding: 40px 0; }
    .countdown { gap: 8px; }
    .cd-item { padding: 14px 4px 10px; border-radius: 14px; }
    .cd-label { font-size: .64rem; letter-spacing: .08em; }
    .notify-field { flex-direction: column; align-items: stretch; padding: 8px; border-radius: 22px; }
    .notify-field > .icon { display: none; }
    .notify-field input { padding: 12px 12px; text-align: center; }
    .notify-field .btn { width: 100%; }
    .social-hero { gap: 8px; }
    .hero-visual { min-height: 360px; }
    .visual-ring { width: 300px; height: 300px; }
    .mock-window { transform: none; }
    .float-card { padding: 9px 12px; }
    .fc-1 { left: 0; top: -2%; }
    .fc-2 { right: 0; bottom: 4%; }
    .fc-3 { display: none; }
    .feature-grid, .feature-grid.cols-2, .sitemap-grid, .stat-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .content-card, .form-card { padding: 26px 20px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .company-dl > div { grid-template-columns: 1fr; gap: 4px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .cta-card { padding: 48px 22px; border-radius: 24px; }
    .faq-item summary { padding: 18px 56px 18px 20px; }
    .faq-item p { padding: 0 20px 18px; }
}

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