/* ── TOKENS ── */
:root {
  --teal:        #3DBFAD;
  --teal-dark:   #2EA090;
  --teal-faint:  rgba(61,191,173,0.08);
  --navy:        #252A45;
  --navy-mid:    #2F3558;
  --navy-light:  #3D4369;
  --off-white:   #F5F6FA;
  --surface:     #FFFFFF;
  --text:        #1A1E35;
  --text-muted:  #6B7194;
  --text-faint:  #9CA3C4;
  --border:      #E4E7F2;
  --radius:      6px;
  --radius-lg:   12px;
  --font-display:'Space Grotesk', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--off-white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(61,191,173,0.4);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(61,191,173,0.3);
}
.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.nav-logo img { height: 40px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color 0.15s;
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.2s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--navy); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links .btn {
  background: var(--navy);
  color: #fff;
  padding: 9px 20px;
  font-size: 0.85rem;
}
.nav-links .btn:hover { background: var(--navy-mid); transform: none; box-shadow: none; }

/* ── HERO ── */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 112px 0 104px;
  position: relative;
  overflow: hidden;
}

/* Circuit board background pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='2' fill='white' opacity='0.12'/%3E%3Ccircle cx='0' cy='0' r='2' fill='white' opacity='0.12'/%3E%3Ccircle cx='80' cy='0' r='2' fill='white' opacity='0.12'/%3E%3Ccircle cx='0' cy='80' r='2' fill='white' opacity='0.12'/%3E%3Ccircle cx='80' cy='80' r='2' fill='white' opacity='0.12'/%3E%3Ccircle cx='40' cy='0' r='1.5' fill='white' opacity='0.07'/%3E%3Ccircle cx='0' cy='40' r='1.5' fill='white' opacity='0.07'/%3E%3Cline x1='0' y1='0' x2='40' y2='0' stroke='white' stroke-width='0.6' opacity='0.06'/%3E%3Cline x1='40' y1='0' x2='40' y2='40' stroke='white' stroke-width='0.6' opacity='0.06'/%3E%3Cline x1='0' y1='40' x2='40' y2='40' stroke='white' stroke-width='0.6' opacity='0.06'/%3E%3Cline x1='40' y1='40' x2='80' y2='40' stroke='white' stroke-width='0.6' opacity='0.04'/%3E%3Cline x1='80' y1='0' x2='80' y2='40' stroke='white' stroke-width='0.6' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Teal gradient glow in hero */
.hero::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(61,191,173,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--teal);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: #fff;
}
.hero h1 em {
  font-style: normal;
  color: var(--teal);
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  max-width: 540px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── SERVICES ── */
.services {
  padding: 104px 0;
  background: var(--surface);
}
.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  display: block;
  width: 16px;
  height: 2px;
  background: var(--teal);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 56px;
  max-width: 500px;
  line-height: 1.7;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  background: var(--surface);
  padding: 40px 36px;
  position: relative;
  transition: background 0.2s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s var(--ease);
}
.service-card:hover { background: var(--off-white); }
.service-card:hover::before { transform: scaleY(1); }

.service-icon {
  color: var(--teal);
  margin-bottom: 20px;
  width: 44px;
  height: 44px;
  background: var(--teal-faint);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ── WHY ── */
.why {
  padding: 104px 0;
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.why::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(61,191,173,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.why-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.why-text .section-label { color: var(--teal); }
.why-text .section-label::before { background: var(--teal); }
.why-text .section-title { color: #fff; }
.why-text p {
  color: rgba(255,255,255,0.65);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.why-text p:last-child { margin-bottom: 0; }

.why-proof {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.proof-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.2s;
}
.proof-item:last-child { border-bottom: none; }
.proof-item:hover { background: rgba(255,255,255,0.04); }
.proof-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 6px;
}
.proof-item strong {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}
.proof-item span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* ── STATS GRID ── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-card {
  padding: 26px 22px;
  background: rgba(255,255,255,0.02);
  transition: background 0.2s;
}
.stat-card:hover { background: rgba(255,255,255,0.06); }
.stat-numbers {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-wrap: wrap;
}
.stat-before {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.3);
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.15);
}
.stat-arrow {
  font-size: 0.9rem;
  color: var(--teal);
  opacity: 0.8;
  font-weight: 400;
}
.stat-after {
  font-size: 1.75rem;
  color: var(--teal);
  line-height: 1;
}
.stat-unit {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.7;
}
.stat-phrase {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
  margin: 0;
}

/* ── ABOUT ── */
.about {
  padding: 104px 0;
  background: var(--off-white);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-text p:last-child { margin-bottom: 0; }
.about-aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.about-aside h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
}
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.tech-list li {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--navy);
  letter-spacing: 0.01em;
}

/* ── FOUNDER BIO ── */
.founder-bio {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  transition: color 0.15s;
}
.linkedin-link:hover { color: var(--teal-dark); }

/* ── CONTACT ── */
.contact {
  padding: 104px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}
.contact-text p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.contact-text p:last-child { margin-bottom: 0; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  appearance: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(61,191,173,0.12);
  background: var(--surface);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-faint); }
.contact-form .btn { align-self: flex-start; margin-top: 4px; }

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.35);
}
.footer-nav {
  display: flex;
  gap: 28px;
}
.footer-nav a {
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--teal); }

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-inner { grid-template-columns: 1fr; gap: 48px; }
  .stats-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 72px; }
  .nav-links a:not(.btn) { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
