:root {
  --navy-950: #050d24;
  --navy-900: #071330;
  --navy-800: #0f2f78;
  --primary: #1d6ff2;
  --primary-strong: #1557c9;
  --accent: #2fb4ff;
  --ink: #0b1630;
  --body: #3d4b66;
  --muted: #6a7790;
  --line: #e3e8f2;
  --bg: #ffffff;
  --bg-alt: #f5f8fd;
  --surface: #ffffff;
  --ok: #0d8e57;
  --error: #c63645;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 22, 48, 0.06), 0 2px 8px rgba(11, 22, 48, 0.04);
  --shadow: 0 12px 32px rgba(11, 22, 48, 0.08);
  --shadow-lg: 0 30px 60px rgba(7, 19, 48, 0.18);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.container {
  width: min(1180px, 100% - 32px);
  margin: 0 auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(29, 111, 242, 0.28);
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-light {
  background: #ffffff;
  color: var(--navy-800);
}

.btn-light:hover {
  background: #e8f0ff;
}

.text-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(7, 19, 48, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(5, 13, 36, 0.25);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

/* Crops the "OA" emblem out of logo.png onto a light tile so it reads on the dark header */
.brand-logo {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #eef0f3 url("logo.png") no-repeat;
  background-size: 158% auto;
  background-position: 46% 12%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.footer-logo {
  display: inline-block;
  padding: 0.5rem;
  border-radius: 14px;
  background: #eef0f3;
}

.footer-logo img {
  width: 150px;
  height: auto;
  border-radius: 8px;
}

.brand-word {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.brand-word span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a:not(.btn) {
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.94rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:not(.btn):hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  margin-left: 0.75rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 72px;
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(47, 180, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(29, 111, 242, 0.25), transparent 70%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
}

.hero::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: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
}

.hero h1 {
  margin-top: 1.4rem;
  color: #ffffff;
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.text-gradient {
  background: linear-gradient(90deg, var(--accent), #7cc7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  margin-top: 1.3rem;
  max-width: 54ch;
  font-size: 1.1rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-trust {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  font-size: 0.9rem;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-trust li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(47, 180, 255, 0.18);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
}

/* Hero product mockup */

.hero-visual {
  position: relative;
  padding: 1.5rem 0;
}

.mock-window {
  border-radius: 14px;
  background: #0d1b3e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.mock-bar span:nth-child(2) {
  background: #febc2e;
}

.mock-bar span:nth-child(3) {
  background: #28c840;
}

.mock-bar em {
  margin-left: 0.8rem;
  padding: 0.15rem 0.7rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-style: normal;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.mock-body {
  display: grid;
  grid-template-columns: 52px 1fr;
  min-height: 300px;
}

.mock-side {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 1rem 0;
  justify-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-side i {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
}

.mock-side i:first-child {
  background: var(--primary);
}

.mock-main {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.mock-stats div {
  padding: 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-stats b {
  display: block;
  color: #ffffff;
  font-family: var(--font-head);
  font-size: 1.1rem;
}

.mock-stats small {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 8%;
  height: 110px;
  padding: 0.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  opacity: 0.85;
}

.mock-rows {
  display: grid;
  gap: 8px;
}

.mock-rows i {
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
}

.mock-rows i:nth-child(2) {
  width: 80%;
}

.mock-rows i:nth-child(3) {
  width: 60%;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  color: var(--body);
  animation: floaty 6s ease-in-out infinite;
}

.float-card b {
  display: block;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 0.92rem;
}

.float-card small {
  font-size: 0.76rem;
  color: var(--muted);
}

.float-a {
  left: -28px;
  bottom: 10px;
}

.float-b {
  right: -12px;
  top: -6px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  animation-delay: -3s;
}

.float-b b {
  font-size: 1.4rem;
  color: var(--primary);
}

.float-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
}

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

.metrics {
  position: relative;
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}

.metrics article {
  padding: 1.5rem 1.75rem;
  display: grid;
  gap: 0.2rem;
}

.metrics article + article {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.metrics strong {
  color: #ffffff;
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.metrics span {
  font-size: 0.9rem;
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  margin-bottom: 3rem;
}

.section-head.center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-head.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
}

.section-lead {
  margin-top: 1rem;
  font-size: 1.08rem;
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Flex so an uneven last row of services sits centered */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.services-grid > * {
  flex: 0 1 calc((100% - 3 * 1.25rem) / 4);
}

.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.service-card,
.track-card,
.testimonial-card,
.price-card,
.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover,
.track-card:hover,
.portfolio-card:hover,
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #cfdaf0;
}

.service-card {
  padding: 1.75rem;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f1ff, #d6e6ff);
  color: var(--primary);
}

.service-card h3,
.track-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.service-card p,
.track-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Featured product (SchoolOS) */

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

.product-features {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}

.product-features li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e5f0ff;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
}

.product-features strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
}

.product-price {
  margin-top: 1.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 0.94rem;
}

.product-price strong {
  color: var(--primary);
}

.product-shot {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--navy-900);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-shot:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 70px rgba(7, 19, 48, 0.25);
}

.product-shot img {
  width: 100%;
  height: auto;
}

/* Innovation lab (OSARRover) */

.lab-lead {
  color: rgba(255, 255, 255, 0.65);
}

.lab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.lab-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.lab-card .lab-visual {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 320px;
  display: grid;
  place-items: center;
}

.lab-card .lab-visual svg {
  width: auto;
  height: 100%;
  max-width: 100%;
}

.lab-body {
  padding: 1.75rem;
}

.lab-body .eyebrow {
  margin-bottom: 0.5rem;
}

.lab-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.lab-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--accent);
}

.lab-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* OSAR chat illustration */
.ai-scene {
  position: relative;
  width: min(340px, 100%);
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding-top: 1.5rem;
}

.ai-logo {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 0 44px rgba(47, 180, 255, 0.45), 0 0 0 8px rgba(47, 180, 255, 0.08);
  animation: orbPulse 3.5s ease-in-out infinite;
}

.ai-orb {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a5dcff, var(--accent) 40%, var(--primary) 75%);
  box-shadow: 0 0 40px rgba(47, 180, 255, 0.55), 0 0 0 10px rgba(47, 180, 255, 0.08), 0 0 0 22px rgba(47, 180, 255, 0.04);
  animation: orbPulse 3.5s ease-in-out infinite;
}

.ai-orb span {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-right-color: transparent;
  border-bottom-color: transparent;
  animation: orbSpin 4s linear infinite;
}

.ai-bubble {
  max-width: 88%;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.ai-bubble-user {
  justify-self: end;
  background: var(--primary);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.ai-bubble-bot {
  justify-self: start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  border-bottom-left-radius: 4px;
}

.ai-bubble-bot b {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

@keyframes orbPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

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

.lab-tags {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lab-tags li {
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(47, 180, 255, 0.3);
  border-radius: 999px;
  background: rgba(47, 180, 255, 0.08);
  color: #cfe9ff;
  font-size: 0.85rem;
  font-weight: 500;
}

.lab-visual {
  position: relative;
  padding: 2.5rem 1.5rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 50%, rgba(47, 180, 255, 0.18), transparent 65%),
    rgba(255, 255, 255, 0.03);
}

.lab-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.lab-status {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
}

.lab-status .pill-dot {
  background: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
}

/* Portfolio */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-shot-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .project-shot-image {
  transform: scale(1.04);
}

.shot-school {
  background: linear-gradient(135deg, #0f2f78, #1d6ff2);
}

.shot-game {
  background: linear-gradient(135deg, #3b1d78, #8b5cf6);
}

.shot-web {
  background: linear-gradient(135deg, #064e5b, #14b8a6);
}

/* Placeholder UI drawn when no screenshot image is present */
.shot-ui {
  position: absolute;
  inset: 14% 12% -10%;
  display: grid;
  grid-template-rows: 14px 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 10px 10px 0 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.shot-ui i {
  border-radius: 4px;
  background: #e6ecf7;
}

.shot-ui i:first-child {
  width: 40%;
}

.shot-ui i:nth-child(2) {
  background: linear-gradient(90deg, #e6ecf7 60%, #d4def0 60%);
}

.shot-ui i:nth-child(3) {
  display: none;
}

.portfolio-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.tag {
  align-self: flex-start;
  display: inline-block;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
}

.portfolio-body h3 {
  margin: 0.8rem 0 0.5rem;
  font-size: 1.2rem;
}

.portfolio-body p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.price-card h3 {
  font-size: 1.3rem;
}

.price-tag {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.price {
  margin-top: 1.1rem;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.feature-list {
  flex: 1;
  margin: 1.5rem 0 1.75rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "✓";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: #e5f0ff;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
}

.price-card.featured {
  background: linear-gradient(180deg, var(--navy-900), #0e2357);
  border-color: var(--navy-900);
  box-shadow: var(--shadow-lg);
  color: rgba(255, 255, 255, 0.78);
  transform: translateY(-12px);
}

.price-card.featured h3,
.price-card.featured .price {
  color: #ffffff;
}

.price-card.featured .price-tag {
  color: rgba(255, 255, 255, 0.6);
}

.price-card.featured .feature-list {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.price-card.featured .feature-list li::before {
  background: rgba(47, 180, 255, 0.2);
  color: var(--accent);
}

.popular-badge {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Tutorials */

.track-card {
  padding: 2rem;
}

.track-num {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.chips {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chips li {
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--body);
}

/* About */

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

.team-grid {
  display: grid;
  gap: 1rem;
}

.team-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.team-card h3 {
  font-size: 1.1rem;
}

.team-card .role {
  margin: 0.15rem 0 0.5rem;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
}

.team-card p:not(.role) {
  color: var(--muted);
  font-size: 0.94rem;
}

.avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  font-family: var(--font-head);
  font-weight: 700;
}

.avatar-alt {
  background: linear-gradient(135deg, var(--navy-800), #3b5bdb);
}

.avatar-sm {
  width: 40px;
  height: 40px;
  font-size: 0.85rem;
}

/* Process */

.section-dark {
  background:
    radial-gradient(ellipse 50% 80% at 50% 0%, rgba(29, 111, 242, 0.25), transparent 70%),
    var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
}

.section-dark h2,
.section-dark h3 {
  color: #ffffff;
}

.section-dark .eyebrow {
  color: var(--accent);
}

.steps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.steps li {
  position: relative;
  text-align: center;
  padding: 0 1rem;
}

.step-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--navy-900);
  border: 1px solid rgba(47, 180, 255, 0.5);
  box-shadow: 0 0 0 6px rgba(47, 180, 255, 0.08);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
}

.steps h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

/* Testimonials */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.quote-mark {
  color: #cfe0ff;
  margin-bottom: 1rem;
}

.testimonial-card p {
  flex: 1;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.7;
}

.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.testimonial-card h3 {
  font-size: 0.98rem;
}

/* FAQ */

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-list details[open] {
  border-color: #cfdaf0;
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--ink);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  content: "−";
  background: var(--primary);
  color: #ffffff;
}

.faq-list p {
  padding: 0 1.35rem 1.2rem;
  color: var(--muted);
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-info {
  padding: 3rem;
  color: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(47, 180, 255, 0.25), transparent 70%),
    var(--navy-900);
}

.contact-info h2 {
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.contact-info .eyebrow {
  color: var(--accent);
}

.contact-list {
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

.contact-list small {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.contact-list a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 3rem;
  background: var(--surface);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d5ddeb;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #9aa5b8;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(29, 111, 242, 0.14);
}

.form-status {
  min-height: 1.3rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-status.is-success {
  color: var(--ok);
}

.form-status.is-error {
  color: var(--error);
}

/* Newsletter */

.newsletter-section {
  padding: 56px 0;
  background: linear-gradient(120deg, var(--primary-strong), var(--primary) 55%, #2f9cfb);
  color: rgba(255, 255, 255, 0.85);
}

.newsletter-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.newsletter-wrap h3 {
  color: #ffffff;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.newsletter-form {
  display: flex;
  gap: 0.6rem;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0.85rem 1rem;
}

.newsletter-form input:focus {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.newsletter-status {
  margin-top: 0.6rem;
  font-weight: 600;
  color: #ffffff;
}

/* Footer */

.site-footer {
  padding: 72px 0 0;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 34ch;
}

.footer-grid h4 {
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.site-footer a:not(.brand) {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:not(.brand):hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

/* WhatsApp button */

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.5);
}

/* Modals */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 16px;
  background: rgba(5, 13, 36, 0.6);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease;
}

.modal-content h2 {
  margin: 0.75rem 0 1.25rem;
  font-size: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--line);
  color: var(--ink);
}

.case-list {
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.35rem;
}

.case-list dt {
  margin-top: 0.6rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.case-list dd {
  margin: 0;
  color: var(--body);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Scroll reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.price-card.featured[data-reveal].is-visible {
  transform: translateY(-12px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .float-card,
  .ai-logo,
  .ai-orb,
  .ai-orb span {
    animation: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid > * {
    flex-basis: calc((100% - 1.25rem) / 2);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .mock-window {
    transform: none;
  }

  .float-a {
    left: -8px;
  }

  .float-b {
    right: -8px;
  }
}

@media (max-width: 920px) {
  .main-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: var(--navy-900);
    box-shadow: var(--shadow-lg);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a:not(.btn) {
    padding: 0.75rem 0.9rem;
  }

  .nav-cta {
    margin: 0.5rem 0 0;
  }

  .menu-toggle {
    display: flex;
  }

  .site-header.menu-open {
    background: var(--navy-900);
  }

  .portfolio-grid,
  .pricing-grid,
  .testimonial-grid,
  .cols-3 {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .price-card.featured,
  .price-card.featured[data-reveal].is-visible {
    transform: none;
  }

  .about,
  .product,
  .lab-grid,
  .faq-layout,
  .contact,
  .newsletter-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact {
    gap: 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .steps::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 112px 0 56px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .cols-4,
  .form-row,
  .product-features {
    grid-template-columns: 1fr;
  }

  .services-grid > * {
    flex-basis: 100%;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .metrics article + article {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .float-card {
    display: none;
  }

  .mock-body {
    min-height: 240px;
  }

  .contact-info,
  .contact-form {
    padding: 2rem 1.5rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .floating-whatsapp span {
    display: none;
  }

  .floating-whatsapp {
    padding: 0.85rem;
  }
}
