/* =========================================
   DocuForge AI — Premium Dark SaaS Theme
   Ailens Profile Technologies
   ========================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base:       #0a0812;
  --bg-surface:    #0f0c1b;
  --bg-card:       #151125;
  --bg-card-hover: #1b1630;
  --bg-elevated:   #211b3a;
  --border:        rgba(255,107,0,0.15);
  --border-subtle: rgba(255,255,255,0.06);
  --border-light:  rgba(255,255,255,0.08);

  --accent:        #ff6b00;
  --accent-bright: #ff8838;
  --accent-cyan:   #00e5ff;
  --accent-violet: #8a2be2;
  --accent-emerald:#34D399;

  --grad-primary:  linear-gradient(135deg, #ff6b00 0%, #00e5ff 100%);
  --grad-hero:     linear-gradient(135deg, #ff6b00 0%, #8a2be2 50%, #00e5ff 100%);
  --grad-glow:     radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255,107,0,0.25) 0%, transparent 70%);
  --grad-subtle:   linear-gradient(180deg, rgba(255,107,0,0.04) 0%, transparent 100%);

  --text-primary:  #EEEEF4;
  --text-secondary:#9A9AB0;
  --text-muted:    #55556A;

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-2xl:  36px;

  --shadow-glow: 0 0 60px rgba(255,107,0,0.15), 0 0 120px rgba(255,107,0,0.05);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.5);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.7);
  --shadow-btn:  0 0 24px rgba(255,107,0,0.35);

  --nav-h: 68px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(255,107,0,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* === SELECTION === */
::selection { background: rgba(255,107,0,0.35); color: var(--text-primary); }

/* === UTILITIES === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.text-gradient {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255,107,0,0.06);
  color: var(--accent-bright);
}
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: block; animation: pulse-dot 2s infinite; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  padding: 12px 24px; border-radius: var(--radius-md);
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); white-space: nowrap;
  position: relative; overflow: hidden;
}
/* Premium Shimmer Sweep Effect */
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s;
  pointer-events: none;
  z-index: 1;
}
.btn:hover::before {
  left: 150%;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: background 0.2s;
  pointer-events: none;
}
.btn:hover::after { background: rgba(255,255,255,0.04); }

/* Smooth Icon Micro-transitions */
.btn svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 2;
}
.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--grad-primary);
  background-size: 200% auto;
  background-position: left center;
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background-position: right center;
  box-shadow: 0 0 35px rgba(255,107,0,0.45), 0 0 70px rgba(138,43,226,0.25);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover {
  border-color: rgba(255,107,0,0.35);
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
  transform: translateY(-2px);
}
.btn-ghost:hover svg {
  transform: scale(1.15);
}

.btn-lg { font-size: 15px; padding: 15px 30px; border-radius: 14px; }
.btn-sm { font-size: 13px; padding: 8px 16px; }

/* === NAV === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}
.navbar.scrolled {
  background: rgba(3,3,3,0.8);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex; flex-direction: column; line-height: 1.1;
  text-decoration: none;
}
.nav-logo-company {
  font-size: 10px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
}
.nav-logo-product {
  font-size: 18px; font-weight: 800; letter-spacing: -0.03em;
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; padding: 6px 12px; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; border: none; background: none;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-secondary); border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(3,3,3,0.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-subtle);
  z-index: 999; padding: 20px 24px 28px;
  transform: translateY(-10px); opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; flex-direction: column; transform: translateY(0); opacity: 1; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 2px; margin-bottom: 24px; }
.mobile-menu ul a {
  display: block; padding: 14px 16px; font-size: 16px; font-weight: 500;
  color: var(--text-secondary); text-decoration: none; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mobile-menu ul a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.mobile-menu-cta { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.hero-bg-glow {
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(ellipse, rgba(255,107,0,0.15) 0%, rgba(138,43,226,0.06) 40%, transparent 70%);
  filter: blur(2px);
  animation: hero-glow-pulse 8s ease-in-out infinite alternate;
}
@keyframes hero-glow-pulse {
  0% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,107,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 0%, transparent 80%);
}
#hero-particles {
  position: absolute; inset: 0; z-index: 0;
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  padding: 80px 0 100px;
}
.hero-content { max-width: 580px; }
.hero-badge { margin-bottom: 24px; }
.hero-title {
  font-size: clamp(38px, 5vw, 64px); font-weight: 900;
  letter-spacing: -0.04em; line-height: 1.05;
  margin-bottom: 22px;
}
.hero-desc {
  font-size: 17px; color: var(--text-secondary); line-height: 1.75;
  margin-bottom: 40px; max-width: 480px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 60px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-value {
  font-size: 30px; font-weight: 800; letter-spacing: -0.04em;
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

/* Hero Visual — Code-to-Doc animation */
.hero-visual {
  position: relative;
}
.code-doc-morph {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
}
.code-doc-tabs {
  display: flex; align-items: center; gap: 0;
  padding: 12px 16px 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}
