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

:root {
  --bg:        #07070f;
  --bg2:       #0d0d1a;
  --bg3:       #12121f;
  --surface:   #16162a;
  --border:    rgba(255,255,255,0.07);
  --text:      #e8e8f0;
  --muted:     #7a7a9a;
  --grad-a:    #ff6200;
  --grad-b:    #8b5cf6;
  --grad:      linear-gradient(135deg, var(--grad-a), var(--grad-b));
  --radius:    14px;
  --radius-sm: 8px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --navbar-h:  72px;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 99px; }

/* ============================================================
   UNIVERSAL SCROLL ANIMATION SYSTEM
   ============================================================ */
[data-animate] {
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-animate="up"]    { transform: translateY(36px); }
[data-animate="down"]  { transform: translateY(-36px); }
[data-animate="left"]  { transform: translateX(-40px); }
[data-animate="right"] { transform: translateX(40px); }
[data-animate="scale"] { transform: scale(0.88); }
[data-animate].in-view { opacity: 1; transform: none; }

[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }

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

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grad-a);
  background: rgba(255,98,0,0.1);
  border: 1px solid rgba(255,98,0,0.25);
  border-radius: 99px;
  padding: 4px 14px;
}

.section-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition), transform var(--transition);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); transform: translateY(-1px); }

.btn-full { width: 100%; justify-content: center; }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 32px rgba(255,98,0,0.25);
}
.btn-cta:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 0 48px rgba(255,98,0,0.4); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--navbar-h);
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
  background: rgba(7,7,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.nav-logo .bracket {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.nav-links .nav-cta {
  padding: 8px 22px;
  background: var(--grad);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  transition: opacity var(--transition);
}
.nav-links .nav-cta:hover { opacity: 0.85; color: #fff; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none;
  flex-direction: column;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 16px 24px 20px;
  gap: 4px;
}
.nav-drawer.open { display: flex; }

.drawer-link {
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.drawer-link:last-child { border-bottom: none; }
.drawer-link:hover { color: var(--text); }

.drawer-cta {
  margin-top: 8px;
  text-align: center;
  background: var(--grad);
  color: #fff !important;
  border-radius: var(--radius-sm);
  border: none;
  padding: 12px 24px;
}

/* ============================================================
   HERO ENTRANCE ANIMATIONS (load-time, omnidirectional)
   ============================================================ */
@keyframes h-down  { from { opacity:0; transform: translateY(-28px); } to { opacity:1; transform:none; } }
@keyframes h-up    { from { opacity:0; transform: translateY(28px);  } to { opacity:1; transform:none; } }
@keyframes h-left  { from { opacity:0; transform: translateX(-40px); } to { opacity:1; transform:none; } }
@keyframes h-right { from { opacity:0; transform: translateX(40px);  } to { opacity:1; transform:none; } }
@keyframes h-scale { from { opacity:0; transform: scale(0.88);       } to { opacity:1; transform:none; } }

.hero-badge          { animation: h-down  0.7s cubic-bezier(0.4,0,0.2,1) 0.1s  both; }
.hero-headline .line-top { animation: h-left  0.8s cubic-bezier(0.4,0,0.2,1) 0.28s both; }
.hero-headline .line-bot { animation: h-right 0.8s cubic-bezier(0.4,0,0.2,1) 0.42s both; }
.hero-sub            { animation: h-up    0.7s cubic-bezier(0.4,0,0.2,1) 0.56s both; }
.hero-actions        { animation: h-up    0.7s cubic-bezier(0.4,0,0.2,1) 0.68s both; }
.hero-stats          { animation: h-scale 0.8s cubic-bezier(0.4,0,0.2,1) 0.84s both; }
.scroll-cue          { animation: h-up    0.6s cubic-bezier(0.4,0,0.2,1) 1.1s  both; }

/* Make headline spans block for independent animation */
.hero-headline .line-top,
.hero-headline .line-bot { display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--navbar-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: orb-float 8s ease-in-out infinite alternate;
}
.orb-a {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #ff6200, transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.orb-b {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  bottom: -80px; right: -80px;
  animation-delay: -3s;
}
.orb-c {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -6s;
}

@keyframes orb-float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.08); }
}
.orb-c { animation: orb-float-c 10s ease-in-out infinite alternate; }
@keyframes orb-float-c {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(calc(-50% + 20px), calc(-50% + 15px)) scale(1.1); }
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-body {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.badge-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.5);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.hero-headline {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 480px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 28px;
}

