/* ===== Design tokens ===== */
:root {
  --navy: #0d2137;
  --navy-800: #122a45;
  --navy-700: #1a3a5c;
  --teal: #2dd4bf;
  --teal-600: #14b8a6;
  --teal-glow: rgba(45, 212, 191, 0.35);
  --amber: #f59e0b;
  --amber-600: #d97706;
  --ink: #0f172a;
  --slate: #475569;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f1f5f9;
  --border: #e2e8f0;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(13, 33, 55, 0.08);
  --shadow: 0 12px 32px rgba(13, 33, 55, 0.10);
  --shadow-lg: 0 24px 60px rgba(13, 33, 55, 0.18);
  --maxw: 1140px;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 0.98rem;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-600) 100%);
  color: var(--navy); box-shadow: 0 8px 24px var(--teal-glow);
}
.btn-primary:hover {
  box-shadow: 0 14px 32px rgba(45, 212, 191, 0.5);
  transform: translateY(-2px);
}
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.6); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 33, 55, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.scrolled {
  background: rgba(13, 33, 55, 0.96);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.nav { display: flex; align-items: center; gap: 24px; height: 72px; transition: height .3s ease; }
.site-header.scrolled .nav { height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-family: var(--font-head); }
.brand-mark {
  background: linear-gradient(135deg, var(--teal), var(--teal-600));
  color: var(--navy); font-weight: 800;
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px; letter-spacing: -0.03em; font-size: 1.15rem;
  box-shadow: 0 4px 14px var(--teal-glow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); box-shadow: 0 6px 20px var(--teal-glow); }
.brand-text { font-weight: 700; letter-spacing: 0.06em; font-size: 0.98rem; }
.brand-text small { font-weight: 500; opacity: 0.65; font-size: 0.7rem; letter-spacing: 0.1em; }
.nav-links { margin-left: auto; display: flex; gap: 28px; }
.nav-links a {
  color: rgba(255,255,255,0.82); font-weight: 500; font-size: 0.95rem;
  position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--teal); border-radius: 2px;
  transition: width .25s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--teal); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-cta { padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; color: var(--white); overflow: hidden; background: var(--navy); min-height: 88vh; display: flex; align-items: center; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 82% -10%, rgba(45,212,191,0.18), transparent 60%),
    radial-gradient(700px 500px at 5% 110%, rgba(26,58,92,0.9), transparent 55%),
    linear-gradient(160deg, #0d2137 0%, #122a45 55%, #0d2137 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000 40%, transparent 100%);
  animation: grid-drift 20s linear infinite;
}
@keyframes grid-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(48px, 48px); }
}

.orb {
  position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.orb-1 {
  width: 420px; height: 420px; top: -10%; right: 5%;
  background: rgba(45, 212, 191, 0.22);
  animation-duration: 9s;
}
.orb-2 {
  width: 300px; height: 300px; bottom: 10%; left: -5%;
  background: rgba(245, 158, 11, 0.12);
  animation-duration: 11s; animation-delay: -3s;
}
.orb-3 {
  width: 200px; height: 200px; top: 40%; left: 45%;
  background: rgba(45, 212, 191, 0.10);
  animation-duration: 7s; animation-delay: -5s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}

.hero-inner { position: relative; padding: 96px 24px 104px; max-width: var(--maxw); width: 100%; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem;
  font-weight: 600; color: var(--teal); margin: 0 0 16px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; margin-bottom: 22px; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,0.82); max-width: 620px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 60px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 28px;
}
.hero-stats > div {
  transition: transform .3s ease;
}
.hero-stats > div:hover { transform: translateY(-4px); }
.hero-stats strong {
  display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--white);
  background: linear-gradient(135deg, var(--white), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stats span { color: rgba(255,255,255,0.65); font-size: 0.9rem; }

/* Hero entrance animation */
.hero-animate {
  opacity: 0; transform: translateY(28px);
  animation: hero-in .7s ease forwards;
  animation-delay: calc(0.12s * var(--i) + 0.2s);
}
@keyframes hero-in {
  to { opacity: 1; transform: none; }
}

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 6px 0 12px; }
.section-sub { color: var(--slate); font-size: 1.05rem; margin: 0; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.about-copy h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 18px; }
.about-copy p { color: var(--slate); margin: 0 0 16px; font-size: 1.05rem; }
.about-points {
  list-style: none; margin: 0; padding: 28px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, transform .3s ease;
}
.about-points:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.about-points li {
  display: flex; align-items: center; gap: 12px; padding: 12px 0; font-weight: 500;
  transition: transform .2s ease, color .2s ease;
}
.about-points li:hover { transform: translateX(6px); color: var(--navy-700); }
.about-points li + li { border-top: 1px solid var(--border); }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-600));
  flex: none; box-shadow: 0 0 0 4px rgba(45,212,191,0.18);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