.cdtab {
  padding: 8px 16px; font-size: 12px; font-weight: 600;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: default; color: var(--text-muted); position: relative;
  transition: var(--transition);
}
.cdtab.active { background: var(--bg-card); color: var(--accent-bright); }
.cdtab.active::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-primary);
}
.traffic-lights { display: flex; gap: 6px; margin-right: 12px; }
.tl { width: 10px; height: 10px; border-radius: 50%; }
.tl-r { background: #FF5F57; }
.tl-y { background: #FEBC2E; }
.tl-g { background: #28C840; }

.code-panel {
  padding: 20px 24px;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.8;
  display: none;
}
.code-panel.active { display: block; }
.code-panel .kw { color: #ff8838; }
.code-panel .fn { color: #00e5ff; }
.code-panel .str { color: #8a2be2; }
.code-panel .cm { color: #5A5A75; }
.code-panel .num { color: #F59E0B; }
.code-panel .var { color: #F0F0FF; }

.doc-panel {
  padding: 20px 24px; display: none;
}
.doc-panel.active { display: block; }
.doc-h1 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.doc-h2 { font-size: 13px; font-weight: 600; color: var(--accent-bright); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.doc-p { font-size: 12px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 10px; }
.doc-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.doc-badge.get { background: rgba(34,211,238,0.15); color: var(--accent-cyan); }
.doc-badge.post { background: rgba(255,107,0,0.15); color: var(--accent-bright); }
.doc-param { font-family: var(--font-mono); font-size: 11px; background: rgba(255,255,255,0.05); padding: 2px 6px; border-radius: 4px; color: #8a2be2; }

.morph-btn-row {
  display: flex; justify-content: center; gap: 8px;
  padding: 12px 24px 18px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.morph-btn {
  font-size: 11px; font-weight: 600; padding: 6px 14px; border-radius: 100px;
  border: 1px solid var(--border-subtle); background: transparent;
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
  font-family: var(--font-body);
}
.morph-btn.active { background: rgba(255,107,0,0.15); border-color: var(--accent); color: var(--accent-bright); }

/* AI processing pill */
.ai-pill {
  position: absolute; top: -16px; right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 100px; padding: 6px 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; color: var(--accent-bright);
  box-shadow: 0 0 24px rgba(255,107,0,0.3);
  animation: float-pill 3s ease-in-out infinite;
  z-index: 2;
}
.ai-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse-dot 1s infinite; }
@keyframes float-pill {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* === SECTION COMMON === */
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag { margin-bottom: 16px; }
.section-title {
  font-size: clamp(28px, 4vw, 48px); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 16px;
}
.section-desc { font-size: 16px; color: var(--text-secondary); max-width: 540px; margin: 0 auto; line-height: 1.75; }

/* === PRODUCT SCREENSHOTS === */
.screenshots { border-top: 1px solid var(--border-subtle); }
.screenshot-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 36px; flex-wrap: wrap; }
.screenshot-tab {
  font-size: 13px; font-weight: 600; padding: 9px 20px; border-radius: 100px;
  border: 1px solid var(--border-subtle); background: transparent;
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
  font-family: var(--font-body);
}
.screenshot-tab.active { background: rgba(255,107,0,0.12); border-color: var(--accent); color: var(--accent-bright); }
.screenshot-tab:hover:not(.active) { border-color: var(--border-light); color: var(--text-secondary); }

.browser-frame {
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  max-width: 1060px; margin: 0 auto;
}
.browser-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-dot-r { background: #FF5F57; }
.browser-dot-y { background: #FEBC2E; }
.browser-dot-g { background: #28C840; }
.browser-url {
  flex: 1; background: var(--bg-card); border-radius: 6px;
  padding: 6px 14px; font-size: 11px; color: var(--text-muted);
  font-family: var(--font-mono); border: 1px solid var(--border-subtle);
}
.screenshot-panel { display: none; }
.screenshot-panel.active { display: block; }
.screenshot-panel img {
  width: 100%; height: auto; display: block;
}

/* === TRUSTED BY === */
.trusted { border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); background: var(--bg-surface); }
.trusted-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden;
}
.trusted-stat {
  background: var(--bg-card); padding: 36px 24px; text-align: center;
  transition: background var(--transition);
}
.trusted-stat:hover { background: var(--bg-card-hover); }
.trusted-stat-value {
  font-size: 36px; font-weight: 900; letter-spacing: -0.04em;
  background: var(--grad-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 6px;
}
.trusted-stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* === FEATURES === */
.features { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.features-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden;
}
.feature-card {
  background: var(--bg-card);
  padding: 32px 24px;
  position: relative; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 107, 0, 0.05);
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--grad-primary); opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: rgba(255,107,0,0.08);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; color: var(--accent-bright); }
.feature-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.feature-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }

/* === HOW IT WORKS === */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden;
}
.step {
  background: var(--bg-card); padding: 36px 28px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; transition: background var(--transition);
}
.step:hover { background: var(--bg-card-hover); }
.step-number {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--accent-bright); font-family: var(--font-mono);
}
.step-icon { font-size: 28px; }
.step-title { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.step-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }

/* === DASHBOARD PREVIEW === */
.preview-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 32px; }
.preview-tab {
  font-size: 13px; font-weight: 600; padding: 8px 18px; border-radius: 100px;
  border: 1px solid var(--border-subtle); background: transparent;
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
  font-family: var(--font-body);
}
.preview-tab.active { background: rgba(255,107,0,0.12); border-color: var(--accent); color: var(--accent-bright); }
.preview-frame {
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.dashboard-mock {
  width: 100%; aspect-ratio: 16/9; background: var(--bg-surface);
  display: none; padding: 0;
}
.dashboard-mock.active { display: flex; }
.dmock-sidebar {
  width: 200px; flex-shrink: 0; background: var(--bg-card);
  border-right: 1px solid var(--border-subtle);
  padding: 20px 0; display: flex; flex-direction: column; gap: 2px;
}
.dmock-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; font-size: 12px; color: var(--text-muted);
  cursor: default;
}
.dmock-nav-item.active { color: var(--accent-bright); background: rgba(255,107,0,0.08); }
.dmock-nav-dot { width: 14px; height: 14px; border-radius: 4px; background: rgba(255,107,0,0.2); flex-shrink: 0; }
.dmock-main { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.dmock-header { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.dmock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dmock-card { background: var(--bg-card); border-radius: 10px; padding: 14px; border: 1px solid var(--border-subtle); }
.dmock-card-label { font-size: 10px; color: var(--text-muted); margin-bottom: 4px; }
.dmock-card-val { font-size: 18px; font-weight: 800; background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.dmock-lines { display: flex; flex-direction: column; gap: 6px; }
.dmock-line { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.05); }
.dmock-line-fill { height: 100%; border-radius: 4px; background: var(--grad-primary); }

/* === COMPARISON / WHY DOCUFORGE === */
.comparison { border-top: 1px solid var(--border-subtle); }
.comparison-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden;
  max-width: 900px; margin: 0 auto;
}
.comparison-col {
  background: var(--bg-card); padding: 40px 36px;
}
.comparison-col.highlight {
  background: linear-gradient(180deg, rgba(255,107,0,0.06) 0%, var(--bg-card) 100%);
}
.comparison-col.highlight::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-primary);
}
.comparison-col { position: relative; }
.comparison-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 20px;
}
.comparison-label.accent { color: var(--accent-bright); }
.comparison-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}
.comparison-row:last-child { border-bottom: none; }
.comparison-metric { color: var(--text-secondary); font-weight: 500; }
.comparison-value { font-weight: 700; color: var(--text-primary); }
.comparison-value.bad { color: #F87171; }
.comparison-value.good { color: var(--accent-emerald); }

/* === FOUNDER STORY === */
.founder-section { border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); background: var(--bg-surface); }
.founder-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  max-width: 1000px; margin: 0 auto;
}
.founder-story-text h3 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 20px;
}
.founder-story-text p {
  font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px;
}
.founder-story-text .founder-sig {
  font-size: 14px; color: var(--text-muted); font-style: italic; margin-top: 28px;
  padding-top: 20px; border-top: 1px solid var(--border-subtle);
}
.founder-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px;
  position: relative; overflow: hidden;
}
.founder-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-primary);
}
.founder-avatar {
  width: 80px; height: 80px; border-radius: var(--radius-lg);
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 900; color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 0 30px rgba(255,107,0,0.25);
}
.founder-name { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 4px; }
.founder-role { font-size: 13px; color: var(--accent-bright); font-weight: 600; margin-bottom: 20px; }
.founder-bio { font-size: 14px; color: var(--text-secondary); line-height: 1.75; }
.founder-links { display: flex; gap: 16px; margin-top: 24px; }
.founder-link {
  font-size: 13px; color: var(--accent-bright); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--transition);
}
.founder-link:hover { color: var(--text-primary); }

