/* ============================================================
   Studio9inety Developers — Design System
   Dark-first, cyan/blue accent ramp, glassmorphism, bento.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* ---- Accent ramp (shared across themes) ---- */
  --cyan: #00f5ff;
  --blue: #22a8ff;
  --deep: #0d4d8c;
  --wa: #25d366;
  --wa-dark: #1da851;

  /* ---- Dark theme (default) ---- */
  --bg: #06080f;
  --bg-2: #080b14;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);
  --surface-solid: #0c1018;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8f0fa;
  --text-2: #aab6c8;
  --text-3: #6a7689;
  --glow: 0 0 0 1px rgba(0, 245, 255, 0.0);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --accent-grad: linear-gradient(120deg, var(--cyan), var(--blue) 55%, var(--deep));
  --accent-soft: rgba(0, 245, 255, 0.12);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --maxw: 1200px;
  --nav-h: 74px;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme='light'] {
  --bg: #eef2f8;
  --bg-2: #e6ebf3;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-2: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --border: rgba(8, 16, 32, 0.09);
  --border-strong: rgba(8, 16, 32, 0.16);
  --text: #0a1322;
  --text-2: #45516a;
  --text-3: #8693a8;
  --shadow: 0 30px 70px -34px rgba(13, 40, 84, 0.35);
  --accent-soft: rgba(8, 132, 196, 0.12);
  --cyan: #06b6d4;
  --blue: #2563eb;
  --accent-grad: linear-gradient(120deg, #0891b2, #2563eb 60%, #0d4d8c);
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
::selection { background: var(--cyan); color: #00121a; }

/* Page atmospheric background */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% -5%, rgba(34, 168, 255, 0.16), transparent 60%),
    radial-gradient(50% 50% at 10% 0%, rgba(0, 245, 255, 0.12), transparent 55%),
    radial-gradient(60% 60% at 50% 110%, rgba(13, 77, 140, 0.18), transparent 60%);
}
[data-theme='light'] .bg-fx {
  background:
    radial-gradient(60% 50% at 80% -5%, rgba(37, 99, 235, 0.12), transparent 60%),
    radial-gradient(50% 50% at 10% 0%, rgba(8, 182, 212, 0.12), transparent 55%);
}
.grid-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.5;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 120px 0; position: relative; }
.section-sm { padding: 80px 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--cyan);
  display: inline-block;
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 18px 0 16px;
}
.section-head p { color: var(--text-2); font-size: 1.075rem; max-width: 58ch; }

.grad-text {
  background: linear-gradient(110deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  height: 52px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--accent-grad);
  color: #00121a;
  box-shadow: 0 10px 34px -10px rgba(0, 245, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 48px -12px rgba(0, 245, 255, 0.7); }
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #053015; box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.6); }
.btn-wa:hover { background: #2ee06f; transform: translateY(-2px); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 0.88rem; }
.btn-lg { height: 58px; padding: 0 34px; font-size: 1.02rem; }

/* ============================================================
   Glass card primitive
   ============================================================ */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(130deg, rgba(0, 245, 255, 0.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); background: var(--surface-2); }
.card:hover::after { opacity: 1; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-grad);
  color: #00121a; font-weight: 700; font-size: 1rem;
  box-shadow: 0 6px 18px -6px rgba(0, 245, 255, 0.7);
}
.brand b { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 15px; border-radius: 10px; font-size: 0.92rem; font-weight: 600; color: var(--text-2);
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); transition: color 0.25s, border-color 0.25s, transform 0.25s;
}
.theme-toggle:hover { color: var(--cyan); border-color: var(--cyan); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .sun { display: none; }
[data-theme='light'] .theme-toggle .sun { display: block; }
[data-theme='light'] .theme-toggle .moon { display: none; }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); place-items: center; }
.burger svg { width: 22px; height: 22px; }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(20px);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; padding: 14px 4px; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 18px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: calc(var(--nav-h) + 80px) 0 90px; overflow: hidden; }
.hero-spot {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.18), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  transition: transform 0.2s ease-out;
  top: -120px; right: -60px;
}
.hero-inner { position: relative; z-index: 2; max-width: 960px; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 600; color: var(--text-2);
  margin-bottom: 30px; backdrop-filter: blur(10px);
}
.hero .badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.2); }
.hero .badge b { color: var(--text); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
}
.hero p.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-2); max-width: 60ch; margin-bottom: 38px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-cta .note { font-size: 0.86rem; color: var(--text-3); display: flex; align-items: center; gap: 8px; }

