/* Metriqo — Device Telemetry & Analytics Platform */
/* Premium Dark Theme Design System */

:root {
  /* Background */
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f17;
  --bg-tertiary: #14141f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-border: rgba(255, 255, 255, 0.08);

  /* Text */
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #5a5a72;
  --text-inverse: #0a0a0f;

  /* Accents */
  --accent-blue: #4f7df5;
  --accent-purple: #8b5cf6;
  --accent-cyan: #22d3ee;
  --accent-green: #34d399;
  --accent-warning: #fbbf24;
  --accent-error: #f87171;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4f7df5 0%, #8b5cf6 100%);
  --gradient-secondary: linear-gradient(135deg, #22d3ee 0%, #4f7df5 100%);
  --gradient-text: linear-gradient(135deg, #4f7df5 0%, #22d3ee 50%, #8b5cf6 100%);
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(79, 125, 245, 0.15) 0%, transparent 60%);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-accent: rgba(79, 125, 245, 0.3);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(79, 125, 245, 0.15);
  --shadow-glow-lg: 0 0 60px rgba(79, 125, 245, 0.2);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", Menlo, Consolas, monospace;

  /* Sizing */
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --max-width: 1200px;
  --nav-height: 64px;
  --transition: 200ms ease;
  --transition-slow: 400ms ease;
}

/* ==================== */
/*   RESET & BASE       */
/* ==================== */

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

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

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

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-cyan);
}

img, svg {
  display: block;
  max-width: 100%;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-cyan);
}

::selection {
  background: rgba(79, 125, 245, 0.3);
  color: #fff;
}

/* ==================== */
/*   UTILITIES          */
/* ==================== */

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

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Dot grid background */
.dot-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ==================== */
/*   NAVIGATION         */
/* ==================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--nav-height);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-logo img,
.nav-logo svg {
  height: 32px;
  width: auto;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

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

.nav-links .btn-ghost {
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  padding: 7px 18px;
}

.nav-links .btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links .btn-cta {
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 6px;
  border: none;
  transition: box-shadow var(--transition), transform var(--transition);
}

.nav-links .btn-cta:hover {
  color: #fff;
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
  background: var(--gradient-primary);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 24px;
  z-index: 999;
}

.nav-mobile.active {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

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

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

/* ==================== */
/*   HERO SECTION       */
/* ==================== */

