:root {
  --ink:      #060d18;
  --deep:     #0a1628;
  --mid:      #0f2240;
  --surface:  #132952;
  --line:     rgba(56,140,200,0.18);
  --teal:     #1fe0c4;
  --sky:      #38b6e8;
  --amber:    #f0a832;
  --fg:       #e8f2fc;
  --muted:    rgba(232,242,252,0.55);
  --font-head: 'Syne', sans-serif;
  --font-serif:'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --ease:     cubic-bezier(.4,0,.2,1);
  --r: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── CANVAS BACKGROUND ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
}

/* ── GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 180px;
  opacity: .35;
  z-index: 0;
  pointer-events: none;
}

section, nav, footer { position: relative; z-index: 1; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  height: 70px;
  background: rgba(6,13,24,.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
}

.nav-logo-mark {
  width: 36px; height: 36px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--fg);
  letter-spacing: -.01em;
  line-height: 1.1;
}

.nav-logo-text span { color: var(--teal); }

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.nav-links a:hover { color: var(--teal); }

.nav-cta {
  background: transparent;
  border: 1.5px solid var(--teal);
  color: var(--teal) !important;
  padding: .45rem 1.2rem;
  border-radius: var(--r);
  transition: background .2s, color .2s !important;
}

.nav-cta:hover {
  background: var(--teal) !important;
  color: var(--ink) !important;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem clamp(1.5rem, 6vw, 8rem) 5rem;
  overflow: hidden;
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp .8s .2s var(--ease) forwards;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  max-width: 900px;
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp .9s .35s var(--ease) forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--teal);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 3rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp .9s .5s var(--ease) forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp .9s .65s var(--ease) forwards;
}

.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border-radius: var(--r);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 0 0 rgba(31,224,196,0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(31,224,196,.35);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border-radius: var(--r);
  border: 1.5px solid var(--line);
  text-decoration: none;
  transition: border-color .2s, color .2s;
}

.btn-ghost:hover { border-color: var(--sky); color: var(--sky); }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  opacity: 0;
  animation: fadeUp .8s 1.2s var(--ease) forwards;
}

.hero-scroll span {
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-head);
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollBob 1.8s ease-in-out infinite;
}

/* ── STATS BAR ── */
.stats-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(15,34,64,.5);
  padding: 2.2rem clamp(1.5rem, 5vw, 5rem);
}

.stat-item {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 1rem 2rem;
  border-right: 1px solid var(--line);
  opacity: 0;
  animation: fadeUp .7s var(--ease) forwards;
}

.stat-item:last-child { border-right: none; }
.stat-item:nth-child(1) { animation-delay: .1s; }
.stat-item:nth-child(2) { animation-delay: .2s; }
.stat-item:nth-child(3) { animation-delay: .3s; }
.stat-item:nth-child(4) { animation-delay: .4s; }

.stat-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: .3rem;
}

.stat-label {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-head);
}

/* ── SECTION COMMONS ── */
.section-label {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.4rem;
}

.section-title em { font-style: italic; color: var(--sky); }

.section-body {
  color: var(--muted);
  font-weight: 300;
  max-width: 560px;
  font-size: 1.05rem;
}

/* ── SERVICES ── */
#services {
  padding: 7rem clamp(1.5rem, 6vw, 8rem);
}

.services-header {
  max-width: 700px;
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  background: var(--line);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.service-card {
  background: var(--deep);
  padding: 2.5rem;
  transition: background .3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--teal);
  transition: height .4s var(--ease);
}

.service-card:hover { background: var(--mid); }
.service-card:hover::before { height: 100%; }

.service-icon {
  width: 48px; height: 48px;
  margin-bottom: 1.4rem;
  color: var(--teal);
}

.service-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

.service-desc {
  color: var(--muted);
  font-size: .94rem;
  font-weight: 300;
  line-height: 1.7;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1.4rem;
}

.tag {
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 3px;
  background: rgba(31,224,196,.08);
  color: var(--teal);
  border: 1px solid rgba(31,224,196,.2);
}

/* ── ABOUT / HOW ── */
#about {
  padding: 7rem clamp(1.5rem, 6vw, 8rem);
  background: linear-gradient(135deg, rgba(19,41,82,.6) 0%, rgba(6,13,24,0) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
}

