/* Hero and above-the-fold polish based on the live desktop render.
   Release sync: 2026-08-03 — forces the hosting deployment to pick up the latest index + hero styles. */

:root {
  --hero-wide: 1500px;
  --header-wide: 1320px;
}

.header {
  top: 18px;
  width: min(var(--header-wide), calc(100% - 48px));
  min-height: 72px;
  padding-inline: 18px;
  border-radius: 18px;
}

.header .brand {
  gap: 12px;
}

.header .brand img {
  width: 38px;
  height: 38px;
}

.header .brand b {
  font-size: 14px;
  letter-spacing: .17em;
}

.header > nav {
  gap: 32px;
  font-size: 13px;
}

.small-cta {
  height: 44px;
  padding-inline: 18px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 12px 34px rgba(120, 210, 221, .14);
}

.hero.wrap {
  width: 100%;
  max-width: none;
}

.hero {
  padding-top: 148px;
}

.hero-copy {
  max-width: 1020px;
  padding-inline: 24px;
}

.hero .eyebrow {
  font-size: 11px;
  letter-spacing: .19em;
}

.hero h1 {
  max-width: 980px;
  margin: 24px auto 24px;
  font-size: clamp(58px, 6.2vw, 96px);
  line-height: .98;
}

.hero h1 em {
  color: rgba(244, 247, 247, .74);
}

.lead {
  max-width: 800px;
  color: #b5bdc3;
  font-size: clamp(17px, 1.28vw, 20px);
  line-height: 1.65;
}

.hero-actions {
  gap: 12px;
  margin-top: 34px;
}

.hero-actions .primary,
.hero-actions .secondary {
  min-height: 52px;
  padding-inline: 22px;
  border-radius: 13px;
  font-size: 14px;
}

.hero-actions .primary {
  box-shadow: 0 15px 40px rgba(120, 210, 221, .18);
}

.micro {
  margin-top: 17px;
  color: #879098;
  font-size: 12px;
}

.demo {
  width: min(var(--hero-wide), calc(100% - 48px));
  margin: 48px auto 0;
  border-radius: 24px;
  box-shadow: 0 62px 180px rgba(0, 0, 0, .68);
}

.appbar {
  height: 40px;
  padding-inline: 14px;
  font-size: 8px;
}

.appbar img {
  width: 19px;
  height: 19px;
}

.appgrid {
  height: 690px;
}

.convert {
  border-color: rgba(158, 232, 239, .44);
  background: linear-gradient(90deg, rgba(158, 232, 239, .15), rgba(158, 232, 239, .035));
  box-shadow: 0 0 0 1px rgba(158, 232, 239, .06), 0 12px 34px rgba(89, 187, 199, .09);
}

.convert:hover {
  border-color: rgba(158, 232, 239, .7);
  background: linear-gradient(90deg, rgba(158, 232, 239, .21), rgba(158, 232, 239, .055));
}

.workflow {
  background: linear-gradient(180deg, #171c22, #14181d);
}

.empty i {
  border-color: rgba(158, 232, 239, .18);
  background: rgba(158, 232, 239, .035);
  color: var(--accent);
}

/* Header and modes-section balance pass. */
.header {
  top: 12px;
  border-color: rgba(255, 255, 255, .075);
  background: rgba(13, 15, 19, .76);
  box-shadow: 0 18px 58px rgba(0, 0, 0, .24);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header.scrolled {
  background: rgba(13, 15, 19, .94);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: 0 22px 64px rgba(0, 0, 0, .38);
}

.modes.wrap {
  width: min(1320px, calc(100% - 48px));
}

.modes {
  padding: 128px 0 92px;
}

.modes .heading.center {
  max-width: 980px;
}

.modes .heading h2 {
  margin: 19px 0 0;
  font-size: clamp(44px, 4.65vw, 68px);
  line-height: 1.01;
}

.modes .heading h2 em {
  color: #a3abb1;
}

.mode-grid {
  gap: 24px;
  margin-top: 44px;
}

.mode-grid article {
  min-height: 600px;
  padding: 34px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .043), rgba(255, 255, 255, .012));
  box-shadow: inset 0 1px rgba(255, 255, 255, .018), 0 20px 54px rgba(0, 0, 0, .08);
}

.mode-grid article.featured {
  border-color: rgba(158, 232, 239, .29);
  background: linear-gradient(145deg, rgba(158, 232, 239, .095), rgba(255, 255, 255, .018) 54%);
  box-shadow: inset 0 1px rgba(190, 244, 248, .025), 0 22px 64px rgba(67, 145, 156, .07);
}

.mode-grid article > header {
  color: #89939b;
  font-size: 11px;
}

.mode-grid article > header span {
  width: 34px;
  height: 34px;
  border-color: rgba(255, 255, 255, .1);
}

.mode-grid article > header small {
  color: #7e8992;
  letter-spacing: .06em;
}

.mode-icon {
  width: 86px;
  height: 86px;
  margin: 48px 0 28px;
  border-radius: 24px;
  border-color: rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .032);
}

.mode-icon img {
  width: 61px;
}

.flow-icon {
  min-height: 86px;
  gap: 16px;
  margin: 48px 0 28px;
  font-size: 38px;
}

