/* ============================================================
   GemServ — landing site
   Aesthetic: dark "server appliance / monitoring" — slate base,
   violet brand, terminal-green live accents, mono data readouts,
   dotted-grid + glow atmosphere.
   ============================================================ */

:root {
  --bg:        #0B0F1A;
  --bg-2:      #0F172A;
  --card:      #161F33;
  --card-2:    #1E293B;
  --accent:    #7C3AED;
  --accent-lt: #A78BFA;
  --live:      #22C55E;
  --live-dim:  #16A34A;
  --text:      #F8FAFC;
  --dim:       #94A3B8;
  --dimmer:    #64748B;
  --border:    rgba(148, 163, 184, 0.14);
  --border-lt: rgba(148, 163, 184, 0.22);
  --danger:    #EF4444;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1160px;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: clip;
  /* dotted grid + faint top-violet wash */
  background-image:
    radial-gradient(circle at 50% -10%, rgba(124, 58, 237, 0.16), transparent 55%),
    radial-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 100% 100%, 26px 26px;
  background-attachment: fixed, fixed;
}

/* fine film grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
b { color: var(--text); font-weight: 600; }

/* ───────────── buttons ───────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 30px -10px var(--accent); }
.btn-accent:hover { background: #6D28D9; transform: translateY(-2px); }
.btn-ghost { border-color: var(--border-lt); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--accent-lt); color: var(--accent-lt); transform: translateY(-2px); }

/* ───────────── nav ───────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  /* glassy bar */
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11, 15, 26, 0.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  width: 100vw; left: 50%; transform: translateX(-50%);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { filter: drop-shadow(0 4px 12px rgba(124,58,237,0.5)); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; line-height: 1; display: flex; flex-direction: column; gap: 2px; }
.brand-name small { font-family: var(--font-mono); font-weight: 400; font-size: 0.62rem; color: var(--dimmer); letter-spacing: 0.04em; }
.nav-links { display: flex; gap: 18px; margin-left: auto; }
.nav-links a { color: var(--dim); font-weight: 500; font-size: 0.9rem; white-space: nowrap; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 11px; }

.lang-toggle {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  background: transparent; color: var(--dimmer); border: 1px solid var(--border-lt);
  border-radius: 999px; padding: 7px 12px; cursor: pointer; letter-spacing: 0.04em;
  display: flex; gap: 5px; transition: border-color .15s;
}
.lang-toggle .sep { color: var(--dimmer); opacity: 0.5; }
.lang-toggle:hover { border-color: var(--accent-lt); }
.lang-toggle [data-lang-opt].active { color: var(--accent-lt); }

