@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #090d16;
  --bg-surface: #0f1524;
  --bg-surface-raised: #151e32;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(23, 32, 51, 0.85);
  
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-focus: rgba(16, 185, 129, 0.4);
  
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --accent: #10b981;
  --accent-light: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.22);
  --accent-cyan: #38bdf8;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px var(--border);
  --shadow-glow: 0 0 40px -10px var(--accent-glow);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background mesh */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: 
    radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08), transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(56, 189, 248, 0.05), transparent 40%),
    linear-gradient(to bottom, transparent, var(--bg) 80%);
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

/* Typography */
h1, h2, h3, h4, h5 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(26px, 3.2vw, 40px);
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #fff;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Nav */
.header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 22, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #052e16;
  font-weight: 800;
  font-size: 17px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 16px var(--accent-glow);
}

.brand span strong {
  color: var(--accent-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: var(--accent-light);
  background: rgba(16, 185, 129, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Nav toggle button for mobile */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #042411;
  box-shadow: 0 4px 14px var(--accent-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4ade80, var(--accent-light));
  color: #021a0b;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--bg-surface-raised);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 13px 24px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

/* Hero Section */
.hero {
  padding: 68px 0 80px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 24px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.hero-pill:hover {
  border-color: var(--accent-light);
  color: #fff;
}

.hero-pill .dot {
  width: 7px;
  height: 7px;
  background: var(--accent-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-light);
}

.hero h1 {
  max-width: 820px;
  margin: 0 auto 20px;
}

.hero-lede {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-meta {
  color: var(--text-dim);
  font-size: 13px;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* IDE & Phone Mockup */
.mockup-container {
  margin: 54px auto 0;
  max-width: 1040px;
  position: relative;
}

.mockup-glow {
  position: absolute;
  inset: -20px 10%;
  background: radial-gradient(ellipse at 50% 40%, rgba(16, 185, 129, 0.15), transparent 70%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}

.studio-window {
  position: relative;
  z-index: 1;
  background: #0d121f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  text-align: left;
}

.window-titlebar {
  height: 42px;
  background: #0a0e19;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.traffic-lights {
  display: flex;
  gap: 7px;
}

.traffic-lights span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2b3547;
}

.traffic-lights span:nth-child(1) { background: #ef4444; }
.traffic-lights span:nth-child(2) { background: #f59e0b; }
.traffic-lights span:nth-child(3) { background: #10b981; }

.window-title {
  margin-left: 6px;
  color: var(--text-muted);
}

.device-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 10px;
  border-radius: 9999px;
  color: var(--accent-light);
  font-size: 11px;
}

.device-badge .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-light);
}

.window-body {
  display: grid;
  grid-template-columns: 56px 1fr 340px;
  min-height: 440px;
}

/* Mockup Sidebar */
.mockup-sidebar {
  background: #090d16;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 20px;
}

.mockup-sidebar-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  font-size: 16px;
  transition: all 0.15s ease;
}

.mockup-sidebar-icon.active {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Mockup Device Canvas */
.mockup-canvas {
  background: #0f1422;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.canvas-device-frame {
  width: 220px;
  height: 380px;
  background: #04070e;
  border: 5px solid #202b3e;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.device-camera {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #202b3e;
  border-radius: 50%;
  z-index: 5;
}

.device-screen {
  padding: 34px 14px 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #131d2e 0%, #0d1522 100%);
  position: relative;
}

.screen-app-bar {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
}

.screen-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 14px;
}

.screen-input {
  height: 28px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-bottom: 10px;
  padding: 4px 8px;
  font-size: 10px;
  color: var(--text-muted);
}

/* Inspected Element Overlay */
.inspected-target {
  position: relative;
  background: var(--accent);
  color: #042411;
  font-weight: 700;
  font-size: 11px;
  text-align: center;
  padding: 8px;
  border-radius: 5px;
  box-shadow: 0 0 0 2px var(--accent-light), 0 0 16px var(--accent-glow);
  animation: pulseTarget 2s infinite ease-in-out;
}

@keyframes pulseTarget {
  0%, 100% { box-shadow: 0 0 0 2px var(--accent-light), 0 0 14px var(--accent-glow); }
  50% { box-shadow: 0 0 0 3px #fff, 0 0 22px rgba(16, 185, 129, 0.6); }
}

.target-tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #021a0b;
  border: 1px solid var(--accent);
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Mockup Stream & Spec panel */
.mockup-panel {
  background: #0b0f1a;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.panel-header {
  height: 42px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.panel-body {
  padding: 16px;
  flex: 1;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 12px;
}

.stream-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  line-height: 1.4;
}

.stream-step.pass {
  border-left: 3px solid var(--accent);
}

.stream-step.active {
  border-left: 3px solid var(--accent-cyan);
  background: rgba(56, 189, 248, 0.06);
}

.step-icon {
  font-weight: 800;
  font-size: 13px;
}

.stream-step.pass .step-icon { color: var(--accent); }
.stream-step.active .step-icon { color: var(--accent-cyan); }

.step-text {
  flex: 1;
  color: var(--text);
}

.step-time {
  color: var(--text-dim);
  font-size: 10px;
}

/* Trust / Proof ribbon */
.proof-strip {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(15, 21, 36, 0.4);
  margin: 70px 0;
}

.proof-strip .shell {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.proof-strip span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.proof-strip span strong {
  color: var(--text);
}

/* Feature Bento Grid */
.section {
  padding: 70px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.eyebrow {
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-head p {
  color: var(--text-muted);
  font-size: 16px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--card-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent-light);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.bento-card h3 {
  margin-bottom: 10px;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.bento-pill {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--accent-cyan);
}

/* Workflow Steps */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.step-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 14px;
}

.step-card h3 {
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.step-card code {
  display: block;
  margin-top: 14px;
  padding: 8px 12px;
  background: #090d16;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-light);
}

/* CTA Banner */
.cta-banner {
  margin: 60px 0 80px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 21, 36, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  max-width: 600px;
  margin: 0 auto 16px;
}

.cta-banner p {
  max-width: 520px;
  margin: 0 auto 30px;
  color: var(--text-muted);
  font-size: 16px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Documentation / Page Shell */
.page-container {
  padding: 50px 0 90px;
  flex: 1;
}

.page-header {
  margin-bottom: 40px;
}

.page-header h1 {
  margin-bottom: 14px;
}

.page-header .lede {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 720px;
  line-height: 1.6;
}

/* Download Center Card */
.download-hero-card {
  background: var(--bg-surface);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 12px 35px -10px var(--accent-glow);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 40px;
}

.download-hero-left h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.download-hero-left p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 12px;
}

.download-meta-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.meta-tag.highlight {
  color: var(--accent-light);
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

/* Platform Cards Grid */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 36px 0;
}

.platform-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
}

.platform-card.active {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 30px -10px var(--accent-glow);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, var(--bg-surface) 100%);
}

.platform-card.upcoming {
  opacity: 0.8;
  border-style: dashed;
}

.platform-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.platform-card.active:hover {
  border-color: var(--accent-light);
}

.platform-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.platform-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
}

.platform-card.active .platform-icon {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-light);
}

.platform-status-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.platform-status-badge.available {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.platform-status-badge.roadmap {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.platform-card h3 {
  font-size: 20px;
  margin: 0 0 8px;
}

.platform-card .platform-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.platform-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
}

.platform-specs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-specs li span {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
}

.platform-specs li strong {
  color: var(--text);
}

@media (max-width: 900px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }
}

/* Verification Card */
.verify-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 32px;
}

.verify-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

/* SmartScreen Alert Box */
.smartscreen-notice {
  background: rgba(30, 58, 138, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 32px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.smartscreen-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.smartscreen-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.smartscreen-content h3 {
  font-size: 16px;
  margin: 0 0 6px;
  color: #93c5fd;
}

.smartscreen-content p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 12px;
  line-height: 1.6;
}

.smartscreen-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(10, 15, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text);
}

.smartscreen-steps strong {
  color: #60a5fa;
}

/* Guide Step List for Wi-Fi & Device Setup */
.guide-step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}

.guide-step-item {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent-light);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step-details {
  flex: 1;
}

.step-details h4 {
  font-size: 15px;
  margin: 0 0 6px;
  color: var(--text);
}

.step-details p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 8px;
  line-height: 1.6;
}

.step-details ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 13px;
}

.step-details li {
  margin-bottom: 4px;
}

.verify-card p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.code-box {
  background: #05080f;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-cyan);
  overflow-x: auto;
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent-light);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-content {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Contact Cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.contact-card:hover {
  border-color: var(--accent-light);
  background: var(--bg-surface-raised);
  transform: translateY(-2px);
}

.contact-card .card-icon {
  font-size: 24px;
}

.contact-card h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-card h3 span {
  color: var(--accent-light);
  font-size: 14px;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
}

/* Documentation Content */
.doc-shell {
  max-width: 900px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  margin: 0 auto;
}

.doc-shell h2 {
  font-size: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-top: 36px;
}

.doc-shell h3 {
  font-size: 18px;
  margin-top: 24px;
}

.doc-shell ul {
  padding-left: 20px;
  color: var(--text-muted);
}

.doc-shell li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.doc-shell strong {
  color: var(--text);
}

.doc-shell code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-light);
}

