/* ── Shared styles for project sub-pages ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #040b1a; --surface: #07112b;
  --card: rgba(255,255,255,0.034); --card-border: rgba(255,255,255,0.072);
  --primary: #6366f1; --primary-glow: rgba(99,102,241,0.35);
  --accent: #f97316; --accent2: #ec4899; --green: #22d3ee;
  --text: #f1f5f9; --text-muted: #94a3b8; --text-dim: #475569;
  --radius: 16px; --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
.project-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px,5vw,60px);
  height: 64px;
  background: rgba(4,11,26,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
}
.nav-back {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-muted); text-decoration: none; font-size: 0.875rem; font-weight: 500;
  transition: color .2s;
}
.nav-back:hover { color: var(--text); }
.nav-back svg { flex-shrink: 0; }
.nav-brand { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem; color: var(--text); }
.nav-cta-btn {
  padding: 8px 20px; border-radius: 8px;
  background: var(--primary); color: #fff;
  font-size: 0.82rem; font-weight: 600; text-decoration: none;
  transition: opacity .2s;
}
.nav-cta-btn:hover { opacity: 0.88; }

/* ── Hero ── */
.project-hero {
  position: relative; overflow: hidden;
  padding: clamp(80px,10vw,140px) clamp(20px,5vw,80px) clamp(60px,8vw,100px);
  text-align: center;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-glow::before {
  content: '';
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, var(--hero-color, rgba(99,102,241,0.18)) 0%, transparent 70%);
  filter: blur(40px);
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--card-border);
  font-size: 0.75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 28px;
}
.hero-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--hero-accent, var(--primary)); }
.project-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.02em;
  margin-bottom: 24px; max-width: 820px; margin-inline: auto;
}
.project-hero h1 .grad {
  background: var(--hero-grad, linear-gradient(135deg, #6366f1, #ec4899));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-muted);
  max-width: 620px; margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  background: var(--hero-accent, var(--primary)); color: #fff;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: opacity .2s, transform .15s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  border: 1px solid var(--card-border); color: var(--text-muted);
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }

/* ── Hero image strip ── */
.hero-image-wrap {
  max-width: 1000px; margin: 60px auto 0;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}
.hero-image-wrap img { width: 100%; display: block; }

/* ── Phone mockups ── */
.phone-row {
  display: flex; justify-content: center; gap: 20px;
  flex-wrap: wrap; margin-top: 60px;
}
.phone-frame {
  width: 220px; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  flex-shrink: 0;
}
.phone-frame img { width: 100%; display: block; }

/* ── Section ── */
.section {
  padding: clamp(60px,8vw,100px) clamp(20px,5vw,80px);
  max-width: 1100px; margin: 0 auto;
}
.section-tag {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--card-border);
  font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 20px;
}
.section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -.02em;
  margin-bottom: 18px;
}
.section h2 .grad {
  background: var(--hero-grad, linear-gradient(135deg, #6366f1, #ec4899));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-desc {
  font-size: 1.05rem; color: var(--text-muted); max-width: 640px;
  line-height: 1.75; margin-bottom: 48px;
}

/* ── Problem / pain ── */
.problem-section {
  background: var(--surface);
  padding: clamp(60px,8vw,100px) clamp(20px,5vw,80px);
}
.problem-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
@media(max-width:700px){ .problem-inner { grid-template-columns: 1fr; gap: 40px; } }
.problem-label { font-size: 0.75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent2); margin-bottom: 14px; }
.problem-inner h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.6rem,3.5vw,2.4rem); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.problem-inner p { font-size: 1rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; }
.pain-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.pain-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 20px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--card-border);
  font-size: 0.92rem; color: var(--text-muted); line-height: 1.5;
}
.pain-list li .icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ── Feature grid ── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: rgba(255,255,255,0.14); transform: translateY(-3px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
  background: var(--feature-bg, rgba(99,102,241,0.12));
}
.feature-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* ── How it works ── */
.how-section { background: var(--surface); }
.steps-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0; position: relative;
}
.step {
  padding: 36px 28px; position: relative;
  border-right: 1px solid var(--card-border);
}
.step:last-child { border-right: none; }
@media(max-width:700px) { .step { border-right: none; border-bottom: 1px solid var(--card-border); } .step:last-child { border-bottom: none; } }
.step-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; font-weight: 800;
  color: rgba(255,255,255,0.06); line-height: 1; margin-bottom: 16px;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* ── Demo CTA ── */
.demo-section {
  padding: clamp(80px,10vw,120px) clamp(20px,5vw,80px);
  text-align: center; position: relative; overflow: hidden;
}
.demo-section::before {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, var(--hero-color, rgba(99,102,241,0.12)) 0%, transparent 70%);
  pointer-events: none;
}
.demo-section h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 800; margin-bottom: 16px; }
.demo-section p { color: var(--text-muted); font-size: 1.05rem; max-width: 500px; margin: 0 auto 36px; }

/* ── Footer ── */
.project-footer {
  border-top: 1px solid var(--card-border);
  padding: 32px clamp(20px,5vw,80px);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.project-footer p { font-size: 0.82rem; color: var(--text-dim); }
.footer-back { font-size: 0.82rem; color: var(--text-muted); text-decoration: none; }
.footer-back:hover { color: var(--text); }

/* ── Stats row ── */
.stats-row {
  display: flex; gap: 0; flex-wrap: wrap;
  border: 1px solid var(--card-border); border-radius: var(--radius);
  overflow: hidden; margin-top: 48px;
}
.stat-item {
  flex: 1; min-width: 160px; padding: 28px 24px;
  border-right: 1px solid var(--card-border); text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-val { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.stat-lbl { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }

/* ── Quote / highlight ── */
.highlight-box {
  background: var(--card); border: 1px solid var(--card-border);
  border-left: 3px solid var(--hero-accent, var(--primary));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px; margin: 32px 0;
  font-size: 1.05rem; line-height: 1.7; color: var(--text-muted);
}
.highlight-box strong { color: var(--text); }

/* ── Mode showcase (Content Modes) ── */
.modes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media(max-width:600px) { .modes-grid { grid-template-columns: 1fr; } }
.mode-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: border-color .2s, transform .2s;
  position: relative; overflow: hidden;
}
.mode-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--mode-color, var(--primary));
}
.mode-card:hover { border-color: rgba(255,255,255,0.14); transform: translateY(-3px); }
.mode-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mode-color, var(--primary)); margin-bottom: 12px;
}
.mode-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.mode-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }
.mode-example {
  margin-top: 16px; padding: 14px 16px; border-radius: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.82rem; color: var(--text-dim); line-height: 1.6; font-style: italic;
}

@media(max-width:900px){
  .features-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:500px){
  .features-grid { grid-template-columns: 1fr; }
  .phone-row { gap: 12px; }
  .phone-frame { width: 160px; }
}
