/* ============================================================
   AyiTech Labs — Homepage
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-tint: #eef1fb;
  --ink: #0a1330;
  --ink-2: #1a2447;
  --muted: #5a6485;
  --muted-2: #8189a8;
  --line: rgba(10, 19, 48, 0.08);
  --line-strong: rgba(10, 19, 48, 0.14);
  --blue: #2d5bff;
  --blue-2: #1e3fff;
  --violet: #7b5cff;
  --violet-2: #9b6dff;
  --cyan: #4ad8ff;

  --grad: linear-gradient(135deg, #2d5bff 0%, #7b5cff 100%);
  --grad-soft: linear-gradient(135deg, rgba(45, 91, 255, 0.10) 0%, rgba(123, 92, 255, 0.10) 100%);

  --dark: #070b1f;
  --dark-2: #0b1230;
  --dark-3: #141b3a;
  --dark-line: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 1px 2px rgba(10, 19, 48, 0.04), 0 0 0 1px var(--line);
  --shadow: 0 10px 30px rgba(15, 23, 60, 0.06), 0 1px 2px rgba(10, 19, 48, 0.04);
  --shadow-lg: 0 20px 60px rgba(45, 91, 255, 0.10), 0 2px 6px rgba(10, 19, 48, 0.04);
  --shadow-glow: 0 0 0 1px rgba(45, 91, 255, 0.15), 0 18px 50px rgba(45, 91, 255, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; }
h3 { font-size: 18px; line-height: 1.3; }
p  { color: var(--muted); margin: 0; text-wrap: pretty; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================  NAVBAR  ========================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 999px;
  position: relative;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--blue); background: var(--bg-soft); }
.nav-links a.active { color: var(--blue); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

/* =========================  BUTTONS  ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn .arr { transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 6px 20px rgba(10, 19, 48, 0.18);
}
.btn-primary:hover { background: #1a2447; box-shadow: 0 10px 28px rgba(10, 19, 48, 0.22); }

.btn-grad {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(45, 91, 255, 0.30);
}
.btn-grad:hover { box-shadow: 0 12px 32px rgba(45, 91, 255, 0.40); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--ink); }

.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { background: #f0f2f9; }

/* =========================  HERO  ========================= */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg .grid {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 60%;
  background-image:
    linear-gradient(rgba(45, 91, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 91, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 70% at 70% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 30%, #000 30%, transparent 75%);
}
.hero-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.hero-bg .blob.a { width: 480px; height: 480px; top: -120px; right: -120px; background: rgba(45, 91, 255, 0.25); }
.hero-bg .blob.b { width: 360px; height: 360px; top: 200px; right: 280px; background: rgba(123, 92, 255, 0.18); }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(45, 91, 255, 0.08);
  margin-bottom: 24px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; box-shadow: 0 0 10px var(--blue); }
.hero-eyebrow .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--blue);
}

.hero h1 { margin-bottom: 22px; }
.hero .lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.trust-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}
.avatars { display: flex; }
.avatars .av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -10px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 6px rgba(10, 19, 48, 0.10);
}
.avatars .av:first-child { margin-left: 0; }
.trust-text { font-size: 14px; color: var(--muted); }
.trust-text b { color: var(--ink); font-weight: 700; }
.trust-text .num { color: var(--blue); }

