/* ── RESET & BASE ──────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #07070a;
  --bg2: #0e0e14;
  --surface: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.07);
  --text: #f0f0f5;
  --muted: #888899;
  --accent: #6366f1;
  --accent2: #06b6d4;
  --grad: linear-gradient(135deg, #6366f1, #06b6d4);
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max: 1240px;
  --radius: 16px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; max-width: 100vw; }
body {
  overflow-x: hidden;
  max-width: 100vw;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: none; font-family: var(--font-body); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

/* ── CURSOR ──────────────────────────────────────── */
.cursor {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(99,102,241,0.5);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, border-color 0.3s;
  transform: translate(-50%,-50%);
  mix-blend-mode: screen;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform 0.05s;
}
body:hover .cursor { opacity: 1; }
.cursor.grow { transform: translate(-50%,-50%) scale(2); border-color: var(--accent); }

/* ── TYPOGRAPHY ──────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-head); letter-spacing: -0.03em; line-height: 1.1; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

/* ── BUTTONS ──────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 1.75rem;
  border-radius: 99px;
  border: none;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(99,102,241,0.25);
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,0.4); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 1.75rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); background: var(--surface); }

/* ── NAV ──────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem clamp(1.5rem,5vw,3rem);
  background: rgba(7,7,10,0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
#nav.scrolled { border-color: var(--border); }

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.nav-logo span { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links { display: flex; gap: 2rem; margin-left: auto; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.nav-cta { margin-left: 1rem; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

.mobile-menu {
  display: none;
  position: fixed; top: 70px; left: 0; right: 0;
  background: rgba(7,7,10,0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  padding: 1.5rem clamp(1.5rem,5vw,3rem);
  gap: 1.25rem;
  border-bottom: 1px solid var(--border);
  z-index: 499;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.1rem; font-weight: 500; color: var(--muted); }
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .btn-primary { align-self: flex-start; margin-top: 0.5rem; }

/* ── HERO ──────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 7rem clamp(1.25rem,5vw,3rem) 5rem;
  padding-top: max(7rem, calc(70px + 2rem));
}
.hero-bg, .spoke-hero-bg, .about-hero-bg {
  position: absolute; inset: -5%;
  pointer-events: none;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 0.15s linear;
}
#gridCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.25; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
}
.orb-1 { width: min(600px, 90vw); height: min(600px, 90vw); top: -20%; left: -15%; background: radial-gradient(circle, #6366f1, transparent 70%); animation: drift1 12s ease-in-out infinite alternate; }
.orb-2 { width: min(500px, 80vw); height: min(500px, 80vw); bottom: -20%; right: -10%; background: radial-gradient(circle, #06b6d4, transparent 70%); animation: drift2 10s ease-in-out infinite alternate; }

@keyframes drift1 { to { transform: translate(40px, 30px); } }
@keyframes drift2 { to { transform: translate(-40px, -30px); } }

.hero-content {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  color: #a5b4fc;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
}
.badge-dot { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(1.3)} }

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.75rem;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat span { font-size: 1.5rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat p { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}
.hero-scroll span { font-size: 0.7rem; letter-spacing: 0.15em; color: var(--muted); text-transform: uppercase; }
.scroll-line { width: 1px; height: 50px; background: linear-gradient(to bottom, var(--accent), transparent); animation: scrollFade 2s ease infinite; }
@keyframes scrollFade { 0%{opacity:0;transform:scaleY(0);transform-origin:top} 50%{opacity:1;transform:scaleY(1)} 100%{opacity:0;transform:scaleY(1);transform-origin:bottom} }

/* ── SERVICES ──────────────────────────────────────── */
.services { padding: clamp(5rem,10vw,8rem) 0; }
.services .container { max-width: 1000px; }
.services-list { margin-top: 3.5rem; display: flex; flex-direction: column; }

.service-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background 0.3s;
  cursor: none;
}
.service-item::before {
  content: attr(data-num);
  position: absolute;
  top: 2.5rem; right: 0;
  font-family: var(--font-head);
  font-size: 4.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  transition: color 0.3s;
}
.service-item:hover::before { color: rgba(99,102,241,0.06); }
.service-item:first-child { border-top: 1px solid var(--border); }

