/* SGSPA.NET marketing site — no build step. */
:root {
  --bg: #f9fbfe;
  --surface: #ffffff;
  --surface-2: #eef3fa;
  --ink: #172338;
  --ink-2: #4a5872;
  --ink-3: #5e6b82;
  --line: #e1e7f0;
  --brand: #3971c1;
  --brand-text: #2c5ea8;
  --brand-ink: #ffffff;
  --brand-soft: #e6eefa;
  --accent: #01acec;
  --hero-a: #0e2a52;
  --hero-b: #3971c1;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(14, 42, 82, .25);
  --max: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1420; --surface: #141e2e; --surface-2: #1a2638; --ink: #eef2f8; --ink-2: #b8c3d4;
    --ink-3: #8a97ab; --line: #26334a; --brand: #6aa2ec; --brand-text: #8ab8f2; --brand-ink: #071a33; --brand-soft: #1a2c48;
    --accent: #33bff2; --hero-a: #08172e; --hero-b: #1f4c8c; --shadow: 0 10px 30px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 66px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3, h2.h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; color: var(--ink-2); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.section { padding: 84px 0; }
.section-alt { background: var(--surface-2); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text, var(--brand)); margin-bottom: .6rem; }
.lead { font-size: 1.1rem; max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.placeholder { outline: 2px dashed var(--accent); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; border: 1.5px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; cursor: pointer; font-size: 1rem; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow); }
.btn-light { background: #fff; color: #0e2a52; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--surface); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo img { height: 40px; width: auto; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--hero-b), var(--accent)); display: grid; place-items: center; color: #fff; font-size: .95rem; }
.nav-links { display: none; gap: 26px; align-items: center; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { display: none; gap: 10px; align-items: center; }
.lang { font-size: .88rem; color: var(--ink-2); border: 1px solid var(--line); padding: .35rem .7rem; border-radius: 999px; }
.lang:hover { text-decoration: none; color: var(--ink); }
.menu-btn { background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 12px 16px 20px; background: var(--bg); }
.mobile-menu a { display: block; padding: .7rem 0; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { display: flex; margin-top: 14px; width: 100%; justify-content: center; border-bottom: 0; color: var(--brand-ink); }
.mobile-menu.open { display: block; }
@media (min-width: 920px) {
  .nav-links, .nav-cta { display: flex; }
  .menu-btn, .mobile-menu, .mobile-menu.open { display: none; }
}

/* Hero */
.hero { position: relative; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgba(1,172,236,.35), transparent 60%), linear-gradient(160deg, var(--hero-a), var(--hero-b)); overflow: hidden; }
.hero-grid { display: grid; gap: 48px; padding-top: 72px; padding-bottom: 84px; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.05fr 1fr; padding-top: 96px; padding-bottom: 110px; } }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.12rem; max-width: 560px; }
.hero .pill { display: inline-flex; gap: .5rem; align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: .35rem .85rem; border-radius: 999px; font-size: .85rem; margin-bottom: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.hero-note { font-size: .88rem; color: rgba(255,255,255,.7); margin-top: 1rem; }

/* CSS-built product mockup */
.mock { background: #fff; color: #1d2a2a; border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); overflow: hidden; max-width: 560px; justify-self: center; width: 100%; }
.mock-bar { display: flex; gap: 6px; padding: 10px 14px; background: #eef1f0; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3d9d7; }
.mock-body { padding: 16px; display: grid; gap: 12px; }
.mock-row { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: #4a5a59; }
.mock-rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.room { border-radius: 10px; padding: 10px 8px; font-size: .72rem; line-height: 1.35; background: #f2f5f4; }
.room b { display: block; font-size: .85rem; color: #1d2a2a; }
.room.busy { background: #e2f1ed; border: 1px solid #b7ded5; }
.room.wait { background: #fbf0e5; border: 1px solid #ecd2b8; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mstat { border: 1px solid #e8ecea; border-radius: 10px; padding: 10px; }
.mstat small { color: #7b8786; font-size: .7rem; display: block; }
.mstat strong { font-size: 1rem; }
.mock-chart { height: 70px; display: flex; align-items: flex-end; gap: 6px; padding: 0 2px; }
.mock-chart span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(#4fb8a6, #1f7a6d); }
@media (max-width: 420px) { .mock-rooms { grid-template-columns: repeat(2, 1fr); } }

/* Stats */
.stats { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: -48px; position: relative; z-index: 2; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.stat strong { font-size: 2.2rem; color: var(--brand); display: block; line-height: 1.1; }
.stat span { color: var(--ink-2); font-size: .95rem; }

/* Cards */
.grid { display: grid; gap: 20px; margin-top: 42px; }
@media (min-width: 640px) { .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { margin: 0; font-size: .96rem; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 20px; margin-top: 42px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; margin-bottom: 14px; }
.step p { margin: 0; }

/* Split feature */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .65rem; align-content: start; }
.checklist li { display: flex; gap: .65rem; color: var(--ink-2); }
.checklist li::before { content: ""; flex: 0 0 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233971c1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.device { border-radius: 24px; padding: 34px; background: linear-gradient(150deg, var(--brand-soft), var(--surface-2)); border: 1px solid var(--line); display: grid; gap: 18px; justify-items: center; text-align: center; }
.device-screen { width: 180px; height: 240px; border-radius: 22px; background: #10201e; border: 8px solid #2a3a38; display: grid; place-items: center; color: #7fe0cd; font-weight: 700; position: relative; }
.device-screen::after { content: ""; position: absolute; inset: 40px 34px 80px; border: 2px dashed #7fe0cd; border-radius: 50%; opacity: .7; }
.device-screen span { position: absolute; bottom: 22px; font-size: 1.3rem; }
.price-tag { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; padding: .45rem 1rem; border-radius: 999px; }

/* Pricing */
.plans { display: grid; gap: 20px; margin-top: 42px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.badge { position: absolute; top: -13px; left: 26px; background: var(--brand); color: var(--brand-ink); font-size: .75rem; font-weight: 700; padding: .25rem .75rem; border-radius: 999px; }
.plan .term { color: var(--ink-3); font-size: .9rem; }
.amount { font-size: 2.4rem; font-weight: 800; margin: .4rem 0 .2rem; color: var(--ink); }
.amount small { font-size: 1rem; font-weight: 600; color: var(--ink-3); }
.plan .checklist { flex: 1; margin-bottom: 1.5rem; font-size: .95rem; }
.plan .btn { justify-content: center; }
.fine { font-size: .9rem; color: var(--ink-3); margin-top: 22px; }

/* Testimonials */
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 0; }
.quote blockquote { margin: 0 0 18px; font-size: 1.05rem; color: var(--ink); }
.quote blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--accent); font-family: Georgia, serif; margin-bottom: 8px; }
.who { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-weight: 600; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; }

/* FAQ */
.faq { max-width: 820px; margin: 36px auto 0; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 14px; margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: #fff; border-radius: 28px; padding: 48px 28px; text-align: center; }
.cta-band p { color: rgba(255,255,255,.85); }
.cta-band .hero-actions { justify-content: center; }

/* Contact */
.contact-grid { display: grid; gap: 20px; margin-top: 42px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card h3, .contact-card h2.h3 { display: flex; align-items: center; gap: .6rem; }
.contact-card a { font-weight: 600; word-break: break-word; }
.qr { width: 140px; height: 140px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-top: 12px; object-fit: cover; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: .92rem; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 2fr repeat(3, 1fr); } }
.foot-grid h3, .foot-h { margin: 0 0 .8rem; font-size: .9rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.foot-grid a { color: var(--ink-2); }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 820px) { .foot-brand { grid-column: auto; } }
.copyright { margin-top: 36px; color: var(--ink-3); font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Real product imagery */
.hero-media { margin: 0; justify-self: center; max-width: 480px; width: 100%; }
.hero-media img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.wide-media { margin: 48px auto 0; max-width: 1000px; }
.wide-media img { width: 100%; height: auto; border-radius: var(--radius); }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.icon.wa { background: #e7f8ee; color: #1fa855; }
.contact-card .qr { width: 160px; height: 160px; background: #fff; padding: 6px; object-fit: contain; }

/* Legal pages */
.legal { max-width: 800px; padding-top: 56px; padding-bottom: 88px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1.4rem; }
.legal-body h2 { font-size: 1.2rem; margin: 2.2rem 0 .7rem; }
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body ul { padding-left: 1.2rem; margin: 0 0 1em; display: grid; gap: .4rem; }
.legal-body ul li { list-style: none; }

/* Sub pages */
.page-title { font-size: clamp(2rem, 4.5vw, 2.8rem); margin: 0 0 .5em; }

/* Who it's for + internal links */
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.link-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