/* Hero illustration */
.hero-illu {
  position: relative;
  width: 100%;
  height: 540px;
  min-height: 540px;
}
.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}
.float-card .ico {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--grad-soft);
  color: var(--blue);
}
.float-card .meta .t { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.float-card .meta .s { font-size: 11.5px; color: var(--muted); }

.fc-ai       { top: 30px; left: 18%; animation-delay: 0s; }
.fc-auto     { top: 14px; right: 6%; animation-delay: -2s; }
.fc-saas     { bottom: 110px; left: 4%; animation-delay: -1s; }
.fc-web      { bottom: 60px; right: 4%; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.platform-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

/* ==========================  SECTION LAYOUT  ========================= */
section { padding: 96px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .kicker { display: inline-block; margin-bottom: 14px; }
.section-head h2 { max-width: 720px; margin: 0 auto; }
.section-head p  { max-width: 600px; margin: 14px auto 0; font-size: 16px; }

/* ==========================  SERVICES  ========================= */
.services {
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.svc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(45, 91, 255, 0.25); }
.svc-card:hover::before { opacity: 1; }
.svc-card > * { position: relative; }

.svc-ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--bg-tint);
  color: var(--blue);
  border-radius: 12px;
  margin-bottom: 20px;
  transition: background 0.25s, color 0.25s;
}
.svc-card:hover .svc-ico { background: var(--grad); color: #fff; }
.svc-card h3 { margin-bottom: 8px; font-size: 19px; }
.svc-card p { font-size: 14.5px; line-height: 1.55; margin-bottom: 26px; }
.svc-card .arr-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--blue);
}
.svc-card .arr-link svg { transition: transform 0.2s; }
.svc-card:hover .arr-link svg { transform: translateX(4px); }

/* ==========================  WHY US (DARK)  ========================= */
.why {
  padding: 0;
}
.why-card {
  background: var(--dark);
  color: #fff;
  border-radius: 28px;
  padding: 72px 64px;
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(circle 600px at 90% 50%, rgba(45, 91, 255, 0.18), transparent 60%),
    radial-gradient(circle 400px at 10% 100%, rgba(123, 92, 255, 0.18), transparent 60%);
}
.why-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000, transparent 80%);
  pointer-events: none;
}
.why-grid {
  position: relative;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: center;
}
.why-lhs .kicker { color: var(--cyan); margin-bottom: 16px; display: block; }
.why-lhs h2 { color: #fff; margin-bottom: 18px; }
.why-lhs p { color: rgba(255, 255, 255, 0.7); margin-bottom: 32px; font-size: 16px; }

.why-features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.feat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--dark-line);
  border-radius: 16px;
  padding: 20px;
  transition: background 0.2s, border-color 0.2s;
}
.feat:hover { background: rgba(45, 91, 255, 0.06); border-color: rgba(45, 91, 255, 0.30); }
.feat-ico {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(45, 91, 255, 0.12);
  color: #6f8aff;
  margin-bottom: 14px;
  box-shadow: inset 0 0 0 1px rgba(45, 91, 255, 0.20);
}
.feat h4 { color: #fff; font-size: 15px; margin: 0 0 6px; font-family: "Space Grotesk", sans-serif; font-weight: 600; }
.feat p { color: rgba(255, 255, 255, 0.55); font-size: 13px; line-height: 1.5; }

/* ==========================  TECHNOLOGIES  ========================= */
.tech { padding: 96px 0; }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}
.tech-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.2s;
}
.tech-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(45, 91, 255, 0.20); }
.tech-card .logo {
  width: 42px; height: 42px;
  display: grid; place-items: center;
}
.tech-card .name { font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* ==========================  CASE STUDIES  ========================= */
.cases { background: var(--bg-soft); }
.cases-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 48px;
}
.cases-header .kicker { display: block; margin-bottom: 12px; }
.cases-header .view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-cover {
  height: 200px;
  background: var(--bg-tint);
  position: relative;
  overflow: hidden;
}
.case-body { padding: 20px; }
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.tag.t-saas { background: rgba(123, 92, 255, 0.12); color: var(--violet); }
.tag.t-ai   { background: rgba(45, 91, 255, 0.12); color: var(--blue); }
.tag.t-auto { background: rgba(20, 168, 113, 0.12); color: #14a871; }
.tag.t-web  { background: rgba(255, 138, 45, 0.14); color: #d97318; }

.case-card h3 { font-size: 17px; margin-bottom: 6px; }
.case-card p { font-size: 13.5px; line-height: 1.5; margin-bottom: 14px; }
.case-card .arr-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--blue);
}
.case-card:hover .arr-link svg { transform: translateX(3px); }
.case-card .arr-link svg { transition: transform 0.2s; }

