/* ====================================================================
   TermBuddy — Lobster Edition (light theme)
   Warm paper-cream base, lobster orange primary, modern engineer aesthetic
   ==================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--primary); color: #fff; }

:root {
  --bg:          #faf8f3;  /* warm paper */
  --bg-1:        #ffffff;  /* card */
  --bg-2:        #f3efe6;  /* subtle elevation */
  --bg-3:        #ebe6da;  /* nested */
  --bg-tint:     #fff6f2;  /* lobster-tinted surface */
  --border:      rgba(30,25,20,0.08);
  --border-2:    rgba(30,25,20,0.16);
  --text:        #1d1915;
  --muted:       #6e655c;
  --dim:         #a8a097;
  --primary:     #ff5e3a;
  --primary-2:   #ff8a5b;
  --primary-glow:rgba(255,94,58,0.16);
  --secondary:   #1d7df3;
  --accent:      #7c5cd1;   /* lavender — for Activity pills */
  --pink:        #ff2e63;
  --green:       #00a878;
  --yellow:      #d9961a;
  --red:         #d33636;

  /* Type */
  --f-display: 'Space Grotesk', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --f-text:    'Space Grotesk', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Rhythm */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --maxw:      1240px;
  --section-y: 140px;

  --ease: cubic-bezier(.22,1,.36,1);

  --shadow-sm: 0 1px 2px rgba(30,25,20,0.04), 0 1px 1px rgba(30,25,20,0.02);
  --shadow-md: 0 4px 16px rgba(30,25,20,0.06), 0 1px 2px rgba(30,25,20,0.04);
  --shadow-lg: 0 22px 60px rgba(30,25,20,0.10), 0 4px 12px rgba(30,25,20,0.04);
}

