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

:root {
  --bg: #080808; --bg2: #0f0f0f; --bg3: #161616;
  --border: rgba(255,255,255,0.07); --border-hover: rgba(255,255,255,0.14);
  --accent: #00e5a0; --accent-dark: #00865e;
  --text-primary: #f0f0f0; --text-secondary: #888; --text-muted: #7a7a7a;
  --font-display: 'Syne', sans-serif; --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text-primary); font-family: var(--font-body); font-size: 16px; line-height: 1.6; overflow-x: hidden; }

/* ── NAV ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 20px 48px; border-bottom: 1px solid transparent; transition: all 0.3s ease; }
nav.scrolled { border-bottom-color: var(--border); background: rgba(8,8,8,0.95); backdrop-filter: blur(16px); }
.nav-logo { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--text-primary); text-decoration: none; text-transform: lowercase; white-space: nowrap; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 400; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { background: var(--accent); color: #000 !important; padding: 9px 20px; border-radius: 6px; font-weight: 500 !important; transition: opacity 0.2s !important; text-decoration: none; font-size: 14px; }
.nav-cta:hover { opacity: 0.85; }

/* ── LANG TOGGLE ── */
.lang-toggle { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: var(--font-body); letter-spacing: 0.05em; }
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ── HAMBURGER ── */
.nav-hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: transparent; border: none; cursor: pointer; padding: 4px; width: 36px; height: 36px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s ease; transform-origin: center; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE CONTROLS (always visible on mobile) ── */
.nav-mobile { display: none; align-items: center; gap: 12px; }

/* ── MOBILE DRAWER ── */
.nav-drawer { display: none; position: fixed; top: 65px; left: 0; right: 0; z-index: 99; background: rgba(8,8,8,0.98); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 16px 24px 24px; flex-direction: column; }
.nav-drawer.open { display: flex; }
.nav-drawer a { color: var(--text-secondary); text-decoration: none; font-size: 20px; font-weight: 400; padding: 16px 0; border-bottom: 1px solid var(--border); transition: color 0.2s; }
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--accent); }

/* ── SECTIONS ── */
section { padding: 120px 48px; max-width: 1400px; margin: 0 auto; }

/* ── HERO ── */
#hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 140px 48px 80px; max-width: 100%; position: relative; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 32px; opacity: 0; transform: translateY(20px); animation: fadeUp 0.7s ease 0.1s forwards; }
.hero-eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: var(--accent); }
.hero-headline { font-family: var(--font-display); font-size: clamp(48px, 8vw, 96px); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; max-width: 900px; opacity: 0; transform: translateY(30px); animation: fadeUp 0.8s ease 0.25s forwards; }
.hero-headline em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin-top: 32px; line-height: 1.65; font-weight: 300; opacity: 0; transform: translateY(20px); animation: fadeUp 0.7s ease 0.45s forwards; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 48px; opacity: 0; transform: translateY(20px); animation: fadeUp 0.7s ease 0.6s forwards; flex-wrap: wrap; }
.btn-primary { background: var(--accent); color: #000; padding: 14px 28px; border-radius: 6px; font-weight: 500; font-size: 15px; text-decoration: none; transition: opacity 0.2s, transform 0.2s; display: inline-block; }
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-ghost { color: var(--text-secondary); font-size: 14px; text-decoration: none; display: flex; align-items: center; gap: 8px; transition: color 0.2s; }
.btn-ghost:hover { color: var(--text-primary); }
.btn-ghost svg { transition: transform 0.2s; }
.btn-ghost:hover svg { transform: translateX(3px); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 64px; opacity: 0; animation: fadeUp 0.7s ease 0.75s forwards; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-secondary); border: 1px solid var(--border); padding: 7px 14px; border-radius: 100px; }
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ── GRID BG ── */
.hero-grid { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; background-image: linear-gradient(rgba(0,229,160,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,160,0.03) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 80%); }
.hero-glow { position: absolute; top: 10%; right: 10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,229,160,0.06) 0%, transparent 65%); pointer-events: none; }

