/* ── KalSquad Design Tokens ── */
:root {
  --navy: #0f1b2d;
  --navy-light: #1a2d47;
  --teal: #3dd4b0;
  --teal-dark: #2bb896;
  --teal-glow: rgba(61, 212, 176, 0.15);
  --slate: #64748b;
  --slate-light: #94a3b8;
  --white: #ffffff;
  --off-white: #f8fafc;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: #e2e8f0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 27, 45, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 27, 45, 0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background: var(--teal);
  color: var(--navy);
}

.btn--primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--teal-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 27, 45, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.header--scrolled {
  background: rgba(15, 27, 45, 0.95);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo img {
  height: 40px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  color: var(--slate-light);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--white);
}

.nav__cta {
  display: none;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

@media (min-width: 768px) {
  .nav__cta {
    display: inline-flex;
  }
}

@media (max-width: 767px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links li a {
    display: block;
    padding: 0.75rem 1.5rem;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav__toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  padding-top: 72px;
}

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

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(61, 212, 176, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 212, 176, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero__glow--1 {
  width: 500px;
  height: 500px;
  background: rgba(61, 212, 176, 0.12);
  top: -10%;
  right: -5%;
}

.hero__glow--2 {
  width: 400px;
  height: 400px;
  background: rgba(59, 130, 246, 0.08);
  bottom: 10%;
  left: -10%;
}

.hero__content {
  position: relative;
  padding: 4rem 0 6rem;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--teal) 0%, #6ee7c4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--slate-light);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

/* ── Section shared ── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--slate);
  font-size: 1.0625rem;
}

/* ── Services ── */
.services {
  padding: 6rem 0;
  background: var(--off-white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(61, 212, 176, 0.3);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-glow);
  border-radius: var(--radius);
  color: var(--teal-dark);
  margin-bottom: 1.25rem;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
}

.card p {
  color: var(--slate);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ── About ── */
.about {
  padding: 6rem 0;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__text h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.about__text > p {
  color: var(--slate);
  font-size: 1.0625rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about__list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--navy-light);
  font-size: 0.9375rem;
  margin-bottom: 0.625rem;
}

.about__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
}

.about__stats {
  display: grid;
  gap: 1.25rem;
}

.stat {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat__number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: 0.875rem;
  color: var(--slate-light);
}

@media (max-width: 768px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ── Contact ── */
.contact {
  padding: 6rem 0;
  background: var(--navy);
  color: var(--white);
}

.contact__inner {
  text-align: center;
}

.contact__inner h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.contact__inner p {
  color: var(--slate-light);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}

/* ── Footer ── */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-light);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__logo {
  height: 32px;
  width: auto;
  opacity: 0.85;
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--slate);
}

@media (max-width: 480px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