html { scroll-behavior: smooth; color-scheme: light; }
body {
  font-family: var(--f-text);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle dot grid */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(30,25,20,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
body.no-grid::before { display: none; }

#root { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
h1 { font-weight: 500; letter-spacing: -0.035em; }

code, pre, .mono { font-family: var(--f-mono); }

/* ---------- containers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: var(--section-y) 0; position: relative; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 24px;
}
.section-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 12px var(--primary-glow);
}
.section-head { max-width: 760px; margin-bottom: 72px; }
.section-head h2 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.02;
}
.section-head p {
  font-size: 1.15rem;
  color: var(--muted);
  margin-top: 18px;
  max-width: 620px;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; gap: 32px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.nav-brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-brand .name { font-family: var(--f-display); letter-spacing: -0.01em; font-size: 17px; color: var(--text); }
.nav-brand .name b { color: var(--primary); font-weight: 600; }
.nav-links { display: flex; gap: 28px; margin-left: 36px; }
.nav-links a {
  font-size: 14px; color: var(--muted); transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform 0.2s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-ghost {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--border-2);
  background: var(--bg-1);
  transition: all 0.2s;
}
.nav-ghost:hover { color: var(--text); border-color: var(--text); }
.nav-lang {
  padding: 6px 10px;
  border-radius: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--bg-1);
  display: inline-flex; gap: 6px; align-items: center;
}
.nav-lang b { color: var(--text); font-weight: 600; }
.nav-lang:hover { border-color: var(--text); color: var(--text); }

/* Language dropdown */
.lang-dd { position: relative; }
.lang-dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 6px;
  z-index: 200;
  animation: dd-pop 0.16s var(--ease);
}
@keyframes dd-pop {
  from { opacity: 0; transform: translateY(-4px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.lang-dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}
.lang-dd-item:hover { background: var(--bg-2); }
.lang-dd-item.active { color: var(--primary); }
.lang-dd-item .code {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  min-width: 22px;
  text-align: left;
}
.lang-dd-item.active .code { color: var(--primary); }
.lang-dd-item .name { flex: 1; text-align: left; }
.lang-dd-item .check {
  color: var(--primary);
  font-size: 8px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.3) inset,
    0 8px 24px var(--primary-glow),
    0 1px 3px rgba(255,94,58,0.3);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost {
  background: var(--bg-1);
  color: var(--text);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--text); transform: translateY(-1px); }
.btn-tertiary {
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 8px 0;
  border-radius: 0;
}
.btn-tertiary:hover { color: var(--primary); }
.btn-tertiary::after { content: ' →'; transition: transform 0.2s; display: inline-block; }
.btn-tertiary:hover::after { transform: translateX(4px); }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-1);
  color: var(--muted);
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(0,168,120,0.5);
  animation: pulse 2s infinite var(--ease);
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ====================================================================
   HERO
   ==================================================================== */
.hero {
  position: relative;
  padding: 140px 0 40px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; left: 50%; top: -15%;
  transform: translateX(-50%);
  width: 1300px; height: 800px;
  background: radial-gradient(closest-side, var(--primary-glow), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
  z-index: 1;
}
.hero-left { max-width: 580px; }
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 28px 0;
}
.hero h1 .accent {
  color: var(--primary);
  font-style: italic;
  font-weight: 500;
  position: relative;
  display: inline-block;
}
@keyframes caret { 50% { opacity: 0; } }
.hero h1 .stroked {
  -webkit-text-stroke: 1.2px var(--text);
  color: transparent;
  font-style: italic;
  font-weight: 500;
}
.hero-typed {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 28px 0;
  white-space: pre-wrap;
  min-height: 3.3em;
  word-break: keep-all;
}
.hero-typed .accent {
  color: var(--primary);
  font-style: italic;
  font-weight: 500;
}
.hero-typed .stroked {
  -webkit-text-stroke: 1.2px var(--text);
  color: transparent;
  font-style: italic;
  font-weight: 500;
}
.caret-blink {
  display: inline-block;
  color: var(--primary);
  animation: caret 1s infinite step-end;
  margin-left: 4px;
  font-weight: 300;
  transform: translateY(-0.04em);
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-chips {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.hero-chips .chip {
  padding: 5px 10px;
  border: 1px solid var(--border);
  background: var(--bg-1);
  border-radius: 6px;
  text-transform: lowercase;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-stat .k {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-stat .l {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
  line-height: 1.4;
}

/* ---------- hero terminal — mac-app aesthetic ---------- */
.hero-right {
  position: relative;
  min-height: 580px;
}
.app-window {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.app-titlebar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
}
.app-titlebar .traffic { display: flex; gap: 6px; }
.app-titlebar .traffic i {
  width: 11px; height: 11px; border-radius: 50%; display: block;
}
.app-titlebar .traffic i:nth-child(1) { background: #ff5f57; }
.app-titlebar .traffic i:nth-child(2) { background: #febc2e; }
.app-titlebar .traffic i:nth-child(3) { background: #28c840; }
.app-titlebar .name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-left: 12px;
}
.app-titlebar .name-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--dim);
  margin-left: 8px;
}
.app-titlebar .actions { margin-left: auto; display: flex; gap: 6px; }
.app-titlebar .actions span {
  width: 24px; height: 24px;
  border-radius: 6px;
  display: grid; place-items: center;
  color: var(--muted);
  font-size: 12px;
  border: 1px solid transparent;
}
.app-titlebar .actions span:hover { background: var(--bg-2); }
.app-titlebar .actions .term-ic {
  color: var(--primary);
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 600;
}

.app-chat {
  padding: 22px 28px 24px;
  min-height: 460px;
  display: flex; flex-direction: column;
  gap: 14px;
  position: relative;
}
.app-chat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, var(--primary-glow), transparent 50%);
  opacity: 0.6;
  pointer-events: none;
}
.app-chat > * { position: relative; z-index: 1; }

/* chat bubble entrance animation */
@keyframes chat-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.chat-enter {
  animation: chat-pop 0.32s cubic-bezier(.22,1,.36,1) both;
}

/* Working directory pill */
.wd-pill {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
}
.wd-pill .ic { color: var(--accent); }
.wd-pill .path { color: var(--text); }

/* user message bubble */
.user-msg {
  align-self: flex-end;
  background: var(--secondary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 18px;
  border-bottom-right-radius: 5px;
  max-width: 80%;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(29,125,243,0.18);
}

/* "Starting claude..." subtle pill */
.starting-pill {
  align-self: center;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--muted);
  background: var(--bg-2);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: 8px;
}
.starting-pill .spin {
  width: 9px; height: 9px;
  border: 1.5px solid var(--border-2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Activity collapsed pill */
.activity-pill {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: linear-gradient(95deg, #f3edff, #fce8f2);
  border: 1px solid rgba(124,92,209,0.2);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  max-width: 80%;
}
.activity-pill:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124,92,209,0.12); }
.activity-pill .arrow { font-size: 10px; opacity: 0.6; }
.activity-pill .gear { font-size: 13px; }
.activity-pill .steps { color: var(--muted); font-family: var(--f-mono); font-size: 11px; }

/* AI prose response */
.ai-prose {
  align-self: flex-start;
  max-width: 92%;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
}
.ai-prose b { color: var(--text); font-weight: 600; }
.ai-prose code {
  background: var(--bg-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--primary);
}
.ai-prose .file-ref {
  color: var(--secondary);
  border-bottom: 1px solid var(--secondary);
  display: inline-flex; gap: 4px;
}

/* generated artifact (chart / file) */
.artifact {
  margin-top: 4px;
  align-self: flex-start;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-1);
  box-shadow: var(--shadow-sm);
}
.artifact .head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--muted);
  background: var(--bg-2);
}
.artifact .head .ic { color: var(--primary); }
.artifact .head .name { color: var(--text); font-weight: 500; }
.artifact .head .meta { margin-left: auto; color: var(--dim); }
.artifact .chart {
  height: 140px;
  padding: 14px 16px;
  position: relative;
}
.artifact .md {
  padding: 14px 16px;
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.6;
}
.artifact .md h4 {
  font-size: 13px;
  margin: 0 0 4px;
  color: var(--text);
}
.artifact .md ul { list-style: none; padding: 0; margin: 0; }
.artifact .md li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.artifact .md li::before {
  content: '·'; position: absolute; left: 4px; color: var(--primary);
}

/* file attachment pill */
.file-pill {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--text);
  font-family: var(--f-mono);
  transition: all 0.2s;
}
.file-pill:hover { border-color: var(--primary); }
.file-pill .clip { font-size: 12px; color: var(--secondary); }
.file-pill .size { margin-left: 6px; color: var(--dim); font-size: 11px; }