/* ==========================  TESTIMONIALS  ========================= */
.testimonials { padding: 96px 0 112px; }
.test-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.test-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: box-shadow 0.25s, border-color 0.2s;
}
.test-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(45, 91, 255, 0.15); }
.test-quote {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--grad-soft);
  color: var(--blue);
  font-family: "Space Grotesk", serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.test-card .text { font-size: 15px; color: var(--ink-2); line-height: 1.6; flex: 1; }
.test-author {
  display: flex; align-items: center; gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.test-author .av {
  width: 44px; height: 44px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}
.test-author .nm { font-weight: 700; font-size: 14.5px; color: var(--ink); line-height: 1.2; }
.test-author .rl { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.test-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}
.test-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: width 0.2s, background 0.2s;
  cursor: pointer;
}
.test-dots span.on { width: 28px; background: var(--grad); border-radius: 999px; }

/* ==========================  CTA BANNER  ========================= */
.cta-section { padding: 0 0 96px; }
.cta-banner {
  background: var(--dark);
  color: #fff;
  border-radius: 28px;
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(circle 500px at 75% 50%, rgba(45, 91, 255, 0.20), transparent 60%),
    radial-gradient(circle 300px at 0% 0%, rgba(123, 92, 255, 0.15), transparent 60%);
}
.cta-banner::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 200'><path d='M0 150 Q200 100 400 150 T800 130' stroke='%232d5bff' stroke-width='0.5' fill='none' opacity='0.5'/><path d='M0 170 Q200 130 400 170 T800 160' stroke='%237b5cff' stroke-width='0.5' fill='none' opacity='0.5'/><path d='M0 130 Q300 80 500 120 T800 100' stroke='%234ad8ff' stroke-width='0.5' fill='none' opacity='0.3'/></svg>");
  background-size: cover;
  background-position: right center;
  opacity: 0.6;
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner .logo-mark { display: grid; place-items: center; }
.cta-banner h2 { color: #fff; margin-bottom: 10px; font-size: 32px; }
.cta-banner p { color: rgba(255, 255, 255, 0.7); font-size: 15px; max-width: 460px; }

/* ==========================  FOOTER  ========================= */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 28px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.02em;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: color 0.15s;
}
.footer a:hover { color: #fff; }

.foot-brand img { height: 30px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.foot-brand .desc { font-size: 14px; color: rgba(255, 255, 255, 0.6); line-height: 1.55; max-width: 280px; margin-bottom: 20px; }

.foot-social { display: flex; gap: 10px; }
.foot-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--dark-line);
  display: grid; place-items: center;
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.foot-social a:hover { background: var(--grad); color: #fff; border-color: transparent; }

.foot-contact li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.7);
}
.foot-contact svg { flex-shrink: 0; margin-top: 2px; color: rgba(255, 255, 255, 0.5); }

