/* ═══════════════════════════════════════════════════
   PRODUCTIVE — Landing Page Design System
   Matches App Style: Dark Mode | Phosphor Green | Glass
   ═══════════════════════════════════════════════════ */

:root {
  /* Core palette from app */
  --bg-base:        #050508;
  --bg-surface:     #0a0a0f;
  --bg-elevated:    #12121c;
  --bg-overlay:     #181825;
  --glass-bg:       rgba(10, 10, 15, 0.65);
  --glass-border:   rgba(255, 255, 255, 0.05);

  /* Tokens */
  --accent:         #00ff88;
  --accent-glow:    rgba(0, 255, 136, 0.3);
  --accent-pulse:   rgba(0, 255, 136, 0.08);
  --text-primary:   #ffffff;
  --text-secondary: #a0a0c0;
  --text-muted:     #555570;
  
  --font-mono:  'Space Mono', monospace;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-premium: 0 16px 48px rgba(0,0,0,0.6);
}

/* ── Reset & Base ──────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.mesh-bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: 
    radial-gradient(at 0% 0%, rgba(0, 255, 136, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(68, 170, 255, 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(204, 136, 255, 0.05) 0px, transparent 50%);
  z-index: -1;
}

/* ── Typography ────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-mono); font-weight: 700; }
h4 { 
  font-family: var(--font-mono); 
  text-transform: uppercase; 
  letter-spacing: 0.2em; 
  color: var(--accent); 
  font-size: 14px;
  margin-bottom: 12px;
}

.text-accent { color: var(--accent); text-shadow: 0 0 20px var(--accent-glow); }
.text-muted { color: var(--text-muted); }

/* ── Components ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  border: none;
  font-family: var(--font-mono);
  font-size: 14px;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 4px 14px 0 rgba(0, 255, 136, 0.39);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-xl { padding: 20px 48px; font-size: 18px; border-radius: var(--radius-lg); }

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--glass-border);
}

.glass-heavy {
  background: rgba(13, 13, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 16px;
}
.badge-active { background: var(--accent-pulse); color: var(--accent); border: 1px solid var(--accent-glow); }

/* ── Navigation ────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.1em;
}

.logo-img { height: 32px; width: auto; }
.logo-text { color: var(--text-primary); }

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

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

.nav-links a:hover:not(.btn) { color: var(--accent); }

/* ── Hero ──────────────────────────────────────── */
.hero {
  padding: 160px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 8vw, 72px);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: var(--text-secondary);
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 80px;
}

.hero-preview {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.app-screenshot {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  position: relative;
  z-index: 2;
}

.glow-orb {
  position: absolute;
  top: 50%; left: 50%;
  width: 80%; height: 80%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

/* ── Features ──────────────────────────────────── */
.features { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 { font-size: 40px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

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

.feature-icon {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 24px;
}

.feature-card h3 { margin-bottom: 16px; font-size: 20px; }
.feature-card p { color: var(--text-secondary); font-size: 15px; }

/* ── Benefits ──────────────────────────────────── */
.benefits { padding: 60px 0; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.benefit-card {
  padding: 48px 40px;
  text-align: center;
  border-radius: var(--radius-xl);
}
.benefit-number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.benefit-card h3 { margin-bottom: 16px; font-size: 24px; }
.benefit-card p { color: var(--text-secondary); font-size: 16px; line-height: 1.7; }

/* ── Feature Detailed Sections ────────────────── */
.feature-detail { padding: 100px 0; }

.app-screenshot {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-premium);
  transition: transform 0.5s var(--ease-out);
}

.feature-detail:hover .app-screenshot {
  transform: scale(1.02);
}

/* ── AI Architect (Removed) ──────────────────── */
/* ── Gallery ─────────────────────────────────── */
.gallery { padding: 100px 0; background: rgba(255,255,255,0.01); }

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

.gallery-item {
  padding: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out);
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

.gallery-item:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--accent-glow);
}

.gallery-caption {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 16px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

/* ── CTA & Pricing ────────────────────────────── */

.ai-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ai-text h2 { font-size: 40px; margin-bottom: 24px; }
.ai-text p { font-size: 18px; color: var(--text-secondary); margin-bottom: 32px; }

.ai-features {
  list-style: none;
}

.ai-features li {
  margin-bottom: 12px;
  font-weight: 500;
  display: flex;
  gap: 12px;
}

.ai-terminal {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.terminal-header {
  background: rgba(255,255,255,0.05);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--glass-border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; background: #555; }
.terminal-title { font-family: var(--font-mono); font-size: 11px; margin-left: auto; color: var(--text-muted); }

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  min-height: 200px;
}

.line { margin-bottom: 12px; }
.prompt { color: var(--accent); }
.response { color: var(--text-secondary); opacity: 0; animation: typeIn 0.5s var(--ease-out) forwards; }
.response:nth-child(2) { animation-delay: 1s; }
.response:nth-child(3) { animation-delay: 2s; }
.response:nth-child(4) { animation-delay: 3s; }

.line.cursor {
  width: 8px; height: 18px;
  background: var(--accent);
  display: inline-block;
  animation: blink 1s infinite;
}

@keyframes typeIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes blink { 50% { opacity: 0; } }

/* ── CTA ───────────────────────────────────────── */
.cta { padding: 100px 0; text-align: center; }

.cta-card {
  padding: 80px 40px;
  border-radius: var(--radius-xl);
}

.cta-card h2 { font-size: 48px; margin-bottom: 24px; }
.cta-card p { font-size: 18px; color: var(--text-secondary); margin-bottom: 48px; }

.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.pricing-card {
  padding: 48px 40px;
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border: 1px solid var(--accent-glow) !important;
  background: rgba(0, 255, 136, 0.05) !important;
  transform: translateY(-10px);
}

.best-value {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.price {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.price span {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-card h3 { margin-bottom: 12px; font-size: 22px; }
.pricing-card p { margin-bottom: 32px; font-size: 15px; color: var(--text-secondary); }

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 40px;
  flex: 1;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
}

.pricing-card .btn { width: 100%; }

.cta-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ── Footer ────────────────────────────────────── */
footer {
  padding: 60px 0;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left p { margin-top: 12px; font-size: 12px; color: var(--text-muted); }

.footer-center, .footer-right {
  display: flex;
  gap: 24px;
}

.footer-center a, .footer-right a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  transition: color 0.2s;
}

.footer-center a:hover, .footer-right a:hover { color: var(--accent); }

/* ── Animations ────────────────────────────────── */
.animate-fade-in { opacity: 0; animation: fadeIn 0.8s var(--ease-out) forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

.animate-float { animation: float 6s ease-in-out infinite; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ── Responsive ────────────────────────────────── */
@media (max-width: 900px) {
  .ai-content { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 48px; }
  .cta-card h2 { font-size: 32px; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding: 120px 0 60px; }
  .footer-content { flex-direction: column; gap: 32px; text-align: center; }
}