/* scenario tabs (top of hero terminal) */
.scenario-tabs {
  display: flex; gap: 4px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  font-family: var(--f-mono);
  font-size: 11px;
  overflow-x: auto;
  scrollbar-width: none;
}
.scenario-tabs::-webkit-scrollbar { display: none; }
.scenario-tabs .tab {
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--muted);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
}
.scenario-tabs .tab.active {
  background: var(--bg-1);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* input bar (just decorative at bottom of terminal) */
.app-input {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}
.app-input .field {
  flex: 1;
  padding: 9px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--dim);
  font-size: 13px;
}
.app-input .send {
  width: 32px; height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* ====================================================================
   MARQUEE
   ==================================================================== */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  overflow: hidden;
  margin-top: 60px;
  background: var(--bg-1);
}
.marquee .label {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}
.marquee-track {
  display: flex;
  gap: 64px;
  align-items: center;
  animation: marquee 32s linear infinite;
  white-space: nowrap;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--muted);
}
.marquee-track > span { display: inline-flex; align-items: center; gap: 18px; }
.marquee-track .sep { color: var(--dim); }
.marquee-track b { color: var(--text); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ====================================================================
   LIVE DEMO — 3-panel scene
   ==================================================================== */
.live { position: relative; }
.live::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 80% 20%, rgba(74,123,247,0.06), transparent 70%),
    radial-gradient(700px 500px at 10% 80%, var(--primary-glow), transparent 70%);
  pointer-events: none;
}
.live-stage {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: stretch;
  position: relative;
}
.live-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}
.live-card .head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-1);
}
.live-card .head .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px rgba(0,168,120,0.5);
}
.live-card .head .name { font-family: var(--f-mono); font-size: 12px; color: var(--text); font-weight: 500; }
.live-card .head .where { font-family: var(--f-mono); font-size: 11px; color: var(--dim); margin-left: auto; }
.live-card .body { padding: 22px 20px; min-height: 420px; background: var(--bg); }

