/* =============================================
   Lynk Phone — Landing Page Styles
   Design Standard for all Lynk Projects
   ============================================= */

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

/* === Theme Variables === */
:root, [data-theme="cyber"] {
  --bg: #0a0a0f;
  --bg-secondary: #0e0e16;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #f0f0f5;
  --text-secondary: #8a8f9e;
  --text-muted: #5a5f6e;
  --text-strong: #fff;
  --accent: #00ff88;
  --accent-hover: #33ff9f;
  --accent-dim: rgba(0,255,136,0.15);
  --accent-glow: rgba(0,255,136,0.25);
  --accent-subtle: rgba(0,255,136,0.08);
  --accent-purple: #8b5cf6;
  --accent-purple-dim: rgba(139,92,246,0.15);
  --gradient-main: linear-gradient(135deg, #00ff88, #8b5cf6);
  --gradient-hero: linear-gradient(135deg, #00ff88 0%, #06b6d4 50%, #8b5cf6 100%);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 0 0 1px var(--border), 0 4px 24px rgba(0,0,0,0.3);
  --shadow-card-hover: 0 0 0 1px var(--border-hover), 0 8px 40px rgba(0,0,0,0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-bg: rgba(10,10,15,0.8);
  --input-bg: rgba(255,255,255,0.04);
  --code-bg: rgba(0,0,0,0.4);
  --phone-bg: linear-gradient(145deg, #1a1a25 0%, #0e0e18 100%);
  --phone-screen-bg: linear-gradient(180deg, #0d0d1a 0%, #0a0a15 100%);
  --select-option-bg: #1a1a25;
  --grid-color: rgba(255,255,255,0.02);
}

[data-theme="clean"] {
  --bg: #fff;
  --bg-secondary: #f5f5f7;
  --bg-card: #fff;
  --bg-card-hover: #f5f5f7;
  --border: #d2d2d7;
  --border-hover: #b0b0b5;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #86868b;
  --text-strong: #000;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-dim: rgba(0,113,227,0.1);
  --accent-glow: rgba(0,113,227,0.15);
  --accent-subtle: rgba(0,113,227,0.06);
  --accent-purple: #5856d6;
  --accent-purple-dim: rgba(88,86,214,0.1);
  --gradient-main: linear-gradient(135deg, #0071e3, #5856d6);
  --gradient-hero: linear-gradient(135deg, #0071e3 0%, #34c759 50%, #5856d6 100%);
  --nav-bg: rgba(255,255,255,0.85);
  --input-bg: rgba(0,0,0,0.03);
  --code-bg: #f5f5f7;
  --phone-bg: linear-gradient(145deg, #e5e5ea 0%, #d1d1d6 100%);
  --phone-screen-bg: linear-gradient(180deg, #f2f2f7 0%, #e5e5ea 100%);
  --select-option-bg: #fff;
  --grid-color: rgba(0,0,0,0.02);
}

[data-theme="aiblue"] {
  --bg: #0a0e27;
  --bg-secondary: #0d1230;
  --bg-card: #111833;
  --bg-card-hover: #182040;
  --border: #1e2a4a;
  --border-hover: #2a3a60;
  --text: #c8d6f0;
  --text-secondary: #7b8db8;
  --text-muted: #5a6d99;
  --text-strong: #e8eeff;
  --accent: #4d7cff;
  --accent-hover: #6c8fff;
  --accent-dim: rgba(77,124,255,0.15);
  --accent-glow: rgba(77,124,255,0.3);
  --accent-subtle: rgba(77,124,255,0.1);
  --accent-purple: #a78bfa;
  --accent-purple-dim: rgba(167,139,250,0.15);
  --gradient-main: linear-gradient(135deg, #4d7cff, #a78bfa);
  --gradient-hero: linear-gradient(135deg, #4d7cff 0%, #06b6d4 50%, #a78bfa 100%);
  --nav-bg: rgba(10,14,39,0.85);
  --input-bg: rgba(255,255,255,0.04);
  --code-bg: rgba(0,0,0,0.3);
  --phone-bg: linear-gradient(145deg, #151c3a 0%, #0d1230 100%);
  --phone-screen-bg: linear-gradient(180deg, #111833 0%, #0d1230 100%);
  --select-option-bg: #182040;
  --grid-color: rgba(77,124,255,0.02);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

/* === Animated Background === */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 255, 136, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(139, 92, 246, 0.06), transparent),
    radial-gradient(ellipse 50% 30% at 10% 80%, rgba(6, 182, 212, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

[data-theme="clean"] .bg-gradient { opacity: 0.3; }

.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
}

/* === Layout === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.01);
}

[data-theme="clean"] .section-alt {
  background: var(--bg-secondary);
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  font-size: 20px;
}

.logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.logo-divider {
  width: 1px;
  height: 16px;
  background: var(--text-muted);
  margin: 0 4px;
}

.logo-sub {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-secondary);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-cta {
  background: var(--accent-dim);
  color: var(--accent) !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 255, 136, 0.2);
  transition: all var(--transition) !important;
}

.nav-cta:hover {
  background: rgba(0, 255, 136, 0.25) !important;
  border-color: rgba(0, 255, 136, 0.4) !important;
}

[data-theme="clean"] .nav-cta {
  border-color: var(--accent) !important;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu a {
  display: block;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
}

.mobile-menu.open {
  display: flex;
}

/* === Hero Section === */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
}

.hero-content {
  flex: 1.2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

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

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); }
}

.hero-title {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-strong);
}

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

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: var(--font-main);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.35);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-large {
  padding: 18px 36px;
  font-size: 16px;
  border-radius: var(--radius-lg);
  width: 100%;
  justify-content: center;
}

.btn-icon {
  font-size: 18px;
}

.btn-arrow {
  transition: transform var(--transition);
}

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

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(10, 10, 15, 0.3);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === Hero Stats === */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-strong);
  display: block;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* === Hero Phone Mockup === */
.hero-visual {
  flex: 0.8;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: var(--phone-bg);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(139, 92, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: var(--bg);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--phone-screen-bg);
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-ui {
  text-align: center;
  padding: 20px;
}

.call-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 16px;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.15);
  animation: avatar-breathe 3s ease-in-out infinite;
}

@keyframes avatar-breathe {
  0%, 100% { box-shadow: 0 0 30px rgba(0, 255, 136, 0.15); }
  50% { box-shadow: 0 0 50px rgba(0, 255, 136, 0.25); }
}

.call-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-strong);
}

.call-status {
  font-size: 14px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.call-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 40px;
}

.call-waveform span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.6;
  animation: waveform 1.2s ease-in-out infinite;
}

.call-waveform span:nth-child(1)  { height: 8px;  animation-delay: 0.0s; }
.call-waveform span:nth-child(2)  { height: 16px; animation-delay: 0.1s; }
.call-waveform span:nth-child(3)  { height: 24px; animation-delay: 0.15s; }
.call-waveform span:nth-child(4)  { height: 32px; animation-delay: 0.2s; }
.call-waveform span:nth-child(5)  { height: 20px; animation-delay: 0.25s; }
.call-waveform span:nth-child(6)  { height: 36px; animation-delay: 0.3s; }
.call-waveform span:nth-child(7)  { height: 28px; animation-delay: 0.35s; }
.call-waveform span:nth-child(8)  { height: 16px; animation-delay: 0.4s; }
.call-waveform span:nth-child(9)  { height: 24px; animation-delay: 0.45s; }
.call-waveform span:nth-child(10) { height: 32px; animation-delay: 0.5s; }
.call-waveform span:nth-child(11) { height: 20px; animation-delay: 0.55s; }
.call-waveform span:nth-child(12) { height: 36px; animation-delay: 0.6s; }
.call-waveform span:nth-child(13) { height: 24px; animation-delay: 0.65s; }
.call-waveform span:nth-child(14) { height: 16px; animation-delay: 0.7s; }
.call-waveform span:nth-child(15) { height: 8px;  animation-delay: 0.75s; }

@keyframes waveform {
  0%, 100% { transform: scaleY(0.4); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 0.8; }
}

/* === Section Headers === */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-purple-dim);
  color: var(--accent-purple);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 100px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text-strong);
}

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

/* === Agent Cards === */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity var(--transition);
}

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

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

