/* DM Sans — self-hosted */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-sans-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dm-sans-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Mono — self-hosted */
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/space-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/space-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/space-mono-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/space-mono-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-elevated: #1a1a26;
  --border: #2a2a3a;
  --text: #e8e8ef;
  --text-dim: #8888a0;
  --text-muted: #55556a;
  --accent: #6cf5c2;
  --accent-dim: rgba(108,245,194,0.15);
  --accent2: #c084fc;
  --accent3: #60a5fa;
  --accent4: #fb923c;
  --accent5: #f472b6;
  --gradient-1: linear-gradient(135deg, #6cf5c2 0%, #60a5fa 100%);
  --gradient-2: linear-gradient(135deg, #c084fc 0%, #f472b6 100%);
  --radius: 16px;
  --radius-sm: 8px;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Microsoft YaHei", sans-serif;
  --mono: 'Space Mono', monospace;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Navigation */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(10,10,15,0.8);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
nav .logo {
  font-family: var(--mono);
  font-weight: 700; font-size: 1.25rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
nav .nav-links { display: flex; gap: 1.5rem; align-items: center; }
nav .nav-links a {
  color: var(--text-dim); text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  transition: color 0.3s;
}
nav .nav-links a:hover { color: var(--accent); }
.nav-pill {
  background: var(--accent-dim);
  color: var(--accent) !important;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(108,245,194,0.2);
}
.lang-btn {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 20px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.5px;
  margin-left: 0.25rem;
}
.lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hamburger button — hidden on desktop */
.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  padding: 0; z-index: 110;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay menu */
.mobile-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 99;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-overlay.open { display: flex; opacity: 1; }
.mobile-menu {
  position: absolute; top: 64px; left: 0; right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem 2rem;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.mobile-menu a {
  color: var(--text-dim); text-decoration: none;
  font-size: 1rem; font-weight: 500;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.mobile-menu a:hover,
.mobile-menu a:active { background: var(--accent-dim); color: var(--accent); }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 50% 30%, rgba(108,245,194,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 30% 70%, rgba(192,132,252,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(108,245,194,0.2);
  border-radius: 30px; padding: 8px 20px;
  font-size: 0.82rem; font-weight: 500;
  color: var(--accent); margin-bottom: 2rem;
  animation: fadeUp 0.8s ease;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700; letter-spacing: -2px;
  line-height: 1.1; margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease 0.1s both;
}
.hero h1 span {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.2rem; color: var(--text-dim);
  max-width: 640px; margin-bottom: 3rem;
  animation: fadeUp 0.8s ease 0.2s both;
}
.hero-stats {
  display: flex; gap: 3rem;
  animation: fadeUp 0.8s ease 0.3s both;
}
.hero-stats .stat { text-align: center; }
.hero-stats .stat-val {
  font-family: var(--mono);
  font-size: 2rem; font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stats .stat-label {
  font-size: 0.8rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
}

/* Sections */
section { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 3rem;
}

/* Architecture Diagram */
.arch-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  margin: 3rem 0;
  overflow-x: auto;
}
.arch-flow {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap; min-width: 900px;
}
.arch-node {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  text-align: center;
  min-width: 140px;
  transition: all 0.3s;
}
.arch-node:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(108,245,194,0.1);
  transform: translateY(-2px);
}
.arch-node .node-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.arch-node .node-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.25rem; }
.arch-node .node-sub { font-size: 0.75rem; color: var(--text-muted); }
.arch-arrow {
  color: var(--accent);
  font-size: 1.5rem;
  padding: 0 0.5rem;
  opacity: 0.5;
}

/* Step cards */
.step-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.step-header {
  display: flex; align-items: flex-start; gap: 1.5rem;
  margin-bottom: 3rem;
}
.step-num {
  font-family: var(--mono);
  font-size: 3rem; font-weight: 700;
  line-height: 1;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}
.step-header h2 {
  font-size: 1.8rem; font-weight: 700;
  letter-spacing: -0.5px; margin-bottom: 0.5rem;
}
.step-header p { color: var(--text-dim); font-size: 1rem; }
.user-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
  margin-top: 0.5rem;
}
.user-sme { background: rgba(192,132,252,0.15); color: var(--accent2); }
.user-internal { background: rgba(96,165,250,0.15); color: var(--accent3); }
.user-end { background: rgba(251,146,60,0.15); color: var(--accent4); }

/* Mock UI */
.mock-ui {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.mock-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.mock-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.mock-dot:nth-child(1) { background: #ff5f57; }
.mock-dot:nth-child(2) { background: #ffbd2e; }
.mock-dot:nth-child(3) { background: #28c840; }
.mock-url {
  margin-left: 12px;
  background: var(--bg); border-radius: 6px;
  padding: 4px 14px; font-size: 0.75rem;
  color: var(--text-muted); font-family: var(--mono);
  flex: 1;
}
.mock-body { padding: 1.5rem; }

/* Chat UI */
.chat-container { max-width: 100%; }
.chat-messages { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.chat-msg {
  display: flex; gap: 0.75rem;
  max-width: 85%;
  animation: fadeUp 0.5s ease both;
}
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; flex-shrink: 0;
  font-weight: 700;
}
.chat-msg.bot .chat-avatar { background: var(--accent-dim); color: var(--accent); }
.chat-msg.user .chat-avatar { background: rgba(192,132,252,0.15); color: var(--accent2); }
.chat-bubble {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.chat-msg.bot .chat-bubble {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-msg.user .chat-bubble {
  background: rgba(192,132,252,0.12);
  border: 1px solid rgba(192,132,252,0.2);
  border-bottom-right-radius: 4px;
}
.chat-input-row {
  display: flex; gap: 0.5rem;
}
.chat-input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}
.chat-input:focus { border-color: var(--accent); }
.chat-send {
  background: var(--accent);
  color: var(--bg);
  border: none; border-radius: 12px;
  padding: 0 1.2rem;
  font-weight: 600; font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.chat-send:hover { opacity: 0.85; }

/* Config panel */
.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 768px) { .config-grid { grid-template-columns: 1fr; } }
.config-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}
.config-card h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.config-val {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}
.config-tag {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  margin: 2px 4px 2px 0;
}

/* Phone demo */
.phone-frame {
  width: 320px;
  margin: 0 auto;
  background: #000;
  border-radius: 36px;
  padding: 12px;
  border: 2px solid #333;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.phone-screen {
  background: var(--bg-card);
  border-radius: 26px;
  overflow: hidden;
  min-height: 500px;
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px 8px;
  font-size: 0.72rem; font-weight: 600; color: var(--text);
}
.phone-notch {
  width: 100px; height: 28px;
  background: #000;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
}
.call-screen {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
}
.call-avatar-ring {
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  animation: pulse-ring 2s ease infinite;
}
.call-avatar-inner {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.call-name { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.25rem; }
.call-status { font-size: 0.82rem; color: var(--accent); margin-bottom: 2rem; }
.call-transcript {
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 1rem;
  margin: 0 0.5rem 1.5rem;
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.6;
  max-height: 180px;
  overflow-y: auto;
}
.call-transcript .t-agent { color: var(--accent); }
.call-transcript .t-user { color: var(--accent4); }
.call-actions {
  display: flex; gap: 1.5rem; margin-top: 1rem;
}
.call-btn {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; cursor: pointer;
}
.call-btn-end { background: #ef4444; }
.call-btn-mute { background: var(--bg-elevated); border: 1px solid var(--border); }

/* Calendar */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 1.5rem;
}
.cal-header {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 0;
  text-transform: uppercase;
}
.cal-day {
  aspect-ratio: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: default;
  transition: all 0.2s;
  position: relative;
}
.cal-day.has-event::after {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  bottom: 4px;
}
.cal-day.today {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}
.cal-day.other { color: var(--text-muted); }
.agenda-list { display: flex; flex-direction: column; gap: 0.75rem; }
.agenda-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: all 0.2s;
}
.agenda-item:hover { border-color: var(--accent); }
.agenda-time {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  min-width: 60px;
}
.agenda-info h5 { font-size: 0.9rem; font-weight: 600; }
.agenda-info p { font-size: 0.78rem; color: var(--text-dim); }
.agenda-type {
  margin-left: auto;
  font-size: 1.2rem;
}

/* Report */
.report-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.report-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.report-header h3 { font-size: 1.1rem; font-weight: 600; }
.report-date { font-family: var(--mono); font-size: 0.8rem; color: var(--text-muted); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
}
.stat-card .sc-val {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 700;
}
.stat-card .sc-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.alert-list { display: flex; flex-direction: column; gap: 0.75rem; }
.alert-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}
.alert-item.info { background: rgba(96,165,250,0.1); border-left: 3px solid var(--accent3); }
.alert-item.warn { background: rgba(251,146,60,0.1); border-left: 3px solid var(--accent4); }
.alert-item.success { background: rgba(108,245,194,0.1); border-left: 3px solid var(--accent); }
.alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* Flow diagram */
.flow-container {
  display: flex; flex-direction: column;
  align-items: center; gap: 0;
  padding: 2rem 0;
}
.flow-node {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 200px;
  transition: all 0.3s;
}
.flow-node:hover { border-color: var(--accent); }
.flow-node.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(108,245,194,0.15);
}
.flow-arrow-down {
  width: 2px; height: 30px;
  background: var(--accent);
  opacity: 0.4;
  position: relative;
}
.flow-arrow-down::after {
  content: '▼';
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  color: var(--accent);
  opacity: 0.6;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* Spec Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.spec-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108,245,194,0.3); }
  50% { box-shadow: 0 0 0 12px rgba(108,245,194,0); }
}
.fade-in { animation: fadeUp 0.6s ease both; }

/* Bar chart */
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin-top: 1rem; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.bar {
  width: 100%; border-radius: 4px 4px 0 0;
  background: var(--accent);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.bar:hover { opacity: 1; }
.bar-label { font-size: 0.65rem; color: var(--text-muted); }

/* Tech stack */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}
.tech-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.85rem; font-weight: 500;
}
.tech-icon { font-size: 1.3rem; }

/* ===== Mobile responsive ===== */
@media (max-width: 768px) {
  /* Show hamburger, hide desktop nav links */
  .hamburger { display: flex; }
  nav .nav-links { display: none; }
  nav { padding: 0 1.25rem; }

  /* Hero */
  .hero { padding: 6rem 1.25rem 3rem; min-height: auto; }
  .hero p { font-size: 1rem; }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2rem;
  }

  /* Sections */
  section { padding: 3rem 1.25rem; }
  .section-desc { font-size: 1rem; }

  /* Architecture flow — vertical on mobile */
  .arch-diagram { padding: 1.5rem; }
  .arch-flow {
    flex-direction: column;
    min-width: 0;
    gap: 0;
  }
  .arch-arrow {
    transform: rotate(90deg);
    padding: 0.25rem 0;
  }
  .arch-node { min-width: 0; width: 100%; }

  /* Step sections */
  .step-section { padding: 3rem 1.25rem; }
  .step-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  .step-header h2 { font-size: 1.4rem; }

  /* Phone frame — fit narrow screens */
  .phone-frame { width: 100%; max-width: 320px; }

  /* Business scenario grid — single column */
  .biz-scenario-grid { grid-template-columns: 1fr !important; }

  /* Tables — horizontal scroll */
  .report-card { padding: 1.25rem; overflow-x: auto; }
  .spec-table { min-width: 480px; }

  /* Report header — allow wrapping */
  .report-header { flex-wrap: wrap; gap: 0.5rem; }

  /* Stat grid */
  .stat-grid { grid-template-columns: 1fr 1fr; }

  /* Flow nodes */
  .flow-node { padding: 0.75rem 1rem; min-width: 0; font-size: 0.85rem; }

  /* Footer */
  footer { padding: 2rem 1.25rem; }
}

@media (max-width: 480px) {
  .hero h1 { letter-spacing: -1px; }
  .hero-stats .stat-val { font-size: 1.5rem; }
  .tech-grid { grid-template-columns: 1fr; }
  .config-grid { grid-template-columns: 1fr; }
  .step-num { font-size: 2rem; }
}