/* Phone mockup */
.phone {
  margin: 0 auto;
  width: 100%;
  max-width: 220px;
  border-radius: 32px;
  border: 1.5px solid #1a1a1a;
  background: #fff;
  padding: 14px 10px 12px;
  position: relative;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.phone-notch {
  width: 80px; height: 22px;
  background: #1a1a1a; border-radius: 999px;
  margin: 0 auto 14px;
}
.phone-chat {
  display: flex; flex-direction: column; gap: 7px;
  min-height: 280px;
}
.phone-msg {
  font-size: 12px;
  padding: 7px 11px;
  border-radius: 14px;
  max-width: 85%;
  line-height: 1.35;
}
.phone-msg.user { background: var(--secondary); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.phone-msg.ai   { background: var(--bg-2); color: var(--text); align-self: flex-start; border-bottom-left-radius: 5px; }
.phone-msg.notif {
  align-self: stretch;
  background: var(--bg-tint);
  border: 1px solid rgba(255,94,58,0.25);
  color: var(--text);
  font-size: 11.5px;
  padding: 8px 11px;
}
.phone-msg.notif b { color: var(--primary); display: block; margin-bottom: 2px; font-size: 11.5px; }

/* Server card */
.server-card .body {
  padding: 20px;
  font-family: var(--f-mono);
  font-size: 12px;
}
.server-card .row { display: flex; justify-content: space-between; padding: 4px 0; }
.server-card .row .k { color: var(--muted); }
.server-card .row .v { color: var(--text); font-weight: 500; }
.server-card .bar {
  height: 4px; background: var(--bg-2); border-radius: 2px; overflow: hidden;
  margin: 4px 0 16px;
}
.server-card .bar i { display: block; height: 100%; background: var(--primary); border-radius: 2px; transition: width 0.6s var(--ease); }
.server-card .bar.ok i { background: var(--green); }
.server-card .bar.warn i { background: var(--yellow); }
.server-card .bar.crit i { background: var(--red); }
.server-card .label-row {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--muted); margin-top: 12px; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* center demo column — actually a full chat */
.live-chat-card .body {
  background: var(--bg-1);
  padding: 0;
  min-height: 460px;
}
.live-chat-card .chat-body {
  padding: 20px 24px;
  display: flex; flex-direction: column;
  gap: 12px;
  min-height: 420px;
}
.live-chat-card .chat-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--dim);
  display: flex; justify-content: space-between;
}