.about-points li:nth-child(2) .dot { animation-delay: 0.4s; }
.about-points li:nth-child(3) .dot { animation-delay: 0.8s; }
.about-points li:nth-child(4) .dot { animation-delay: 1.2s; }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(45,212,191,0.18); }
  50% { box-shadow: 0 0 0 8px rgba(45,212,191,0.08); }
}

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.card:hover::before { transform: scaleX(1); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(45,212,191,0.3); }
.card-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-700));
  border-radius: 14px; margin-bottom: 18px; color: var(--teal);
  transition: transform .3s ease, background .3s ease;
}
.card-icon svg { width: 24px; height: 24px; }
.card:hover .card-icon { transform: scale(1.08) rotate(-3deg); background: linear-gradient(135deg, var(--navy-700), var(--navy)); }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--slate); margin: 0; font-size: 0.98rem; }

/* ===== Clients ===== */
.clients { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.client-logo {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 260px; padding: 38px 40px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.client-logo:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow); border-color: rgba(45,212,191,0.35); }
.client-img { height: 52px; width: auto; max-width: 220px; object-fit: contain; filter: grayscale(20%); transition: filter .3s ease; }
.client-logo:hover .client-img { filter: grayscale(0%); }
.client-tag { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; margin-top: 4px; }

/* ===== Contact ===== */
.contact {
  background: var(--navy); color: var(--white);
  position: relative; overflow: hidden;
}
.contact::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 400px at 90% 80%, rgba(45,212,191,0.12), transparent 60%);
  pointer-events: none;
}
.contact .eyebrow { color: var(--teal); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; position: relative; }
.contact-copy h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 16px; }
.contact-copy p { color: rgba(255,255,255,0.78); font-size: 1.05rem; margin: 0 0 24px; }
.contact-email {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;
  color: var(--teal); border-bottom: 2px solid rgba(45,212,191,0.4); padding-bottom: 2px;
  transition: border-color .2s, color .2s;
}
.contact-email:hover { border-color: var(--teal); color: var(--white); }
.contact-address {
  display: flex; align-items: flex-start; gap: 12px; margin-top: 28px;
  color: rgba(255,255,255,0.72); font-size: 0.98rem; line-height: 1.55;
}
.contact-address svg { width: 20px; height: 20px; flex: none; color: var(--teal); margin-top: 2px; }
.contact-form {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  padding: 30px; border-radius: var(--radius); backdrop-filter: blur(8px);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.contact-form:focus-within { border-color: rgba(45,212,191,0.4); box-shadow: 0 0 0 4px rgba(45,212,191,0.08); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: rgba(255,255,255,0.85); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06);
  color: var(--white); font-family: inherit; font-size: 0.98rem; resize: vertical;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.45); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--teal);
  background: rgba(255,255,255,0.10); box-shadow: 0 0 0 3px rgba(45,212,191,0.12);
}

/* ===== Footer ===== */
.site-footer { background: #081527; color: rgba(255,255,255,0.8); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 44px 24px 20px; }
.footer-links { display: flex; gap: 24px; margin-left: auto; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.95rem; transition: color .2s; }
.footer-links a:hover { color: var(--teal); }
.footer-contact { margin: 0; text-align: right; }
.footer-contact a { color: var(--teal); display: block; margin-bottom: 4px; }
.footer-contact address { color: rgba(255,255,255,0.5); font-size: 0.85rem; line-height: 1.5; }
.footer-bottom { padding: 16px 24px 32px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom p { margin: 0; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .65s cubic-bezier(0.22, 1, 0.36, 1), transform .65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.card.reveal { transition-delay: calc(0.1s * var(--card-i, 0)); }
.client-logo.reveal:nth-child(2) { transition-delay: 0.15s; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid, .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-contact { text-align: left; width: 100%; }
  .footer-links { margin-left: 0; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--navy-800); padding: 18px 24px; gap: 6px; border-bottom: 1px solid rgba(255,255,255,0.1);
    animation: slide-down .25s ease;
  }
  @keyframes slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }
  .nav-links.open a { padding: 10px 0; }
  .section { padding: 64px 0; }
  .hero { min-height: auto; }
  .hero-inner { padding: 72px 24px 80px; }
  .hero-stats { gap: 28px; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .client-logo { min-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-animate { opacity: 1; transform: none; animation: none; }
}