.hero {
  position: relative;
  padding: 160px 0 120px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(79, 125, 245, 0.12) 0%, rgba(139, 92, 246, 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(79, 125, 245, 0.1);
  border: 1px solid rgba(79, 125, 245, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-blue);
  margin-bottom: 32px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

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

/* Hero dashboard preview */
.hero-preview {
  margin-top: 80px;
  position: relative;
}

.hero-preview::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at 50% 80%, rgba(79, 125, 245, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.dashboard-mock {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
}

.dashboard-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

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

.dashboard-dot.r { background: #f87171; }
.dashboard-dot.y { background: #fbbf24; }
.dashboard-dot.g { background: #34d399; }

.dashboard-bar-title {
  margin-left: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.dashboard-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.dash-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 16px;
}

.dash-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.dash-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.dash-stat-change {
  font-size: 0.7rem;
  color: var(--accent-green);
  margin-top: 4px;
}

.dashboard-chart {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 16px;
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.chart-bar {
  flex: 1;
  background: var(--gradient-primary);
  border-radius: 3px 3px 0 0;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.chart-bar:hover {
  opacity: 1;
}

/* ==================== */
/*   BUTTONS            */
/* ==================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--font-sans);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79, 125, 245, 0.25);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 4px 20px rgba(79, 125, 245, 0.4);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.btn-large {
  padding: 14px 36px;
  font-size: 1rem;
}

/* Arrow in button */
.btn .arrow {
  transition: transform var(--transition);
}

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

/* ==================== */
/*   SOCIAL PROOF       */
/* ==================== */

.social-proof {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.social-proof-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 40px;
}

.social-proof-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.4;
}

.social-proof-logos .logo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.social-proof-logos .logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== */
/*   FEATURES           */
/* ==================== */

.features {
  padding: 120px 0;
  position: relative;
}

.features::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.feature-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(79, 125, 245, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

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

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: rgba(79, 125, 245, 0.1);
  color: var(--accent-blue);
  position: relative;
  z-index: 1;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ==================== */
/*   CODE EXAMPLE       */
/* ==================== */

.code-section {
  padding: 120px 0;
  position: relative;
}

.code-section .container {
  position: relative;
  z-index: 1;
}

.code-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.code-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.code-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.code-window {
  background: #0d1117;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

.code-window-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-window-bar .dot.r { background: #f87171; }
.code-window-bar .dot.y { background: #fbbf24; }
.code-window-bar .dot.g { background: #34d399; }

.code-window-bar .filename {
  margin-left: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.code-window pre {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  overflow-x: auto;
  color: #e6edf3;
  margin: 0;
}

.code-window .kw { color: #ff7b72; }
.code-window .str { color: #a5d6ff; }
.code-window .prop { color: #79c0ff; }
.code-window .num { color: #ffa657; }
.code-window .cmt { color: #484f58; }
.code-window .fn { color: #d2a8ff; }
.code-window .punct { color: #8b949e; }

/* ==================== */
/*   STATS              */
/* ==================== */

.stats {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.stats::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item {
  padding: 24px;
}

.stat-value {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==================== */
/*   CTA                */
/* ==================== */

.cta {
  padding: 120px 0;
  text-align: center;
  position: relative;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(79, 125, 245, 0.1) 0%, rgba(139, 92, 246, 0.05) 40%, transparent 70%);
  pointer-events: none;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ==================== */
/*   FOOTER             */
/* ==================== */

.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

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

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 16px;
}

.footer-brand .nav-logo {
  margin-bottom: 0;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

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

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

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p,
.footer-bottom a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--text-secondary);
}

/* ==================== */
/*   LOGIN PAGE         */
/* ==================== */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(79, 125, 245, 0.12) 0%, rgba(139, 92, 246, 0.06) 40%, transparent 70%);
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.login-logo img,
.login-logo svg {
  height: 36px;
  width: auto;
}

.login-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(79, 125, 245, 0.15);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-actions {
  margin-top: 28px;
}

.form-actions .btn {
  width: 100%;
  padding: 12px;
}

.form-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.form-footer a {
  color: var(--accent-blue);
  font-weight: 500;
}

.login-help {
  text-align: right;
  margin-top: -8px;
  margin-bottom: 4px;
}

.login-help a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.login-help a:hover {
  color: var(--accent-blue);
}

/* ==================== */
/*   CONTACT PAGE       */
/* ==================== */

.contact-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.contact-page::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(79, 125, 245, 0.1) 0%, rgba(139, 92, 246, 0.05) 40%, transparent 70%);
  pointer-events: none;
}

.contact-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.contact-card h1 {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.contact-subtitle {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235a5a72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(79, 125, 245, 0.15);
}

.form-group textarea::placeholder {
  color: var(--text-muted);
}

.contact-success {
  text-align: center;
  padding: 24px 0;
}

.contact-success-icon {
  margin-bottom: 24px;
}

.contact-success h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.contact-success p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ==================== */
/*   DOCS PAGE          */
/* ==================== */

.docs-layout {
  display: flex;
  min-height: calc(100vh - var(--nav-height));
  margin-top: var(--nav-height);
}

.docs-sidebar {
  width: 260px;
  flex-shrink: 0;
  padding: 32px 20px;
  border-right: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

.docs-sidebar h3 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
  margin-top: 28px;
  padding: 0 12px;
}

.docs-sidebar h3:first-child {
  margin-top: 0;
}

.docs-sidebar ul {
  list-style: none;
}

.docs-sidebar li {
  margin-bottom: 2px;
}

.docs-sidebar a {
  display: block;
  padding: 7px 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: 6px;
  transition: all var(--transition);
  border-left: 2px solid transparent;
}

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

.docs-sidebar a.active {
  background: rgba(79, 125, 245, 0.08);
  color: var(--accent-blue);
  border-left-color: var(--accent-blue);
}

.docs-content {
  flex: 1;
  padding: 48px 56px;
  max-width: 860px;
}

.docs-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.docs-content > p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

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

.docs-section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.docs-section h2:first-child {
  border-top: none;
  padding-top: 0;
}

.docs-section > p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Code blocks in docs */
.code-block {
  background: #0d1117;
  color: #e6edf3;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  overflow-x: auto;
  margin-bottom: 20px;
  white-space: pre;
  border: 1px solid var(--border-subtle);
}

.code-block .kw { color: #ff7b72; }
.code-block .str { color: #a5d6ff; }
.code-block .num { color: #ffa657; }
.code-block .cmt { color: #484f58; }
.code-block .prop { color: #79c0ff; }

/* Endpoints */
.endpoint {
  margin-bottom: 40px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
}

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

.method {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.method-post {
  background: rgba(79, 125, 245, 0.15);
  color: var(--accent-blue);
}

.method-get {
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent-green);
}

.endpoint-path {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.endpoint-body {
  padding: 24px;
}

.endpoint-body > p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.endpoint-body h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
  margin-top: 28px;
}

.endpoint-body h4:first-child {
  margin-top: 0;
}

/* Param tables */
.param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
  margin-bottom: 16px;
}

.param-table th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-default);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.param-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.param-table code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--accent-cyan);
}

.param-table .required {
  color: var(--accent-error);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-left: 4px;
}

.response-code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.response-code.success {
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent-green);
}

.response-code.error {
  background: rgba(248, 113, 113, 0.15);
  color: var(--accent-error);
}

.response-code.warning {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-warning);
}

.docs-note {
  background: rgba(79, 125, 245, 0.06);
  border: 1px solid rgba(79, 125, 245, 0.15);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.docs-note strong {
  color: var(--accent-blue);
  font-weight: 600;
}

/* ==================== */
/*   404 PAGE           */
/* ==================== */

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.error-page::before {
  content: "";
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(79, 125, 245, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.error-content {
  position: relative;
  z-index: 1;
}

.error-content h1 {
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.error-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================== */
/*   PRICING PAGE       */
/* ==================== */

.pricing-hero {
  padding: 160px 0 60px;
  text-align: center;
  position: relative;
}

.pricing-hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(79, 125, 245, 0.12) 0%, rgba(139, 92, 246, 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.pricing-hero .container {
  position: relative;
  z-index: 1;
}

.pricing-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.pricing-hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.pricing-section {
  padding: 40px 0 120px;
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-slow);
  position: relative;
}

.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card-featured {
  border-color: var(--accent-blue);
  background: rgba(79, 125, 245, 0.04);
  box-shadow: var(--shadow-glow);
}

.pricing-card-featured:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-glow-lg);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.pricing-price {
  margin: 28px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.price-period {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.pricing-features {
  list-style: none;
  margin: 24px 0 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-features li svg {
  flex-shrink: 0;
  color: var(--accent-green);
}

.pricing-btn {
  width: 100%;
  text-align: center;
}

/* FAQ */
.pricing-faq {
  padding: 80px 0 120px;
  border-top: 1px solid var(--border-subtle);
}

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

.faq-item {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
}

.faq-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.faq-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==================== */
/*   BLOG PAGE          */
/* ==================== */

.blog-hero {
  padding: 160px 0 60px;
  text-align: center;
  position: relative;
}

.blog-hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(79, 125, 245, 0.12) 0%, rgba(139, 92, 246, 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.blog-hero .container {
  position: relative;
  z-index: 1;
}

.blog-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.blog-hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.blog-section {
  padding: 40px 0 120px;
}

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

.blog-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.blog-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(79, 125, 245, 0.12);
  color: var(--accent-blue);
}

.blog-card-meta time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.blog-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card h2 a {
  color: var(--text-primary);
  transition: color var(--transition);
}

.blog-card h2 a:hover {
  color: var(--accent-blue);
}

.blog-card > p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.blog-author {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.blog-read-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==================== */
/*   BLOG POST PAGE     */
/* ==================== */

.blog-post {
  padding: 140px 0 80px;
  position: relative;
}

.blog-post::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(79, 125, 245, 0.08) 0%, rgba(139, 92, 246, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.blog-post .container {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 40px;
  transition: color var(--transition);
}

.blog-back:hover {
  color: var(--accent-blue);
}

.blog-post-header {
  margin-bottom: 48px;
}

.blog-post-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.blog-post-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.blog-post-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.blog-post-body p {
  margin-bottom: 24px;
}

.blog-post-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  letter-spacing: -0.01em;
}

.blog-post-body h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.blog-post-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
}

.blog-post-body a {
  color: var(--accent-blue);
  font-weight: 500;
}

.blog-post-body a:hover {
  color: var(--accent-cyan);
}

.blog-post-body ul,
.blog-post-body ol {
  margin: 16px 0 24px;
  padding-left: 24px;
}

.blog-post-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.blog-post-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--accent-cyan);
}

.blog-post-body pre {
  background: #0d1117;
  color: #e6edf3;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  overflow-x: auto;
  margin-bottom: 24px;
  border: 1px solid var(--border-subtle);
}

.blog-post-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

.blog-post-body blockquote {
  border-left: 3px solid var(--accent-blue);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(79, 125, 245, 0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* ==================== */
/*   DASHBOARD LOGIN    */
/* ==================== */

.dashboard-login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

.dashboard-login-page::before {
  content: "";
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(79, 125, 245, 0.15) 0%, rgba(139, 92, 246, 0.08) 35%, transparent 65%);
  pointer-events: none;
}

.dashboard-login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: 44px 36px 36px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  z-index: 1;
}

.dashboard-login-title {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.dashboard-login-back {
  margin-top: 24px;
  text-align: center;
}

.dashboard-login-back a {
  font-size: 0.825rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.dashboard-login-back a:hover {
  color: var(--accent-blue);
}

.dashboard-login-footer {
  position: relative;
  z-index: 1;
  margin-top: 48px;
}

.dashboard-login-footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==================== */
/*   LEGAL PAGES        */
/* ==================== */

.legal-page {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
  min-height: 60vh;
}

.legal-content {
  max-width: 740px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.legal-body section {
  margin-bottom: 40px;
}

.legal-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.legal-body section:first-child h2 {
  border-top: none;
  padding-top: 0;
}

.legal-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 20px;
  margin-bottom: 10px;
}

.legal-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-body ul {
  margin: 12px 0 16px 0;
  padding-left: 20px;
}

.legal-body li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 6px;
}

.legal-body a {
  color: var(--accent-blue);
}

.legal-body a:hover {
  color: var(--accent-cyan);
}

/* ==================== */
/*   GRADIENT ANIMATION */
/* ==================== */

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

/* ==================== */
/*   RESPONSIVE         */
/* ==================== */

@media (max-width: 1024px) {
  .code-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .features {
    padding: 80px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stat-value {
    font-size: 2.5rem;
  }

  .cta h2 {
    font-size: 2rem;
  }

  .social-proof-logos {
    gap: 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .dashboard-body {
    grid-template-columns: 1fr;
  }

  .dashboard-body .dash-stat:nth-child(2),
  .dashboard-body .dash-stat:nth-child(3) {
    display: none;
  }

  /* Docs responsive */
  .docs-layout {
    flex-direction: column;
  }

  .docs-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px 24px;
  }

  .docs-content {
    padding: 24px;
  }

  .docs-content h1 {
    font-size: 1.5rem;
  }

  .endpoint-header {
    flex-wrap: wrap;
  }

  .login-card {
    padding: 32px 24px;
  }

  .contact-card {
    padding: 32px 24px;
  }

  .contact-page {
    padding: 100px 24px 60px;
  }

  .code-section {
    padding: 80px 0;
  }

  .pricing-hero,
  .blog-hero {
    padding: 120px 0 40px;
  }

  .pricing-hero h1,
  .blog-hero h1 {
    font-size: 2rem;
  }

  .blog-post {
    padding: 100px 0 60px;
  }

  .blog-post-header h1 {
    font-size: 1.6rem;
  }

  .blog-post-body h2 {
    font-size: 1.2rem;
  }

  .dashboard-login-card {
    padding: 32px 24px 28px;
  }

  .legal-content h1 {
    font-size: 1.8rem;
  }

  .legal-page {
    padding-top: calc(var(--nav-height) + 32px);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .feature-card {
    padding: 24px;
  }

  .code-block {
    font-size: 0.72rem;
    padding: 14px 16px;
  }

  .cta h2 {
    font-size: 1.5rem;
  }

  .stat-value {
    font-size: 2rem;
  }
}