.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 72px; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  background: var(--border);
}
.stat-strip .stat { background: var(--surface-solid); padding: 28px 26px; }
[data-theme='light'] .stat-strip .stat { background: var(--surface-2); }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.02em; }
.stat .lbl { font-size: 0.84rem; color: var(--text-2); margin-top: 4px; }

/* ============================================================
   Marquee
   ============================================================ */
.marquee { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; overflow: hidden; background: var(--bg-2); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll-x 32s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--text-3); display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; }
.marquee-track span::after { content: '◆'; color: var(--cyan); font-size: 0.7rem; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============================================================
   About
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-card { display: flex; gap: 16px; padding: 22px; }
.about-card .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--cyan); }
.about-card .ico svg { width: 22px; height: 22px; }
.about-card h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 4px; }
.about-card p { font-size: 0.92rem; color: var(--text-2); }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }

.founder {
  position: relative; padding: 34px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(16px);
}
.founder .photo {
  width: 100%; height: 300px; object-fit: cover; object-position: 50% 18%;
  border-radius: 18px; margin-bottom: 22px; border: 1px solid var(--border-strong);
}
.founder .avatar {
  width: 76px; height: 76px; border-radius: 20px; margin-bottom: 20px;
  background: var(--accent-grad); color: #00121a;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem;
  box-shadow: 0 12px 30px -10px rgba(0, 245, 255, 0.6);
}
.founder blockquote { font-size: 1.12rem; line-height: 1.55; color: var(--text); font-weight: 500; margin-bottom: 22px; letter-spacing: -0.01em; }
.founder .who b { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.founder .who span { font-size: 0.86rem; color: var(--text-2); }
.founder .who .ke { font-family: var(--font-mono); font-size: 0.78rem; color: var(--cyan); margin-top: 6px; display: inline-block; }

/* ============================================================
   Services (bento)
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.svc { grid-column: span 2; min-height: 240px; display: flex; flex-direction: column; }
.svc.wide { grid-column: span 3; }
.svc.feature { grid-column: span 2; grid-row: span 2; min-height: 0; }
.svc .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--cyan); margin-bottom: 20px; transition: transform 0.4s var(--ease); }
.svc:hover .ico { transform: scale(1.08) rotate(-4deg); }
.svc .ico svg { width: 26px; height: 26px; }
.svc h3 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.svc p { color: var(--text-2); font-size: 0.94rem; flex: 1; }
.svc .num { position: absolute; top: 24px; right: 26px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-3); }
.svc .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-family: var(--font-mono); font-size: 0.72rem; padding: 5px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.svc.feature h3 { font-size: 1.7rem; }
.svc.feature .ico { width: 60px; height: 60px; }

/* ============================================================
   Portfolio
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter {
  padding: 9px 18px; border-radius: 999px; font-size: 0.88rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  transition: all 0.25s;
}
.filter:hover { color: var(--text); border-color: var(--border-strong); }
.filter.active { background: var(--accent-grad); color: #00121a; border-color: transparent; }

.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.work {
  grid-column: span 3; position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-solid); cursor: pointer;
  transition: transform 0.45s var(--ease), border-color 0.45s, opacity 0.4s;
  min-height: 320px; display: flex; flex-direction: column;
}
.work.tall { grid-column: span 3; min-height: 420px; }
.work.span2 { grid-column: span 2; }
.work:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.work .shot { position: relative; flex: 1; overflow: hidden; }
.work .meta { padding: 22px 24px; position: relative; z-index: 2; background: var(--surface-solid); border-top: 1px solid var(--border); }
[data-theme='light'] .work .meta { background: var(--surface-2); }
.work .kind { font-family: var(--font-mono); font-size: 0.72rem; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.12em; }
.work h3 { font-family: var(--font-display); font-size: 1.3rem; margin: 6px 0 6px; letter-spacing: -0.01em; }
.work .meta p { font-size: 0.9rem; color: var(--text-2); }
.work .arrow { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--border-strong); display: grid; place-items: center; opacity: 0; transform: translateY(-6px); transition: all 0.35s var(--ease); z-index: 3; }
.work:hover .arrow { opacity: 1; transform: none; }
.work.hide { display: none; }

/* striped placeholder shot */
.shot-ph {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, var(--accent-soft) 0 2px, transparent 2px 16px),
    linear-gradient(135deg, color-mix(in srgb, var(--cyan) 18%, var(--surface-solid)), var(--surface-solid));
  display: flex; align-items: flex-end; padding: 18px;
  transition: transform 0.6s var(--ease);
}
.work:hover .shot-ph { transform: scale(1.04); }
.shot-ph .label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-2); background: color-mix(in srgb, var(--bg) 55%, transparent); padding: 5px 9px; border-radius: 7px; border: 1px solid var(--border); }

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(2, 4, 10, 0.7); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 28px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(720px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--surface-solid); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); transform: translateY(20px) scale(0.98);
  transition: transform 0.4s var(--ease); box-shadow: var(--shadow);
}
.modal-overlay.open .modal { transform: none; }
.modal .hero-shot { height: 260px; position: relative; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.modal-body { padding: 34px; }
.modal-body .kind { font-family: var(--font-mono); font-size: 0.74rem; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.12em; }
.modal-body h2 { font-family: var(--font-display); font-size: 2rem; margin: 8px 0 16px; letter-spacing: -0.02em; }
.modal-body p { color: var(--text-2); margin-bottom: 18px; }
.modal-feat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0; }
.modal-feat li { list-style: none; display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--text-2); }
.modal-feat li svg { width: 18px; height: 18px; color: var(--cyan); flex: none; margin-top: 2px; }
.modal-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); border: 1px solid var(--border-strong); display: grid; place-items: center; z-index: 4; color: #fff; }
.modal-close:hover { background: rgba(0,0,0,0.6); }

