/* SwingIQ marketing site — dark navy design system (matches the desktop app) */

:root {
    --bg: #0d0f14;
    --bg-alt: #101219;
    --panel: #1a1d27;
    --panel-2: #14161d;
    --card: #1e2230;
    --border: #2e3248;
    --border-hi: #3d4666;
    --headline: #e2e8f0;
    --body: #a9b1c2;
    --subtle: #7c8598;
    --overline: #64748b;
    --accent: #5aa7f0;
    --accent-btn: #2f7fd4;
    --good: #34d399;
    --watch: #fbbf24;
    --fix: #f87171;
    --guide: #fde047;
    --pill-bg: #1a2536;
    --display: 'Space Grotesk', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--body);
    font-family: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #82bdf5; }

img { max-width: 100%; }

.btn { display: inline-block; border-radius: 8px; font-weight: 600; text-align: center; }
.btn-primary { background: var(--accent-btn); color: #fff; padding: 13px 28px; font-size: 16px; }
.btn-primary:hover { background: #3c8ee2; color: #fff; }
.btn-ghost { border: 1px solid #3a3f58; color: #c8ccd8; padding: 12px 26px; font-size: 16px; font-weight: 500; }
.btn-ghost:hover { border-color: var(--border-hi); color: var(--headline); }

/* ---------- nav ---------- */
.nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 5%; border-bottom: 1px solid var(--panel);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { width: 36px; height: 36px; }
.nav-brand span { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--headline); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--body); }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a.btn-primary { color: #fff; padding: 11px 22px; font-size: 15px; }

/* ---------- hero ---------- */
.hero {
    display: flex; flex-direction: column; align-items: center;
    padding: 84px 5% 72px 5%;
    background: radial-gradient(ellipse 900px 480px at 50% -10%, #1a2c44 0%, var(--bg) 65%);
}
.overline { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; color: var(--overline); }
.hero h1 {
    font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.6vw, 62px);
    line-height: 1.08; color: var(--headline); text-align: center; max-width: 900px;
    margin: 22px 0 0 0; text-wrap: balance;
}
.hero .sub {
    font-size: clamp(16px, 1.5vw, 19px); color: var(--body); text-align: center;
    max-width: 680px; margin-top: 26px; text-wrap: pretty;
}
.hero-ctas { display: flex; align-items: center; gap: 16px; margin-top: 38px; flex-wrap: wrap; justify-content: center; }

/* ---------- product mock ---------- */
.mock-wrap { position: relative; margin-top: 64px; width: min(980px, 100%); }
.mock-window {
    background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 28px 80px rgba(0,0,0,0.55); overflow: hidden;
}
.mock-titlebar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid #1f2230; }
.mock-titlebar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-titlebar span { font-size: 12px; color: #6b7280; margin-left: 10px; }
.mock-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.video-panel {
    position: relative; background: #0a0b10; border-radius: 8px; height: 380px;
    overflow: hidden; display: flex; justify-content: center;
}
.video-frame { position: relative; height: 100%; }
.video-frame img, .video-frame video { height: 100%; width: auto; display: block; }
.video-frame svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-label {
    position: absolute; top: 10px; left: 10px; background: rgba(26,29,39,0.85);
    border: 1px solid var(--border); color: #c8ccd8; font-size: 11px; font-weight: 600;
    letter-spacing: 0.08em; padding: 4px 10px; border-radius: 5px;
}
.mock-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 0 14px 14px 14px; }
.tile { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.tile b { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--overline); }
.tile span { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--headline); }
.tile small { font-size: 12px; font-weight: 500; color: var(--subtle); }

.analysis-card {
    position: absolute; right: -46px; bottom: -40px; width: 330px; background: var(--card);
    border: 1px solid var(--border-hi); border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,0.5);
    padding: 18px 20px; display: flex; flex-direction: column; gap: 12px;
}
.analysis-card > b { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--overline); }
.finding-expanded { background: var(--panel); border: 1px solid var(--border-hi); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.finding-row { display: flex; align-items: center; gap: 10px; }
.finding-row .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot-fix { background: var(--fix); } .dot-watch { background: var(--watch); } .dot-good { background: var(--good); }
.finding-row b { font-size: 14px; font-weight: 600; color: var(--headline); }
.finding-row em { font-size: 12px; font-style: normal; color: var(--subtle); margin-left: auto; }
.finding-detail { font-size: 13px; line-height: 1.55; color: var(--body); }
.workon { display: flex; gap: 8px; align-items: flex-start; }
.workon b { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); white-space: nowrap; padding-top: 1px; }
.workon span { font-size: 13px; line-height: 1.55; color: #c8ccd8; }

/* ---------- sections ---------- */
.section { display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 96px 5% 72px 5%; }
.section h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); color: var(--headline); text-align: center; margin: 0; }
.section .sub { font-size: 17px; color: var(--body); max-width: 680px; text-align: center; }
.section-alt { background: var(--bg-alt); }

