:root {
  color-scheme: dark;
  --background: 225 25% 5%;
  --foreground: 220 15% 95%;
  --card: 225 25% 8%;
  --secondary: 225 20% 12%;
  --muted: 225 20% 15%;
  --muted-foreground: 220 10% 58%;
  --border: 225 15% 18%;
  --brand-mint: 155 75% 55%;
  --brand-mint-glow: 155 80% 65%;
  --brand-cyan: 185 85% 55%;
  --brand-navy: 225 35% 8%;
  --gradient-dark: linear-gradient(180deg, hsl(225 25% 5%) 0%, hsl(225 30% 3%) 100%);
  --gradient-card: linear-gradient(135deg, hsl(225 25% 10%) 0%, hsl(225 25% 8%) 100%);
  --gradient-accent: linear-gradient(135deg, hsl(155 75% 55%) 0%, hsl(185 85% 55%) 100%);
  --shadow-card: 0 4px 24px -4px hsl(0 0% 0% / 0.4), 0 0 0 1px hsl(225 15% 20% / 0.5);
  --shadow-card-hover: 0 14px 42px -10px hsl(0 0% 0% / 0.55), 0 0 0 1px hsl(155 75% 55% / 0.22);
  --shadow-glow: 0 0 60px -12px hsl(155 75% 55% / 0.38);
}

:root[data-theme="light"] {
  color-scheme: light;
  --background: 210 40% 98%;
  --foreground: 207 73% 12%;
  --card: 0 0% 100%;
  --secondary: 210 40% 94%;
  --muted: 210 32% 92%;
  --muted-foreground: 214 18% 42%;
  --border: 214 24% 84%;
  --brand-mint: 154 70% 44%;
  --brand-mint-glow: 154 69% 57%;
  --brand-cyan: 188 74% 43%;
  --brand-navy: 207 73% 12%;
  --gradient-dark: linear-gradient(180deg, hsl(210 40% 98%) 0%, hsl(205 58% 95%) 100%);
  --gradient-card: linear-gradient(135deg, hsl(0 0% 100%) 0%, hsl(210 44% 97%) 100%);
  --gradient-accent: linear-gradient(135deg, hsl(154 70% 44%) 0%, hsl(188 74% 43%) 100%);
  --shadow-card: 0 14px 40px -28px hsl(207 73% 12% / 0.32), 0 0 0 1px hsl(214 24% 84% / 0.78);
  --shadow-card-hover: 0 20px 48px -28px hsl(207 73% 12% / 0.34), 0 0 0 1px hsl(154 70% 44% / 0.28);
  --shadow-glow: 0 0 54px -20px hsl(154 70% 44% / 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: hsl(var(--foreground));
  background: var(--gradient-dark);
  overflow-x: hidden;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  transition: background 220ms ease, color 220ms ease;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
summary {
  font: inherit;
}

:focus-visible {
  outline: 2px solid hsl(var(--brand-mint));
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 0.75rem;
  background: hsl(var(--brand-mint));
  color: hsl(var(--background));
  padding: 0.75rem 1rem;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 2.5rem, 1180px);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 1.1rem 0;
  transition: padding 220ms ease, background 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--background) / 0.94);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: clamp(8.1rem, 12vw, 9.35rem);
  height: 2.45rem;
  flex: 0 0 auto;
}

.brand img {
  position: absolute;
  inset: 50% auto auto 0;
  width: 100%;
  max-height: 2.15rem;
  height: auto;
  transform: translateY(-50%);
  object-fit: contain;
  object-position: left center;
}

.footer-brand {
  width: 9.35rem;
}

.logo-on-light {
  display: none;
}

:root[data-theme="light"] .logo-on-dark {
  display: none;
}

:root[data-theme="light"] .logo-on-light {
  display: block;
}

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

.nav-links a {
  border-radius: 0.75rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 0.8rem;
  transition: color 180ms ease, background 180ms ease;
}

