/* ==========================================================================
   FamilyPlates Design System & Landing Page Styles
   Warm kitchen craft meets modern software engineering
   ========================================================================== */

/* --- CSS Variables & Color Tokens --- */
:root {
  --canvas: #FAF8F5;
  --canvas-subtle: #F3EFEA;
  --surface: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --surface-overlay: rgba(250, 248, 245, 0.88);
  
  --ink-primary: #19241D;
  --ink-secondary: #526257;
  --ink-tertiary: #849389;
  
  --border-subtle: #EAE4DB;
  --border-strong: #D5CBC0;
  
  --primary: #E85D24;
  --primary-hover: #CD4A14;
  --primary-subtle: #FDF2E9;
  --primary-glow: rgba(232, 93, 36, 0.18);
  
  --accent-green: #3A6B4E;
  --accent-green-hover: #2B523B;
  --accent-green-subtle: #EAF3ED;
  
  --accent-blue: #2B6888;
  --accent-blue-subtle: #EBF3F8;
  
  --accent-purple: #684882;
  --accent-purple-subtle: #F3ECF8;
  
  --accent-teal: #277A75;
  --accent-teal-subtle: #E7F5F4;
  
  --accent-amber: #A46914;
  --accent-amber-subtle: #FAF2E4;
  
  --dark-panel: #11281C;
  --dark-panel-surface: #193626;
  --dark-panel-border: rgba(255, 255, 255, 0.14);
  
  --shadow-sm: 0 2px 8px rgba(35, 28, 20, 0.04);
  --shadow-md: 0 8px 24px rgba(35, 28, 20, 0.08);
  --shadow-lg: 0 16px 44px rgba(35, 28, 20, 0.1), 0 4px 12px rgba(35, 28, 20, 0.04);
  --shadow-xl: 0 24px 64px rgba(35, 28, 20, 0.14), 0 8px 20px rgba(35, 28, 20, 0.06);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  
  --shell: min(1200px, calc(100% - 48px));
  --header-height: 76px;
}

/* --- Dark Theme Overrides --- */
[data-theme="dark"] {
  --canvas: #0E141B;
  --canvas-subtle: #141C25;
  --surface: #17222E;
  --surface-elevated: #1F2D3C;
  --surface-overlay: rgba(14, 20, 27, 0.88);
  
  --ink-primary: #F3F6F8;
  --ink-secondary: #A0B2C3;
  --ink-tertiary: #6C8095;
  
  --border-subtle: #243447;
  --border-strong: #344860;
  
  --primary: #FF6E38;
  --primary-hover: #FF8554;
  --primary-subtle: rgba(255, 110, 56, 0.15);
  --primary-glow: rgba(255, 110, 56, 0.3);
  
  --accent-green: #56B87D;
  --accent-green-hover: #6EC691;
  --accent-green-subtle: rgba(86, 184, 125, 0.16);
  
  --accent-blue: #4EA8DE;
  --accent-blue-subtle: rgba(78, 168, 222, 0.16);
  
  --accent-purple: #BA8EF7;
  --accent-purple-subtle: rgba(186, 142, 247, 0.16);
  
  --accent-teal: #4ED8C8;
  --accent-teal-subtle: rgba(78, 216, 200, 0.16);
  
  --accent-amber: #FBBF24;
  --accent-amber-subtle: rgba(251, 191, 36, 0.16);
  
  --dark-panel: #090E14;
  --dark-panel-surface: #101923;
  --dark-panel-border: rgba(255, 255, 255, 0.1);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 16px 44px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 28px 68px rgba(0, 0, 0, 0.58);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--canvas);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 14px;
  left: 14px;
  padding: 10px 18px;
  background: var(--ink-primary);
  color: var(--canvas);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* --- Typography Utilities --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--ink-primary);
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 5.8vw, 5.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.kicker {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--primary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kicker-light {
  color: #F8B583;
}

.section-header {
  margin-bottom: 56px;
}

.center-header {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
}

.section-subtext {
  margin: 18px 0 0;
  color: var(--ink-secondary);
  font-size: 1.12rem;
  line-height: 1.6;
}

/* --- Buttons & Interactive Elements --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 1rem;
  border-radius: 10px;
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.86rem;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 12px 30px var(--primary-glow);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--ink-primary);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-subtle);
}

.btn-dark {
  background-color: var(--ink-primary);
  color: var(--canvas);
}

.btn-dark:hover {
  opacity: 0.92;
  box-shadow: var(--shadow-md);
}

.btn-light {
  background-color: #FFFFFF;
  color: var(--dark-panel);
  font-weight: 800;
}

.btn-light:hover {
  background-color: #FDF4EB;
}

.btn-outline-light {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* --- Sticky Header & Navbar --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background-color: var(--surface-overlay);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(232, 93, 36, 0.2);
}

.brand-name {
  font-family: var(--font-sans);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
}

.brand-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background-color: var(--accent-green-subtle);
  color: var(--accent-green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  color: var(--ink-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

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

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.theme-icon {
  grid-area: 1 / 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.theme-icon-sun {
  display: none;
}

[data-theme="dark"] .theme-icon-moon {
  display: none;
}

[data-theme="dark"] .theme-icon-sun {
  display: block;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 90px;
  background-color: var(--canvas);
}

.hero-ambient-glow {
  position: absolute;
  top: -150px;
  right: -50px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(232, 93, 36, 0.12) 0%, rgba(244, 187, 92, 0.06) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

[data-theme="dark"] .hero-ambient-glow {
  background: radial-gradient(circle, rgba(255, 110, 56, 0.16) 0%, rgba(244, 187, 92, 0.04) 50%, transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: 56px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 0 0 rgba(232, 93, 36, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 93, 36, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(232, 93, 36, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(232, 93, 36, 0);
  }
}

.hero-highlight {
  position: relative;
  color: var(--primary);
  font-style: italic;
}

.hero-highlight::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 4px;
  height: 8px;
  background-color: var(--primary);
  opacity: 0.22;
  border-radius: 4px;
  z-index: -1;
}

.hero-lede {
  margin: 26px 0 0;
  color: var(--ink-secondary);
  font-size: 1.18rem;
  line-height: 1.68;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.hero-trust-list {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 14px 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  max-width: 560px;
}

.hero-trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-secondary);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-trust-list svg {
  color: var(--accent-green);
  flex-shrink: 0;
}

/* --- Clean Studio Image Frame (No Movement, Generous Spacing) --- */
.hero-stage {
  position: relative;
}

.app-preview-card {
  position: relative;
  display: block;
  padding: 0;
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: border-color 0.25s ease, background-color 0.25s ease;
  overflow: hidden;
}

.hero-preview-card {
  border-color: var(--border-strong);
}

.app-preview-canvas {
  width: 100%;
  border-radius: inherit;
  overflow: hidden;
  display: block;
}

.app-preview-canvas img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}