.agent-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.agent-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.agent-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.agent-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* === Steps / How It Works === */
.steps {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  position: relative;
}

.step-number {
  font-size: 64px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: -0.04em;
  line-height: 1;
  flex-shrink: 0;
  width: 80px;
  text-align: center;
}

[data-theme="clean"] .step-number {
  color: rgba(0, 0, 0, 0.06);
}

.step-content {
  flex: 1;
  padding-bottom: 48px;
  border-left: 1px solid var(--border);
  padding-left: 32px;
  position: relative;
}

.step:last-child .step-content {
  border-left-color: transparent;
  padding-bottom: 0;
}

.step-icon-wrap {
  position: absolute;
  left: -20px;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.step-icon {
  font-size: 18px;
}

.step-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.step-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === Features Grid === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

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

/* === Demo Form === */
.demo-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.demo-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

[data-theme="clean"] .demo-form {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-full {
  margin-bottom: 24px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-main);
  transition: all var(--transition);
  outline: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group select {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8f9e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

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

.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.demo-result {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.5;
}

.demo-result.success {
  background: var(--accent-dim);
  border: 1px solid rgba(0, 255, 136, 0.2);
  color: var(--accent);
}

.demo-result.error {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.2);
  color: #ff6b6b;
}

/* === Access Section === */
.access-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 64px;
  display: flex;
  align-items: center;
  gap: 64px;
}

[data-theme="clean"] .access-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.access-content {
  flex: 1.5;
}

.access-content .section-title {
  text-align: left;
}

.access-content .section-subtitle {
  text-align: left;
  margin: 0 0 32px 0;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.register-input-group {
  display: flex;
  gap: 12px;
}

.register-input-group input {
  flex: 1;
  padding: 14px 18px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-main);
  outline: none;
  transition: all var(--transition);
}

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

.register-input-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.register-input-group .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.access-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.key-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.key-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.key-preview {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 16px;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-dim);
}