.flow-icon i {
  color: #6b7780;
  font-size: 20px;
}

.mode-grid h3 {
  margin-bottom: 13px;
  font-size: 35px;
  line-height: 1.08;
}

.mode-grid article > p {
  max-width: 510px;
  color: #aeb6bc;
  font-size: 16.5px;
  line-height: 1.75;
}

.mode-grid ul {
  gap: 13px;
  margin-top: 20px;
}

.mode-grid li {
  color: #e2e7e9;
  font-size: 14px;
  line-height: 1.55;
}

.mode-grid li::before {
  margin-right: 10px;
}

.mode-grid footer {
  left: 34px;
  right: 34px;
  bottom: 29px;
  gap: 7px;
  padding-top: 19px;
}

.mode-grid footer small {
  color: #909aa2;
  font-size: 11px;
}

.mode-grid footer b {
  color: #f4f7f7;
  font-size: 14px;
  line-height: 1.45;
}

.continuity {
  gap: 84px;
  padding-top: 12px;
  padding-bottom: 132px;
}

@media (min-width: 1280px) {
  .sidebar {
    padding: 17px 13px;
    font-size: 8px;
  }

  .sidebrand img {
    width: 31px;
    height: 31px;
  }

  .sidebrand small,
  .project small,
  .account small {
    font-size: 7px;
  }

  .sidebar label {
    font-size: 7px;
  }

  .toolbar {
    height: 48px;
    padding-inline: 15px;
    font-size: 7px;
  }

  .messages {
    padding: 34px 34px 104px;
  }

  .user,
  .assistant {
    font-size: 10px;
  }

  .assistant header img {
    width: 21px;
    height: 21px;
  }

  .mini-plan small,
  .convert small {
    font-size: 7px;
  }

  .composer {
    left: 30px;
    right: 30px;
    bottom: 16px;
    padding: 12px;
    font-size: 8px;
  }

  .flow-content header small,
  .kept small,
  .flow-content li small {
    font-size: 6px;
  }

  .flow-content header b,
  .flow-content li strong {
    font-size: 8px;
  }
}

@media (max-width: 900px) {
  .header {
    top: 10px;
    width: calc(100% - 24px);
    min-height: 62px;
    padding-inline: 12px;
  }

  .header .brand img {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding-top: 126px;
  }

  .hero-copy {
    padding-inline: 20px;
  }

  .hero h1 {
    font-size: clamp(48px, 12vw, 72px);
  }

  .lead {
    max-width: 680px;
    font-size: 17px;
  }

  .demo {
    width: calc(100% - 24px);
    margin-top: 44px;
  }

  .appgrid {
    height: 570px;
  }

  .modes.wrap {
    width: min(100% - 32px, 760px);
  }

  .modes {
    padding: 104px 0 74px;
  }

  .modes .heading h2 {
    font-size: clamp(40px, 7.5vw, 58px);
  }

  .mode-grid {
    gap: 18px;
    margin-top: 38px;
  }

  .mode-grid article {
    min-height: 560px;
    padding: 28px;
  }

  .mode-grid h3 {
    font-size: 31px;
  }

  .mode-grid article > p {
    font-size: 15px;
  }

  .mode-grid li {
    font-size: 13px;
  }

  .mode-grid footer {
    left: 28px;
    right: 28px;
    bottom: 26px;
  }

  .continuity {
    padding-top: 0;
    padding-bottom: 108px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 116px;
  }

  .hero h1 {
    margin-top: 19px;
    font-size: clamp(43px, 13vw, 58px);
  }

  .lead {
    font-size: 16px;
    line-height: 1.62;
  }

  .hero-actions {
    width: min(100%, 420px);
    margin-inline: auto;
  }

  .hero-actions .primary,
  .hero-actions .secondary {
    min-height: 50px;
    font-size: 13px;
  }

  .micro {
    max-width: 330px;
    margin-inline: auto;
    line-height: 1.5;
  }

  .demo {
    width: calc(100% - 16px);
    margin-top: 38px;
    border-radius: 18px;
  }

  .appbar {
    height: 34px;
  }

  .modes.wrap {
    width: calc(100% - 24px);
  }

  .modes {
    padding: 88px 0 62px;
  }

  .modes .heading h2 {
    font-size: clamp(37px, 11vw, 48px);
  }

  .mode-grid {
    margin-top: 34px;
  }

  .mode-grid article {
    min-height: 570px;
    padding: 24px 22px;
    border-radius: 22px;
  }

  .mode-icon,
  .flow-icon {
    margin-top: 38px;
    margin-bottom: 24px;
  }

  .mode-icon {
    width: 76px;
    height: 76px;
  }

  .mode-icon img {
    width: 54px;
  }

  .flow-icon {
    min-height: 76px;
    gap: 11px;
    font-size: 31px;
  }

  .flow-icon i {
    font-size: 17px;
  }

  .mode-grid h3 {
    font-size: 29px;
  }

  .mode-grid article > p {
    font-size: 14.5px;
  }

  .mode-grid li {
    font-size: 12.5px;
  }

  .mode-grid footer {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }

  .continuity {
    padding-bottom: 92px;
  }
}