.foot-bottom {
  border-top: 1px solid var(--dark-line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.foot-bottom .legal { display: flex; gap: 28px; }

/* ==========================  ILLUSTRATIONS  ========================= */
.ai-platform {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  position: relative;
  transition: transform 0.3s ease-out;
  filter: drop-shadow(0 30px 60px rgba(45, 91, 255, 0.25));
}
.ai-platform svg { width: 100%; height: 100%; }

.why-globe {
  display: none;
}

/* ==========================  MOBILE NAV  ========================= */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  z-index: 49;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  pointer-events: none;
}
.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(10, 19, 48, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
}
.mobile-nav-links a {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  transition: color 0.15s;
}
.mobile-nav-links a:last-child { border-bottom: none; }
.mobile-nav-links a:hover,
.mobile-nav-links a.active { color: var(--blue); }
.mobile-nav-cta {
  margin-top: 16px;
  justify-content: center;
}

/* ==========================  BREAKPOINTS  ========================= */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-illu { width: 100%; height: 460px; min-height: 460px; max-width: 580px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .test-track { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .why-features { grid-template-columns: repeat(3, 1fr); }
  .why-card { padding: 48px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { grid-template-columns: 60px 1fr; }
  .cta-banner .cta-actions { grid-column: 1 / -1; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  section { padding: 56px 0; }
  .hero { padding: 48px 0 64px; }
  .hero-illu { height: 340px; min-height: 340px; }
  .fc-ai   { top: 10px; left: 8%; }
  .fc-auto { top: 10px; right: 2%; }
  .fc-saas { bottom: 70px; left: 0; }
  .fc-web  { bottom: 30px; right: 0; }
  .float-card { padding: 8px 10px; gap: 8px; border-radius: 10px; }
  .float-card .meta .t { font-size: 12px; }
  .float-card .meta .s { font-size: 10px; }
  .float-card .ico { width: 28px; height: 28px; border-radius: 7px; }
  .services-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .tech-card { padding: 14px 8px; border-radius: 12px; }
  .cases-grid { grid-template-columns: 1fr; }
  .test-track { grid-template-columns: 1fr; }
  .why-features { grid-template-columns: 1fr 1fr; }
  .why-card { padding: 36px 20px; border-radius: 20px; }
  .cta-banner { grid-template-columns: 1fr; padding: 32px 24px; gap: 20px; }
  .cta-banner .logo-mark { display: none; }
  .cta-banner h2 { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .foot-bottom .legal { justify-content: center; }
  .section-head h2 { font-size: clamp(24px, 6vw, 36px); }
  .hero h1 { font-size: clamp(32px, 8vw, 52px); }
  .hero .lede { font-size: 16px; }
}

@media (max-width: 420px) {
  .tech-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .tech-card .name { font-size: 11px; }
  .why-features { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { justify-content: center; }
}

/* ==========================  MEGA MENU  ========================= */
.nav-link-dd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dd-caret {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-top: 1px;
}
.has-mega {
  position: relative;
}
.has-mega:hover .dd-caret,
.has-mega.mega-open .dd-caret { transform: rotate(180deg); }

.mega-menu {
  position: absolute;
  top: 100%;           /* no gap — hover area stays connected */
  left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;   /* visual breathing room as transparent bridge */
  width: min(900px, calc(100vw - 48px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0s 0.18s, transform 0.18s ease;
  transform: translateX(-50%) translateY(-6px);
  z-index: 100;
}
.has-mega:hover .mega-menu,
.has-mega.mega-open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.18s ease, transform 0.18s ease;
  transform: translateX(-50%) translateY(0);
}

.mega-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(10, 19, 48, 0.12), 0 4px 12px rgba(10, 19, 48, 0.06);
  padding: 28px 28px 24px;
  overflow: hidden;
}

.mega-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 0;
}

.mega-col {
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.mega-col:first-child { padding-left: 0; }
.mega-col:last-child  { padding-right: 0; border-right: none; }

.mega-group {
  margin-bottom: 20px;
}
.mega-group:last-child { margin-bottom: 0; }

.mega-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.mega-group-title:hover { background: var(--bg-soft); color: var(--blue); }
.mega-group-title .arr-sm { margin-left: auto; flex-shrink: 0; opacity: 0; transition: opacity 0.15s, transform 0.15s; }
.mega-group-title:hover .arr-sm { opacity: 1; transform: translateX(2px); }

.mega-ico {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 7px;
  flex-shrink: 0;
}
.mega-ico-ai  { background: rgba(45,91,255,0.10);  color: #2d5bff; }
.mega-ico-web { background: rgba(123,92,255,0.10); color: #7b5cff; }
.mega-ico-mobile { background: rgba(74,216,255,0.12); color: #1ab8e8; }
.mega-ico-uiux   { background: rgba(255,100,150,0.10); color: #e83a7b; }
.mega-ico-cms    { background: rgba(20,168,113,0.10);  color: #14a871; }
.mega-ico-mkt    { background: rgba(255,165,30,0.12);  color: #d97318; }
.mega-ico-qa     { background: rgba(100,200,100,0.12); color: #2a9a4a; }

.mega-links {
  list-style: none;
  padding: 0 0 0 36px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mega-links a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  padding: 5px 8px;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s, padding-left 0.15s;
  line-height: 1.4;
}
.mega-links a:hover {
  background: var(--bg-soft);
  color: var(--blue);
  padding-left: 12px;
}

/* ==========================  MOBILE ACCORDION  ========================= */
.mob-nav-item {
  border-bottom: 1px solid var(--line);
}
.mob-nav-btn {
  display: flex;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  font-family: inherit;
  cursor: pointer;
  gap: 4px;
  transition: color 0.15s;
}
.mob-nav-btn:hover { color: var(--blue); }
.mob-caret { margin-left: auto; flex-shrink: 0; transition: transform 0.25s ease; }
.mob-nav-item[data-open="true"] .mob-caret { transform: rotate(180deg); }

.mob-nav-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mob-nav-item[data-open="true"] .mob-nav-sub { max-height: 1200px; }

.mob-sub-group {
  border-top: 1px solid var(--line);
}
.mob-sub-group:first-child { border-top: none; }

.mob-sub-btn {
  display: flex;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 8px 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  font-family: inherit;
  cursor: pointer;
  gap: 8px;
  transition: color 0.15s, background 0.15s;
  border-radius: 8px;
}
.mob-sub-btn:hover { color: var(--blue); background: var(--bg-soft); }
.mob-sub-caret { margin-left: auto; flex-shrink: 0; transition: transform 0.22s ease; }
.mob-sub-group[data-open="true"] .mob-sub-caret { transform: rotate(180deg); }

.mob-sub-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.mob-sub-group[data-open="true"] .mob-sub-items { max-height: 400px; }

.mob-sub-items a {
  display: block;
  padding: 8px 12px 8px 44px;
  font-size: 13.5px;
  color: var(--muted);
  border-bottom: none;
  transition: color 0.12s, background 0.12s;
  border-radius: 6px;
}
.mob-sub-items a:hover { color: var(--blue); background: var(--bg-soft); }

.mob-sub-ico {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 6px;
  flex-shrink: 0;
}
.mob-ico-ai    { background: rgba(45,91,255,0.10);  color: #2d5bff; }
.mob-ico-web   { background: rgba(123,92,255,0.10); color: #7b5cff; }
.mob-ico-mobile{ background: rgba(74,216,255,0.12); color: #1ab8e8; }
.mob-ico-uiux  { background: rgba(255,100,150,0.10);color: #e83a7b; }
.mob-ico-cms   { background: rgba(20,168,113,0.10); color: #14a871; }
.mob-ico-mkt   { background: rgba(255,165,30,0.12); color: #d97318; }
.mob-ico-qa    { background: rgba(100,200,100,0.12);color: #2a9a4a; }

.mob-sub-leaf { }
.mob-sub-leaf-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.mob-sub-leaf-link:hover { color: var(--blue); background: var(--bg-soft); }

/* Remove mobile-nav-links bottom border from direct <a> siblings of mob-nav-item */
.mobile-nav-links > a { border-bottom: 1px solid var(--line); }
.mobile-nav-links > a:last-child { border-bottom: none; }
.mob-nav-item:last-of-type { border-bottom: none; }

/* ==========================  THEME TOGGLE  ========================= */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--bg-soft); border-color: var(--blue); color: var(--blue); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

/* ==========================  PRODUCTS  ========================= */
.products { background: var(--bg-soft); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.2s;
  position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(45,91,255,0.2); }
.product-card.featured {
  border-color: rgba(45,91,255,0.3);
  background: linear-gradient(160deg, #fff 60%, rgba(45,91,255,0.04) 100%);
}
.product-card.featured::before {
  content: "Featured";
  position: absolute;
  top: -1px; right: 24px;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 0 0 10px 10px;
  font-family: "JetBrains Mono", monospace;
}
.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.product-ico {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  background: var(--bg-tint);
  color: var(--blue);
  border-radius: 14px;
  transition: background 0.25s, color 0.25s;
}
.product-card:hover .product-ico,
.product-card.featured .product-ico { background: var(--grad); color: #fff; }
.product-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
}
.product-status.live { background: rgba(20,168,113,0.12); color: #14a871; }
.product-status.beta { background: rgba(255,138,45,0.14); color: #d97318; }
.product-card h3 { font-size: 20px; margin: 0; }
.product-card > p { font-size: 14.5px; line-height: 1.6; margin: 0; }
.product-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
.product-features li svg { flex-shrink: 0; color: var(--blue); }
.product-footer { padding-top: 4px; border-top: 1px solid var(--line); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ==========================  BLOG  ========================= */
.blog { background: var(--bg); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-cover {
  height: 180px;
  position: relative;
  overflow: hidden;
}
.blog-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  backdrop-filter: blur(8px);
}
.cat-ai   { background: rgba(45,91,255,0.85); color: #fff; }
.cat-dev  { background: rgba(10,19,48,0.80); color: #fff; }
.cat-auto { background: rgba(20,168,113,0.85); color: #fff; }
.blog-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted-2);
  font-family: "JetBrains Mono", monospace;
}
.dot-sep { opacity: 0.5; }
.blog-card h3 { font-size: 17px; line-height: 1.35; margin: 0; flex: 1; }
.blog-card p { font-size: 13.5px; line-height: 1.55; margin: 0; }
.blog-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.blog-author .av { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.blog-author span { font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* ==========================  DARK MODE  ========================= */
html[data-theme="dark"] {
  --bg: #090e21;
  --bg-soft: #0d1428;
  --bg-tint: #121c38;
  --ink: #e6eaff;
  --ink-2: #c4ccee;
  --muted: #7a83a8;
  --muted-2: #58618a;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(45, 91, 255, 0.18), 0 2px 6px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

html[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

html[data-theme="dark"] .nav {
  background: rgba(9, 14, 33, 0.88);
}
html[data-theme="dark"] .mobile-nav {
  background: #0d1428;
}
html[data-theme="dark"] .services {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
html[data-theme="dark"] .svc-card,
html[data-theme="dark"] .tech-card,
html[data-theme="dark"] .case-card,
html[data-theme="dark"] .test-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .blog-card {
  background: var(--bg-tint);
}
html[data-theme="dark"] .product-card.featured {
  background: linear-gradient(160deg, var(--bg-tint) 60%, rgba(45,91,255,0.08) 100%);
}
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4 { color: var(--ink); }
html[data-theme="dark"] .nav-links a { color: var(--ink-2); }
html[data-theme="dark"] .mobile-nav-links a { color: var(--ink-2); }
html[data-theme="dark"] .btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
}
html[data-theme="dark"] .btn-ghost:hover { background: var(--bg-tint); }
html[data-theme="dark"] .btn-primary { background: #2a3a70; }
html[data-theme="dark"] .nav-burger span { background: var(--ink); }
html[data-theme="dark"] .nav-burger { border-color: var(--line-strong); }
html[data-theme="dark"] .mega-panel {
  background: #0d1428;
  border-color: var(--line);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.3);
}
html[data-theme="dark"] .mega-group-title { color: var(--ink); }
html[data-theme="dark"] .mega-group-title:hover { background: var(--bg-tint); }
html[data-theme="dark"] .mega-links a { color: var(--muted); }
html[data-theme="dark"] .mega-links a:hover { background: var(--bg-tint); color: var(--blue); }
html[data-theme="dark"] .mob-nav-btn { color: var(--ink-2); }
html[data-theme="dark"] .mob-sub-btn { color: var(--ink-2); }
html[data-theme="dark"] .mob-sub-btn:hover { background: var(--bg-tint); }
html[data-theme="dark"] .mob-sub-items a { color: var(--muted); }
html[data-theme="dark"] .mob-sub-items a:hover { background: var(--bg-tint); }
html[data-theme="dark"] .mob-sub-leaf-link { color: var(--ink-2); }
html[data-theme="dark"] .mob-sub-leaf-link:hover { background: var(--bg-tint); }

/* dark mode responsive additions */
@media (max-width: 720px) {
  .products-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid .blog-card:last-child { grid-column: 1 / -1; max-width: 50%; }
}