/* === API Docs === */
.api-docs {
  max-width: 780px;
  margin: 0 auto;
}

.api-block {
  margin-bottom: 24px;
}

.api-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.api-method {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  letter-spacing: 0.04em;
}

.method-get {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.api-endpoint {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.api-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

.code-lang {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.code-copy {
  padding: 4px 10px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-main);
  transition: all var(--transition);
}

.code-copy:hover {
  background: var(--accent-subtle);
  color: var(--text);
}

.code-block pre {
  padding: 20px;
  overflow-x: auto;
}

.code-block code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre;
}

.api-params {
  margin-top: 24px;
  margin-bottom: 32px;
}

.api-params h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-strong);
}

.param {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.param:last-child {
  border-bottom: none;
}

.param-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.param-header code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.param-required {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 6px;
  border-radius: 3px;
}

.param-type {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.param p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.param p code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  background: var(--bg-card-hover);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--accent-purple);
}

/* === Footer === */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  transition: color var(--transition);
}

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

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-copy a {
  color: var(--accent);
  text-decoration: none;
}

/* === Scroll Animations === */
.agent-card,
.feature-card,
.step,
.demo-form,
.access-card,
.api-block {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.agent-card:nth-child(1) { animation-delay: 0.0s; }
.agent-card:nth-child(2) { animation-delay: 0.1s; }
.agent-card:nth-child(3) { animation-delay: 0.2s; }
.agent-card:nth-child(4) { animation-delay: 0.3s; }
.agent-card:nth-child(5) { animation-delay: 0.4s; }
.agent-card:nth-child(6) { animation-delay: 0.5s; }

.feature-card:nth-child(1) { animation-delay: 0.0s; }
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.15s; }
.feature-card:nth-child(4) { animation-delay: 0.2s; }
.feature-card:nth-child(5) { animation-delay: 0.25s; }
.feature-card:nth-child(6) { animation-delay: 0.3s; }

.step:nth-child(1) { animation-delay: 0.0s; }
.step:nth-child(2) { animation-delay: 0.15s; }
.step:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Responsive === */
@media (max-width: 1024px) {
  .agents-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .nav-mobile-toggle {
    display: flex;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
    min-height: auto;
    gap: 40px;
  }

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

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .hide-mobile {
    display: none;
  }

  .section {
    padding: 80px 0;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .demo-form {
    padding: 24px;
  }

  .access-card {
    flex-direction: column;
    padding: 32px;
    gap: 32px;
  }

  .access-content .section-title,
  .access-content .section-subtitle {
    text-align: center;
  }

  .register-input-group {
    flex-direction: column;
  }

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

  .step {
    gap: 16px;
  }

  .step-number {
    font-size: 48px;
    width: 60px;
  }
}

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

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }
}