.si-left { display: flex; align-items: flex-start; gap: 1.5rem; flex: 1; }
.si-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}
.service-item:hover .si-icon { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.3); }

.si-left h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.si-left p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; max-width: 480px; }

.si-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; align-self: center; flex-shrink: 0; }
.si-tags span {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ── WHY US ──────────────────────────────────────── */
.why-us {
  padding: clamp(5rem,10vw,8rem) 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}
.why-text p { color: var(--muted); margin-bottom: 2rem; font-size: 1.05rem; line-height: 1.7; }
.why-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.why-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.3s, transform 0.3s;
}
.why-feature:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-3px); }
.wf-icon { font-size: 1rem; color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.why-feature h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; }
.why-feature p { font-size: 0.83rem; color: var(--muted); line-height: 1.55; }

/* ── WORK ──────────────────────────────────────────── */
.work { padding: clamp(5rem,10vw,8rem) 0; }
.work-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.work-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: block;
  min-height: 400px;
  border: 1px solid var(--border);
  transition: transform 0.4s, box-shadow 0.4s;
}
.work-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.wc-image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s;
  filter: brightness(0.45);
}
.work-card:hover .wc-image { transform: scale(1.04); filter: brightness(0.55); }
.wc-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(to top, rgba(7,7,10,0.9) 0%, transparent 60%);
}
.wc-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; color: var(--accent2); text-transform: uppercase; margin-bottom: 0.5rem; }
.wc-overlay h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.5rem; }
.wc-overlay p { font-size: 0.88rem; color: rgba(240,240,245,0.7); line-height: 1.55; margin-bottom: 1rem; }
.wc-link { font-size: 0.85rem; font-weight: 700; color: var(--accent); transition: gap 0.3s; }

/* ── CONTACT ──────────────────────────────────────── */
.contact { padding: clamp(5rem,10vw,8rem) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.contact-left p { color: var(--muted); margin-bottom: 2.5rem; font-size: 1.05rem; line-height: 1.7; }
.contact-direct { display: flex; flex-direction: column; gap: 0.75rem; }
.direct-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.direct-link:hover { color: var(--text); }

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(8px);
}
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(99,102,241,0.05);
}

.chip-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  transition: 0.2s;
}
.chip:hover { border-color: rgba(99,102,241,0.3); color: var(--text); }
.chip.active { background: rgba(99,102,241,0.15); border-color: var(--accent); color: var(--text); }

.form-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── FOOTER ──────────────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 0.75rem; max-width: 280px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 2rem; }
.footer-cols h5 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer-cols a { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 0.6rem; transition: color 0.2s; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem clamp(1.5rem,5vw,3rem);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  max-width: var(--max);
}
.footer-bottom p, .footer-bottom a { font-size: 0.8rem; color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }

/* ── SCROLL ANIMATIONS ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── PRICING ───────────────────────────────────────── */
.pricing { padding: clamp(5rem,10vw,8rem) 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
  backdrop-filter: blur(8px);
}
.pricing-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.pricing-card.featured {
  border: 1px solid var(--accent);
  background: var(--bg);
  box-shadow: 0 10px 40px rgba(99,102,241,0.05);
}
.pricing-card.featured .pc-desc,
.pricing-card.featured .pc-price span {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}
.pricing-card.featured .pc-features li {
  color: #ffffff;
  opacity: 1;
}
.pricing-card.featured:hover {
  border-color: transparent;
  box-shadow: 0 20px 50px rgba(99,102,241,0.15);
}
.pc-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.75rem;
}
.featured-badge {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: var(--grad);
  color: #fff;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 700;
}
.pricing-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.pc-price {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 1.25rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pc-price span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}
.pc-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  min-height: 56px;
}
.pc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}
.pc-features li {
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.85;
}
.card-cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* ── FORM TABS ────────────────────────────────────── */
.form-tabs {
  display: flex;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.3rem;
  margin-bottom: 2rem;
  gap: 0.25rem;
}
.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s;
}
.tab-btn.active {
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.2);
  color: var(--text);
}
.form-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.form-panel.hidden {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; margin-left: auto; }
  .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .work-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .si-tags { display: none; }
  .hero-stats { gap: 1.25rem; }
  .stat-divider { height: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .why-features { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.75rem; }
  .service-item::before { display: none; }
  .service-item { flex-direction: column; gap: 1rem; }
  .hero-sub br { display: none; }
  .pricing-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 600px) {
  body { cursor: auto; }
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    border: 3px solid rgba(255,255,255,0.06);
    pointer-events: none;
    z-index: 9999;
  }
  .cursor, .cursor-dot { display: none; }
  button, a { cursor: pointer; }

  /* Hero */
  .hero { padding-bottom: 4rem; }
  .hero-title { font-size: clamp(2rem, 10vw, 2.6rem); letter-spacing: -0.03em; }
  .hero-badge { font-size: 0.72rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions a { width: 100%; justify-content: center; max-width: 320px; min-height: 48px; }
  .hero-stats { flex-direction: row; gap: 0.75rem; }
  .stat-num { font-size: 1.6rem; }
  .stat p { font-size: 0.72rem; }
  .stat-divider { height: 28px; }
  .hero-scroll { display: none; }

  /* Services */
  .si-icon { width: 44px; height: 44px; }
  .si-left h3 { font-size: 1.1rem; }
  .si-left p { font-size: 0.875rem; }
  .service-item { padding: 1.75rem 0; }

  /* Why us */
  .why-feature { padding: 1.1rem; }
  .why-feature h4 { font-size: 0.88rem; }

  /* Portfolio */
  .work-card { min-height: 280px; }
  .wc-overlay { min-height: 280px; padding: 1.25rem; }
  .wc-overlay h3 { font-size: 1.2rem; }

  /* Pricing */
  .pricing-card { padding: 1.75rem; border-radius: 16px; }
  .pricing-card h3 { font-size: 1.3rem; }
  .pc-price { font-size: 1.8rem; }
  .pc-features { margin-bottom: 1.75rem; }
  .form-tabs { margin-bottom: 1.5rem; }
  .tab-btn { padding: 0.6rem 0.75rem; font-size: 0.8rem; }

  /* Contact form */
  .contact-form-wrap { padding: 1.25rem; border-radius: 16px; }
  .chip { padding: 0.5rem 0.8rem; min-height: 40px; font-size: 0.78rem; }
  .form-group input, .form-group textarea { font-size: 1rem; min-height: 48px; }
  .form-actions { flex-direction: column; }
  .form-actions button, .form-actions a { width: 100%; justify-content: center; min-height: 48px; }

  /* Footer */
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-bottom .container { flex-direction: column; gap: 0.5rem; text-align: center; }

  /* Section spacing */
  .services, .why-us, .work, .pricing, .contact { padding: 4rem 0; }
  .section-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
}

/* Safe area for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer-bottom { padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)); }
  #nav { padding-left: max(clamp(1.5rem,5vw,3rem), env(safe-area-inset-left)); padding-right: max(clamp(1.5rem,5vw,3rem), env(safe-area-inset-right)); }
}

/* ── TECH STACK MARQUEE ─────────────────────────── */
.marquee-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  overflow: hidden;
}
.marquee-label {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.marquee-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  transition: color 0.3s, border-color 0.3s;
}
.marquee-track span:hover {
  color: var(--accent);
  border-color: rgba(99,102,241,0.3);
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ── PORTFOLIO METRICS CHIPS ─────────────────────── */
.wc-metrics {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.wc-metrics span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}

/* ── SERVICE ITEM STAGGER REVEAL ─────────────────── */
.service-item:nth-child(1) { transition-delay: 0.05s; }
.service-item:nth-child(2) { transition-delay: 0.12s; }
.service-item:nth-child(3) { transition-delay: 0.19s; }
.service-item:nth-child(4) { transition-delay: 0.26s; }
.service-item:nth-child(5) { transition-delay: 0.33s; }

/* ── FOOTER CONTACT LINKS ─────────────────────────── */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1rem;
}
.footer-contact a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-contact a:hover { color: var(--accent2); }

