/* ==========================================================================
   Snapport — luminous, all-light marketing/support site
   Design language: bright "luminous glass" — multi-layer light backgrounds,
   frosted glass, blue→sky→violet brand gradient, soft tinted shadows.
   No gray. No dark. Ever.
   ========================================================================== */

:root {
  --bg-top: #ffffff;
  --bg-mid: #f6f8ff;
  --bg-bot: #e9eeff;

  --ink: #243049;          /* primary text — deep indigo ink, never pure black */
  --ink-2: #697089;        /* secondary text — indigo-tinted, never gray */
  --ink-3: #8790ad;

  --brand-1: #3e64ce;      /* indigo  */
  --brand-2: #4aa3d8;      /* sky blue */
  --brand-3: #8e6be6;      /* violet  */

  --card: rgba(255, 255, 255, 0.74);
  --card-solid: #ffffff;
  --stroke: rgba(255, 255, 255, 0.9);
  --hair: rgba(62, 100, 206, 0.12);
  --shadow: rgba(185, 198, 236, 0.55);
  --shadow-strong: rgba(185, 198, 236, 0.78);

  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  --radius-pill: 999px;

  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display",
          "Inter", "Segoe UI", system-ui, "Helvetica Neue", Arial,
          "PingFang TC", "Noto Sans CJK TC", sans-serif;

  --grad: linear-gradient(120deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.62;
  background: var(--bg-mid);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --- Luminous background (fixed, multi-layer) --- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--bg-top), var(--bg-mid) 45%, var(--bg-bot));
  overflow: hidden;
}
.bg::before,
.bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.7;
}
.bg::before {
  width: 60vw; height: 60vw;
  top: -14vw; left: -8vw;
  background: radial-gradient(circle at 30% 30%, rgba(62,100,206,0.34), transparent 62%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.bg::after {
  width: 52vw; height: 52vw;
  top: 8vw; right: -10vw;
  background: radial-gradient(circle at 60% 40%, rgba(74,163,216,0.30), transparent 62%);
  animation: drift2 26s ease-in-out infinite alternate;
}
.blob {
  position: absolute;
  width: 46vw; height: 46vw;
  bottom: -16vw; left: 24vw;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.6;
  background: radial-gradient(circle at 50% 50%, rgba(142,107,230,0.28), transparent 60%);
  animation: drift1 30s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(3vw, 4vw) scale(1.08); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-3vw, 3vw) scale(1.06); } }

/* --- Layout --- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { padding: 72px 0; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-1);
  background: rgba(62,100,206,0.10);
  padding: 6px 12px; border-radius: var(--radius-pill);
  border: 1px solid rgba(62,100,206,0.16);
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
h1 { font-size: clamp(36px, 6vw, 62px); }
h2 { font-size: clamp(28px, 4.4vw, 42px); }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }
a { color: var(--brand-1); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-3); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --- Header --- */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(255,255,255,0.6);
  border-bottom: 1px solid var(--hair);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 14px var(--shadow); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: var(--ink-2); font-weight: 600; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--brand-1); }