/* ====================================================================
   FEATURES
   ==================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.feat {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}
.feat:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feat .num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.18em;
  margin-bottom: 24px;
}
.feat h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
  color: var(--text);
}
.feat p { color: var(--muted); font-size: 0.96rem; }
.feat .tag {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  border: 1px solid var(--border-2);
  color: var(--muted);
  background: var(--bg-1);
}
.feat .tag.live { color: var(--primary); border-color: rgba(255,94,58,0.4); background: var(--bg-tint); }

.feat.f-hero    { grid-column: span 7; min-height: 320px; }
.feat.f-tall    { grid-column: span 5; min-height: 320px; }
.feat.f-third   { grid-column: span 4; }
.feat.f-half    { grid-column: span 6; }
.feat.f-big     { grid-column: span 8; }

.feat .visual {
  margin-top: 24px;
  height: 160px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--bg-2);
}
.feat.f-hero .visual { height: 200px; }

/* Feature: chat */
.feat-chat-vis {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  font-size: 12.5px;
  background: var(--bg-1);
}
.feat-chat-vis .b {
  padding: 6px 11px;
  border-radius: 12px;
  max-width: 82%;
  line-height: 1.3;
}
.feat-chat-vis .b.u { background: var(--secondary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.feat-chat-vis .b.a { color: var(--text); align-self: flex-start; }
.feat-chat-vis .b.a code { color: var(--primary); background: var(--bg-2); padding: 0 4px; border-radius: 3px; }

/* Feature: AI models */
.feat-models {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 18px;
}
.feat-models .m {
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  color: var(--text);
  background: var(--bg-1);
  display: inline-flex; gap: 6px; align-items: center;
  font-weight: 500;
}
.feat-models .m::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(0,168,120,0.5);
}

/* Feature: streaming */
.feat-stream {
  padding: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  background: var(--bg-1);
}
.live-cursor {
  display: inline-block;
  width: 7px; height: 12px;
  background: var(--primary);
  vertical-align: middle;
  animation: caret 1s infinite step-end;
}

/* Feature: push notification visual */
.feat-push-vis {
  padding: 18px;
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  background: linear-gradient(180deg, var(--bg-tint), var(--bg-1));
}
.feat-notif {
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex; gap: 12px;
  width: 100%;
  max-width: 320px;
  box-shadow: var(--shadow-md);
}
.feat-notif .app-ico {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  font-size: 13px;
}
.feat-notif .t { font-size: 12.5px; font-weight: 600; color: var(--text); }
.feat-notif .b { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.feat-notif .when { font-size: 10px; color: var(--dim); margin-left: auto; font-family: var(--f-mono); }

/* Feature: file browser */
.feat-files {
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 18px;
  background: var(--bg-1);
}
.feat-files .f {
  display: flex; gap: 10px; padding: 4px 0;
  color: var(--muted);
}
.feat-files .f .ic { color: var(--primary); }
.feat-files .f b { color: var(--text); font-weight: 500; }
.feat-files .f .sz { margin-left: auto; color: var(--dim); font-size: 11px; }

/* Feature: encrypted */
.feat-crypto {
  padding: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.7;
  background: var(--bg-1);
  position: relative;
}
.feat-crypto .line { color: var(--muted); }
.feat-crypto .line .k { color: var(--green); }
.feat-crypto .line .p { color: var(--primary); }
.feat-crypto .arrow { color: var(--accent); }

/* ====================================================================
   HOW IT WORKS
   ==================================================================== */
.how-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.how-step {
  padding: 40px 36px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background 0.3s;
  background: var(--bg-1);
}
.how-step:hover { background: var(--bg-tint); }
.how-step .stepnum {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}
.how-step h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.how-step p { color: var(--muted); margin-bottom: 20px; }
.how-step .code {
  font-family: var(--f-mono);
  font-size: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
}
.how-step .code .cm { color: var(--dim); }
.how-step .code .ok { color: var(--green); }
.how-step .code .p  { color: var(--primary); }
.how-step .code .b  { color: var(--secondary); }

/* ====================================================================
   SCREENSHOTS
   ==================================================================== */
.shots {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.shots-platform { margin-bottom: 80px; }
.shots-platform:last-child { margin-bottom: 0; }
.shots-header {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}
.shots-header .platform {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
}
.shots-header .h {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.shots-header .meta {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--dim);
}
.shots-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.shots-row::-webkit-scrollbar { height: 6px; }
.shots-row::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
.ios-shot { flex: 0 0 220px; }
.ios-shot .frame {
  border-radius: 32px;
  border: 1.5px solid var(--border-2);
  padding: 5px;
  background: var(--bg-1);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease);
}
.ios-shot:hover .frame { transform: translateY(-4px); }
.ios-shot .frame img {
  border-radius: 26px;
  width: 100%;
  display: block;
}
.ios-shot .caption {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mac-shot { flex: 0 0 540px; }
.mac-shot .frame {
  background: var(--bg-1);
  border-radius: 10px;
  border: 1px solid var(--border-2);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease);
}
.mac-shot:hover .frame { transform: translateY(-4px); }
.mac-shot .frame .bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.mac-shot .frame .bar i {
  width: 11px; height: 11px; border-radius: 50%;
}
.mac-shot .frame .bar i:nth-child(1) { background: #ff5f57; }
.mac-shot .frame .bar i:nth-child(2) { background: #febc2e; }
.mac-shot .frame .bar i:nth-child(3) { background: #28c840; }
.mac-shot .frame .bar .t {
  margin-left: auto; margin-right: 30px;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--muted);
}
.mac-shot .frame img { width: 100%; display: block; }
.mac-shot .caption {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ====================================================================
   SECURITY
   ==================================================================== */
.sec {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.sec-card {
  padding: 44px 36px;
  border-right: 1px solid var(--border);
  position: relative;
  background: var(--bg-1);
}
.sec-card:last-child { border-right: 0; }
.sec-card .badge {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: inline-flex;
  gap: 8px; align-items: center;
}
.sec-card .badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0,168,120,0.5);
}
.sec-card h3 { font-size: 1.3rem; margin-bottom: 12px; font-weight: 500; letter-spacing: -0.02em; }
.sec-card p { color: var(--muted); font-size: 0.96rem; }
.sec-card .code {
  margin-top: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  background: var(--bg-2);
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.sec-card .code .k { color: var(--accent); font-weight: 500; }
.sec-card .code .arrow { color: var(--primary); }

/* ====================================================================
   SUPPORT + CTA
   ==================================================================== */
.support { position: relative; }
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.support-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.support-card:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.support-card .ico-row {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}
.support-card h3 { font-size: 1.25rem; margin-bottom: 8px; font-weight: 500; }
.support-card p { color: var(--muted); margin-bottom: 24px; flex: 1; font-size: 0.96rem; }
.support-card .action {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--text);
  padding: 10px 14px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  width: fit-content;
  transition: all 0.2s;
}
.support-card .action:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.cta {
  text-align: center;
  padding: 120px 32px;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute; left: 50%; bottom: -50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(closest-side, var(--primary-glow), transparent 70%);
  pointer-events: none;
}
.cta img.mascot {
  width: 140px; margin: 0 auto 28px;
  filter: drop-shadow(0 14px 32px rgba(255,94,58,0.25));
}
.cta h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
  position: relative;
}
.cta h2 .accent { color: var(--primary); font-style: italic; }
.cta p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 36px;
  position: relative;
}
.cta-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-mini {
  margin-top: 36px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.1em;
  position: relative;
}

/* ====================================================================
   FOOTER
   ==================================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  background: var(--bg-1);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand { font-family: var(--f-display); font-size: 22px; font-weight: 500; color: var(--text); }
.footer-brand b { color: var(--primary); font-weight: 600; }
.footer-brand-sub { color: var(--muted); margin-top: 10px; font-size: 14px; max-width: 280px; }
.footer h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.footer ul a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--dim);
}

/* ====================================================================
   CHANGELOG + PRIVACY pages
   ==================================================================== */
.subpage { padding: 140px 0 100px; }
.subpage h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}
.subpage h1 .accent { color: var(--primary); font-style: italic; }
.subpage .lead { color: var(--muted); font-size: 1.15rem; margin-bottom: 60px; }

.cl-timeline { max-width: 820px; }
.release-block { display: grid; grid-template-columns: 180px 1fr; gap: 40px; padding: 36px 0; border-top: 1px solid var(--border); }
.release-block .meta .v {
  font-family: var(--f-mono);
  font-size: 18px;
  color: var(--text);
  font-weight: 500;
}
.release-block .meta .d {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--dim);
  margin-top: 6px;
}
.release-block .meta .latest {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 9px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(0,168,120,0.08);
  color: var(--green);
  border: 1px solid rgba(0,168,120,0.3);
  border-radius: 4px;
}
.change-group { margin-bottom: 24px; }
.change-group:last-child { margin-bottom: 0; }
.change-group .lab {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-flex; gap: 8px; align-items: center;
}
.change-group .lab::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
}
.change-group.added .lab { color: var(--green); }
.change-group.added .lab::before { background: var(--green); }
.change-group.improved .lab { color: var(--secondary); }
.change-group.improved .lab::before { background: var(--secondary); }
.change-group.fixed .lab { color: var(--red); }
.change-group.fixed .lab::before { background: var(--red); }
.change-group ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.change-group li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.change-group li::before {
  content: '→';
  position: absolute; left: 0; top: 0;
  color: var(--dim);
  font-family: var(--f-mono);
}