/* --- Proof & Value Proposition Ticker --- */
.stats-strip {
  padding: 36px 0;
  background-color: var(--canvas-subtle);
  border-block: 1px solid var(--border-subtle);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
}

.stat-item + .stat-item {
  border-left: 1px solid var(--border-subtle);
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.15;
}

.stat-label {
  margin-top: 6px;
  color: var(--ink-secondary);
  font-size: 0.84rem;
  font-weight: 600;
}

/* --- Section Global Structure --- */
.section {
  padding: 108px 0;
}

/* --- Steps Section (How It Works) --- */
.steps-section {
  background-color: var(--canvas);
}

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

.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 32px 32px;
  background-color: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.step-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.step-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-tertiary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
}

.step-icon-orange { background-color: var(--primary-subtle); color: var(--primary); }
.step-icon-green  { background-color: var(--accent-green-subtle); color: var(--accent-green); }
.step-icon-blue   { background-color: var(--accent-blue-subtle); color: var(--accent-blue); }

.step-card h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.step-card p {
  margin: 0 0 24px;
  color: var(--ink-secondary);
  font-size: 0.94rem;
  line-height: 1.62;
  flex-grow: 1;
}

.step-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.mini-tag {
  padding: 4px 10px;
  background-color: var(--canvas-subtle);
  border-radius: 6px;
  color: var(--ink-secondary);
  font-size: 0.75rem;
  font-weight: 700;
}

/* --- Interactive Showcase / Product Tour --- */
.showcase-section {
  background-color: var(--canvas-subtle);
  border-block: 1px solid var(--border-subtle);
}

.showcase-tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 42px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.showcase-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.showcase-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.showcase-tab:hover {
  color: var(--ink-primary);
  background-color: var(--canvas-subtle);
}

.showcase-tab.active {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.showcase-container {
  position: relative;
}

.showcase-panel {
  display: none;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: 48px;
  padding: 40px;
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.panel-copy {
  padding-right: 12px;
}

.panel-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-copy h3 {
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  margin-bottom: 16px;
}

.panel-copy p {
  color: var(--ink-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 28px;
}

.panel-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.panel-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-primary);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.5;
}

.panel-feature-list svg {
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 2px;
}


/* --- Feature Bento Grid --- */
.features-grid-section {
  background-color: var(--canvas);
}

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

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 30px;
  background-color: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.bento-card-highlight {
  border-color: rgba(43, 104, 136, 0.35);
  background: linear-gradient(180deg, var(--surface) 0%, var(--accent-blue-subtle) 100%);
}

.bento-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
}

.bento-icon-blue   { background-color: var(--accent-blue-subtle); color: var(--accent-blue); }
.bento-icon-orange { background-color: var(--primary-subtle); color: var(--primary); }
.bento-icon-green  { background-color: var(--accent-green-subtle); color: var(--accent-green); }
.bento-icon-purple { background-color: var(--accent-purple-subtle); color: var(--accent-purple); }
.bento-icon-teal   { background-color: var(--accent-teal-subtle); color: var(--accent-teal); }
.bento-icon-amber  { background-color: var(--accent-amber-subtle); color: var(--accent-amber); }

