/* ==========================================================================
   KANS IT — design tokens
   ========================================================================== */
:root {
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;

  --ink: #05070f;
  --navy: #0a1024;
  --navy-2: #0e1630;
  --panel: #0c1328;
  --line: #1c2745;
  --line-soft: #16203c;
  --blue: #3b74f0;
  --blue-2: #2554c7;
  --cyan: #29d6ee;
  --ink-white: #f5f8ff;
  --slate: #97a3c2;
  --slate-dim: #6b7699;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--ink);
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--ink-white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(41,214,238,0.25); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
}
.text-gradient {
  background: linear-gradient(95deg, #ffffff 10%, #a9c4ff 55%, #29d6ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.icon { width: 20px; height: 20px; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn .icon { width: 16px; height: 16px; transition: transform 0.25s ease; }
.btn:hover .icon { transform: translateX(2px); }

.btn-primary {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  color: #04101f;
  box-shadow: 0 10px 30px -10px rgba(41,214,238,0.55);
}
.btn-primary:hover {
  box-shadow: 0 14px 38px -10px rgba(41,214,238,0.75);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-white);
}
.btn-secondary:hover { border-color: rgba(41,214,238,0.6); color: var(--cyan); }

.btn-block { width: 100%; }
@media (min-width: 640px) { .btn-block-sm-auto { width: auto; } }

/* ==========================================================================
   Navbar
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(5,7,15,0.88);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  min-height: 4.5rem;
}
.logo {
  display: inline-flex;
  align-items: center;
}
.logo-chip {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 0.35rem 0.6rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.logo-chip img { height: 26px; width: auto; }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--cyan); }

.nav-cta { display: none; }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  color: var(--ink-white);
}
.nav-toggle .icon { width: 24px; height: 24px; }

.mobile-menu {
  overflow: hidden;
  max-height: 0;
  border-top: 1px solid transparent;
  background: var(--ink);
  transition: max-height 0.3s ease;
}
.mobile-menu.is-open {
  max-height: 32rem;
  border-top-color: var(--line);
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 0.25rem; padding-block: 1rem; }
.mobile-menu a {
  display: block;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-white);
}
.mobile-menu a.is-active { color: var(--cyan); }
.mobile-menu .mobile-cta {
  display: block;
  text-align: center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  color: #04101f;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: block; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 10rem;
  padding-bottom: 5rem;
}
.hero .hero-grid-bg { position: absolute; inset: 0; opacity: 0.25; z-index: 0; }
.hero-glow-a, .hero-glow-b {
  position: absolute;
  border-radius: 999px;
  filter: blur(110px);
  z-index: 0;
}
.hero-glow-a { top: -10rem; left: -10rem; width: 24rem; height: 24rem; background: var(--blue); opacity: 0.3; }
.hero-glow-b { top: 5rem; right: 0; width: 18rem; height: 18rem; background: var(--cyan); opacity: 0.25; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  background: rgba(12,19,40,0.6);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate);
}
.hero h1 {
  margin-top: 1.5rem;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink-white);
}
.hero p.lead {
  margin-top: 1.5rem;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate);
}
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem; }

@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) {
  .hero h1 { font-size: 3.25rem; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust-strip {
  border-block: 1px solid var(--line);
  background: rgba(10,16,36,0.6);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  padding-block: 2rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
}
.trust-item .icon { color: var(--cyan); width: 16px; height: 16px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: 6rem; }
.section-alt { border-block: 1px solid var(--line); background: rgba(10,16,36,0.6); }
.section-header { max-width: 42rem; }
.section-header.center { margin-inline: auto; text-align: center; }
.section-header h2 { font-size: 1.875rem; font-weight: 600; line-height: 1.2; color: var(--ink-white); }
.section-header p { margin-top: 1rem; font-size: 1rem; line-height: 1.7; color: var(--slate); }
@media (min-width: 640px) { .section-header h2 { font-size: 2.25rem; } }

/* ==========================================================================
   Cards — generic
   ========================================================================== */
.card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
}