.stat-n {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-l {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  animation: scroll-bob 2s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  order: -1;
}

@keyframes scroll-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 100px 0;
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
  align-items: start;
}

/* Left column */
.about-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  position: sticky;
  top: calc(var(--navbar-h) + 24px);
}

.avatar-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: var(--grad);
  opacity: 0.5;
  filter: blur(12px);
  animation: avatar-pulse 3s ease-in-out infinite alternate;
}
@keyframes avatar-pulse {
  from { opacity: 0.35; transform: scale(0.96); }
  to   { opacity: 0.65; transform: scale(1.04); }
}

.avatar {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  z-index: 1;
  border: 3px solid rgba(255,255,255,0.12);
}

.avatar-avail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #10b981;
}

.about-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}
.meta-item i {
  width: 18px;
  text-align: center;
  color: var(--grad-a);
  font-size: 0.82rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 24px;
  margin-top: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--grad-a), var(--border));
}

.tli {
  position: relative;
  margin-bottom: 28px;
}

.tli::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad-a);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--grad-a);
}

.tli.gr::before {
  background: #10b981;
  box-shadow: 0 0 0 2px #10b981;
}

.tli.pu::before {
  background: var(--grad-b);
  box-shadow: 0 0 0 2px var(--grad-b);
}

.tli.or::before {
  background: var(--grad-a);
  box-shadow: 0 0 0 2px var(--grad-a);
}

.tl-date {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.tl-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -.3px;
}

.tl-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* Right column */
.about-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.18;
}

.about-bio {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-bio p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
}
.about-bio strong {
  color: var(--text);
  font-weight: 600;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.pillar {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.pillar.in-view:hover {
  border-color: rgba(139,92,246,0.35);
  transform: translateX(6px) !important;
  box-shadow: -4px 0 20px rgba(139,92,246,0.12), 0 8px 30px rgba(0,0,0,0.3);
}

.pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
  color: #fff;
}

.pillar-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 5px;
}
.pillar-text p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.55;
}

.about-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 4px;
}

/* Responsive about */
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-left {
    position: static;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
  }
  .avatar-wrap { flex-direction: row; align-items: center; }
  .about-meta { flex: 1; min-width: 220px; }
}

@media (max-width: 600px) {
  .about-left { flex-direction: column; align-items: center; }
  .avatar-wrap { flex-direction: column; align-items: center; }
  .about-meta { width: 100%; }
}

/* ============================================================
   PORTFOLIO CAROUSEL
   ============================================================ */
.portfolio {
  padding: 100px 0;
  background: var(--bg2);
}

.carousel-root {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.car-viewport {
  overflow: hidden;
  flex: 1;
  border-radius: var(--radius);
}

.car-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.car-card {
  flex: 0 0 calc(33.333% - 14px);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.car-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.14);
}

/* Card thumbnail */
.card-thumb {
  position: relative;
  height: 190px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(var(--accent-rgb,255,98,0),0.15), transparent 60%);
}