.bento-badge {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--ink-tertiary);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bento-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.bento-card p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.92rem;
  line-height: 1.62;
}

/* --- Quick Start & Self-Hosting (Dark Section) --- */
.quickstart-section {
  background-color: var(--dark-panel);
  color: #FFFFFF;
  overflow: hidden;
}

.quickstart-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: 64px;
}

.quickstart-copy h2 {
  color: #FFFFFF;
  margin-bottom: 20px;
}

.quickstart-subtext {
  color: #C8D8CE;
  font-size: 1.1rem;
  line-height: 1.68;
  margin: 0 0 32px;
}

.quickstart-checklist {
  margin: 0 0 38px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.quickstart-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #E2ECE5;
  font-size: 0.94rem;
  font-weight: 600;
}

.quickstart-checklist svg {
  color: #F8B583;
  flex-shrink: 0;
}

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

/* Terminal Card */
.terminal-card {
  position: relative;
  background-color: var(--dark-panel-surface);
  border: 1px solid var(--dark-panel-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background-color: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--dark-panel-border);
}

.terminal-tabs {
  display: flex;
  gap: 6px;
}

.terminal-tab {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #8EA898;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.terminal-tab:hover {
  color: #FFFFFF;
}

.terminal-tab.active {
  background-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.18);
}

.copy-btn-terminal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: #E2ECE5;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-btn-terminal:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.copy-btn .check-icon {
  display: none;
  color: #98D4A8;
}

.copy-btn.copied .copy-icon {
  display: none;
}

.copy-btn.copied .check-icon {
  display: block;
}

.terminal-snippet {
  display: none;
  padding: 24px;
  overflow-x: auto;
}

.terminal-snippet.active {
  display: block;
}

.terminal-snippet pre {
  margin: 0;
  color: #DDEBE1;
  font-size: 0.84rem;
  line-height: 1.7;
}

/* Syntax Highlighting Tokens */
.token-comment  { color: #6D8E78; font-style: italic; }
.token-key      { color: #F8B583; font-weight: 600; }
.token-property { color: #A0CBE8; }
.token-string   { color: #98D4A8; }
.token-var      { color: #E5C07B; }

.terminal-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background-color: rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--dark-panel-border);
  font-size: 0.82rem;
  color: #C8D8CE;
}

.terminal-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  flex-shrink: 0;
}

.terminal-footer code {
  color: #F8B583;
}

/* --- Closing Call to Action Section --- */
.closing-section {
  background-color: var(--canvas);
}

.closing-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 72px 36px;
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.closing-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(232, 93, 36, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.closing-card h2 {
  max-width: 720px;
  margin: 0 auto 18px;
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
}

.closing-subtext {
  max-width: 540px;
  margin: 0 auto 36px;
  color: var(--ink-secondary);
  font-size: 1.15rem;
}

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

/* --- Site Footer --- */
.site-footer {
  background-color: var(--canvas-subtle);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 54px;
}

.footer-brand-col .brand {
  margin-bottom: 16px;
}

.footer-tagline {
  margin: 0 0 16px;
  color: var(--ink-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-license {
  display: inline-block;
  color: var(--ink-tertiary);
  font-size: 0.78rem;
}

.footer-links-col h4 {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-primary);
  margin-bottom: 18px;
}

.footer-links-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links-col a {
  color: var(--ink-secondary);
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-links-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  color: var(--ink-tertiary);
  font-size: 0.82rem;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

.footer-dot {
  color: var(--border-strong);
}

/* ==========================================================================
   Responsive Breakpoints & Adaptations
   ========================================================================== */

/* --- Tablet / Medium Screens (<= 992px) --- */
@media (max-width: 992px) {
  .hero-grid,
  .quickstart-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .hero-content {
    max-width: 680px;
  }
  
  .hero-stage {
    max-width: 680px;
    margin-inline: auto;
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  
  .stat-item:nth-child(4),
  .stat-item:nth-child(5) {
    grid-column: span 1;
  }
  
  .steps-grid,
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .panel-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 32px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  
  .footer-brand-col {
    grid-column: span 2;
  }
}

/* --- Mobile / Small Screens (<= 768px) --- */
@media (max-width: 768px) {
  :root {
    --shell: min(100% - 32px, 1200px);
    --header-height: 68px;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero {
    padding: 48px 0 64px;
  }
  
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-trust-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stat-item + .stat-item {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
  }
  
  .section {
    padding: 72px 0;
  }
  
  .showcase-tabs {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: var(--radius-lg);
  }
  
  .panel-grid {
    padding: 20px;
  }
  
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-brand-col {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

/* --- Reduced Motion Preferences --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