/* ============================================================
   Process
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; }
.step .n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--cyan); margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.step .n::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.step h4 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--text-2); }

/* ============================================================
   Testimonials
   ============================================================ */
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tm { display: flex; flex-direction: column; gap: 18px; }
.tm .stars { display: flex; gap: 3px; color: var(--cyan); }
.tm .stars svg { width: 16px; height: 16px; }
.tm blockquote { font-size: 1.02rem; line-height: 1.55; color: var(--text); flex: 1; }
.tm .by { display: flex; align-items: center; gap: 12px; }
.tm .by .av { width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--cyan); }
.tm .by b { display: block; font-size: 0.94rem; font-family: var(--font-display); }
.tm .by span { font-size: 0.8rem; color: var(--text-3); }
.ph-note { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); margin-top: 16px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 70px; text-align: center; border: 1px solid var(--border-strong); background: var(--surface); backdrop-filter: blur(16px); }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 0%, var(--accent-soft), transparent 70%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 18px; }
.cta-band p { color: var(--text-2); font-size: 1.1rem; max-width: 52ch; margin: 0 auto 34px; }
.cta-band .hero-cta { justify-content: center; }

/* ============================================================
   Forms
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--text-2); }
.field label .req { color: var(--cyan); }
.field input, .field textarea, .field select {
  background: var(--surface-solid); border: 1px solid var(--border); color: var(--text);
  padding: 14px 16px; border-radius: var(--radius-sm); transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}
[data-theme='light'] .field input, [data-theme='light'] .field textarea, [data-theme='light'] .field select { background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input.err, .field textarea.err, .field select.err { border-color: #ff5c72; }
.field .msg { font-size: 0.78rem; color: #ff8593; min-height: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; background: var(--surface-solid); border: 1px solid var(--border); color: var(--text-2); transition: all 0.2s; }
[data-theme='light'] .chip { background: #fff; }
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.sel { background: var(--accent-grad); color: #00121a; border-color: transparent; }
.preview-box { background: var(--bg-2); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 18px 20px; font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-2); line-height: 1.7; }
.preview-box .hl { color: var(--cyan); }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 70px 0 40px; background: var(--bg-2); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-top .about p { color: var(--text-2); font-size: 0.92rem; max-width: 34ch; margin: 16px 0 20px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-3); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--text-2); font-size: 0.94rem; padding: 6px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 0.86rem; color: var(--text-3); }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-2); transition: all 0.25s; }
.socials a:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }

/* ============================================================
   Floating WhatsApp
   ============================================================ */