/* Service cards */
.service-grid { margin-top: 3rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.service-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  transition: border-color 0.3s ease;
}
.service-card:hover { border-color: rgba(41,214,238,0.4); }
.service-card::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover::before { opacity: 1; }
.service-card .icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--navy-2);
  color: var(--cyan);
}
.service-card .icon-box .icon { width: 22px; height: 22px; }
.service-card h3 { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 600; color: var(--ink-white); }
.service-card p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; color: var(--slate); }
.service-card .explore {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cyan);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover .explore { opacity: 1; }
.service-card .explore .icon { width: 14px; height: 14px; }

@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }

/* Solution cards */
.solution-grid { margin-top: 3rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.solution-card { padding: 1.5rem; }
.solution-card .icon { width: 24px; height: 24px; color: var(--cyan); }
.solution-card h3 { margin-top: 1rem; font-size: 1rem; font-weight: 600; color: var(--ink-white); }
.solution-card dl { margin-top: 1rem; font-size: 0.8125rem; line-height: 1.6; }
.solution-card dt { color: var(--slate-dim); }
.solution-card dt.approach { color: var(--cyan); margin-top: 0.625rem; }
.solution-card dd { margin: 0.125rem 0 0; color: var(--slate); }
.solution-card dd.result { color: var(--ink-white); }
@media (min-width: 640px) { .solution-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .solution-grid.compact { grid-template-columns: repeat(4, 1fr); } }

/* Industry cards */
.industry-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  padding: 1.5rem;
  transition: border-color 0.3s ease;
}
.industry-card:hover { border-color: rgba(41,214,238,0.4); }
.industry-card .icon { width: 26px; height: 26px; color: var(--cyan); }
.industry-card span { font-size: 0.875rem; font-weight: 500; color: var(--ink-white); }
@media (min-width: 640px) { .industry-grid { grid-template-columns: repeat(4, 1fr); } }
.industry-page-grid { margin-top: 0; display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.industry-page-card { padding: 1.75rem; text-align: left; align-items: flex-start; }
.industry-page-card p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; color: var(--slate); }
@media (min-width: 640px) { .industry-page-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .industry-page-grid { grid-template-columns: repeat(4, 1fr); } }

/* Why us */
.why-grid { margin-top: 3rem; display: grid; grid-template-columns: 1fr; gap: 2rem; }
.why-item {
  border-left: 2px solid var(--line);
  padding-left: 1.25rem;
  transition: border-color 0.3s ease;
}
.why-item:hover { border-color: var(--cyan); }
.why-item .order { font-family: var(--font-display); font-size: 0.875rem; color: var(--slate-dim); }
.why-item h3 { margin-top: 0.5rem; font-size: 1.125rem; font-weight: 600; color: var(--ink-white); }
.why-item p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; color: var(--slate); }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

/* Tech capabilities */
.tech-grid { margin-top: 3rem; display: grid; grid-template-columns: 1fr; gap: 2rem; }
.tech-group h3 { font-size: 0.875rem; font-weight: 600; color: var(--cyan); }
.tech-pills { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-pill {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  color: var(--ink-white);
}
@media (min-width: 640px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }

/* Projects */
.project-grid { margin-top: 3rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.project-card { overflow: hidden; }
.project-thumb {
  position: relative;
  height: 12rem;
  width: 100%;
  overflow: hidden;
}
.project-thumb::after { content: ""; position: absolute; inset: 0; }
.project-thumb .bg-grid { position: absolute; inset: 0; opacity: 0.4; }
.project-thumb .mono {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.15);
}
.accent-1 { background: linear-gradient(135deg, rgba(59,116,240,0.3), rgba(41,214,238,0.1)); }
.accent-2 { background: linear-gradient(135deg, rgba(41,214,238,0.3), rgba(59,116,240,0.1)); }
.accent-3 { background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(59,116,240,0.1)); }
.project-body { padding: 1.5rem; }
.project-category { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cyan); }
.project-body h3 { margin-top: 0.5rem; font-size: 1.125rem; font-weight: 600; color: var(--ink-white); }
.project-body p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; color: var(--slate); }
.project-view {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-white);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.project-card:hover .project-view { color: var(--cyan); }
.project-view .icon { width: 14px; height: 14px; }
@media (min-width: 640px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { color: var(--ink-white); }
.filter-btn.is-active { border-color: var(--cyan); background: rgba(41,214,238,0.1); color: var(--cyan); }

/* Process timeline */
.process-grid { margin-top: 3.5rem; display: grid; grid-template-columns: 1fr; gap: 2.5rem 1.5rem; }
.process-step .step-head { display: flex; align-items: center; gap: 0.75rem; }
.process-step .step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(41,214,238,0.4);
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--cyan);
}
.process-step .step-line { display: none; height: 1px; flex: 1; background: var(--line); }
.process-step h3 { margin-top: 1rem; font-size: 1rem; font-weight: 600; color: var(--ink-white); }
.process-step p { margin-top: 0.375rem; font-size: 0.875rem; line-height: 1.6; color: var(--slate); }
@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .process-step .step-line { display: block; }
}