/* === PRICING === */
.pricing { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden;
}
.pricing-card {
  background: var(--bg-card); padding: 40px 32px;
  display: flex; flex-direction: column;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 2px solid transparent;
}
.pricing-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-8px) scale(1.01);
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 30px rgba(255,107,0,0.08);
  border-bottom-color: rgba(255,107,0,0.3);
}
.pricing-card.featured { background: rgba(10,10,18,1); }
.pricing-card.featured::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-primary);
}
.pricing-card.featured:hover {
  border-bottom-color: var(--accent-violet);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 30px rgba(138,43,226,0.12);
}
.pricing-badge {
  position: absolute; top: 20px; right: 24px;
  font-size: 10px; font-weight: 700; padding: 3px 10px;
  border-radius: 100px;
  background: var(--grad-primary); color: #fff;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.pricing-coming-soon {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; padding: 3px 10px;
  border-radius: 100px;
  background: rgba(245,158,11,0.12); color: #F59E0B;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 16px;
}
.pricing-plan { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.pricing-amount { font-size: 42px; font-weight: 900; letter-spacing: -0.05em; }
.pricing-period { font-size: 13px; color: var(--text-muted); }
.pricing-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.pricing-divider { height: 1px; background: var(--border-subtle); margin-bottom: 24px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 12px; flex: 1; margin-bottom: 28px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.pricing-features li::before { content: '✓'; color: var(--accent-cyan); font-weight: 700; font-size: 12px; flex-shrink: 0; }
.pricing-features li.dimmed { color: var(--text-muted); }
.pricing-features li.dimmed::before { content: '×'; color: var(--text-muted); }

/* === ROADMAP === */
.roadmap-section { border-top: 1px solid var(--border-subtle); }
.roadmap-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  max-width: 860px; margin: 0 auto;
}
.roadmap-item {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; align-items: flex-start; gap: 20px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.roadmap-item:hover { border-color: var(--border); background: var(--bg-card-hover); }
.roadmap-item.active { border-color: rgba(255,107,0,0.3); }
.roadmap-item.active::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-primary);
}
.roadmap-quarter {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--accent-bright); background: rgba(255,107,0,0.08);
  padding: 4px 10px; border-radius: 6px; flex-shrink: 0;
  white-space: nowrap; margin-top: 2px;
}
.roadmap-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.02em; }
.roadmap-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.roadmap-status {
  margin-left: auto; flex-shrink: 0;
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 100px; text-transform: uppercase;
}
.roadmap-status.in-progress { background: rgba(255,107,0,0.15); color: var(--accent-bright); }
.roadmap-status.planned { background: rgba(255,255,255,0.05); color: var(--text-muted); }