.fab {
  position: fixed; bottom: 26px; right: 26px; z-index: 120;
  display: flex; align-items: center; gap: 0;
  height: 60px; border-radius: 999px; padding: 0 8px;
  background: var(--wa); color: #fff;
  box-shadow: 0 14px 40px -10px rgba(37, 211, 102, 0.6);
  transition: gap 0.4s var(--ease), padding 0.4s var(--ease), transform 0.3s;
  overflow: hidden;
}
.fab:hover { transform: translateY(-3px); gap: 12px; padding: 0 22px 0 8px; }
.fab .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.fab .ic svg { width: 26px; height: 26px; }
.fab .txt { max-width: 0; opacity: 0; white-space: nowrap; font-weight: 700; font-size: 0.92rem; transition: max-width 0.4s var(--ease), opacity 0.3s; }
.fab:hover .txt { max-width: 180px; opacity: 1; }
.fab .pulse { position: absolute; inset: 0; border-radius: 999px; box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); animation: pulse 2.4s infinite; pointer-events: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero { padding: calc(var(--nav-h) + 80px) 0 60px; }
.page-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -0.03em; margin: 18px 0 20px; }
.page-hero p { font-size: 1.15rem; color: var(--text-2); max-width: 60ch; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-3); }
.breadcrumb a:hover { color: var(--cyan); }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  * { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .section { padding: 90px 0; }
  .nav-links { display: none; }
  .burger { display: grid; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .svc, .svc.wide, .svc.feature { grid-column: span 1; grid-row: auto; min-height: 200px; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work, .work.tall, .work.span2 { grid-column: span 1; min-height: 300px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .tm-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .hero { padding-top: calc(var(--nav-h) + 50px); }
  .bento, .work-grid, .steps, .form-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .modal-feat { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 26px; }
  .section { padding: 72px 0; }
  .fab .txt { display: none; }
}

/* ============================================================
   ADDITIONS — scroll progress, nav underline, hero visual,
   tech strip, FAQ
   ============================================================ */

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--accent-grad); z-index: 101;
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.7);
  transition: width 0.1s linear;
}

/* ---- Animated nav underline + active state ---- */
.nav-links a { position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 5px;
  height: 2px; border-radius: 2px; background: var(--accent-grad);
  transform: scaleX(0); transform-origin: left; opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); opacity: 1; }
.nav-links a.active { background: transparent; }

/* ---- Hero two-column layout + visual ---- */
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; z-index: 2; }
.hero-grid .hero-inner { max-width: 100%; }
.hero-visual { position: relative; height: 460px; perspective: 1400px; }
.hero-visual .float { position: absolute; will-change: transform; }