/* ── PROBLEM ── */
#problem { padding: 80px 48px; max-width: 100%; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg2); }
.problem-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: center; }
.problem-label { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.problem-text { font-size: 22px; line-height: 1.6; color: var(--text-secondary); font-weight: 300; }
.problem-text strong { color: var(--text-primary); font-weight: 500; }

/* ── SERVICES / PAIN POINTS ── */
#services { border-top: 1px solid var(--border); }
.section-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 16px; }
.section-title { font-family: var(--font-display); font-size: clamp(36px, 5vw, 58px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 64px; max-width: 760px; }

/* Pain blocks — even hierarchy between the three */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.pain-card { background: var(--bg); padding: 40px 32px; display: flex; flex-direction: column; gap: 18px; transition: background 0.3s; }
.pain-card:hover { background: var(--bg3); }
.pain-quote { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--text-primary); }
.pain-symptom { font-size: 14px; color: var(--text-secondary); line-height: 1.65; font-weight: 300; }
.pain-fix { font-size: 14px; color: var(--text-primary); line-height: 1.6; font-weight: 400; border-top: 1px solid var(--border); padding-top: 18px; margin-top: auto; }
.pain-fix::before { content: '→'; color: var(--accent); font-weight: 700; margin-right: 8px; }
.pain-cta { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; margin-top: 4px; transition: gap 0.2s ease, opacity 0.2s; }
.pain-cta:hover { gap: 11px; opacity: 0.85; }

/* Dominant CTA — the free diagnosis */
.diagnosis { position: relative; margin-top: 40px; border: 1px solid var(--border-hover); border-radius: 16px; background: linear-gradient(180deg, rgba(0,229,160,0.06), rgba(0,229,160,0.015)); overflow: hidden; text-align: center; }
.diagnosis-glow { position: absolute; top: -140px; left: 50%; transform: translateX(-50%); width: 640px; height: 420px; max-width: 120%; background: radial-gradient(ellipse, rgba(0,229,160,0.14) 0%, transparent 65%); pointer-events: none; }
.diagnosis-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 68px 40px; }
.diagnosis-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 20px; }
.diagnosis-text { font-size: 17px; color: var(--text-secondary); line-height: 1.65; font-weight: 300; margin-bottom: 40px; max-width: 520px; margin-left: auto; margin-right: auto; }
.diagnosis-btn { display: inline-block; background: var(--accent); color: #000; padding: 18px 42px; border-radius: 8px; font-family: var(--font-display); font-weight: 700; font-size: 17px; text-decoration: none; transition: opacity 0.2s, transform 0.2s; box-shadow: 0 0 44px rgba(0,229,160,0.28); }
.diagnosis-btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* Full partner — discreet line */
.partner-line { text-align: center; margin-top: 40px; font-size: 14px; color: var(--text-secondary); font-weight: 300; line-height: 1.7; }
.partner-line a { color: var(--text-secondary); text-decoration: none; border-bottom: 1px solid var(--border-hover); padding-bottom: 1px; transition: color 0.2s, border-color 0.2s; white-space: nowrap; }
.partner-line a:hover { color: var(--accent); border-color: var(--accent); }

/* ── WORK ── */
#work { border-top: 1px solid var(--border); }
.work-grid { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.work-item { background: var(--bg); padding: 40px 44px; display: grid; grid-template-columns: 1fr 2fr 24px; gap: 48px; align-items: start; transition: background 0.2s; }
.work-item:hover { background: var(--bg3); }
.work-item:hover .work-arrow { opacity: 1; transform: translateX(0); }
.work-client { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.work-industry { font-size: 12px; color: var(--text-secondary); letter-spacing: 0.05em; text-transform: uppercase; }
.work-problem { font-size: 14px; font-weight: 500; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.5; }
.work-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; font-weight: 300; }
.work-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.stack-tag { font-size: 11px; color: var(--text-secondary); border: 1px solid var(--border); padding: 4px 10px; border-radius: 4px; }
.work-arrow { font-size: 20px; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: all 0.2s; align-self: center; }

/* ── ABOUT ── */
#about { border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-bio { font-size: 17px; line-height: 1.75; color: var(--text-secondary); font-weight: 300; margin-bottom: 32px; }
.about-bio strong { color: var(--text-primary); font-weight: 500; }
.about-stack-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.about-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-pill { font-size: 13px; color: var(--text-secondary); border: 1px solid var(--border); padding: 7px 14px; border-radius: 6px; transition: border-color 0.2s, color 0.2s; }
.stack-pill:hover { border-color: var(--accent); color: var(--accent); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 32px; }
.stat-box { background: var(--bg2); padding: 28px 24px; }
.stat-num { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -0.04em; color: var(--text-primary); line-height: 1; }
.stat-num span { color: var(--accent); }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 6px; font-weight: 300; }
.about-langs { display: flex; gap: 12px; margin-top: 24px; }
.lang-badge { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); background: var(--bg3); border: 1px solid var(--border); padding: 8px 16px; border-radius: 6px; }
.lang-flag { font-size: 16px; }