.theme-toggle {
  display: inline-flex;
  min-height: 2.45rem;
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid hsl(var(--border) / 0.8);
  border-radius: 0.75rem;
  background: hsl(var(--secondary) / 0.64);
  color: hsl(var(--foreground));
  padding: 0 0.8rem;
  font-size: 0.82rem;
  font-weight: 520;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.theme-toggle:hover {
  border-color: hsl(var(--brand-mint) / 0.45);
  background: hsl(var(--secondary) / 0.92);
  transform: translateY(-1px);
}

.theme-icon {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  box-shadow: inset -0.32rem -0.24rem 0 0 currentColor;
}

:root[data-theme="light"] .theme-icon {
  background: currentColor;
  box-shadow: 0 0 0 0.22rem hsl(var(--brand-mint) / 0.18);
}

.nav-links a:hover {
  background: hsl(var(--secondary) / 0.7);
  color: hsl(var(--foreground));
}

.nav-links .nav-cta {
  margin-left: 0.65rem;
  background: var(--gradient-accent);
  color: hsl(var(--background));
  box-shadow: var(--shadow-glow);
  font-weight: 560;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  border: 1px solid hsl(var(--border));
  border-radius: 0.9rem;
  background: hsl(var(--secondary) / 0.75);
  color: hsl(var(--foreground));
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.section-dark,
.section,
.section-alt,
.final-cta {
  position: relative;
  overflow: hidden;
}

.section {
  padding: clamp(3.5rem, 6vw, 5.4rem) 0;
}

.section-alt {
  border-block: 1px solid hsl(var(--border) / 0.44);
  background: linear-gradient(180deg, hsl(225 22% 9%) 0%, hsl(225 24% 7%) 100%);
}

:root[data-theme="light"] .section-alt {
  background: linear-gradient(180deg, hsl(210 42% 96%) 0%, hsl(206 52% 94%) 100%);
}

.grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(to right, hsl(var(--border) / 0.42) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(var(--border) / 0.42) 1px, transparent 1px);
  background-size: 60px 60px;
}

.orb {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(80px);
}

.orb-one {
  width: 44rem;
  height: 44rem;
  top: -18rem;
  left: -18rem;
  background: radial-gradient(circle, hsl(var(--brand-mint) / 0.25), transparent 68%);
}

.orb-two {
  width: 38rem;
  height: 38rem;
  right: -18rem;
  top: 12rem;
  background: radial-gradient(circle, hsl(var(--brand-cyan) / 0.18), transparent 70%);
}

.hero {
  min-height: 100svh;
  padding: 8rem 0 5rem;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(21rem, 0.86fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: hsl(var(--brand-mint));
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.4rem;
  font-size: clamp(2.65rem, 6vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h3 {
  margin-bottom: 0.75rem;
  color: hsl(var(--foreground));
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-lead,
.section-head p,
.lead {
  color: hsl(var(--muted-foreground));
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 1rem;
  padding: 0 1.6rem;
  font-size: 1rem;
  font-weight: 560;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, filter 220ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--brand-mint)), hsl(var(--brand-mint-glow)));
  color: hsl(var(--background));
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-secondary {
  border: 1px solid hsl(var(--border) / 0.8);
  background: hsl(var(--secondary) / 0.45);
  color: hsl(var(--foreground));
}

.btn-secondary:hover {
  border-color: hsl(var(--brand-mint) / 0.45);
  background: hsl(var(--secondary) / 0.8);
}

.support-line {
  display: inline-flex;
  max-width: 680px;
  margin: 1.15rem 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  font-weight: 560;
  line-height: 1.55;
}

.hero-visual {
  position: relative;
  min-height: 36rem;
}

.visual-glow {
  position: absolute;
  inset: 14% 4%;
  border-radius: 999px;
  background: radial-gradient(circle, hsl(var(--brand-mint) / 0.26), transparent 65%);
  filter: blur(32px);
}

.device-row {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-card {
  position: absolute;
  width: min(31vw, 15rem);
  min-width: 10.25rem;
  overflow: hidden;
  border-radius: 2.4rem;
  background: #05070b;
  padding: 0.42rem;
  box-shadow:
    0 36px 80px -22px hsl(0 0% 0% / 0.72),
    0 0 0 1px hsl(0 0% 100% / 0.1);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.phone-card img {
  width: 100%;
  border-radius: 2rem;
}

.phone-card.phone-one {
  left: 0;
  transform: translate3d(0, 1.5rem, 0) rotate(-8deg);
}

.phone-card.phone-two {
  z-index: 2;
  transform: translate3d(0, -0.5rem, 0);
}

.phone-card.phone-three {
  right: 0;
  transform: translate3d(0, 1.8rem, 0) rotate(8deg);
}

.float-tag {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  border: 1px solid hsl(var(--brand-mint) / 0.35);
  border-radius: 999px;
  background: hsl(var(--card) / 0.86);
  color: hsl(var(--foreground));
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 650;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

.tag-top {
  top: 11%;
  right: 6%;
}

.tag-bottom {
  bottom: 11%;
  left: 4%;
}

.proof-strip {
  border-block: 1px solid hsl(var(--border) / 0.45);
  background: linear-gradient(180deg, hsl(var(--secondary) / 0.36), transparent);
  padding: 2rem 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.proof-grid div {
  min-width: 0;
}

.proof-grid strong {
  display: block;
  background: var(--gradient-accent);
  background-clip: text;
  color: transparent;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.proof-grid span {
  display: block;
  margin-top: 0.55rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.92rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
}

.section-head.compact {
  margin-bottom: 0;
}

.section-head h2 {
  max-width: 720px;
}

.section-head p {
  max-width: 700px;
}

.benefit-grid,
.capability-grid,
.case-grid,
.video-grid,
.comparison,
.use-case-grid,
.steps {
  display: grid;
  gap: 1.2rem;
}

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

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

.card,
.glass-card,
.workflow article,
.steps article,
.use-case-grid article,
.comparison article,
.case-card,
.video-card,
details,
.final-card {
  border: 1px solid hsl(var(--border) / 0.72);
  border-radius: 1.25rem;
  background: var(--gradient-card);
  box-shadow: var(--shadow-card);
}

.card,
.workflow article,
.steps article,
.use-case-grid article,
.comparison article,
.video-card,
details {
  padding: clamp(1.25rem, 2vw, 1.65rem);
}

.card,
.workflow article,
.steps article,
.use-case-grid article,
.comparison article,
.case-card,
.video-card {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.card:hover,
.workflow article:hover,
.steps article:hover,
.use-case-grid article:hover,
.comparison article:hover,
.case-card:hover,
.video-card:hover {
  border-color: hsl(var(--brand-mint) / 0.35);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.card p,
.workflow p,
.steps p,
.use-case-grid p,
.comparison li,
.case-card p,
.video-card p,
details p,
.footer p,
.footer a {
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
}

.card p,
.workflow p,
.steps p,
.use-case-grid p,
.comparison li {
  margin-bottom: 0;
}

.steps span {
  display: inline-flex;
  min-width: 2.55rem;
  height: 2.55rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: hsl(var(--brand-mint) / 0.13);
  color: hsl(var(--brand-mint));
  font-size: 0.78rem;
  font-weight: 750;
}

.card small {
  display: block;
  margin-top: 1rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.8rem;
  font-weight: 600;
}

.featured {
  border-color: hsl(var(--brand-mint) / 0.4);
}

.split,
.ai-grid,
.faq-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.risk-list {
  display: grid;
  gap: 0.9rem;
  padding: 1.5rem;
}

.risk-list div {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  color: hsl(var(--foreground));
  font-weight: 600;
  line-height: 1.45;
}

.risk-list span {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: hsl(var(--brand-mint));
  box-shadow: 0 0 20px hsl(var(--brand-mint) / 0.45);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.workflow article {
  position: relative;
  min-height: 13rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.workflow h3,
.card h3 {
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
}

.benefit-grid .card {
  min-height: 12.5rem;
}

.benefit-grid .card::before,
.workflow article::before {
  content: "";
  display: block;
  width: 2.6rem;
  height: 0.22rem;
  margin-bottom: 1.15rem;
  border-radius: 999px;
  background: var(--gradient-accent);
}

.capability-grid .featured {
  grid-column: span 1;
}

.talent-panel {
  display: grid;
  grid-template-columns: minmax(28rem, 1fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: stretch;
  margin-bottom: 1.2rem;
}

.engineer-intro,
.tech-logo-cloud,
.role-card {
  border: 1px solid hsl(var(--border) / 0.72);
  border-radius: 1.25rem;
  background: var(--gradient-card);
  box-shadow: var(--shadow-card);
}

.engineer-intro {
  display: grid;
  grid-template-columns: minmax(8rem, 10rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.15rem, 2vw, 1.55rem);
}

.engineer-intro h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.engineer-intro p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
}

.talent-kicker {
  color: hsl(var(--brand-mint)) !important;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.talent-role {
  margin-bottom: 0.75rem !important;
  color: hsl(var(--brand-cyan)) !important;
  font-weight: 650;
}

.talent-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.talent-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  border: 1px solid hsl(var(--border) / 0.78);
  border-radius: 999px;
  background: hsl(var(--secondary) / 0.55);
  color: hsl(var(--muted-foreground));
  padding: 0.45rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 650;
}

.talent-stats strong {
  color: hsl(var(--brand-mint));
  font-size: 0.95rem;
}

.talent-video {
  aspect-ratio: 9 / 16;
  min-height: 15.5rem;
  border-radius: 1rem;
}

.tech-logo-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
  align-content: center;
  padding: clamp(1.05rem, 2vw, 1.45rem);
}

.tech-logo-cloud span {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid hsl(225 15% 24%);
  border-radius: 0.9rem;
  background: hsl(225 24% 10% / 0.92);
  color: hsl(220 15% 95%);
  padding: 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 640;
  box-shadow: 0 14px 30px -24px hsl(0 0% 0% / 0.85);
}

.tech-logo-cloud img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.role-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(1.25rem, 2vw, 1.55rem);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.role-card:hover {
  border-color: hsl(var(--brand-mint) / 0.35);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.role-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.role-avatar {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 0.9rem;
  background: hsl(var(--brand-mint) / 0.14);
  color: hsl(var(--brand-mint));
  font-size: 0.78rem;
  font-weight: 750;
}

.role-price {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: hsl(var(--brand-mint) / 0.12);
  color: hsl(var(--brand-mint));
  padding: 0.42rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.role-card p {
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1rem;
}

.role-tags span {
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--secondary) / 0.55);
  color: hsl(var(--muted-foreground));
  padding: 0.35rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 600;
}

.tool-board {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tool-board span {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--secondary) / 0.74);
  color: hsl(var(--foreground));
  padding: 0 1.1rem;
  font-weight: 650;
  box-shadow: var(--shadow-card);
}

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

.steps article {
  min-height: 12rem;
}

.use-case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.case-card {
  overflow: hidden;
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.case-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.case-card div {
  padding: 1.25rem;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.case-label {
  margin-bottom: 0.6rem;
  color: hsl(var(--brand-mint));
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-card a {
  display: inline-flex;
  margin-top: auto;
  padding-top: 0.9rem;
  color: hsl(var(--brand-mint));
  font-weight: 650;
}

.portfolio-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

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

.proof-videos {
  margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

.portfolio-head {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.video-frame {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 9 / 16;
  cursor: pointer;
  place-items: center;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background:
    radial-gradient(circle at 50% 30%, hsl(var(--brand-mint) / 0.25), transparent 42%),
    linear-gradient(180deg, hsl(var(--secondary)), hsl(var(--background)));
  color: hsl(var(--foreground));
}

.video-frame::before {
  content: "";
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: hsl(var(--brand-mint));
  box-shadow: var(--shadow-glow);
}

.video-frame::after {
  content: "";
  position: absolute;
  border-block: 0.72rem solid transparent;
  border-left: 1.05rem solid hsl(var(--background));
  transform: translateX(0.14rem);
}

.video-frame span {
  position: absolute;
  bottom: 1rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.8rem;
  font-weight: 650;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card h3 {
  margin: 1rem 0 0.2rem;
}

.video-card p,
.video-card small {
  display: block;
  margin: 0.2rem 0 0;
  color: hsl(var(--muted-foreground));
}

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

.comparison ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.comparison li + li {
  margin-top: 0.7rem;
}

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

details {
  background: hsl(var(--card) / 0.88);
}

summary {
  cursor: pointer;
  color: hsl(var(--foreground));
  font-weight: 700;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  color: hsl(var(--brand-mint));
}

details[open] summary::after {
  content: "-";
}

details p {
  margin: 0.8rem 0 0;
}

.final-cta {
  padding: 4.5rem 0;
}

.final-card {
  padding: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 80% 20%, hsl(var(--brand-mint) / 0.22), transparent 34%),
    var(--gradient-card);
}

.final-card h2 {
  max-width: 760px;
}

.final-card p:not(.eyebrow) {
  max-width: 660px;
  color: hsl(var(--muted-foreground));
  font-size: 1.1rem;
  line-height: 1.55;
}

.footer {
  border-top: 1px solid hsl(var(--border) / 0.52);
  padding: 3.5rem 0 2rem;
  background: hsl(var(--background) / 0.76);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer h2 {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.footer a {
  display: block;
  width: fit-content;
  margin-top: 0.7rem;
}

.footer a:hover {
  color: hsl(var(--brand-mint));
}

.footer-bottom {
  margin-top: 2.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border) / 0.44);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
}

.whatsapp-float {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 45;
  display: inline-flex;
  min-height: 3.05rem;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid hsl(142 70% 45% / 0.55);
  border-radius: 999px;
  background: hsl(142 70% 45% / 0.94);
  color: white;
  padding: 0 0.95rem;
  font-size: 0.88rem;
  font-weight: 650;
  box-shadow: 0 18px 40px -20px hsl(142 70% 45% / 0.8), 0 0 0 1px hsl(0 0% 100% / 0.08);
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, filter 180ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.whatsapp-float img {
  width: 1.25rem;
  height: 1.25rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 560ms ease, transform 560ms ease;
}

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

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

@media (max-width: 1100px) {
  .hero-grid,
  .split,
  .ai-grid,
  .faq-wrap,
  .talent-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 30rem;
  }

  .benefit-grid,
  .steps,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-grid,
  .role-grid,
  .case-grid,
  .comparison,
  .use-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-grid .featured {
    grid-column: span 1;
  }

  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 4.75rem 1rem auto;
    display: grid;
    gap: 0.35rem;
    max-height: calc(100svh - 6rem);
    overflow: auto;
    border: 1px solid hsl(var(--border) / 0.72);
    border-radius: 1.1rem;
    background: hsl(var(--card) / 0.98);
    padding: 0.7rem;
    box-shadow: var(--shadow-card);
    transform: translateY(-0.8rem);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(18px);
  }

  .nav-links.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links a,
  .nav-links .nav-cta,
  .theme-toggle {
    margin: 0;
    padding: 0.9rem 1rem;
  }

  .theme-toggle {
    justify-content: flex-start;
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding-top: 6.8rem;
    padding-bottom: 4rem;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .support-line {
    justify-content: center;
    width: 100%;
  }

  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 1.5rem, 1240px);
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.15rem, 11.8vw, 3.1rem);
    letter-spacing: -0.038em;
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
    line-height: 1.1;
  }

  .section {
    padding: 3.6rem 0;
  }

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

  .hero-visual {
    min-height: 25rem;
  }

  .phone-card {
    width: 43vw;
    min-width: 8.5rem;
  }

  .phone-one {
    left: -0.5rem;
  }

  .phone-three {
    right: -0.5rem;
  }

  .benefit-grid,
  .capability-grid,
  .workflow,
  .steps,
  .use-case-grid,
  .role-grid,
  .case-grid,
  .video-grid,
  .comparison {
    grid-template-columns: 1fr;
  }

  .engineer-intro {
    grid-template-columns: 1fr;
  }

  .tech-logo-cloud {
    gap: 0.55rem;
    padding: 0.85rem;
  }

  .tech-logo-cloud span {
    min-height: 2.75rem;
    flex: 1 1 calc(50% - 0.55rem);
    padding-inline: 0.65rem;
    font-size: 0.78rem;
  }

  .role-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .proof-grid {
    gap: 1.2rem 0.8rem;
  }

  .whatsapp-float {
    right: 0.9rem;
    bottom: 0.9rem;
    width: 3.15rem;
    height: 3.15rem;
    justify-content: center;
    padding: 0;
  }

  .whatsapp-float span {
    display: none;
  }
}