/* ── ANIMATED PRICING FEATURED BORDER ───────────── */
.pricing-card.featured {
  position: relative;
  z-index: 0;
}
.pricing-card.featured::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  background: conic-gradient(from var(--angle, 0deg), #6366f1 0%, #06b6d4 40%, #6366f1 80%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
  animation: spin-border 5s linear infinite;
}
.pricing-card.featured:hover::after { opacity: 1; }
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes spin-border {
  to { --angle: 360deg; }
}

/* ── KINETIC TYPEWRITER BASE ─────────────────────── */
#kineticWord {
  display: inline-block;
  min-width: 140px;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* ── LEGAL PAGE (shared) ──────────────────────────── */
.legal-section {
  padding: clamp(120px, 15vh, 180px) 0 80px;
  min-height: 80vh;
}
.legal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 4.5rem);
  max-width: 900px;
  margin: 0 auto;
}
.legal-title { margin-bottom: 2rem; font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; }
.legal-body h3 { margin: 2.5rem 0 1rem; font-size: 1.5rem; color: var(--text); }
.legal-body p { color: var(--muted); margin-bottom: 1.5rem; line-height: 1.8; }
.back-btn { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--accent2); font-weight: 600; margin-bottom: 2.5rem; transition: color 0.3s; }
.back-btn:hover { color: var(--accent); }

/* ── SPOKE PAGE STYLES ───────────────────────────── */
.spoke-hero {
  padding: clamp(140px,18vh,200px) 0 clamp(5rem,8vw,7rem);
  position: relative;
  overflow: hidden;
}
.spoke-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.spoke-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem; display: block; }
.spoke-title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 1.5rem; }
.spoke-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted); max-width: 640px; line-height: 1.7; margin-bottom: 2.5rem; }
.spoke-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.spoke-body { padding: clamp(4rem,8vw,7rem) 0; }
.spoke-process { margin-top: 3.5rem; display: flex; flex-direction: column; gap: 0; }
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.process-step:first-child { border-top: 1px solid var(--border); }
.step-num {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.step-content h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-content p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

.spoke-compare { padding: clamp(4rem,8vw,7rem) 0; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; margin-top: 3rem; }
.compare-table { width: 100%; border-collapse: collapse; margin-top: 0; min-width: 540px; }
.compare-table th, .compare-table td { padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.compare-table th { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.compare-table td:first-child { font-weight: 600; }
.compare-table .check { color: #4ade80; font-weight: 700; }
.compare-table .cross { color: var(--muted); }
.compare-table .highlight-col { background: rgba(99,102,241,0.04); }

.spoke-faq { padding: clamp(4rem,8vw,7rem) 0; }
.faq-list { margin-top: 3rem; display: flex; flex-direction: column; gap: 0; }
.faq-item { padding: 1.75rem 0; border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.75rem; }
.faq-a { font-size: 0.9rem; color: var(--muted); line-height: 1.75; max-width: 700px; }

.spoke-cta-block {
  padding: clamp(4rem,8vw,7rem) 0;
  text-align: center;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.spoke-cta-block h2 { font-size: clamp(2rem,4vw,3rem); font-weight: 900; margin-bottom: 1rem; }
.spoke-cta-block p { color: var(--muted); max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.7; }
.spoke-cta-block .btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .process-step {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 2rem 0;
    align-items: flex-start;
  }
  .step-num {
    font-size: 2.25rem;
    line-height: 1;
    min-width: unset;
  }
  .step-content h3 { font-size: 1.1rem; }
}

@media (max-width: 600px) {
  .compare-table th, .compare-table td { padding: 0.75rem 0.75rem; font-size: 0.8rem; }
  .spoke-ctas { flex-direction: column; }
  .spoke-cta-block .btn-group { flex-direction: column; align-items: center; }
  .spoke-cta-block .btn-group .btn-primary,
  .spoke-cta-block .btn-group .btn-ghost { width: 100%; max-width: 320px; justify-content: center; }
}



/* ── TESTIMONIALS ─────────────────────────────────── */
.testimonials {
  padding: clamp(5rem,10vw,8rem) 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
  backdrop-filter: blur(8px);
}
.testi-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99,102,241,0.25);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.testi-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}
.testi-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  flex-grow: 1;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.72rem;
  color: #fff;
  flex-shrink: 0;
}
.testi-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
.testi-role {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* ── NAV LOGO WITH ICON ───────────────────────────── */
.nav-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
}
.nav-logo-wrap img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}
.nav-logo-wrap span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* testi-grid: 3col desktop, 2col tablet, 1col mobile */
@media (max-width: 900px) {
  .testi-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
@media (max-width: 600px) {
  .testi-grid { grid-template-columns: 1fr; }
}

/* ── TABLET BREAKPOINT (901px – 1200px) ─────────────
   Handles iPad Pro, Surface, landscape tablets, and
   narrow desktop windows where the 3-col layout breaks */
@media (min-width: 901px) and (max-width: 1200px) {
  /* Nav: keep full nav visible but tighten spacing */
  #nav { padding: 1rem clamp(1.5rem,4vw,2.5rem); gap: 1.25rem; }
  .nav-links { gap: 1.25rem; }

  /* Hero */
  .hero-title { font-size: clamp(2.8rem, 5.5vw, 3.8rem); }

  /* Services */
  .service-item { padding: 2.25rem 0; }

  /* Why Us — keep 3 cols but smaller */
  .why-features { grid-template-columns: repeat(3, 1fr); gap: 1rem; }

  /* Portfolio — 2 cols on tablet */
  .work-grid { grid-template-columns: 1fr 1fr; }

  /* Pricing — stack to 1 col on narrow tablet, 3 on wider */
  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }

  /* Testimonials — 2 cols tablet */
  .testi-grid { grid-template-columns: 1fr 1fr; }

  /* Contact — 2 cols on tablet */
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

  /* Footer — 2-col layout (brand + cols side by side) */
  .footer-inner { grid-template-columns: 1fr 1.5fr; gap: 3rem; }

  /* Spoke pages comparison table: allow horizontal scroll on narrow tablet */
  .compare-table { font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: 0.85rem 1rem; }

  /* Story grid (about page) */
  .story-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .values-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .expertise-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ── WIDE DESKTOP (>1400px) ─────────────────────────
   Constrain containers so content doesn't stretch too wide */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  .pricing-grid { max-width: 1100px; margin-left: auto; margin-right: auto; }
  .testi-grid { max-width: 1100px; margin-left: auto; margin-right: auto; }
}