/* ───────────── hero ───────────── */
.hero {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 24px 56px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero-glow {
  position: absolute; top: 4%; right: 2%; width: 560px; height: 560px; z-index: 0;
  background: radial-gradient(circle, rgba(124,58,237,0.34), transparent 62%);
  filter: blur(36px); pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-lt); border: 1px solid var(--border-lt); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 22px; background: rgba(124,58,237,0.07);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 5.6vw, 4.3rem);
  line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 22px;
  background: linear-gradient(180deg, #FFFFFF 30%, #C7D2E5 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lede { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--dim); max-width: 38ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; }
.hero-meta li { display: flex; align-items: center; gap: 9px; font-size: 0.9rem; color: var(--dim); }

.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.live { background: var(--live); box-shadow: 0 0 0 0 rgba(34,197,94,0.6); animation: pulse 2.4s infinite; }
.dot.accent { background: var(--accent-lt); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* google play badge */
.play-badge {
  position: relative; display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 18px 11px 16px; border-radius: 14px;
  background: linear-gradient(135deg, #1E293B, #131c2e); border: 1px solid var(--border-lt);
  transition: transform .18s ease, border-color .18s ease;
}
.play-badge:hover { transform: translateY(-2px); border-color: var(--accent-lt); }
.play-badge-txt { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; }
.play-badge-txt small { font-family: var(--font-body); font-weight: 500; font-size: 0.64rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.soon-pill {
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--live); background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3);
  padding: 3px 7px; border-radius: 6px; margin-left: 4px;
}

/* hero device */
.hero-device { position: relative; z-index: 2; display: flex; justify-content: center; }
.phone {
  position: relative; width: clamp(230px, 26vw, 300px); border-radius: 38px;
  background: linear-gradient(145deg, #2A3550, #0d1322); padding: 11px;
  border: 1px solid var(--border-lt);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.03) inset,
              0 0 80px -30px rgba(124,58,237,0.6);
}
.phone img { border-radius: 28px; width: 100%; }
.phone-notch { position: absolute; top: 17px; left: 50%; transform: translateX(-50%); width: 78px; height: 7px; background: #05070d; border-radius: 99px; z-index: 3; }
.phone.sm { width: 100%; border-radius: 30px; padding: 8px; box-shadow: 0 30px 60px -28px rgba(0,0,0,0.8); }
.phone.sm img { border-radius: 22px; }
.phone.sm .phone-notch { display: none; }

.chip {
  position: absolute; z-index: 4; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500;
  background: rgba(18, 24, 38, 0.86); backdrop-filter: blur(8px);
  border: 1px solid var(--border-lt); border-radius: 11px; padding: 8px 12px; white-space: nowrap;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,0.7); animation: floaty 6s ease-in-out infinite;
}
.chip b { color: var(--accent-lt); font-weight: 700; }
.chip-online { top: 8%; left: -8%; color: var(--live); display: flex; align-items: center; gap: 7px; }
.chip-endpoint { top: 34%; right: -14%; color: var(--dim); animation-delay: .8s; }
.chip-gpu { bottom: 24%; left: -12%; color: var(--accent-lt); animation-delay: 1.6s; }
.chip-model { bottom: 7%; right: -6%; color: var(--text); animation-delay: 2.4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ───────────── marquee ───────────── */
.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(15,23,42,0.4); padding: 14px 0; position: relative; z-index: 2; }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: scroll 28s linear infinite; font-family: var(--font-mono); font-size: 0.85rem; color: var(--dim); }
.marquee-track span { display: inline-flex; gap: 9px; align-items: center; }
.marquee-track b { font-weight: 700; font-size: 0.66rem; padding: 2px 6px; border-radius: 5px; }
.m-get { color: var(--live); background: rgba(34,197,94,0.12); }
.m-post { color: var(--accent-lt); background: rgba(124,58,237,0.14); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ───────────── sections ───────────── */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px, 9vw, 110px) 24px; position: relative; z-index: 2; scroll-margin-top: 84px; }
.section-head { margin-bottom: 48px; max-width: 640px; }
.kicker { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-lt); }
.section-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.02em; margin-top: 12px; line-height: 1.08; }
.section-sub { color: var(--dim); margin-top: 14px; font-size: 1.05rem; }

/* ───────────── features ───────────── */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  background: linear-gradient(160deg, var(--card), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-lt); box-shadow: 0 24px 50px -28px rgba(124,58,237,0.5); }
.feature .ic { width: 30px; height: 30px; stroke: var(--accent-lt); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.feature h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; margin-bottom: 8px; }
.feature p { color: var(--dim); font-size: 0.92rem; }

/* ───────────── api ───────────── */
.card { background: linear-gradient(160deg, var(--card), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); }
.api-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 20px; align-items: start; }
.api-grid > * { min-width: 0; }
.endpoints { padding: 12px; display: flex; flex-direction: column; min-width: 0; }
.ep > div { min-width: 0; }
.ep code { overflow-wrap: anywhere; }
.ep { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; transition: background .15s; }
.ep:hover { background: rgba(255,255,255,0.025); }
.ep + .ep { border-top: 1px solid var(--border); border-radius: 0; }
.ep code { font-family: var(--font-mono); font-size: 0.92rem; color: var(--text); }
.ep small { display: block; color: var(--dimmer); font-size: 0.78rem; margin-top: 2px; }
.badge { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; letter-spacing: 0.04em; flex: none; }
.badge.get { color: var(--live); background: rgba(34,197,94,0.12); }
.badge.post { color: var(--accent-lt); background: rgba(124,58,237,0.14); }