/* hardware chips */
.chip-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; margin-top: 10px; }
.chip {
    background: var(--pill-bg); border: 1px solid var(--border); color: #c8ccd8;
    font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px;
}
.chip-direct { border-color: var(--border-hi); color: var(--headline); font-weight: 600; }
.chip-note { font-size: 13px; color: var(--overline); }

.gspro-callout {
    display: flex; align-items: center; gap: 28px; width: min(1064px, 100%);
    background: linear-gradient(90deg, #23415a 0%, var(--card) 55%);
    border: 1px solid var(--border-hi); border-radius: 14px; padding: 28px 34px; margin-top: 8px;
}
.gspro-callout svg { flex-shrink: 0; }
.gspro-callout h3 { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--headline); margin: 0 0 6px 0; }
.gspro-callout p { font-size: 15px; line-height: 1.6; color: var(--body); margin: 0; }
.gspro-badge {
    background: rgba(90,167,240,0.12); border: 1px solid var(--border-hi); color: var(--accent);
    font-size: 13px; font-weight: 600; letter-spacing: 0.06em; padding: 8px 16px;
    border-radius: 999px; margin-left: auto; flex-shrink: 0; white-space: nowrap;
}

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; width: min(1120px, 100%); margin-top: 14px; }
.pillar { display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--border); border-radius: 14px; padding: 30px; }
.pillar-sky { background: linear-gradient(135deg, #23415a 0%, var(--card) 60%); }
.pillar-teal { background: linear-gradient(135deg, #1c414b 0%, var(--card) 60%); }
.pillar-green { background: linear-gradient(135deg, #234538 0%, var(--card) 60%); }
.pillar-violet { background: linear-gradient(135deg, #38375c 0%, var(--card) 60%); }
.pillar h3 { font-family: var(--display); font-size: 21px; font-weight: 700; color: var(--headline); margin: 0; }
.pillar p { font-size: 15px; line-height: 1.65; color: var(--body); margin: 0; }

/* 3d range */
.range-shot {
    width: min(1060px, 100%); border: 1px solid var(--border); border-radius: 14px;
    overflow: hidden; box-shadow: 0 28px 80px rgba(0,0,0,0.55); margin-top: 18px; display: flex;
}
.range-shot img, .range-shot video { width: 100%; height: auto; display: block; }

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; width: min(1120px, 100%); margin-top: 14px; }
.feature-card { display: flex; flex-direction: column; gap: 10px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 24px 26px; }
.feature-card h3 { font-size: 17px; font-weight: 600; color: var(--headline); margin: 0; font-family: inherit; }
.feature-card p { font-size: 14px; line-height: 1.6; color: var(--body); margin: 0; }
.feature-card small { font-size: 12px; color: var(--overline); }

/* anywhere */
.anywhere { display: flex; align-items: center; justify-content: center; gap: 70px; padding: 88px 5%; background: var(--bg-alt); }
.anywhere-copy { display: flex; flex-direction: column; gap: 18px; max-width: 460px; }
.anywhere-copy h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; color: var(--headline); margin: 0; }
.anywhere-copy > p { font-size: 16px; line-height: 1.65; color: var(--body); margin: 0; }
.checks { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #c8ccd8; }
.check svg { flex-shrink: 0; }

.phone-mock {
    width: 250px; flex-shrink: 0; background: var(--panel-2); border: 1px solid var(--border);
    border-radius: 30px; padding: 24px 12px; box-shadow: 0 22px 60px rgba(0,0,0,0.5);
    display: flex; flex-direction: column; gap: 10px;
}
.phone-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.phone-head b { font-size: 13px; font-weight: 600; color: var(--headline); }
.phone-head span { font-size: 11px; color: var(--subtle); }
.grade-card {
    background: linear-gradient(135deg, #23415a 0%, var(--card) 70%); border: 1px solid var(--border);
    border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px;
}
.grade-card b { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--overline); }
.grade-card .grade { font-family: var(--display); font-size: 34px; font-weight: 700; color: var(--accent); }
.grade-card span { font-size: 12px; color: var(--body); }
.phone-row { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px; display: flex; align-items: center; gap: 10px; }
.phone-row .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.phone-row b { font-size: 12px; font-weight: 600; color: var(--headline); }
.phone-row span { font-size: 11px; color: var(--subtle); margin-left: auto; }

/* cta band */
.cta { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 96px 5%; }
.cta h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3vw, 40px); color: var(--headline); text-align: center; margin: 0; }
.cta .sub { font-size: 17px; color: var(--body); text-align: center; max-width: 620px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.price b { font-family: var(--display); font-size: clamp(34px, 3.4vw, 46px); font-weight: 700; color: var(--headline); }
.price span { font-size: 17px; color: var(--subtle); }
.cta-row { display: flex; align-items: center; gap: 16px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.cta-row .note { font-size: 15px; color: var(--subtle); }

/* footer */
.footer { display: flex; align-items: center; justify-content: space-between; padding: 28px 5%; border-top: 1px solid var(--panel); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 24px; height: 24px; }
.footer-brand span { font-size: 14px; color: var(--subtle); }
.footer-links { display: flex; align-items: center; gap: 28px; }
.footer-links a { font-size: 14px; color: var(--subtle); }
.footer-links a:hover { color: var(--body); }

/* ---------- inner pages ---------- */
.page-head { display: flex; flex-direction: column; align-items: center; padding: 72px 5% 48px 5%; }
.page-head h1 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.1; color: var(--headline); text-align: center; max-width: 820px; margin: 18px 0 0 0; }
.page-head .sub { font-size: 17px; color: var(--body); text-align: center; max-width: 560px; margin-top: 18px; }

/* features split sections */
.split { display: flex; align-items: center; justify-content: center; gap: 64px; padding: 56px 5%; flex-wrap: wrap; }
.split-copy { display: flex; flex-direction: column; gap: 16px; max-width: 440px; }
.split-copy .kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--overline); }
.split-copy h2 { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.18; color: var(--headline); margin: 0; }
.split-copy p { font-size: 16px; line-height: 1.65; color: var(--body); margin: 0; }
.split-copy .aside { font-size: 15px; color: var(--subtle); }

.replay-mock {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(560px, 100%);
    background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px;
    box-shadow: 0 20px 55px rgba(0,0,0,0.5);
}
.replay-mock .video-panel { height: 330px; }

.panel-mock {
    width: min(500px, 100%); background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px;
    padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 55px rgba(0,0,0,0.5);
}
.panel-mock > b { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--overline); }
.panel-mock .row-plain { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; }
.panel-mock small { font-size: 12px; color: var(--overline); }

.chat-user { align-self: flex-end; background: #23415a; border-radius: 12px 12px 4px 12px; padding: 12px 16px; max-width: 340px; font-size: 14px; line-height: 1.55; color: var(--headline); }
.chat-ai { align-self: flex-start; background: var(--panel); border: 1px solid var(--border); border-radius: 12px 12px 12px 4px; padding: 12px 16px; max-width: 400px; font-size: 14px; line-height: 1.6; color: #c8ccd8; }
.chat-input { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 11px 14px; font-size: 14px; color: var(--overline); }
.chat-input span { flex-grow: 1; }

.report-head { display: flex; align-items: center; justify-content: space-between; }
.report-grade { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--accent); }
.verdict-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; }
.verdict-bar i { display: block; }

.half-cards { display: flex; justify-content: center; gap: 22px; padding: 64px 5%; flex-wrap: wrap; }
.half-card { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--border); border-radius: 14px; padding: 30px; width: min(505px, 100%); }
.half-card h3 { font-family: var(--display); font-size: 21px; font-weight: 700; color: var(--headline); margin: 0; }
.half-card p { font-size: 15px; line-height: 1.65; color: var(--body); margin: 0; }
.half-card .thumb { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; }
.half-card .thumb img { width: 100%; height: auto; display: block; }

/* pricing */
.price-card {
    width: min(620px, 100%); background: linear-gradient(135deg, #23415a 0%, var(--card) 50%);
    border: 1px solid var(--border-hi); border-radius: 16px; padding: 40px 44px;
    display: flex; flex-direction: column; gap: 24px; box-shadow: 0 26px 70px rgba(0,0,0,0.5);
    margin: 24px auto 0 auto;
}
.price-card .price b { font-size: 52px; }
.included { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.included .check { font-size: 15px; }
.price-card .btn-primary { padding: 14px 0; width: 100%; }

.req-cards { display: flex; justify-content: center; gap: 22px; padding: 24px 5% 88px 5%; flex-wrap: wrap; }
.req-card { display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 22px 26px; width: min(300px, 100%); }
.req-card b { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--overline); }
.req-card p { font-size: 15px; line-height: 1.6; color: var(--body); margin: 0; }

/* demo */
.demo-wrap {
    display: flex; align-items: flex-start; justify-content: center; gap: 80px; padding: 88px 5% 96px 5%;
    background: radial-gradient(ellipse 800px 420px at 50% -10%, #1a2c44 0%, var(--bg) 65%); flex-wrap: wrap;
}
.demo-copy { display: flex; flex-direction: column; gap: 18px; max-width: 440px; padding-top: 12px; }
.demo-copy h1 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.12; color: var(--headline); margin: 0; }
.demo-copy > p { font-size: 17px; line-height: 1.65; color: var(--body); margin: 0; }
.demo-copy .note { font-size: 15px; color: var(--subtle); margin-top: 10px; }

.demo-form {
    width: min(460px, 100%); background: var(--panel-2); border: 1px solid var(--border); border-radius: 14px;
    padding: 32px 34px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 24px 65px rgba(0,0,0,0.5);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: #c8ccd8; }
.field input, .field select, .field textarea {
    background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px;
    font-size: 15px; color: var(--headline); font-family: inherit; width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--overline); }
.field textarea { height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.demo-form button { background: var(--accent-btn); color: #fff; border: none; border-radius: 8px; padding: 14px 0; font-size: 16px; font-weight: 600; font-family: inherit; cursor: pointer; }
.demo-form button:hover { background: #3c8ee2; }

/* ---------- scroll reveal + hero entrance ---------- */
.reveal { opacity: 0; transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1); will-change: opacity, transform; }
.reveal-up { transform: translateY(26px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal.in { opacity: 1; transform: none; }

@keyframes hero-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero .overline, .hero h1, .hero .sub, .hero-ctas, .mock-wrap {
    animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero h1 { animation-delay: 0.08s; }
.hero .sub { animation-delay: 0.16s; }
.hero-ctas { animation-delay: 0.24s; }
.mock-wrap { animation-delay: 0.34s; animation-duration: 0.85s; }

.pillar, .feature-card, .half-card, .req-card { transition: transform 0.3s ease, border-color 0.3s ease; }
.pillar:hover, .feature-card:hover, .half-card:hover, .req-card:hover { transform: translateY(-4px); border-color: var(--border-hi); }
.reveal.pillar, .reveal.feature-card, .reveal.half-card, .reveal.req-card { transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero .overline, .hero h1, .hero .sub, .hero-ctas, .mock-wrap { animation: none; }
    .pillar:hover, .feature-card:hover, .half-card:hover, .req-card:hover { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .analysis-card { position: static; width: auto; margin-top: 14px; }
    .pillars, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gspro-callout { flex-wrap: wrap; }
    .gspro-badge { margin-left: 0; }
}

@media (max-width: 720px) {
    .nav { padding: 14px 20px; }
    .nav-links { gap: 16px; }
    .nav-links a:not(.btn-primary) { display: none; }
    .hero { padding: 52px 20px 48px 20px; }
    .hero-ctas { width: 100%; }
    .hero-ctas .btn { flex: 1 1 100%; }
    .mock-videos { grid-template-columns: 1fr; }
    .video-panel { height: 400px; }
    .mock-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tile span { font-size: 18px; }
    .tile small { display: none; }
    .pillars, .feature-grid, .included { grid-template-columns: 1fr; }
    .section { padding: 56px 20px 48px 20px; }
    .anywhere { padding: 56px 20px; gap: 40px; }
    .split { gap: 32px; }
    .replay-mock .video-panel { height: 260px; }
    .price-card { padding: 30px 24px; }
    .footer { flex-direction: column; gap: 14px; }
}
