/* ==========================================================================
   KARMA 365 — UI/UX Pro Max Design System
   Style: Swiss Minimalist & Developer Dark Mode
   Accent: Karma Red (#d7263d) + Deep Obsidian (#090a0f)
   ========================================================================== */

:root {
  --bg-primary: #090a0f;
  --bg-surface: #11131c;
  --bg-card: #151824;
  --bg-card-hover: #1b1f2e;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-active: rgba(215, 38, 61, 0.4);

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-red: #d7263d;
  --accent-red-hover: #ef233c;
  --accent-red-glow: rgba(215, 38, 61, 0.25);
  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --max-w-container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
  height: auto;
}

pre, code {
  max-width: 100%;
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 3px;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.container {
  width: 100%;
  max-width: var(--max-w-container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
}

.max-w-760 {
  max-width: 760px;
}

.text-center {
  text-align: center;
}

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

/* Grid Utilities */
.grid {
  display: grid;
  gap: 28px;
}

.grid > * {
  min-width: 0;
  max-width: 100%;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  text-decoration: none;
  min-height: 42px;
}

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

.btn-lg {
  padding: 12px 22px;
  font-size: 0.98rem;
  min-height: 48px;
}

.btn-primary {
  background: linear-gradient(135deg, #d7263d 0%, #ba182b 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px var(--accent-red-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ef233c 0%, #d7263d 100%);
  box-shadow: 0 6px 28px rgba(215, 38, 61, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: #ffffff;
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-subtext {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
  line-height: 1.1;
}

.btn-maintext {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 10, 15, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast);
  width: 100%;
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(215, 38, 61, 0.3);
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-name span {
  color: var(--accent-red);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #ffffff;
}

@media (max-width: 540px) {
  .nav-container {
    height: 62px;
  }
  .brand-logo {
    width: 32px;
    height: 32px;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .nav-actions .btn-sm span {
    display: none;
  }
  .nav-actions .btn-sm {
    padding: 8px 10px;
    border-radius: 8px;
  }
}

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  position: relative;
  transition: background var(--transition-fast);
  margin: 0 auto;
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ffffff;
  transition: transform var(--transition-fast), top var(--transition-fast), bottom var(--transition-fast);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

/* Hero Section */
.hero-section {
  padding: 70px 0 50px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 640px) {
  .hero-section {
    padding: 44px 0 36px;
  }
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 100vw);
  height: 400px;
  background: radial-gradient(circle, rgba(215, 38, 61, 0.15) 0%, rgba(99, 102, 241, 0.08) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  font-size: clamp(0.72rem, 2.5vw, 0.85rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 100%;
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
  line-height: 1.4;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(1.75rem, 5.5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 20px;
  max-width: 900px;
  line-height: 1.18;
  letter-spacing: -0.03em;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-subtitle {
  font-size: clamp(0.92rem, 2.2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 740px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  width: 100%;
}

@media (max-width: 640px) {
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    gap: 12px;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Hero Showcase Graphic */
.hero-showcase {
  width: 100%;
  max-width: 960px;
  margin-top: 10px;
  min-width: 0;
}

.showcase-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  text-align: left;
  max-width: 100%;
}

.window-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  gap: 10px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .window-topbar {
    padding: 10px 14px;
  }
  .window-title {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
  }
  .window-badge {
    display: none;
  }
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.window-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.window-badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.showcase-content {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 280px;
}

.showcase-sidebar {
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid var(--border-subtle);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 768px) {
  .showcase-content {
    grid-template-columns: 1fr;
  }

  .showcase-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: row;
    overflow-x: auto;
    padding: 10px 14px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .showcase-sidebar::-webkit-scrollbar {
    display: none;
  }

  .sidebar-category {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 0.82rem;
  }
}

.sidebar-category {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-category.active, .sidebar-category:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.cat-text {
  flex-grow: 1;
}

.cat-count {
  font-size: 0.75rem;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}

.showcase-cards {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

@media (max-width: 640px) {
  .showcase-cards {
    padding: 14px;
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.type-note { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.type-code { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.type-media { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.showcase-card h4 {
  font-size: 0.95rem;
  margin: 0;
}

.showcase-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.showcase-card pre {
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #38bdf8;
  overflow-x: auto;
}

.card-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* Sections Global */
.section {
  padding: 90px 0;
  border-top: 1px solid var(--border-subtle);
}

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

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 14px;
}

.section-subtitle {
  max-width: 650px;
  margin: 0 auto;
}

/* Problem vs Solution */
.comparison-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border-medium);
  min-width: 0;
}

@media (max-width: 640px) {
  .comparison-card {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }
  .comparison-title {
    font-size: 1.2rem;
  }
}

.card-problem {
  border-top: 4px solid #ef4444;
}

.card-solution {
  border-top: 4px solid #10b981;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, var(--bg-surface) 100%);
}

.card-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.problem-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.solution-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

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

.comparison-title {
  font-size: 1.35rem;
  margin-bottom: 20px;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  position: relative;
  padding-left: 20px;
}

.comparison-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.card-solution .comparison-list li::before {
  color: #10b981;
}

.card-problem .comparison-list li::before {
  color: #ef4444;
}

/* Pillars Section */
.pillar-block {
  margin-bottom: 70px;
  padding: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.pillar-block:last-child {
  margin-bottom: 0;
}

.pillar-grid {
  align-items: center;
  gap: 40px;
}

@media (max-width: 900px) {
  .pillar-block {
    margin-bottom: 36px;
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }
  .pillar-grid {
    gap: 28px;
  }
  .pillar-title {
    font-size: 1.45rem;
  }
  .reverse-mobile {
    display: flex;
    flex-direction: column-reverse;
  }
}

.pillar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-red);
  margin-bottom: 12px;
}

.pillar-badge svg {
  width: 16px;
  height: 16px;
}

.pillar-title {
  font-size: 1.85rem;
  margin-bottom: 14px;
}

.pillar-description {
  margin-bottom: 24px;
}

.feature-checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(215, 38, 61, 0.15);
  color: var(--accent-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-item strong {
  color: #ffffff;
}

/* Phone Mockup */
.mockup-phone {
  max-width: 290px;
  width: 100%;
  margin: 0 auto;
  background: #000000;
  border: 3px solid #2d303e;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.phone-screen {
  background: var(--bg-primary);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}

.phone-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.phone-badge {
  font-size: 0.65rem;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

.phone-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-topic-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
}

.topic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-cyan { background: var(--accent-cyan); }
.dot-purple { background: var(--accent-indigo); }
.dot-emerald { background: var(--accent-emerald); }

.topic-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.topic-info strong {
  font-size: 0.8rem;
  color: #ffffff;
}

.topic-info span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.topic-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.phone-lock-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px dashed rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  font-size: 0.75rem;
  color: #f87171;
}

/* Browser Mockup for Extension */
.mockup-browser {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  max-width: 100%;
  min-width: 0;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.browser-url {
  margin-left: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 50px);
}

.extension-ui {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 500px) {
  .extension-ui {
    padding: 14px;
    gap: 10px;
  }
}

.ext-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
}

.ext-status {
  margin-left: auto;
  font-size: 0.72rem;
  color: #34d399;
}

.ext-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 4px 10px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
}

.chip.active {
  background: var(--accent-red);
  color: #ffffff;
  font-weight: 600;
}

.ext-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px;
}

.ext-box label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ext-select {
  font-size: 0.85rem;
  color: #ffffff;
}

.ext-btn {
  background: linear-gradient(135deg, #d7263d, #ba182b);
  border: none;
  padding: 10px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Terminal Box & MCP Mockup */
.terminal-box {
  background: #0d0f17;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 16px;
  max-width: 100%;
  min-width: 0;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  gap: 8px;
}

.terminal-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.terminal-code {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 2.5vw, 0.95rem);
  color: #38bdf8;
  margin: 0;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.mockup-terminal {
  background: #0b0d14;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.terminal-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.terminal-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.terminal-title {
  margin-left: 10px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-json {
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 0;
  color: #e2e8f0;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .terminal-json {
    padding: 12px 14px;
    font-size: 0.72rem;
  }
}

.terminal-json .k { color: #f43f5e; }
.terminal-json .s { color: #38bdf8; }

/* Trust Card / Google Compliance */
.trust-section {
  padding-top: 40px;
}

.trust-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: rgba(215, 38, 61, 0.05);
  border: 1px solid rgba(215, 38, 61, 0.25);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-width: 0;
}

@media (max-width: 768px) {
  .trust-card {
    flex-direction: column;
    padding: 20px 16px;
    gap: 16px;
  }
  .trust-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .trust-divider {
    display: none;
  }
}

.trust-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(215, 38, 61, 0.15);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.trust-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.trust-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.trust-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-link {
  color: var(--accent-red);
  font-weight: 600;
  font-size: 0.9rem;
}

.trust-link:hover {
  text-decoration: underline;
}

.trust-divider {
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.faq-item[open] {
  border-color: var(--border-medium);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}

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

.faq-toggle {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent-red);
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Footer */
.site-footer {
  background: #050608;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 50px;
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 320px;
  margin-bottom: 12px;
}

.footer-credit {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

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

@media (max-width: 600px) {
  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: #ffffff;
}

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

/* Mobile Nav Styles */
@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #11131c;
    border-bottom: 1px solid var(--border-medium);
    padding: 20px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    z-index: 99;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }

  .nav-menu.is-active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: block;
    width: 100%;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
  }

  .mobile-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
  }

  .mobile-toggle[aria-expanded="true"] .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
  }
}

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