/* === USE CASES === */
.usecases-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden;
}
.usecase-card {
  background: var(--bg-card); padding: 32px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background var(--transition); cursor: default;
}
.usecase-card:hover { background: var(--bg-card-hover); }
.usecase-icon { font-size: 32px; }
.usecase-title { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.usecase-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }

/* === CTA BANNER === */
.cta-banner {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.cta-banner-inner {
  text-align: center; max-width: 660px; margin: 0 auto;
  position: relative;
}
.cta-banner-inner::before {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(255,107,0,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner-title {
  font-size: clamp(28px, 4vw, 46px); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 16px;
  position: relative;
}
.cta-banner-desc { font-size: 16px; color: var(--text-secondary); margin-bottom: 36px; line-height: 1.7; position: relative; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* === CONTACT SECTION (Homepage Inline) === */
.contact-section { border-top: 1px solid var(--border-subtle); }
.contact-inline-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden;
  max-width: 800px; margin: 0 auto;
}
.contact-inline-card {
  background: var(--bg-card); padding: 32px 28px; text-align: center;
  transition: background var(--transition);
}
.contact-inline-card:hover { background: var(--bg-card-hover); }
.contact-inline-icon { font-size: 24px; margin-bottom: 12px; }
.contact-inline-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.contact-inline-value a { font-size: 14px; color: var(--accent-bright); text-decoration: none; transition: color var(--transition); word-break: break-all; }
.contact-inline-value a:hover { color: var(--text-primary); }

/* === FOOTER === */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 36px;
}
.footer-top {
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 60px; margin-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 280px; }
.footer-founder { font-size: 12px; color: var(--text-muted); margin-top: 12px; }
.footer-founder span { color: var(--text-secondary); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--text-primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border-subtle); flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; color: var(--text-muted); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.footer-legal a:hover { color: var(--text-primary); }

/* === ABOUT PAGE === */
.about-hero {
  padding: calc(var(--nav-h) + 80px) 0 96px;
  position: relative; overflow: hidden;
}
.about-hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.values-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  background: var(--border-subtle); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); overflow: hidden; margin-top: 40px;
}
.value-card { background: var(--bg-card); padding: 28px 24px; transition: background var(--transition); }
.value-card:hover { background: var(--bg-card-hover); }
.value-icon { font-size: 24px; margin-bottom: 10px; }
.value-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.value-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.mission-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 48px;
  text-align: center; margin-top: 60px;
}
.mission-block .section-title { margin-bottom: 16px; }
.mission-block p { font-size: 16px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; line-height: 1.75; }