/* code terminal */
.term {
  width: 100%; max-width: 430px; border-radius: 16px; overflow: hidden;
  background: color-mix(in srgb, #0a0e18 86%, transparent);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0,245,255,0.05);
  backdrop-filter: blur(16px);
  transform: rotateY(-9deg) rotateX(4deg);
  position: relative; z-index: 2;
}
[data-theme='light'] .term { background: color-mix(in srgb, #0a0e18 92%, transparent); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.term-bar i:nth-child(1){ background: #ff5f57; } .term-bar i:nth-child(2){ background: #febc2e; } .term-bar i:nth-child(3){ background: #28c840; }
.term-bar span { margin-left: 10px; font-family: var(--font-mono); font-size: 0.72rem; color: #6a7689; }
.term-body { padding: 18px 20px; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.85; min-height: 200px; color: #c7d4e6; }
.term-body .ln { white-space: pre-wrap; }
.term-body .c-key { color: #ff7edb; } .term-body .c-fn { color: var(--cyan); } .term-body .c-str { color: #6ee7a8; } .term-body .c-num { color: #ffb86c; } .term-body .c-com { color: #5a6678; }
.term-body .cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--cyan); vertical-align: text-bottom; animation: blink 1.05s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* floating stat chips */
.chip-float {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border-strong);
  backdrop-filter: blur(16px); box-shadow: var(--shadow); z-index: 3;
}
.chip-float .cf-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--cyan); flex: none; }
.chip-float .cf-ic svg { width: 19px; height: 19px; }
.chip-float .cf-num { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1; }
.chip-float .cf-lbl { font-size: 0.72rem; color: var(--text-2); margin-top: 2px; }
.chip-float.uptime { top: 26px; right: 0; }
.chip-float.deploy { bottom: 40px; left: -10px; }
.chip-float.rating { bottom: -6px; right: 28px; }
.chip-float .stars { color: var(--cyan); font-size: 0.8rem; letter-spacing: 1px; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float.f1 { animation: floaty 5.5s var(--ease) infinite; }
.float.f2 { animation: floaty 6.5s var(--ease) infinite 0.4s; }
.float.f3 { animation: floaty 7s var(--ease) infinite 0.8s; }

/* ---- Tech stack strip ---- */
.tech { padding: 46px 0; border-bottom: 1px solid var(--border); }
.tech .lead { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); text-align: center; margin-bottom: 28px; }
.tech-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 30px; }
.tech-row .t { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--text-2); transition: color 0.25s, transform 0.25s; }
.tech-row .t:hover { color: var(--text); transform: translateY(-2px); }
.tech-row .t .dot { width: 9px; height: 9px; border-radius: 3px; background: var(--accent-grad); flex: none; }

/* ---- FAQ accordion ---- */
.faq-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 48px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; transition: border-color 0.3s, background 0.3s; }
.faq-item.open { border-color: var(--border-strong); background: var(--surface-2); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.faq-q .pm { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; transition: transform 0.35s var(--ease), background 0.3s, color 0.3s; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); background: var(--accent-grad); color: #00121a; border-color: transparent; }
.faq-q .pm svg { width: 14px; height: 14px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a-inner { padding: 0 22px 22px; color: var(--text-2); font-size: 0.96rem; line-height: 1.6; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-visual { height: 380px; margin-top: 30px; order: 2; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .hero-visual { display: none; }
}

/* ---- Meet the founder band ---- */
.founder-band { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 52px; align-items: center; }
.fb-photo { position: relative; }
.fb-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; border-radius: var(--radius-lg); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.fb-photo::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg); background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--bg) 78%, transparent)); pointer-events: none; }
.fb-badge { position: absolute; left: 18px; bottom: 18px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-strong); backdrop-filter: blur(14px); font-size: 0.84rem; font-weight: 600; }
.fb-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37,211,102,0.18); }
.fb-content h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.8vw, 2.8rem); letter-spacing: -0.02em; line-height: 1.05; margin: 16px 0 6px; }
.fb-role { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.fb-content p { color: var(--text-2); margin-top: 16px; font-size: 1.02rem; }
.fb-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.fb-facts .f { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.fb-facts .f b { display: block; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.02em; }
.fb-facts .f span { font-size: 0.78rem; color: var(--text-2); }
.fb-links { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 880px) {
  .founder-band { grid-template-columns: 1fr; gap: 30px; }
  .fb-photo { max-width: 380px; }
  .fb-facts { grid-template-columns: repeat(3, 1fr); }
}