.about-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
  animation: spin linear infinite;
}

.r1 { inset: 0; animation-duration: 60s; }
.r2 { inset: 12%; animation-duration: 40s; animation-direction: reverse; }
.r3 { inset: 24%; animation-duration: 25s; }

.about-ring::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  top: -4px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--teal);
}

.about-center {
  position: absolute;
  inset: 35%;
  background: radial-gradient(circle at center, rgba(31,224,196,.15), transparent 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-center svg { width: 52px; height: 52px; color: var(--teal); }

.about-dots {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(1px 1px at 50% 5%, var(--sky) 0%, transparent 100%),
              radial-gradient(1px 1px at 20% 80%, var(--amber) 0%, transparent 100%),
              radial-gradient(1px 1px at 85% 35%, var(--teal) 0%, transparent 100%);
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--teal);
  background: rgba(31,224,196,.1);
  border: 1px solid rgba(31,224,196,.25);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .3rem;
}

.step-content p {
  font-size: .9rem;
  color: var(--muted);
  font-weight: 300;
}

/* ── WHY US ── */
#why {
  padding: 7rem clamp(1.5rem, 6vw, 8rem);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.why-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15,34,64,.3);
  transition: border-color .3s, transform .3s;
}

.why-card:hover {
  border-color: rgba(31,224,196,.4);
  transform: translateY(-4px);
}

.why-icon {
  width: 40px; height: 40px;
  color: var(--amber);
  margin-bottom: 1rem;
}

.why-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .6rem;
}

.why-card p {
  font-size: .9rem;
  color: var(--muted);
  font-weight: 300;
}

/* ── INDUSTRIES ── */
#industries {
  padding: 6rem clamp(1.5rem, 6vw, 8rem);
  border-top: 1px solid var(--line);
  background: rgba(10,22,40,.5);
}

.industries-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.industry-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-top: 2rem;
}

.industry-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: default;
  transition: background .2s, border-color .2s;
}

.industry-item:hover {
  background: rgba(56,182,232,.06);
  border-color: var(--line);
}

.industry-item svg {
  width: 22px; height: 22px;
  color: var(--sky);
  flex-shrink: 0;
}

.industry-item span {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 600;
}

.industries-quote {
  background: linear-gradient(135deg, var(--mid), var(--deep));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.industries-quote::before {
  content: '\201C';
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  font-family: var(--font-serif);
  font-size: 10rem;
  color: rgba(31,224,196,.06);
  line-height: 1;
}

.industries-quote blockquote {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--fg);
  margin-bottom: 1.5rem;
  position: relative;
}

.industries-quote cite {
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  font-style: normal;
}

.testimonial-nav {
  display: flex;
  gap: .5rem;
  margin-top: 2rem;
}

.t-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background .2s;
}

.t-dot.active { background: var(--teal); }

/* ── CTA ── */
#cta {
  padding: 8rem clamp(1.5rem, 6vw, 8rem);
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(19,41,82,.8), transparent);
  border-top: 1px solid var(--line);
}

#cta .section-title { max-width: 680px; margin: 0 auto 1.2rem; }
#cta .section-body { margin: 0 auto 2.8rem; text-align: center; }

.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.contact-grid {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.contact-item svg {
  width: 20px; height: 20px;
  color: var(--teal);
}

.contact-item a {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  transition: color .2s;
}

.contact-item a:hover { color: var(--teal); }

/* ── FOOTER ── */
footer {
  padding: 2.5rem clamp(1.5rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(6,13,24,.9);
}

.footer-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .95rem;
  color: var(--fg);
  text-decoration: none;
}

.footer-logo span { color: var(--teal); }

.footer-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-head);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.footer-links a:hover { color: var(--teal); }

.footer-copy {
  font-size: .78rem;
  color: rgba(232,242,252,.3);
}

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes scrollBob {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: .4; transform: scaleY(.7); }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { max-width: 320px; margin: 0 auto; }
  .industries-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .stats-bar { gap: 0; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--line); }
  .stat-item:last-child { border-bottom: none; }
}