.snippets { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.terminal { overflow: hidden; position: relative; min-width: 0; }
.terminal figcaption { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.2); font-size: 0.78rem; }
.terminal figcaption em { font-family: var(--font-mono); font-style: normal; color: var(--dimmer); margin-left: 8px; }
.tl { width: 11px; height: 11px; border-radius: 50%; background: #2c3650; }
.tl:nth-child(1){ background:#EF4444; } .tl:nth-child(2){ background:#EAB308; } .tl:nth-child(3){ background:#22C55E; }
.terminal pre { padding: 18px 16px; overflow-x: auto; }
.terminal code { font-family: var(--font-mono); font-size: 0.82rem; color: #CBD5E1; line-height: 1.7; white-space: pre; }
.c-cmd { color: var(--live); font-weight: 700; }
.c-str { color: #FBBF24; }
.c-key { color: var(--accent-lt); }
.copy {
  position: absolute; top: 50px; right: 14px; font-family: var(--font-mono); font-size: 0.72rem;
  background: rgba(124,58,237,0.14); color: var(--accent-lt); border: 1px solid var(--border-lt);
  border-radius: 8px; padding: 6px 12px; cursor: pointer; transition: all .15s;
}
.copy:hover { background: var(--accent); color: #fff; }
.copy.copied { background: rgba(34,197,94,0.16); color: var(--live); border-color: rgba(34,197,94,0.3); }

/* ───────────── smart home (HA + camera) ───────────── */
.smart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.smart-grid > * { min-width: 0; }
.smart { position: relative; padding: 30px 28px; min-width: 0; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.smart:hover { transform: translateY(-4px); border-color: var(--border-lt); box-shadow: 0 24px 50px -28px rgba(124,58,237,0.5); }
.smart .ic { width: 34px; height: 34px; stroke: var(--accent-lt); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.smart h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 10px; }
.smart p { color: var(--dim); font-size: 0.96rem; }
.smart-note { margin-top: 14px; font-size: 0.86rem !important; color: var(--dimmer) !important; }
.smart-note code, .smart-code code { font-family: var(--font-mono); color: var(--accent-lt); font-size: 0.86em; }
.smart-code { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; background: rgba(0,0,0,0.25); border: 1px solid var(--border); border-radius: 12px; min-width: 0; overflow-wrap: anywhere; }
.smart-code code { overflow-wrap: anywhere; }
.smart-code span { color: var(--dimmer); }
.pro-badge {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-lt));
  padding: 4px 9px; border-radius: 7px; box-shadow: 0 6px 18px -8px var(--accent);
}

/* ───────────── gallery ───────────── */
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.shot figcaption { text-align: center; color: var(--dim); font-size: 0.85rem; margin-top: 16px; }
.shot.up { transform: translateY(-26px); }
.shot { transition: transform .25s ease; }
.shot:hover { transform: translateY(-8px); }
.shot.up:hover { transform: translateY(-34px); }

/* ───────────── steps ───────────── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; background: linear-gradient(160deg, var(--card), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--accent-lt); background: rgba(124,58,237,0.13); border: 1px solid var(--border-lt); margin-bottom: 16px; }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--dim); font-size: 0.9rem; }
.start-cta { display: flex; justify-content: center; margin-top: 44px; }

/* ───────────── plans (Free / Pro) ───────────── */
.plans { padding: 8px clamp(8px, 2vw, 22px) 14px; overflow: hidden; }
.cmp { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { padding: 16px 18px; text-align: left; vertical-align: middle; }
.cmp thead th { padding-top: 22px; padding-bottom: 18px; }
.cmp-feat span { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dimmer); }
.cmp-col { width: 120px; text-align: center !important; }
.plan-name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--dim); display: inline-block; }
.cmp-col.pro .plan-name {
  background: linear-gradient(135deg, var(--accent-lt), #C4B5FD);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* highlighted Pro column */
.cmp th.pro, .cmp td.pro { background: rgba(124, 58, 237, 0.07); position: relative; }
.cmp thead th.pro { border-radius: 14px 14px 0 0; box-shadow: inset 0 1px 0 rgba(124,58,237,0.35), inset 1px 0 0 rgba(124,58,237,0.18), inset -1px 0 0 rgba(124,58,237,0.18); }
.cmp tbody td.pro { box-shadow: inset 1px 0 0 rgba(124,58,237,0.18), inset -1px 0 0 rgba(124,58,237,0.18); }
.cmp tbody tr:last-child td.pro { border-radius: 0 0 14px 14px; box-shadow: inset 1px 0 0 rgba(124,58,237,0.18), inset -1px 0 0 rgba(124,58,237,0.18), inset 0 -1px 0 rgba(124,58,237,0.25); }

.cmp tbody tr { border-top: 1px solid var(--border); transition: background .15s; }
.cmp tbody tr:hover td:not(.pro) { background: rgba(255,255,255,0.02); }
.cmp tbody td:first-child { color: var(--text); font-size: 0.96rem; }
.cmp tbody td:first-child code { font-family: var(--font-mono); font-size: 0.9rem; color: var(--accent-lt); }
.cmp tbody td:first-child small { font-family: var(--font-mono); color: var(--dimmer); font-size: 0.8rem; margin-left: 4px; }

.mark { display: inline-flex; align-items: center; justify-content: center; }
.mark.yes {
  width: 25px; height: 25px; border-radius: 50%; border: 1px solid rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' stroke='%2322C55E' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.mark.no { color: var(--dimmer); font-size: 1.1rem; opacity: 0.6; }

/* ───────────── footer ───────────── */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 60px;
  display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); position: relative; z-index: 2;
}
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { font-family: var(--font-display); font-weight: 700; }
.footer-brand span { color: var(--dimmer); font-size: 0.85rem; }
.footer-meta { display: flex; align-items: center; gap: 20px; font-size: 0.85rem; color: var(--dim); font-family: var(--font-mono); }
.footer-meta a:hover { color: var(--accent-lt); }
.footer-meta .ver { color: var(--accent-lt); }

/* ───────────── reveal on load ───────────── */
.hero-copy > * { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-copy > *:nth-child(1){ animation-delay:.05s; } .hero-copy > *:nth-child(2){ animation-delay:.13s; }
.hero-copy > *:nth-child(3){ animation-delay:.21s; } .hero-copy > *:nth-child(4){ animation-delay:.29s; }
.hero-copy > *:nth-child(5){ animation-delay:.37s; }
.hero-device { opacity: 0; animation: rise .9s .35s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-copy > *, .hero-device, .reveal { opacity: 1; transform: none; }
}

/* ───────────── responsive ───────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 56px; text-align: center; padding-top: 40px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lede { max-width: 46ch; }
  .hero-meta { justify-content: center; }
  .hero-glow { right: 50%; transform: translateX(50%); top: 30%; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .api-grid { grid-template-columns: 1fr; }
  .smart-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .shot.up { transform: none; }
  .shot.up:hover { transform: translateY(-8px); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .nav { gap: 12px; padding: 14px 18px; }
  .section { padding: 56px 18px; }
  .hero { padding: 30px 18px 40px; }
  .feature-grid, .gallery, .steps { grid-template-columns: 1fr; }
  .gallery { max-width: 320px; margin: 0 auto; }
  .chip-endpoint { right: -6%; } .chip-gpu { left: -4%; } .chip-online { left: -2%; } .chip-model { right: 0; }
  .footer { flex-direction: column; align-items: flex-start; }
  .cmp th, .cmp td { padding: 13px 8px; }
  .cmp-col { width: 56px; }
  .plan-name { font-size: 1.15rem; }
  .plan-tag { display: none; }
  .cmp tbody td:first-child { font-size: 0.86rem; }
  .mark.yes { width: 22px; height: 22px; background-size: 13px; }
  /* wrap code on phones so snippets stay readable without sideways scroll */
  .terminal code { white-space: pre-wrap; word-break: break-word; }
  .terminal pre { padding: 16px 14px; }
}