/* ── CONTACT ── */
#contact { border-top: 1px solid var(--border); text-align: center; padding: 140px 48px; max-width: 100%; position: relative; overflow: hidden; }
.contact-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.contact-glow { position: absolute; bottom: -100px; left: 50%; transform: translateX(-50%); width: 600px; height: 400px; background: radial-gradient(ellipse, rgba(0,229,160,0.08) 0%, transparent 65%); pointer-events: none; }
.contact-eyebrow { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 24px; }
.contact-title { font-family: var(--font-display); font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 24px; }
.contact-sub { font-size: 17px; color: var(--text-secondary); line-height: 1.65; font-weight: 300; margin-bottom: 48px; max-width: 480px; margin-left: auto; margin-right: auto; }
.contact-details { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; margin-top: 40px; }
.contact-item { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.contact-link { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.contact-link:hover { color: var(--accent); }
.contact-item::before { content: ''; display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 32px 48px; display: flex; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.footer-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); text-transform: lowercase; white-space: nowrap; }
.footer-name span { color: var(--accent); }
.footer-tagline { font-size: 12px; color: var(--text-muted); }
.footer-copy { font-size: 12px; color: var(--text-secondary); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(24px); 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; }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .pain-grid { grid-template-columns: 1fr; }
  .diagnosis-inner { padding: 56px 28px; }
}

@media (max-width: 900px) {
  nav { padding: 16px 24px; gap: 12px; }
  .nav-links { display: none; }
  .nav-mobile { display: flex; }
  .nav-hamburger { display: flex; }

  section, #hero, #problem, #contact, footer { padding-left: 24px; padding-right: 24px; }
  #hero { padding-top: 120px; }
  .hero-sub { font-size: 16px; }

  .problem-inner { grid-template-columns: 1fr; gap: 24px; }
  .problem-text { font-size: 18px; }

  .diagnosis-inner { padding: 48px 24px; }
  .diagnosis-btn { display: block; padding: 16px 28px; }

  .work-item { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .work-arrow { display: none; }

  #about { grid-template-columns: 1fr; gap: 48px; }
}

/* Small phones — keep the wordmark + CTA on one line */
@media (max-width: 420px) {
  nav { padding: 14px 18px; gap: 10px; }
  .nav-logo { font-size: 16px; }
  .nav-mobile { gap: 8px; }
  .nav-cta { padding: 9px 13px; font-size: 13px; white-space: nowrap; }
  .lang-toggle { padding: 6px 10px; }
  .hero-headline { font-size: 42px; }
}

/* ── PHASE 2 — THE THREE DOORS ── */
.badge { text-decoration: none; transition: border-color 0.2s, color 0.2s; }
a.badge:hover { border-color: var(--accent); color: var(--text-primary); }
.door-label { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.door-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--text-primary); }
.pain-quote { font-family: var(--font-body); font-size: 15px; font-weight: 300; font-style: italic; letter-spacing: 0; line-height: 1.55; color: var(--text-secondary); border-left: 2px solid var(--border-hover); padding-left: 14px; }
.pain-fix { margin-top: 0; }
.door-includes { list-style: none; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.door-includes li { position: relative; padding-left: 16px; font-size: 13px; font-weight: 300; color: var(--text-secondary); line-height: 1.45; }
.door-includes li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 1px; background: var(--accent); }

/* ── PHASE 2 — WORK ── */
.work-item { text-decoration: none; color: inherit; }
.work-head { display: flex; flex-direction: column; gap: 6px; }
.work-url { font-size: 12px; color: var(--accent); letter-spacing: 0.02em; }
.todo { margin-top: 10px; font-size: 12px; font-weight: 500; color: #ffd166; border: 1px dashed rgba(255,209,102,0.4); border-radius: 4px; padding: 5px 9px; display: inline-block; }

/* ── PHASE 2 — ABOUT ── */
#about .section-title { font-size: clamp(32px, 3.4vw, 44px); margin-bottom: 28px; }
.about-stack-group + .about-stack-group { margin-top: 30px; }

/* ── PHASE 2 — FOOTER ── */
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.footer-mate { font-size: 12px; color: var(--text-muted); }

@media (max-width: 900px) {
  footer { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-right { align-items: flex-start; }
}
