/* Duolingo-inspired design tokens for Hightouch landing page */
:root {
  --duo-green: #58CC02;
  --duo-green-light: #61E002;
  --duo-green-dark: #46A302;
  --duo-green-shadow: #58A700;
  --ink: #3C3C3C;
  --ink-strong: #4B4B4B;
  --muted: #777777;
  --muted-light: #AFAFAF;
  --canvas: #FFFFFF;
  --wash-blue: #DDF4FF;
  --surface: #FFFFFF;
  --surface-alt: #F7F7F7;
  --border: #E5E5E5;
  --border-strong: #DADADA;
  --link-blue: #1CB0F6;
  --link-blue-dark: #1B99D6;
  --navy: #042C60;
  --super-navy: #100F3E;
  --footer-soft: #D7FFB8;
  --warning: #FFC800;
  --streak: #FF9600;
  --gems: #CE82FF;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --max-width: 988px;
  --wide-width: 1090px;
  --section-padding: 96px;
  --font-display: "Fredoka", "Nunito", sans-serif;
  --font-body: "Nunito", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
  color: var(--muted);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--link-blue);
  text-decoration: none;
}

a:hover {
  color: var(--link-blue-dark);
}

:focus-visible {
  outline: 3px solid var(--link-blue);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--duo-green);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-md);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: var(--wide-width);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 2px solid var(--border);
  height: 72px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--duo-green);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--duo-green-dark);
}

.site-logo__mark {
  width: 36px;
  height: 36px;
  background: var(--duo-green);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 0 var(--duo-green-shadow);
}

.site-logo__mark svg {
  width: 22px;
  height: 22px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav__link {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted-light);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.site-nav__link:hover {
  color: var(--link-blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--border);
  border-bottom: 4px solid var(--border-strong);
  border-radius: var(--radius-md);
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  margin: 3px auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, box-shadow 0.1s ease;
}

.btn--primary {
  background: var(--duo-green);
  color: #fff;
  box-shadow: 0 4px 0 var(--duo-green-shadow);
}

.btn--primary:hover {
  background: var(--duo-green-light);
  color: #fff;
  transform: translateY(-1px);
}

.btn--primary:active {
  background: var(--duo-green-dark);
  transform: translateY(4px);
  box-shadow: none;
}

.btn--secondary {
  background: var(--surface);
  color: var(--link-blue);
  border: 2px solid var(--border);
  box-shadow: 0 4px 0 var(--border-strong);
}

.btn--secondary:hover {
  background: var(--wash-blue);
  border-color: var(--link-blue);
  color: var(--link-blue-dark);
}

.btn--secondary:active {
  transform: translateY(4px);
  box-shadow: none;
}

.btn--super {
  background: #fff;
  color: var(--super-navy);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.btn--super:hover {
  background: var(--wash-blue);
  color: var(--super-navy);
}

.btn--super:active {
  transform: translateY(4px);
  box-shadow: none;
}

.btn--wide {
  min-width: 280px;
}

/* Hero */
.hero {
  padding: 48px 0 64px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__illustration {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}

.hero__content {
  max-width: 480px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--link-blue);
  background: var(--wash-blue);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--duo-green);
  margin: 0 0 12px;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.375;
  color: var(--ink-strong);
  margin: 0 0 16px;
}

.hero__desc {
  font-size: 17px;
  line-height: 24px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 473px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--ink);
}

.hero__bullets li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--duo-green);
  border-radius: 50%;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Stats rail */
.stats-rail {
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  padding: 20px 0;
  background: var(--surface-alt);
}

.stats-rail__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.stat-chip__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.stat-chip__icon--green { background: #E5FFCC; }
.stat-chip__icon--blue { background: var(--wash-blue); }
.stat-chip__icon--gold { background: #FFF3CC; }
.stat-chip__icon--purple { background: #F0E0FF; }

.stat-chip strong {
  color: var(--ink-strong);
  font-size: 20px;
  font-family: var(--font-display);
}

/* Feature sections */
.feature {
  padding: var(--section-padding) 0;
}

.feature--alt {
  background: var(--wash-blue);
}

.feature__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature__grid--reverse .feature__visual {
  order: -1;
}

.feature__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--duo-green);
  margin: 0 0 16px;
}

.feature__text {
  font-size: 17px;
  line-height: 24px;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 503px;
}

.feature__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.feature__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 16px;
}

.feature__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--duo-green);
  font-weight: 700;
}

.feature__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Cards */
.card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  min-height: 340px;
}

.demo-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 4px 0 var(--border-strong);
}

.demo-card--floating {
  position: absolute;
  width: 85%;
}

.demo-card--back {
  top: 0;
  left: 0;
  opacity: 0.7;
  transform: rotate(-4deg);
}

.demo-card--front {
  bottom: 0;
  right: 0;
  z-index: 2;
}

.demo-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.demo-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wash-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.demo-card__title {
  font-weight: 700;
  color: var(--ink-strong);
  font-size: 15px;
  margin: 0;
}

.demo-card__subtitle {
  font-size: 13px;
  color: var(--muted-light);
  margin: 0;
}

.progress-bar {
  height: 12px;
  background: var(--surface-alt);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 12px 0;
}