.doc-shell pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: #060910;
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 13px;
  max-width: 320px;
  margin-top: 12px;
}

.footer-col h4 {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 13px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 12px;
  font-family: var(--font-mono);
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive Styles */
@media (max-width: 960px) {
  .bento-grid, .workflow-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .window-body {
    grid-template-columns: 1fr;
  }
  
  .mockup-sidebar, .mockup-panel {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .download-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.bento-icon svg, .mockup-sidebar-icon svg, .card-icon svg, .smartscreen-icon svg {
  display: block;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.smartscreen-icon svg {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
}

.bento-icon svg {
  width: 22px;
  height: 22px;
}

.mockup-sidebar-icon svg {
  width: 18px;
  height: 18px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #090d16;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  }
  
  .nav-links.is-open {
    display: flex;
  }
  
  .nav-links a {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .doc-shell {
    padding: 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Documentation Portal Layout */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 16px;
  border-right: 1px solid var(--border);
}

.docs-sidebar::-webkit-scrollbar {
  width: 4px;
}

.docs-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.docs-sidebar-group {
  margin-bottom: 24px;
}

.docs-sidebar-title {
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  margin-bottom: 10px;
  font-weight: 700;
}

.docs-sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-sidebar-links a {
  color: var(--text-muted);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  display: block;
}

.docs-sidebar-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.docs-sidebar-links a.active {
  color: var(--accent-light);
  background: rgba(16, 185, 129, 0.1);
  font-weight: 600;
}

.docs-content {
  max-width: 860px;
  min-width: 0;
}

.docs-section {
  padding-top: 24px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 40px;
}

.docs-section:last-child {
  border-bottom: none;
}

.docs-section h2 {
  font-size: 26px;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.docs-section h3 {
  font-size: 18px;
  margin: 28px 0 10px;
  color: var(--text);
}

.docs-section p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.docs-section ul, .docs-section ol {
  padding-left: 22px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.docs-section li {
  margin-bottom: 6px;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.01);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.docs-table th, .docs-table td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.docs-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.docs-table td code {
  color: var(--accent-light);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.docs-callout {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0;
  display: flex;
  gap: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.docs-callout.tip {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.docs-callout.tip strong {
  color: var(--accent-light);
}

.docs-callout.info {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.docs-callout.info strong {
  color: var(--accent-cyan);
}

.docs-callout.warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.docs-callout.warning strong {
  color: #f59e0b;
}

.docs-mobile-toc {
  display: none;
}

@media (max-width: 960px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .docs-sidebar {
    display: none;
  }
  
  .docs-mobile-toc {
    display: block;
    margin-bottom: 24px;
  }
}
