/* ===========================
   AppForge — Forge Dark Theme
   =========================== */

:root {
  --bg: #070b14;
  --bg-raised: #0d1424;
  --bg-card: #111a2e;
  --bg-card-hover: #16213a;
  --border: rgba(245, 158, 11, 0.12);
  --border-light: rgba(255,255,255,0.06);
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.15);
  --accent-glow: rgba(245, 158, 11, 0.25);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #f59e0b;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

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

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
  background: rgba(7, 11, 20, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-tag {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
}

.hero-glow-1 {
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, #f59e0b 0%, transparent 70%);
  top: -100px; right: -100px;
}

.hero-glow-2 {
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, #d97706 0%, transparent 70%);
  bottom: 100px; left: -80px;
  opacity: 0.08;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, black 30%, transparent 80%);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-accent {
  color: var(--accent);
  position: relative;
}

.hero-lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 440px;
  margin-bottom: 48px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

/* ===========================
   PHONE MOCKUP
   =========================== */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 280px;
  background: #0a0f1e;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 44px;
  padding: 16px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.1),
    0 40px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(245, 158, 11, 0.06);
}

.phone-notch {
  width: 80px; height: 26px;
  background: #0a0f1e;
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.phone-screen {
  background: #0f172a;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  background: #0d1627;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.app-dots {
  display: flex;
  gap: 5px;
}

.app-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.app-title {
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.app-preview-tag {
  font-size: 8px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.app-canvas {
  display: flex;
  height: 340px;
}

.canvas-label {
  font-size: 8px;
  color: var(--text-muted);
  padding: 12px 10px 6px;
  font-family: var(--font-head);
  letter-spacing: 0.04em;
}

.canvas-blocks {
  flex: 1;
  padding: 0 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.block { display: flex; flex-direction: column; gap: 6px; }
.block-header { gap: 4px; }
.block-cards { flex-direction: row; gap: 5px; }
.block-cta { gap: 5px; }

.block-bar {
  height: 6px;
  background: rgba(245, 158, 11, 0.15);
  border-radius: 3px;
}

.mini-card {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-card-icon {
  width: 14px; height: 14px;
  background: rgba(245, 158, 11, 0.2);
  border-radius: 4px;
  margin-bottom: 2px;
}

.mini-line {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}

.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-70 { width: 70%; }
.w-80 { width: 80%; }

.cta-btn {
  height: 14px;
  background: rgba(245, 158, 11, 0.3);
  border-radius: 4px;
}

.cta-btn-secondary {
  height: 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}

.canvas-sidebar {
  width: 70px;
  background: #0a0f1e;
  border-left: 1px solid rgba(255,255,255,0.05);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-section { display: flex; flex-direction: column; gap: 4px; }
.sidebar-label {
  font-size: 7px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
  font-family: var(--font-head);
}

.sidebar-comp {
  font-size: 7px;
  color: var(--text-muted);
  padding: 4px 5px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-head);
}

.sidebar-comp.selected {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.prop-row {
  display: flex;
  gap: 3px;
  margin-bottom: 3px;
}

.prop-key {
  width: 28px; height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
}

.prop-key.short { width: 16px; }

.prop-val {
  flex: 1; height: 5px;
  background: rgba(255,255,255,0.04);
  border-radius: 2px;
}

.app-bottombar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 16px;
  background: #0a0f1e;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.tab {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  color: var(--text-muted);
  font-family: var(--font-head);
  padding: 4px 8px;
  border-radius: 6px;
}

.tab.active {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
}

.phone-home {
  width: 36px; height: 5px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  margin: 12px auto 4px;
}

/* Floating badges */
.floating-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-head);
  color: var(--text-secondary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.badge-1 {
  top: 20px; left: -40px;
  animation: float 4s ease-in-out infinite;
}

.badge-2 {
  bottom: 40px; right: -30px;
  animation: float 4s ease-in-out infinite 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===========================
   MANIFESTO
   =========================== */

.manifesto {
  padding: 100px 24px;
  position: relative;
}

.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin-bottom: 48px;
}

.manifesto-quote {
  font-family: var(--font-head);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  font-style: normal;
}

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

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

.features {
  padding: 100px 24px 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

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

.feature-card-main {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.feature-icon {
  width: 52px; height: 52px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card-main .feature-icon {
  margin-bottom: 0;
}

.feature-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.feature-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 20px;
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 500;
}

/* ===========================
   VISION
   =========================== */

.vision {
  padding: 100px 24px;
  background: var(--bg-raised);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.vision-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.vision-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 16px 0 28px;
}

.vision-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.vision-numbers {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 20px;
}

.vision-stat {
  border-left: 2px solid var(--border);
  padding-left: 28px;
}

.vnum {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.vlabel {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 240px;
}

/* ===========================
   CLOSING
   =========================== */

.closing {
  padding: 140px 24px 160px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.closing-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.closing-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.08) 0%, transparent 65%);
  filter: blur(60px);
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.closing-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 600;
  margin-bottom: 28px;
}

.closing-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.closing-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 52px;
}

.closing-statement {
  font-family: var(--font-head);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
  color: var(--text-secondary);
}

.closing-statement strong {
  color: var(--text-primary);
  font-weight: 600;
}

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

.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 60px 24px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

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

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-col-label {
  font-family: var(--font-head);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-sep { opacity: 0.4; }

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

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .hero-text { order: 2; }
  .hero-visual { order: 1; }
  
  .hero-lede { margin: 0 auto 40px; }
  .hero-meta { justify-content: center; }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card-main {
    grid-template-columns: 1fr;
  }
  
  .vision-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .vision-numbers { flex-direction: row; flex-wrap: wrap; }
  .vision-stat { border-left: none; border-top: 2px solid var(--border); padding-left: 0; padding-top: 16px; }
  
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-links { flex-wrap: wrap; gap: 40px; }
}

@media (max-width: 640px) {
  .phone-frame { transform: scale(0.85); }
  .floating-badge { display: none; }
  .hero { padding-top: 100px; }
  .footer-bottom-inner { flex-wrap: wrap; gap: 8px; }
}