/* Thumb UI mockups */
.thumb-ui {
  width: 80%;
  height: 75%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.thumb-ui.center-col {
  align-items: center;
  justify-content: center;
}

.th-bar {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  width: 100%;
}

.th-row {
  display: flex;
  gap: 6px;
  flex: 1;
}
.th-row.gap { gap: 8px; }
.th-row.mt  { margin-top: 4px; }

.th-block {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
}
.th-block.tall { flex: 0 0 38%; height: 100%; }
.th-block.wide { height: 20px; }
.th-block.sm   { height: 18px; }

.th-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Sidebar layout */
.th-sidebar-layout {
  display: flex;
  gap: 6px;
  flex: 1;
}
.th-sidebar {
  width: 24%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.th-sitem {
  height: 8px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
}
.th-sitem.active {
  background: var(--accent, #8b5cf6);
  opacity: 0.7;
}
.th-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Landing page mockup */
.lp-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 80%;
}
.lp-line {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}
.lp-line.wide { width: 90%; }
.lp-line.med  { width: 60%; }
.lp-btn {
  width: 40%;
  height: 18px;
  border-radius: 4px;
  background: var(--accent, #10b981);
  opacity: 0.6;
  margin-top: 4px;
}

/* Mobile frame */
.mobile-frame {
  width: 52px;
  height: 88px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
}
.mobile-screen {
  width: 100%;
  height: 100%;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mini-row {
  display: flex;
  gap: 3px;
  margin-top: 2px;
}
.mini-card {
  flex: 1;
  height: 16px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

/* API code block */
.code-block {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 88%;
}
.code-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.04);
  border-radius: 3px;
  padding: 3px 6px;
}
.code-row.res {
  color: #10b981;
  font-size: 0.55rem;
}
.m {
  font-weight: 600;
  font-size: 0.55rem;
  border-radius: 2px;
  padding: 1px 4px;
}
.m.get  { background: rgba(59,130,246,0.25); color: #60a5fa; }
.m.post { background: rgba(16,185,129,0.25); color: #34d399; }
.m.put  { background: rgba(245,158,11,0.25); color: #fbbf24; }

/* Portal grid */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 80%;
}
.pg-card {
  height: 28px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
}
.pg-card.accent {
  background: rgba(236,72,153,0.3);
}

/* Card badge */
.card-badge {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 99px;
  backdrop-filter: blur(6px);
  z-index: 2;
}

.card-body {
  padding: 20px;
}
.card-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.card-body p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 14px;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.card-tags span {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 3px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--muted);
}

/* Carousel buttons */
.car-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition), opacity var(--transition);
}
.car-btn:hover { background: var(--bg3); border-color: rgba(255,255,255,0.2); }
.car-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* Dots */
.car-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.car-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  transition: background var(--transition), width var(--transition);
}
.car-dot.active {
  background: var(--grad-a);
  width: 20px;
  border-radius: 3px;
}

/* ============================================================
   TECH STACK
   ============================================================ */
.techstack {
  padding: 100px 0;
  background: var(--bg);
}

.stack-grid-outer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stack-cat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.stack-cat.in-view:hover {
  border-color: rgba(255,98,0,0.35);
  transform: translateY(-6px);
  box-shadow: 0 -4px 20px rgba(255,98,0,0.08), 0 16px 40px rgba(0,0,0,0.35);
}

.cat-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-title i { color: var(--grad-a); }

.stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color var(--transition), transform var(--transition);
}
.stack-item:hover {
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.stack-item i { font-size: 1.3rem; }

.stack-item-text .stack-logo-text {
  font-size: 1rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  padding: 120px 24px;
  overflow: hidden;
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
}
.cta-orb-a {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #ff6200, transparent 65%);
  top: -150px; left: 50%;
  transform: translateX(-80%);
}
.cta-orb-b {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #8b5cf6, transparent 65%);
  bottom: -100px; right: -50px;
}

.cta-grid-lines {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 100%);
}

.cta-body {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-headline {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
}

.cta-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 500px;
  line-height: 1.65;
}

.cta-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  margin: 8px 0;
}

.cta-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}
.cta-feat i { color: #10b981; font-size: 0.9rem; }

/* ============================================================
   CLIENTS
   ============================================================ */
.clients {
  padding: 100px 0;
  background: var(--bg2);
}

/* Marquee */
.marquee-wrap {
  overflow: hidden;
  margin-bottom: 60px;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.marquee-inner {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-inner:hover { animation-play-state: paused; }

.client-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.client-pill i {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.9rem;
}

/* Highlights */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.highlight {
  display: flex;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.highlight.in-view:hover {
  border-color: rgba(255,98,0,0.35);
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,98,0,0.1);
}

.hl-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: #fff;
}

.hl-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.hl-text p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================================
   LOCAL SERVICES
   ============================================================ */
#local {
  background: var(--surface);
  padding: 100px 0;
}

.local-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 32px;
  margin-top: 40px;
}