/* Stats */
.stats-note { margin-bottom: 2.5rem; text-align: center; font-size: 0.75rem; color: var(--slate-dim); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.stat { text-align: center; }
.stat .value { font-family: var(--font-display); font-size: 2.25rem; font-weight: 600; }
.stat .label { margin-top: 0.5rem; font-size: 0.875rem; color: var(--slate); }
@media (min-width: 640px) { .stat .value { font-size: 3rem; } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* Testimonials */
.testimonial-grid { margin-top: 3rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.testimonial-card { display: flex; flex-direction: column; padding: 1.75rem; }
.testimonial-card .icon { width: 24px; height: 24px; color: rgba(41,214,238,0.7); }
.testimonial-card p.quote-text { margin-top: 1rem; flex: 1; font-size: 0.875rem; line-height: 1.6; color: var(--slate); }
.testimonial-card .attribution { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.testimonial-card .attribution .name { font-size: 0.875rem; font-weight: 500; color: var(--ink-white); }
.testimonial-card .attribution .company { font-size: 0.75rem; color: var(--slate-dim); }
.testimonial-note { margin: -2rem auto 1rem; max-width: 28rem; text-align: center; font-size: 0.75rem; color: var(--slate-dim); }
@media (min-width: 1024px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }

/* About page image panel */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3.5rem; align-items: center; }
.about-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
}
.about-visual .glow {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background:
    radial-gradient(circle at 30% 30%, rgba(41,214,238,0.18), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(59,116,240,0.22), transparent 55%);
}
.about-visual .dots {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  place-items: center;
  padding: 3.5rem;
}
.about-visual .dot { width: 12px; height: 12px; border-radius: 2px; background: var(--cyan); animation: dot-pulse 2.4s ease-in-out infinite; }
@keyframes dot-pulse { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.9; } }
.feature-list { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 0.875rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: var(--ink-white); }
.feature-list .icon { color: var(--cyan); margin-top: 0.125rem; width: 18px; height: 18px; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   CTA section
   ========================================================================== */
.cta-section { position: relative; overflow: hidden; background: var(--navy); }
.cta-section .bg-grid { position: absolute; inset: 0; opacity: 0.3; }
.cta-glow {
  position: absolute;
  top: -8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 20rem;
  border-radius: 999px;
  opacity: 0.4;
  filter: blur(100px);
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
}
.cta-inner { position: relative; padding-block: 5rem; text-align: center; }
.cta-inner h2 { margin-inline: auto; max-width: 40rem; font-size: 1.875rem; font-weight: 600; line-height: 1.25; color: var(--ink-white); }
.cta-inner p { margin: 1rem auto 0; max-width: 34rem; font-size: 1rem; color: var(--slate); }
.cta-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .cta-inner h2 { font-size: 2.25rem; } }

/* ==========================================================================
   Inner page hero
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; padding-top: 9rem; padding-bottom: 4rem; }
.page-hero .glow {
  position: absolute;
  top: -8rem;
  left: 33%;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  opacity: 0.25;
  filter: blur(100px);
  background: var(--blue);
}
.page-hero-inner { position: relative; max-width: 42rem; }
.page-hero .eyebrow { font-size: 0.875rem; font-weight: 500; color: var(--cyan); }
.page-hero h1 { margin-top: 0.75rem; font-size: 2.25rem; font-weight: 600; line-height: 1.2; color: var(--ink-white); }
.page-hero .lead { margin-top: 1.25rem; font-size: 1rem; line-height: 1.7; color: var(--slate); }
@media (min-width: 640px) { .page-hero h1 { font-size: 3rem; } }

/* ==========================================================================
   Services detail list
   ========================================================================== */
.service-detail-list { display: flex; flex-direction: column; gap: 1.5rem; }
.service-detail {
  scroll-margin-top: 7rem;
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
}
.service-detail .icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--navy-2);
  color: var(--cyan);
}
.service-detail .icon-box .icon { width: 24px; height: 24px; }
.service-detail h2 { font-size: 1.25rem; font-weight: 600; color: var(--ink-white); }
.service-detail p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; color: var(--slate); }
@media (min-width: 640px) { .service-detail { grid-template-columns: auto 1fr; align-items: start; } }

