:root {
  --tg-blue: #3f88f7;
  --tg-blue-label: #548eef;
  --tg-panel: #1c1c1c;
  --tg-line: rgba(255, 255, 255, .15);
  --tg-muted: rgba(255, 255, 255, .6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #000 !important;
  background-image: none !important;
  color: #fff;
  font-family: Roboto, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
}
.tegsi-page {
  min-height: 100dvh;
  overflow: visible;
  overflow-x: clip;
  background: #000;
  color: #fff;
}
.tegsi-page a { color: inherit; text-decoration: none; }
.tegsi-page a:hover { text-decoration: none; }

/* Header — Figma nodes 167:1173, 167:1181, 167:1184 */
.site-header {
  position: relative;
  z-index: 10;
  height: 100px;
  padding: 0 max(80px, calc((100vw - 1502px) / 2 + 80px));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--tg-line);
  background: #000;
}
.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 24.421px;
  line-height: 39.684px;
  font-weight: 700;
  letter-spacing: -.0024px;
}
.logo-symbol { width: 35px; height: 26.851px; display: block; }
.main-nav { display: flex; align-items: center; gap: 108px; }
.main-nav a { color: #fff; font-size: 16px; line-height: 26px; }
.header-actions { justify-self: end; display: flex; gap: 9px; }
.header-actions a {
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 13px;
}
.nav-login { width: 107px; background: var(--tg-blue); }
.tegsi-page .nav-signup { width: 95px; background: #fff; color: #000; }
.mobile-menu, .mobile-nav { display: none; }

/* Hero — exact image export and desktop geometry from Figma 167:1188/1203 */
.hero {
  position: relative;
  height: 760px;
  overflow: hidden;
  background: #000;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -18px -1.2% auto -.01%;
  height: 1112px;
  background: url('/figma/hero-bg.png') center top / 100% auto no-repeat;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: -5px;
  right: -47px;
  top: 638px;
  height: 125px;
  background: linear-gradient(to bottom, rgba(0,0,0,.06), #000 76%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; padding-top: 149px; text-align: center; }
.hero h1 {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 75px;
  line-height: 78px;
  letter-spacing: -3.795px;
  font-weight: 500;
  white-space: nowrap;
  background: linear-gradient(to bottom, #fff 54.167%, #7898ca 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 span { color: inherit; }
.hero-copy > p {
  margin: 15px auto 25px;
  color: #fff;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: -.002px;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 15px; }
.button {
  height: 50px;
  border: 0;
  border-radius: 10px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 13px;
  font-size: 16px;
  line-height: 25px;
  letter-spacing: -.1616px;
  white-space: nowrap;
}
.button-primary { width: 225px; padding: 0 19px 0 20px; background: var(--tg-blue); color: #fff !important; }
.tegsi-page .button-light { width: 172px; padding: 0 17px; background: #fff; color: #000; }
.button-light span { font-size: 23px; line-height: 1; transform: translateY(-1px); }

/* Shared section typography */
.section { margin-right: auto; margin-left: auto; }
.section-heading { margin: 0 auto; text-align: center; }
.kicker { display: block; margin-bottom: 14px; color: var(--tg-blue-label); font-size: 22px; line-height: 31px; letter-spacing: -.792px; }
.section-heading h2, .products-intro h2 {
  margin: 0;
  color: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 48px;
  line-height: 60px;
  letter-spacing: -2.88px;
  font-weight: 700;
}
.section-heading > p, .products-intro > p {
  margin: 20px auto 0;
  color: #fff;
  font-size: 22px;
  line-height: 31px;
  letter-spacing: -.792px;
}

/* The gap — Figma 167:1043 */
.gap-section { width: min(1363px, calc(100% - 48px)); height: 777px; padding-top: 0; }
.gap-section .section-heading { width: 1322px; max-width: 100%; }
.gap-section .section-heading h2 { width: 802px; max-width: 100%; margin: 0 auto; }
.gap-section .section-heading > p { width: 762px; max-width: 100%; }
.gap-grid { display: grid; grid-template-columns: repeat(3, 437px); gap: 24px; margin-top: 63px; }
.gap-card {
  position: relative;
  min-width: 0;
  height: 463px;
  overflow: hidden;
  padding: 245px 34px 25px;
  border-radius: 10px;
  background: #1c1c1c;
}
.gap-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -5px;
  left: -116px;
  width: 690px;
  height: 593px;
  background: url('/figma/gap-glow-1.svg') center / 100% 100% no-repeat;
  pointer-events: none;
}
.gap-card:nth-child(2)::after {
  top: -223px;
  left: -322px;
  width: 830px;
  height: 1051px;
  background-image: url('/figma/gap-glow-2.svg');
  transform: rotate(88.35deg);
}
.gap-card:nth-child(3)::after {
  top: -148px;
  left: -85px;
  width: 694px;
  height: 895px;
  background-image: url('/figma/gap-glow-3.svg');
  transform: rotate(174.36deg);
}
.gap-card img { position: absolute; z-index: 1; display: block; opacity: .6; }
.gap-card:nth-child(1) img { top: 9px; left: 25px; width: 344px; height: 259px; }
.gap-card:nth-child(2) img { top: 17px; left: 96px; width: 240px; height: 240px; }
.gap-card:nth-child(3) img { top: 34px; left: 122px; width: 196px; height: 196px; transform: none; }
.gap-card > div { position: relative; z-index: 2; }
.gap-card h3 { margin: 0 0 12px; font-size: 24px; line-height: 29.7px; letter-spacing: -.864px; font-weight: 600; }
.gap-card p { max-width: 100%; margin: 0; color: var(--tg-muted); font-size: 20px; line-height: 29.7px; letter-spacing: -.72px; }
.gap-card:nth-child(1) p { width: 312px; }
.gap-card:nth-child(2) p { width: 366px; }
.gap-card:nth-child(3) p { width: 377px; }

/* Three instruments — Figma 167:996/1000 */
.products-section {
  width: min(1363px, calc(100% - 48px));
  height: 1091px;
  margin-top: 164px;
  display: grid;
  grid-template-columns: 655px 696px;
  gap: 0;
  align-items: start;
}
.products-intro {
  position: sticky;
  top: 120px;
  align-self: start;
  width: 598px;
  padding-top: 21px;
}
.products-intro, .product-stack { min-width: 0; }
.products-intro h2 { width: 571px; }
.products-intro > p { width: 598px; margin-left: 0; }
.product-stack { display: flex; flex-direction: column; gap: 70px; }
.product-card { width: 696px; height: 317px; overflow: hidden; border-radius: 10px; background: var(--tg-panel); }
.product-card header {
  height: 88px;
  padding: 14px 21px 10px 23px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--tg-line);
}
.product-card h3 { margin: 0; color: #fff; font-size: 24px; line-height: 30px; letter-spacing: -.864px; font-weight: 600; }
.product-card small { display: block; color: var(--tg-muted); font-size: 16px; line-height: 30px; letter-spacing: -.576px; }
.product-card header > span { padding-top: 16px; color: var(--tg-blue); font-size: 16px; line-height: 30px; letter-spacing: -.576px; }
.product-body { padding: 18px 22px 14px 23px; }
.product-body > p { width: 651px; margin: 0 0 18px; color: var(--tg-muted); font-size: 21px; line-height: 29.7px; letter-spacing: -.759px; }
.product-body ul { display: grid; gap: 6px; margin: 0; padding-left: 27px; color: #a4a4a4; font-size: 18px; line-height: 29.7px; letter-spacing: -.648px; }

/* How it works — Figma 167:1140, 177:88, 167:1141 */
.engine-section {
  position: relative;
  isolation: isolate;
  width: min(1322px, calc(100% - 48px));
  height: 676px;
  margin-top: 131px;
}
.engine-section::before,
.engine-section::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 299px;
  width: 458px;
  height: 347px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3f88f7 0%, #659cf1 60%, #a8c3f3 100%);
  filter: blur(20px);
  opacity: .9;
  pointer-events: none;
}
.engine-section::before { left: 66px; }
.engine-section::after { top: 294px; left: 888px; }
.engine-section > * { position: relative; z-index: 1; }
.engine-section .section-heading h2 {
  width: 842px;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  font-family: "SF Pro Display", "SF Pro Text", Arial, sans-serif;
  transform: scaleX(.92);
  transform-origin: center;
}
.engine-section .section-heading > p { width: 1160px; max-width: 100%; opacity: .8; }
.engine-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 422.886px)); gap: 26.567px; margin-top: 63px; }
.engine-flow article {
  position: relative;
  height: 366.449px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 19.284px;
  background: #1c1c1c;
}
.engine-flow b,
.engine-flow h3,
.engine-flow p,
.engine-icon { position: absolute; z-index: 1; }
.engine-flow b {
  top: 30.854px;
  left: 35.996px;
  font-size: 30.854px;
  line-height: 77.135px;
  letter-spacing: -1.851px;
  font-family: "SF Pro Display", "SF Pro Text", Arial, sans-serif;
  font-weight: 600;
}
.engine-icon { overflow: hidden; opacity: .7; }
.engine-icon img { position: absolute; display: block; max-width: none; }
.people { top: 90.794px; left: 139.446px; width: 143.4px; height: 119.689px; }
.people img { top: -33.045px; left: -51.971px; width: 241.568px; height: 191.955px; }
.layers { top: 93.004px; left: 151.796px; width: 118.533px; height: 121.988px; }
.layers img { top: -33.498px; left: -35.302px; width: 188.377px; height: 188.377px; }
.dashboard { top: 94.114px; left: 146.416px; width: 130.124px; height: 118.186px; }
.dashboard img { top: -34.618px; left: -25.08px; width: 187.431px; height: 187.431px; }
.engine-flow h3 {
  top: 244.294px;
  left: 35.996px;
  width: 303.347px;
  margin: 0;
  font-size: 28.283px;
  line-height: 39.853px;
  letter-spacing: -1.018px;
  font-weight: 700;
}
.engine-flow p {
  top: 290.575px;
  left: 35.996px;
  width: 303.347px;
  margin: 0;
  color: #fff;
  font-size: 25.712px;
  line-height: 39.853px;
  letter-spacing: -.926px;
  opacity: .78;
}

/* Audience — Figma 167:972 */
.audience-section { width: min(1363px, calc(100% - 48px)); height: 474px; margin-top: 158px; }
.audience-section .section-heading { width: 842px; max-width: 100%; }
.audience-section .section-heading > p { width: 594px; max-width: 100%; }
.audience-grid { display: grid; grid-template-columns: 668px 671px; gap: 24px; margin-top: 62px; }
.audience-grid article { min-width: 0; height: 234px; padding: 30px 21px; border: 1px solid var(--tg-line); border-radius: 10px; background: var(--tg-panel); }
.audience-grid span { color: var(--tg-blue); font-size: 16px; line-height: 30px; letter-spacing: -.576px; }
.audience-grid h3 { margin: 12px 0; font-size: 23px; line-height: 30px; letter-spacing: -.828px; font-weight: 600; }
.audience-grid p { width: 615px; max-width: 100%; margin: 0; color: var(--tg-muted); font-size: 21px; line-height: 29.7px; letter-spacing: -.759px; }

/* Closing CTA and footer — Figma 167:1074 */
.closing-stage {
  position: relative;
  isolation: isolate;
  width: min(1502px, 100%);
  height: 852px;
  margin: 150px auto 0;
  overflow: hidden;
  background: #000;
}
.closing-stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(
    ellipse 78% 68% at 50% 112%,
    rgba(91, 139, 207, .78) 0%,
    rgba(43, 89, 151, .72) 35%,
    rgba(13, 39, 77, .56) 58%,
    transparent 78%
  );
  pointer-events: none;
}
.final-cta {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 508px;
  margin: 0;
  background: transparent;
}
.star-field {
  position: absolute;
  z-index: 0;
  top: -5px;
  left: -5px;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  object-fit: cover;
  opacity: .8;
}
.cta-content { position: relative; z-index: 2; padding-top: 83px; text-align: center; }
.logo-large { width: 72px; height: 56px; display: block; margin: 0 auto; }
.cta-content h2 { margin: 15px 0 0; font-family: Inter, sans-serif; font-size: 56px; line-height: 65px; letter-spacing: -.84px; font-weight: 500; }
.cta-content > p { width: 489px; max-width: calc(100% - 32px); margin: 9px auto 25px; font-size: 20px; line-height: 31px; letter-spacing: -.002px; }
.cta-content .button { height: 50px; }
.tegsi-footer {
  position: relative;
  z-index: 1;
  min-height: 344px;
  padding: 45px 109px 30px;
  display: grid;
  grid-template-columns: 401px 248px 248px 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
}
.footer-brand { grid-column: 1; grid-row: 1 / 4; }
.footer-product { grid-column: 2; grid-row: 1; }
.footer-resources { grid-column: 3; grid-row: 1; }
.footer-company { grid-column: 4; grid-row: 1; padding-right: 150px; }
.tegsi-footer .wordmark { font-size: 24px; }
.tegsi-footer p { margin: 29px 0 0; color: #fff; font-size: 16px; line-height: 26px; opacity: .8; }
.tegsi-footer p + p { margin-top: 6px; }
.footer-column { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.tegsi-footer b { margin-bottom: 9px; color: #f7f7f7; font-size: 16px; line-height: 26px; }
.tegsi-footer a { color: #fff; font-size: 13px; line-height: 26px; opacity: .7; }
.tegsi-footer .wordmark, .tegsi-footer .footer-socials a { opacity: 1; }
.footer-socials {
  position: static;
  grid-column: 4;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 16.5px;
  opacity: .8;
}
.footer-socials a { width: 23px; height: 23px; display: grid; place-items: center; color: #fff; }
.footer-socials svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.6; }
.footer-socials .social-fill, .footer-socials .social-dot { fill: currentColor; stroke: none; }
.tegsi-footer small {
  position: static;
  grid-column: 4;
  grid-row: 3;
  align-self: end;
  justify-self: end;
  font-size: 13px;
  line-height: 26px;
  white-space: nowrap;
}

/* Scaled desktops and laptops: retain the Figma composition without fixed-width overflow. */
@media (max-width: 1400px) {
  .site-header { padding: 0 clamp(24px, 4vw, 56px); }
  .main-nav { gap: clamp(34px, 6vw, 84px); }
  .hero h1 {
    font-size: clamp(54px, 5.25vw, 70px);
    line-height: 1.05;
    letter-spacing: -.05em;
  }

  .gap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gap-card { width: auto; padding-right: clamp(22px, 2.5vw, 34px); padding-left: clamp(22px, 2.5vw, 34px); }
  .gap-card:nth-child(1) img,
  .gap-card:nth-child(2) img,
  .gap-card:nth-child(3) img { left: 50%; transform: translateX(-50%); }
  .gap-card:nth-child(1) img { width: clamp(285px, 24.6vw, 344px); height: auto; }
  .gap-card:nth-child(2) img { width: clamp(205px, 17.2vw, 240px); height: auto; }
  .gap-card:nth-child(3) img { width: clamp(168px, 14vw, 196px); height: auto; }

  .products-section {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 24px;
  }
  .products-intro,
  .products-intro h2,
  .products-intro > p,
  .product-card,
  .product-body > p { width: 100%; }
  .products-intro { padding-right: clamp(8px, 2vw, 28px); }

  .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tegsi-footer {
    grid-template-columns: minmax(300px, 401px) minmax(180px, 248px) minmax(180px, 248px) minmax(280px, 1fr);
    gap: 0;
    padding-right: clamp(32px, 5vw, 70px);
    padding-left: clamp(32px, 5vw, 70px);
  }
}

/* Compact laptops: flexible content replaces fixed-height Figma rows. */
@media (min-width: 981px) and (max-width: 1200px) {
  .products-section { height: auto; }
  .product-stack { gap: 48px; }
  .product-card { height: auto; min-height: 335px; }

  .engine-flow article { height: 330px; }
  .engine-flow b { top: 22px; left: 24px; font-size: 26px; line-height: 58px; }
  .engine-icon { top: 76px; left: 50%; transform: translateX(-50%); }
  .engine-flow h3 { top: 220px; left: 24px; width: calc(100% - 48px); font-size: 22px; line-height: 32px; letter-spacing: -.8px; }
  .engine-flow p { top: 257px; left: 24px; width: calc(100% - 48px); font-size: 18px; line-height: 28px; letter-spacing: -.6px; }

  .audience-section { height: auto; }
  .audience-grid article { height: auto; min-height: 250px; }
  .audience-grid p { font-size: 18px; line-height: 26px; }
}

/* Small laptops: footer metadata moves into the grid instead of overlapping links. */
@media (max-width: 1080px) {
  .closing-stage { height: auto; min-height: 920px; }
  .tegsi-footer {
    min-height: 412px;
    padding: 42px clamp(32px, 5vw, 54px) 30px;
    grid-template-columns: minmax(220px, 1.45fr) repeat(2, minmax(150px, 1fr));
    grid-template-rows: auto auto auto;
    column-gap: 32px;
    row-gap: 28px;
  }
  .footer-brand { grid-column: 1; grid-row: 1 / 3; }
  .footer-product { grid-column: 2; grid-row: 1; }
  .footer-resources { grid-column: 3; grid-row: 1; }
  .footer-company { grid-column: 2; grid-row: 2; padding-right: 0; }
  .footer-socials { grid-column: 3; grid-row: 2; justify-self: start; margin-top: 0; }
  .tegsi-footer small { grid-column: 3; grid-row: 3; }
}

/* Tablets: the split layouts stop being useful before the phone breakpoint. */
@media (max-width: 980px) {
  .main-nav { gap: 24px; }
  .header-actions .nav-login { width: 82px; }
  .header-actions .nav-signup { width: 78px; }

  .gap-section { height: auto; padding-bottom: 100px; }
  .gap-grid { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
  .gap-card { height: 360px; padding: 190px 18px 20px; }
  .gap-card:nth-child(1) img { top: 20px; width: 190px; height: auto; }
  .gap-card:nth-child(2) img { top: 28px; width: 140px; }
  .gap-card:nth-child(3) img { top: 28px; width: 125px; }
  .gap-card h3 { margin-bottom: 8px; font-size: 18px; line-height: 24px; }
  .gap-card p { width: 100% !important; font-size: 14px; line-height: 20px; }

  .products-section { height: auto; margin-top: 90px; display: block; }
  .products-intro { position: static; padding: 0; text-align: center; }
  .product-stack { width: min(696px, 100%); margin: 54px auto 0; }

  .engine-section { height: auto; margin-top: 130px; }
  .engine-section::before,
  .engine-section::after { left: 50%; transform: translateX(-50%); }
  .engine-section::after { top: auto; bottom: 0; }
  .engine-flow { width: min(422.886px, 100%); margin-right: auto; margin-left: auto; grid-template-columns: 1fr; }

  .audience-section { height: auto; margin-top: 130px; }
  .audience-grid { grid-template-columns: 1fr; }

  .closing-stage { min-height: 1028px; }
  .tegsi-footer {
    min-height: 520px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto;
    column-gap: clamp(30px, 8vw, 64px);
    row-gap: 26px;
  }
  .footer-brand { grid-column: 1 / -1; grid-row: 1; }
  .footer-product { grid-column: 1; grid-row: 2; }
  .footer-resources { grid-column: 2; grid-row: 2; }
  .footer-company { grid-column: 1; grid-row: 3; padding-right: 0; }
  .footer-socials { grid-column: 2; grid-row: 3; align-self: end; justify-self: start; margin: 0; }
  .tegsi-footer small { grid-column: 1 / -1; grid-row: 4; }
}

@media (max-width: 840px) {
  .site-header {
    height: 80px;
    padding: 0 17px;
    grid-template-columns: 1fr auto;
    border-bottom-color: rgba(255, 255, 255, .08);
  }
  .site-header .wordmark { font-size: 20px; }
  .site-header .logo-symbol { width: 29px; height: 22px; }
  .main-nav, .header-actions { display: none; }
  .mobile-menu {
    width: 48px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 7px;
    background: #080808;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    -webkit-tap-highlight-color: rgba(63, 136, 247, .28);
  }
  .mobile-menu span { width: 17px; height: 1px; background: #fff; }
  .mobile-menu:active,
  .mobile-menu.is-open { border-color: rgba(63, 136, 247, .72); background: rgba(63, 136, 247, .16); }
  .mobile-menu:focus-visible { outline: 2px solid var(--tg-blue); outline-offset: 3px; box-shadow: 0 0 0 4px rgba(63, 136, 247, .16); }
  .mobile-nav { position: absolute; z-index: 20; top: 79px; right: 17px; left: 17px; padding: 10px; border: 1px solid rgba(63, 136, 247, .32); border-radius: 10px; background: #111; }
  .mobile-nav:not([hidden]) { display: grid; }
  .mobile-nav a { min-height: 44px; padding: 0 14px; display: flex; align-items: center; border-radius: 7px; color: #fff; font-size: 15px; -webkit-tap-highlight-color: rgba(63, 136, 247, .24); }
  .mobile-nav a:active { background: rgba(63, 136, 247, .16); }
  .mobile-nav-signup { margin-top: 5px; justify-content: center; background: var(--tg-blue); }
}

@media (max-width: 720px) {
  .hero { height: 550px; }
  .hero::before { inset: 0 -55% auto -55%; height: 720px; background-size: auto 720px; }
  .hero::after { top: 485px; height: 65px; background: linear-gradient(to bottom, rgba(0,0,0,0), #000 90%); }
  .hero-copy { padding: 102px 12px 0; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 45px); line-height: 1.04; letter-spacing: -2px; white-space: normal; }
  .hero-copy > p { margin-top: 20px; font-size: 12px; line-height: 18px; }
  .hero-actions { gap: 8px; }
  .button { height: 42px; gap: 6px; border-radius: 8px; font-size: 11px; }
  .button-primary { width: 170px; }
  .tegsi-page .button-light { width: 135px; }

  .section-heading h2, .products-intro h2 { font-size: 31px; line-height: 37px; letter-spacing: -1.7px; }
  .section-heading h2 br, .products-intro h2 br { display: none; }
  .kicker { font-size: 15px; line-height: 23px; }
  .section-heading > p, .products-intro > p { font-size: 14px; line-height: 21px; }

  .gap-section { width: calc(100% - 32px); height: auto; padding: 36px 0 72px; }
  .gap-grid { grid-template-columns: 1fr; gap: 22px; margin-top: 40px; }
  .gap-card { height: 330px; padding: 190px 26px 22px; }
  .gap-card:nth-child(1) img { top: 20px; left: 50%; width: 220px; height: auto; transform: translateX(-50%); }
  .gap-card:nth-child(2) img { top: 30px; left: 50%; width: 165px; height: auto; transform: translateX(-50%); }
  .gap-card:nth-child(3) img { top: 26px; left: 50%; width: 145px; height: auto; transform: translateX(-50%); }
  .gap-card h3 { margin-bottom: 12px; font-size: 21px; line-height: 29.7px; }
  .gap-card p { font-size: 17px; line-height: 24px; }

  .products-section { width: calc(100% - 32px); height: auto; margin-top: 0; display: block; }
  .products-intro { position: static; width: 100%; padding: 0; text-align: center; }
  .products-intro h2, .products-intro > p { width: 100%; }
  .product-stack { gap: 24px; margin-top: 42px; }
  .product-card { width: 100%; height: auto; min-height: 355px; }
  .product-card header { height: 86px; padding: 14px 16px; }
  .product-card h3 { font-size: 20px; }
  .product-card small, .product-card header > span { font-size: 12px; }
  .product-body { padding: 20px 16px; }
  .product-body > p { width: 100%; font-size: 16px; line-height: 23px; }
  .product-body ul { font-size: 14px; line-height: 24px; }

  .engine-section { width: 100%; height: auto; margin-top: 100px; padding: 0 16px; }
  .engine-section::before { top: 205px; }
  .engine-section::after { top: auto; bottom: -10px; }
  .engine-section::before,
  .engine-section::after { opacity: .48; }
  .engine-section .section-heading,
  .engine-section .section-heading h2,
  .engine-section .section-heading > p { width: 100%; min-width: 0; max-width: 100%; overflow-wrap: break-word; }
  .engine-section .section-heading h2 { font-size: 25px; line-height: 31px; letter-spacing: -1.3px; transform: none; }
  .engine-section .section-heading > p { padding: 0 6px; }
  .engine-flow { width: 100%; max-width: 422.886px; grid-template-columns: minmax(0, 1fr); gap: 22px; margin: 42px auto 0; }
  .engine-flow article { width: 100%; min-width: 0; max-width: 100%; height: 270px; border-radius: 16px; }
  .engine-flow b { top: 14px; left: 24px; font-size: 22px; line-height: 48px; letter-spacing: -1.1px; }
  .engine-icon { top: 50px; left: 50%; transform: translateX(-50%) scale(.8); transform-origin: center; }
  .engine-flow h3 { top: 180px; left: 24px; width: calc(100% - 48px); font-size: 21px; line-height: 30px; letter-spacing: -.75px; }
  .engine-flow p { top: 216px; left: 24px; width: calc(100% - 48px); font-size: 16px; line-height: 25px; letter-spacing: -.5px; }
  .audience-section { width: calc(100% - 32px); height: auto; margin-top: 100px; }
  .audience-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 42px; }
  .audience-grid article { height: auto; min-height: 225px; }
  .audience-grid p { font-size: 17px; line-height: 24px; }

  .closing-stage { width: 100%; height: auto; min-height: 970px; margin-top: 100px; }
  .final-cta { width: 100%; height: 490px; margin: 0; }
  .cta-content { padding: 68px 16px 0; }
  .logo-large { width: 60px; height: 46px; }
  .cta-content h2 { font-size: 45px; line-height: 51px; }
  .cta-content > p { font-size: 16px; line-height: 23px; }
  .final-cta .button { height: 40px; font-size: 10.5px; }
  .final-cta .button-primary { width: 156px; }
  .tegsi-page .final-cta .button-light { width: 122px; }
  .tegsi-footer { min-height: 0; padding: 50px 24px 30px; column-gap: 28px; row-gap: 28px; }
  .tegsi-footer p { font-size: 14px; line-height: 23px; }
  .footer-socials { gap: 13px; }
  .footer-socials a { width: 20px; height: 20px; }
  .tegsi-footer small { font-size: 11px; }
}

@media (max-width: 360px) {
  .hero { height: 610px; }
  .hero::after { top: 545px; }
  .hero-actions { flex-direction: column; }
  .button-primary,
  .tegsi-page .button-light,
  .final-cta .button-primary,
  .tegsi-page .final-cta .button-light { width: min(210px, 100%); }
  .final-cta { height: 550px; }
}

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