.local-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}

.local-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--grad-a), #06b6d4);
  transform: scaleX(0);
  transition: transform .3s;
  transform-origin: left;
}

.local-card:hover {
  border-color: rgba(249, 115, 22, .35);
  transform: translateY(-2px);
}

.local-card:hover::after {
  transform: scaleX(1);
}

.local-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.local-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -.3px;
}

.local-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.ltag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ltag {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, .2);
  color: var(--grad-a);
  font-family: 'Space Grotesk', sans-serif;
}

.proof-block {
  background: var(--bg);
  border: 1px solid rgba(249, 115, 22, .25);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
  border-left: 4px solid var(--grad-a);
}

.proof-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--grad-a);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.proof-quote {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 12px;
  font-style: italic;
}

.proof-attr {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* Responsive grid for local cards */
@media (min-width: 768px) {
  .local-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .local-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* ============================================================
   FLOATING ACTION BUTTON (FAB)
   ============================================================ */
.fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  border: none;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 850;
  opacity: 0;
  transform: scale(0);
  transition: all .3s ease;
}

.fab.visible {
  opacity: 1;
  transform: scale(1);
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.3);
}

.fab:active {
  transform: scale(0.95);
}

.fab.pulse {
  animation: fabPulse 3s ease-in-out infinite;
}

.fab-tooltip {
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -.2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fab:hover .fab-tooltip {
  opacity: 1;
}

@keyframes fabPulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
  }
  50% {
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.6), 0 0 0 10px rgba(139, 92, 246, 0.2);
  }
}

/* ============================================================
   CONTACT MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  pointer-events: none;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.modal-overlay.open {
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  pointer-events: all;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: color var(--transition), background var(--transition);
}
.modal-close:hover { color: var(--text); background: var(--bg3); }

.modal-head {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-head h3 {
  font-size: 1.5rem;
  font-weight: 700;
}
.modal-head p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--grad-a);
  box-shadow: 0 0 0 3px rgba(255,98,0,0.12);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(122,122,154,0.6); }

.form-field textarea { resize: vertical; min-height: 100px; }

.form-field.error input,
.form-field.error select,
.form-field.error textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}

.form-success {
  text-align: center;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.form-success i {
  font-size: 2.5rem;
  color: #10b981;
}
.form-success h4 { font-size: 1.2rem; font-weight: 700; }
.form-success p  { font-size: 0.88rem; color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: flex;
  gap: 48px;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--muted);
  transition: color var(--transition), border-color var(--transition);
}
.socials a:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-link-cta {
  color: var(--grad-a);
  font-weight: 600;
  transition: opacity var(--transition);
}
.footer-link-cta:hover { opacity: 0.75; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .stack-grid-outer { grid-template-columns: 1fr; }
  .highlights-grid  { grid-template-columns: 1fr; }
  .car-card { flex: 0 0 calc(50% - 10px); }

  /* Tablet: tighten hero-stats spacing */
  .hero-stats { padding: 16px 20px; }
  .stat { padding: 0 16px; }
  .stat-n { font-size: 1.5rem; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Mobile: switch to equal 3-column grid — no wrapping, no orphaned stat */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 14px 8px;
    gap: 0;
  }
  .stat-sep { display: none; }
  .stat {
    padding: 6px 4px;
    border-right: 1px solid var(--border);
  }
  .stat:last-child { border-right: none; }
  .stat-n { font-size: 1.3rem; }
  .stat-l { font-size: 0.7rem; letter-spacing: 0.03em; }

  .car-card { flex: 0 0 calc(100% - 10px); }

  .form-row { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; gap: 28px; }
  .footer-links { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .modal-box { padding: 28px 20px; }
}