/* ── INTERACTIVE SPEED & BLOAT CALCULATOR ───────── */
.calculator-section {
  padding: 6rem clamp(1.25rem, 5vw, 3rem) 4rem;
  background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.03), transparent 50%);
}
.section-subtitle {
  max-width: 700px;
  margin-top: 1rem;
  margin-bottom: 3rem;
  color: var(--muted);
  font-size: 1.1rem;
}
.calc-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}
.calc-inputs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
}
.input-group {
  display: flex;
  flex-direction: column;
}
.input-group label {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: flex;
  justify-content: space-between;
}
.input-group label span {
  color: var(--accent2);
}
.input-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.input-group input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  outline: none;
}
.input-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grad);
  cursor: pointer;
  transition: transform 0.1s;
}
.input-group input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.calc-results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.result-box {
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  border: 1px solid var(--border);
}
.result-box.bloated {
  background: rgba(255, 99, 99, 0.01);
  border-color: rgba(255, 99, 99, 0.15);
}
.result-box.bkb-optimized {
  background: rgba(99, 102, 241, 0.02);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.05);
}
.result-box h5 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.result-box.bkb-optimized h5 {
  color: var(--text);
}
.res-metric {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.res-sub {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  font-family: var(--font-body);
}
.res-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 0.75rem;
}
.bkb-badge {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: var(--grad);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.calc-footer {
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--border);
  padding: 1.75rem 2.5rem;
  border-radius: 16px;
}
.calc-footer p {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 600px;
}
.calc-footer strong {
  color: var(--text);
}

@media (max-width: 900px) {
  .calc-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  .calc-footer {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }
}