/* --- Buttons --- */
.btn {
  --b1: var(--brand-1); --b2: var(--brand-3);
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 16px; color: #fff;
  padding: 14px 24px; border-radius: var(--radius-pill);
  background: linear-gradient(120deg, var(--b1), var(--b2));
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 10px 26px var(--shadow-strong), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px var(--shadow-strong), inset 0 1px 0 rgba(255,255,255,0.5); color: #fff; filter: saturate(108%); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-ghost {
  color: var(--brand-1); background: var(--card);
  border: 1px solid rgba(62,100,206,0.28);
  box-shadow: 0 6px 18px var(--shadow);
}
.btn-ghost:hover { color: var(--brand-1); }
.appstore-sub { font-size: 12.5px; opacity: 0.92; font-weight: 600; }
.btn .store { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.btn .store b { font-size: 17px; }

/* --- Hero --- */
.hero { text-align: center; padding-top: 64px; padding-bottom: 40px; }
.hero .app-icon {
  width: 108px; height: 108px; border-radius: 26px; margin: 0 auto 26px;
  display: block; box-shadow: 0 22px 50px var(--shadow-strong);
}
.hero h1 { margin: 8px auto 0; max-width: 16ch; }
.hero .tagline { margin-top: 16px; font-size: clamp(17px, 2.4vw, 21px); font-weight: 600; color: var(--ink); }
.hero .sub { margin: 16px auto 0; max-width: 56ch; color: var(--ink-2); font-size: 17px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.pill {
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  background: var(--card); border: 1px solid var(--stroke);
  padding: 8px 14px; border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px var(--shadow);
}
.pill b { color: var(--brand-1); }

/* --- Device mock --- */
.device-stage { display: flex; justify-content: center; margin-top: 48px; }
.device {
  width: 290px; max-width: 78vw; aspect-ratio: 9 / 19.5;
  border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #ffffff, #eef2fc);
  border: 1px solid var(--stroke);
  box-shadow: 0 40px 90px var(--shadow-strong), inset 0 1px 0 #fff;
  position: relative;
}
.device .screen {
  width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f5f8ff 46%, #eaf0ff);
  position: relative; display: flex; flex-direction: column; padding: 22px 18px;
}
.device .screen::before {
  content: ""; position: absolute; width: 160px; height: 160px; top: -30px; left: -30px;
  background: radial-gradient(circle, rgba(62,100,206,0.28), transparent 65%); filter: blur(20px);
}
.device .screen::after {
  content: ""; position: absolute; width: 150px; height: 150px; bottom: 0; right: -20px;
  background: radial-gradient(circle, rgba(74,163,216,0.26), transparent 65%); filter: blur(20px);
}
.scr-label { font-size: 12px; color: var(--ink-2); font-weight: 600; position: relative; }
.scr-big { font-size: 40px; font-weight: 800; color: var(--ink); position: relative; letter-spacing: -0.02em; }
.scr-big span { font-size: 18px; color: var(--ink-2); font-weight: 700; }
.scr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; position: relative; }
.scr-card { background: rgba(255,255,255,0.86); border: 1px solid var(--stroke); border-radius: 14px; padding: 10px; box-shadow: 0 6px 14px var(--shadow); }
.scr-card .ic { width: 26px; height: 26px; border-radius: 8px; background: var(--grad); display: block; margin-bottom: 18px; opacity: .92; }
.scr-card b { display: block; font-size: 12px; color: var(--ink); }
.scr-card small { font-size: 10px; color: var(--ink-2); }
.scr-cta { margin-top: auto; height: 46px; border-radius: 16px; background: var(--grad); box-shadow: 0 10px 22px var(--shadow-strong), inset 0 1px 0 rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; position: relative; }

/* --- Section title --- */
.section-title { text-align: center; max-width: 60ch; margin: 0 auto 44px; }
.section-title h2 { margin-top: 14px; }
.section-title p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }

/* --- Feature grid --- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--stroke);
  border-radius: var(--radius); padding: 24px;
  box-shadow: 0 12px 30px var(--shadow);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 42px var(--shadow-strong); }
.card .tile {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); box-shadow: 0 8px 18px var(--shadow);
  margin-bottom: 16px;
}
.card .tile svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-2); font-size: 15px; }

/* --- Steps --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 26px; box-shadow: 0 12px 30px var(--shadow); position: relative; }
.step .num {
  width: 38px; height: 38px; border-radius: 11px; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px;
  box-shadow: 0 8px 16px var(--shadow); margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* --- Band --- */
.band {
  text-align: center; background: var(--card); border: 1px solid var(--stroke);
  border-radius: var(--radius-lg); padding: 52px 28px;
  box-shadow: 0 18px 44px var(--shadow);
  position: relative; overflow: hidden;
}
.band::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0.06; }
.band h2 { position: relative; }
.band p { position: relative; margin: 14px auto 0; max-width: 54ch; color: var(--ink-2); font-size: 17px; }
.price { font-size: 30px; font-weight: 800; color: var(--ink); }