/* ==========================================================================
   Insights / blog
   ========================================================================== */
.insight-grid { margin-top: 3rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.insight-card { display: flex; flex-direction: column; padding: 1.75rem; }
.insight-category { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cyan); }
.insight-card h2 { margin-top: 0.75rem; font-size: 1.125rem; font-weight: 600; line-height: 1.4; color: var(--ink-white); }
.insight-card p { margin-top: 0.75rem; flex: 1; font-size: 0.875rem; line-height: 1.6; color: var(--slate); }
.insight-meta { margin-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: var(--slate-dim); }
.insight-meta .read-link { display: inline-flex; align-items: center; gap: 0.375rem; font-weight: 500; color: var(--ink-white); }
.insight-card:hover .read-link { color: var(--cyan); }
.insight-meta .icon { width: 14px; height: 14px; }
@media (min-width: 1024px) { .insight-grid { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.contact-form-card { padding: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.field span { font-weight: 500; color: var(--ink-white); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  background: var(--navy-2);
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--ink-white);
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); }
.field textarea { resize: none; }
.field.full { grid-column: 1 / -1; }
.contact-side { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 0.75rem;
  padding: 1.25rem;
}
.contact-row .icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  background: var(--navy-2);
  color: var(--cyan);
}
.contact-row .label { font-size: 0.75rem; color: var(--slate-dim); }
.contact-row .value { margin-top: 0.125rem; font-size: 0.875rem; font-weight: 500; color: var(--ink-white); }
.contact-channels { display: flex; flex-wrap: wrap; gap: 0.75rem; padding-top: 0.5rem; }
.contact-fineprint { padding-top: 1rem; font-size: 0.75rem; color: var(--slate-dim); }
.form-success { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 4rem; text-align: center; }
.form-success .icon { width: 40px; height: 40px; color: var(--cyan); }
.form-success h2 { margin-top: 1rem; font-size: 1.25rem; font-weight: 600; color: var(--ink-white); }
.form-success p { margin-top: 0.5rem; max-width: 22rem; font-size: 0.875rem; color: var(--slate); }
.form-error { margin-bottom: 1.25rem; padding: 0.875rem 1rem; border-radius: 0.5rem; border: 1px solid rgba(239,68,68,0.4); background: rgba(239,68,68,0.08); color: #fca5a5; font-size: 0.875rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 0.8fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; padding-block: 4rem; }
.footer-about p { margin-top: 1rem; max-width: 20rem; font-size: 0.875rem; line-height: 1.6; color: var(--slate); }
.footer-col h3 { font-size: 0.875rem; font-weight: 600; color: var(--ink-white); }
.footer-col ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { font-size: 0.875rem; color: var(--slate); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--cyan); }
.footer-socials { margin-top: 1rem; display: flex; gap: 0.75rem; }
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--slate);
  transition: all 0.2s ease;
}
.footer-socials a:hover { border-color: rgba(41,214,238,0.5); color: var(--cyan); }
.footer-socials .icon { width: 16px; height: 16px; }
.footer-contact { margin-top: 1.5rem; font-size: 0.875rem; color: var(--slate); line-height: 1.7; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-block: 1.5rem;
  font-size: 0.75rem;
  color: var(--slate-dim);
}
.footer-bottom-links { display: flex; gap: 1.25rem; }
.footer-bottom-links a:hover { color: var(--cyan); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-bottom-inner { flex-direction: row; justify-content: space-between; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   404
   ========================================================================== */
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.notfound .code-404 { font-family: var(--font-display); font-size: 4rem; font-weight: 600; }
.notfound h1 { margin-top: 1rem; font-size: 1.25rem; font-weight: 600; color: var(--ink-white); }
.notfound p { margin-top: 0.5rem; max-width: 22rem; font-size: 0.875rem; color: var(--slate); }
.notfound .btn { margin-top: 2rem; }

/* ==========================================================================
   Scroll-reveal (JS toggles .is-visible via IntersectionObserver)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

/* Simple pages (Privacy/Terms) */
.prose { max-width: 42rem; display: flex; flex-direction: column; gap: 1.5rem; font-size: 0.875rem; line-height: 1.7; color: var(--slate); }

/* Hero visual animation */
.hero-visual { position: relative; margin-inline: auto; width: 100%; max-width: 28rem; aspect-ratio: 1; }
.hero-visual .aura { position: absolute; inset: 0; border-radius: 999px; opacity: 0.5; filter: blur(70px); background: radial-gradient(circle, var(--blue) 0%, transparent 65%); }
.hero-visual svg { position: relative; width: 100%; height: 100%; }
.hv-edge { stroke-dasharray: 260; stroke-dashoffset: 260; animation: hv-draw 1.6s ease-out forwards; }
.hv-node { transform-box: fill-box; transform-origin: center; animation: hv-pop 0.6s ease-out both, hv-pulse 3.2s ease-in-out 1.5s infinite; }
.hv-ring { transform-box: fill-box; transform-origin: center; animation: hv-spin 60s linear infinite; }
.hv-ring-rev { animation-direction: reverse; animation-duration: 90s; }
.hv-core { animation: hv-pop 0.7s ease-out 0.4s both; transform-box: fill-box; transform-origin: center; }
.hv-check { stroke-dasharray: 60; stroke-dashoffset: 60; animation: hv-draw-check 0.7s ease-out 1.1s forwards; }
@keyframes hv-draw { to { stroke-dashoffset: 0; } }
@keyframes hv-draw-check { to { stroke-dashoffset: 0; } }
@keyframes hv-pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes hv-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.35); } }
@keyframes hv-spin { to { transform: rotate(360deg); } }
.hero-anim { animation: fade-up 0.7s ease-out both; }
.hero-anim.d1 { animation-delay: 0.1s; } .hero-anim.d2 { animation-delay: 0.2s; } .hero-anim.d3 { animation-delay: 0.3s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.notice-small { margin-top: 0.5rem; font-size: 0.75rem; color: var(--slate-dim); }

/* Animated media slots (GIF / video) */
.media-panel { position: relative; margin-inline: auto; width: 100%; max-width: 30rem; border-radius: 28px; overflow: hidden; }
.media-panel img, .media-panel video { display: block; width: 100%; height: auto; }
.media-panel.is-light { background: #fff; box-shadow: 0 30px 80px -30px rgba(41,214,238,0.35), 0 0 0 1px rgba(255,255,255,0.08); }
.media-panel.is-bare { background: transparent; border-radius: 0; overflow: visible; }
.contact-side .media-panel { max-width: 22rem; margin-bottom: 0.5rem; }
.notfound .media-panel { max-width: 20rem; margin-bottom: 1.5rem; }