.privacy-content { max-width: 780px; font-size: 16px; line-height: 1.7; }
.privacy-content h2 {
  font-size: 1.35rem;
  font-weight: 500;
  margin-top: 48px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.privacy-content h2 .n {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--primary);
  margin-right: 12px;
  letter-spacing: 0.1em;
}
.privacy-content p, .privacy-content li { color: var(--muted); margin-bottom: 14px; }
.privacy-content ul { padding-left: 24px; margin-bottom: 14px; }
.privacy-content strong { color: var(--text); font-weight: 500; }
.privacy-content a { color: var(--primary); }
.privacy-content a:hover { text-decoration: underline; }
.privacy-content .updated {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.08em;
  margin-bottom: 0;
}

/* ====================================================================
   FEEDBACK PAGE
   ==================================================================== */
.fb-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500;
  color: var(--muted); margin-bottom: 24px;
}
.fb-back:hover { color: var(--text); }

.fb-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.fb-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--bg-1);
  color: var(--muted);
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.fb-tab:hover { border-color: var(--text); color: var(--text); }
.fb-tab.active {
  background: var(--text); color: var(--bg); border-color: var(--text);
}

.fb-form {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.fb-field { margin-bottom: 20px; }
.fb-field:last-of-type { margin-bottom: 0; }
.fb-field label {
  display: block; font-weight: 600; font-size: 14px;
  margin-bottom: 4px; color: var(--text);
}
.fb-hint {
  display: block; font-size: 13px;
  color: var(--dim); margin-bottom: 6px;
}
.fb-field input[type="text"],
.fb-field input[type="email"],
.fb-field textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  font-family: inherit; font-size: 15px;
  color: var(--text); background: var(--bg);
  transition: border-color 0.15s;
  outline: none; box-sizing: border-box;
}
.fb-field input:focus,
.fb-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.fb-field textarea { min-height: 120px; resize: vertical; }