/* --- Bullets / privacy --- */
.bullets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; max-width: 880px; margin: 0 auto; }
.bullet { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 10px 24px var(--shadow); }
.bullet .dot { flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(62,100,206,0.12); color: var(--brand-1); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.bullet div b { color: var(--ink); }
.bullet div { color: var(--ink-2); font-size: 15px; }

/* --- FAQ --- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
details {
  background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 4px 22px; box-shadow: 0 10px 24px var(--shadow);
}
summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16.5px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand-1); font-size: 24px; font-weight: 700; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); padding: 0 0 20px; font-size: 15.5px; }

/* --- Doc (privacy/support body copy) --- */
.doc { max-width: 760px; margin: 0 auto; }
.doc .card { padding: 36px 38px; }
.doc h2 { margin: 30px 0 10px; font-size: 24px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 7px 0; }
.doc strong { color: var(--ink); }
.updated { color: var(--ink-3); font-size: 14px; margin-top: 8px; }

/* --- Footer --- */
footer { padding: 40px 0 56px; border-top: 1px solid var(--hair); margin-top: 30px; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-2); font-weight: 600; font-size: 15px; }
.copy { color: var(--ink-3); font-size: 14px; margin-top: 20px; }

/* --- Reveal animation --- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- Language switcher --- */
.lang { display: inline-flex; align-items: center; gap: 6px; }
.lang svg { width: 17px; height: 17px; stroke: var(--ink-2); fill: none; stroke-width: 1.7; }
.lang select {
  appearance: none; -webkit-appearance: none;
  font-family: var(--font); font-weight: 600; font-size: 14px; color: var(--ink-2);
  background: var(--card); border: 1px solid rgba(62, 100, 206, 0.22);
  border-radius: var(--radius-pill); padding: 8px 14px; cursor: pointer;
  box-shadow: 0 4px 12px var(--shadow); transition: color .2s ease, border-color .2s ease;
}
.lang select:hover { color: var(--brand-1); border-color: rgba(62, 100, 206, 0.42); }
.lang select:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  section { padding: 56px 0; }
  .grid { grid-template-columns: 1fr; }
  .bullets { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, .bg::before, .bg::after, .blob { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* Template compatibility additions */
.icon { display: inline-block; object-fit: cover; }
.emoji {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(62,100,206,0.10);
  box-shadow: 0 8px 18px var(--shadow);
  margin-bottom: 16px; font-size: 24px;
}
.lang { gap: 6px; flex-wrap: wrap; }
.lang-btn {
  font-family: var(--font); color: var(--brand-1);
  background: var(--card); border: 1px solid rgba(62,100,206,0.24);
  border-radius: var(--radius-pill); box-shadow: 0 4px 12px var(--shadow);
  cursor: pointer; font-weight: 700;
}
.lang-btn:hover, .lang-btn.active { color: #fff; background: var(--grad); }
@media (max-width: 760px) {
  .nav { height: auto; min-height: 66px; padding: 10px 0; gap: 10px; flex-wrap: wrap; }
  .nav-links { gap: 10px; justify-content: flex-end; }
  .lang-btn { padding: 7px 10px; font-size: 12px; }
}

/* Snapport additions */
.notice { max-width: 760px; margin: 28px auto 0; padding: 16px 18px; border-radius: var(--radius); background: rgba(255,255,255,0.82); border: 1px solid rgba(62,100,206,0.18); color: var(--ink-2); box-shadow: 0 10px 24px var(--shadow); font-weight: 600; }
.specs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.mini { color: var(--ink-2); font-size: 14px; font-weight: 700; background: rgba(255,255,255,0.76); border: 1px solid var(--stroke); border-radius: var(--radius-pill); padding: 7px 12px; box-shadow: 0 4px 14px var(--shadow); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.swatch { height: 42px; border-radius: 14px; border: 1px solid rgba(62,100,206,0.16); box-shadow: 0 6px 16px var(--shadow); }
.swatch.white { background:#fff; } .swatch.gray { background:#f2f4fb; } .swatch.blue { background:#dfeaff; } .swatch.red { background:#ffe2e2; }
@media (max-width: 680px) { .swatches { grid-template-columns: repeat(2, 1fr); } }