.progress-bar__fill {
  height: 100%;
  background: var(--duo-green);
  border-radius: var(--radius-pill);
  transition: width 0.6s ease;
}

.progress-bar__fill--blue {
  background: var(--link-blue);
}

.progress-bar__fill--gold {
  background: var(--warning);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--wash-blue);
  color: var(--link-blue);
}

.tag--green {
  background: #E5FFCC;
  color: var(--duo-green-dark);
}

.tag--gold {
  background: #FFF3CC;
  color: #B8860B;
}

/* Trust section */
.trust {
  padding: var(--section-padding) 0;
  background: var(--surface-alt);
  text-align: center;
}

.trust__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
}

.trust__desc {
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--muted);
}

.trust__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
}

.trust-badge {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  min-width: 200px;
  box-shadow: 0 4px 0 var(--border-strong);
}

.trust-badge__icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.trust-badge__label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-light);
  margin: 0 0 4px;
}

.trust-badge__value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-strong);
  margin: 0;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.logo-pill {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Super promo block */
.super-promo {
  background: var(--super-navy);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.super-promo::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(88, 204, 2, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.super-promo__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  position: relative;
}

.super-promo__desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 32px;
  position: relative;
}

.super-promo__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  position: relative;
}

.super-stat {
  text-align: center;
}

.super-stat__num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--duo-green);
  line-height: 1;
}

.super-stat__label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}

/* Integrations */
.integrations {
  padding: var(--section-padding) 0;
  text-align: center;
}

.integrations__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--duo-green);
  margin: 0 0 16px;
}

.integrations__desc {
  max-width: 560px;
  margin: 0 auto 40px;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.integration-tile {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 3px 0 var(--border-strong);
  transition: transform 0.15s ease;
}

.integration-tile:hover {
  transform: translateY(-2px);
  border-color: var(--link-blue);
}

.integration-tile__icon {
  font-size: 24px;
  margin-bottom: 6px;
}

/* Final CTA */
.final-cta {
  padding: 80px 0 0;
  background: linear-gradient(180deg, var(--canvas) 0%, #E8FFD4 100%);
  text-align: center;
}

.final-cta__inner {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.final-cta__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--duo-green);
  margin: 0 0 16px;
}

.final-cta__desc {
  font-size: 18px;
  margin: 0 0 32px;
}

/* Footer */
.site-footer {
  background: var(--duo-green);
  padding: 48px 0 32px;
  color: #fff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}

.site-footer__tagline {
  color: var(--footer-soft);
  font-size: 15px;
  margin: 0;
  max-width: 320px;
}

.site-footer__heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 0 0 16px;
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__links li {
  margin-bottom: 10px;
}

.site-footer__links a {
  color: var(--footer-soft);
  font-size: 15px;
  font-weight: 600;
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--footer-soft);
}

.site-footer__bottom a {
  color: var(--footer-soft);
}

.site-footer__bottom a:hover {
  color: #fff;
}

/* Illustration components */
.illustration-hub {
  position: relative;
  width: 340px;
  height: 340px;
}

.hub-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: var(--duo-green);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 0 var(--duo-green-shadow);
  z-index: 3;
}

.hub-center svg {
  width: 60px;
  height: 60px;
}

.orbit-node {
  position: absolute;
  width: 64px;
  height: 64px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 0 var(--border-strong);
}

.orbit-node--1 { top: 10%; left: 50%; transform: translateX(-50%); }
.orbit-node--2 { top: 30%; right: 5%; }
.orbit-node--3 { bottom: 30%; right: 5%; }
.orbit-node--4 { bottom: 10%; left: 50%; transform: translateX(-50%); }
.orbit-node--5 { bottom: 30%; left: 5%; }
.orbit-node--6 { top: 30%; left: 5%; }

.orbit-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -50%);
  border: 2px dashed var(--border);
  border-radius: 50%;
  z-index: 1;
}

.agent-visual {
  width: 100%;
  max-width: 400px;
}

.agent-panel {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 0 var(--border-strong);
}

.agent-panel__top {
  background: var(--navy);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-panel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--duo-green);
}

.agent-panel__dot--yellow { background: var(--warning); }
.agent-panel__dot--blue { background: var(--link-blue); }

.agent-panel__body {
  padding: 20px;
}

.agent-message {
  background: var(--wash-blue);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--ink);
}

.agent-message--user {
  background: var(--surface-alt);
  margin-left: 24px;
}

.agent-message--ai {
  border-left: 4px solid var(--duo-green);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.channel-box {
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  font-size: 22px;
}

.security-shield {
  width: 200px;
  height: 220px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 900px) {
  .hero__grid,
  .feature__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature__grid--reverse .feature__visual {
    order: 0;
  }

  .hero__content {
    max-width: 100%;
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__bullets {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero__illustration {
    min-height: 300px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 2px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav .btn {
    width: 100%;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
  }

  .stats-rail__inner {
    gap: 16px;
  }

  .stat-chip {
    font-size: 13px;
  }

  .card-stack {
    min-height: 280px;
  }

  .super-promo__stats {
    gap: 24px;
  }

  .btn--wide {
    min-width: 100%;
  }
}

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

  .btn,
  .integration-tile {
    transition: none;
  }
}