.fb-submit-row {
  margin-top: 24px;
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.fb-status { font-size: 14px; font-weight: 500; }
.fb-status.ok { color: var(--green); }
.fb-status.err { color: var(--red); }

/* ====================================================================
   MOBILE NAV HAMBURGER
   ==================================================================== */
.nav-burger {
  display: none;
  width: 36px; height: 36px;
  border-radius: 8px;
  place-items: center;
  color: var(--text);
  font-size: 20px;
}
.nav-burger:hover { background: var(--bg-2); }

.mobile-menu {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  padding: 80px 32px 40px;
  animation: dd-pop 0.2s var(--ease);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 22px; font-weight: 500;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .close-btn {
  position: absolute; top: 18px; right: 24px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  font-size: 22px; color: var(--muted);
  border-radius: 8px;
}
.mobile-menu .close-btn:hover { background: var(--bg-2); color: var(--text); }

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width: 1024px) {
  :root { --section-y: 100px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-left { max-width: 100%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hero-right { min-height: auto; }
  .live-stage { grid-template-columns: 1fr; }
  .feat.f-hero, .feat.f-tall, .feat.f-third, .feat.f-half, .feat.f-big { grid-column: span 12; }
  .how-list { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
  .sec-card { border-right: 0; border-bottom: 1px solid var(--border); }
  .sec-card:last-child { border-bottom: 0; }
  .support-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .release-block { grid-template-columns: 1fr; gap: 16px; }
  .mac-shot { flex: 0 0 380px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hero { padding-top: 110px; }
  .hero-typed { font-size: clamp(2rem, 8vw, 3.2rem); min-height: 2.6em; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-stat .k { font-size: 22px; }
  .hero-chips { gap: 6px; }
  .hero-chips .chip { font-size: 10px; padding: 4px 8px; }
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-ctas .btn-tertiary { width: auto; }
  .app-chat { padding: 16px 16px 18px; min-height: 360px; }
  .app-chat .user-msg, .app-chat .ai-prose { font-size: 13px; }
  .scenario-tabs { overflow-x: auto; }
  .marquee-track { gap: 32px; font-size: 18px; }
  .live-card .body { min-height: auto; }
  .server-card .body { min-height: auto; }
  .feat { padding: 24px; }
  .feat h3 { font-size: 1.25rem; }
  .feat .visual { height: 140px; }
  .feat.f-hero .visual { height: 160px; }
  .how-step { padding: 28px 20px; }
  .sec-card { padding: 28px 20px; }
  .support-card { padding: 24px; }
  .cta { padding: 80px 20px; }
  .cta h2 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; }
  .mac-shot { flex: 0 0 300px; }
  .ios-shot { flex: 0 0 180px; }
  .nav-inner { padding: 12px 20px; gap: 12px; }
  .nav-actions { gap: 6px; }
  .nav-ghost { display: none; }
  .nav-cta { padding: 7px 12px; font-size: 12px; }
  .lang-dd-menu { right: -20px; min-width: 160px; }
  .section-head h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
  .section-head p { font-size: 1rem; }
  .fb-form { padding: 20px; }
  .fb-tabs { gap: 6px; }
  .fb-tab { padding: 8px 14px; font-size: 13px; }
  .subpage { padding: 110px 0 80px; }
}