/* === CONTACT PAGE === */
.contact-hero { padding: calc(var(--nav-h) + 60px) 0 96px; position: relative; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; }
.contact-info-title { font-size: 32px; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 12px; }
.contact-info-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 36px; }
.contact-cards { display: flex; flex-direction: column; gap: 12px; }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-card:hover {
  border-color: rgba(255, 107, 0, 0.25);
  background: var(--bg-card-hover);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.contact-card-icon { font-size: 18px; width: 40px; height: 40px; border-radius: var(--radius-sm); background: rgba(255,107,0,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card-label { font-size: 11px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.contact-card-value { font-size: 13px; color: var(--text-secondary); }
.contact-card-value a { color: var(--accent-bright); text-decoration: none; transition: color var(--transition); }
.contact-card-value a:hover { color: var(--text-primary); }

.contact-form {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.form-input, .form-textarea, .form-select {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); padding: 12px 14px;
  font-family: var(--font-body); font-size: 14px; color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%; outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: rgba(255,107,0,0.5);
  background: rgba(255,255,255,0.02);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.18), 0 4px 12px rgba(0,0,0,0.25);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { appearance: none; cursor: pointer; }
.form-success {
  display: none; text-align: center; padding: 40px 20px;
  color: var(--accent-cyan); font-weight: 600; font-size: 15px;
}

/* === FAQ === */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; background: var(--border-subtle); border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); overflow: hidden; }
.faq-item { background: var(--bg-card); }
.faq-question {
  width: 100%; text-align: left; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 15px; font-weight: 600; color: var(--text-primary);
  font-family: var(--font-body);
  background: none; border: none; cursor: pointer;
  transition: background var(--transition);
}
.faq-question:hover { background: rgba(255,255,255,0.02); }
.faq-chevron { color: var(--text-muted); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; padding: 0 24px; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 20px; }
.faq-answer p { font-size: 14px; color: var(--text-secondary); line-height: 1.75; }

/* === LEGAL PAGES === */
.legal-hero { padding: calc(var(--nav-h) + 60px) 0 40px; }
.legal-content { padding: 0 0 96px; max-width: 720px; margin: 0 auto; }
.legal-content h2 { font-size: 20px; font-weight: 700; margin: 36px 0 12px; letter-spacing: -0.02em; }
.legal-content h3 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; color: var(--accent-bright); }
.legal-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 14px; }
.legal-content ul { list-style: disc; padding-left: 20px; margin-bottom: 14px; }
.legal-content ul li { font-size: 14px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 6px; }
.legal-content a { color: var(--accent-bright); }
.legal-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 48px; padding-bottom: 24px; border-bottom: 1px solid var(--border-subtle); }

/* === GLASS CARD === */
.glass {
  background: rgba(15,15,19,0.65);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; text-align: center; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .roadmap-list { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; gap: 48px; }
  .comparison-grid { grid-template-columns: 1fr; }
  .contact-inline-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr; }
  .trusted-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-hero-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .screenshot-tabs { gap: 6px; }
  .screenshot-tab { font-size: 11px; padding: 7px 14px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-stats { flex-direction: column; gap: 20px; align-items: center; }
  .footer-links { grid-template-columns: 1fr; }
  .trusted-stats { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
