@import "./tokens.css";

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-surface);
  color: var(--color-on-surface);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h3 {
  font-weight: 600;
  letter-spacing: -0.015em;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input {
  font: inherit;
}

.container {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.section {
  padding-block: clamp(88px, 11vw, 152px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  background: var(--color-primary);
  color: var(--color-on-primary);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 1px;
  background: currentColor;
  content: "";
}

.section-heading {
  max-width: 720px;
}

.section-heading h2 {
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.03;
}

.section-heading > p {
  max-width: 620px;
  margin-top: 24px;
  color: var(--color-on-surface-variant);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.btn::after {
  content: "→";
  transition: transform 220ms ease;
}

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

.btn:hover::after {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-button);
}

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

.btn-light {
  background: var(--color-on-primary);
  color: var(--color-primary);
}

.btn-light:hover {
  background: #ffffff;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.18);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 2px;
  border-bottom: 1px solid currentColor;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: gap 180ms ease, opacity 180ms ease;
}

.text-link:hover {
  gap: 12px;
  opacity: 0.78;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #bdcf8b;
  outline-offset: 4px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in srgb, var(--color-outline-variant) 75%, transparent);
  background: color-mix(in srgb, var(--color-surface-bright) 91%, transparent);
  backdrop-filter: blur(16px) saturate(120%);
}

.site-header .bar {
  display: flex;
  height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-on-surface);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-lockup {
  width: 132px;
  height: auto;
}

.site-header .brand-lockup {
  width: 148px;
}

.site-header .links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  color: var(--color-on-surface-variant);
  font-size: 14px;
  font-weight: 500;
}

.site-header .links a {
  text-decoration: none;
  transition: color 180ms ease;
}

.site-header .links a:hover {
  color: var(--color-primary);
}

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

.site-header .lang-switch {
  color: var(--color-on-surface-variant);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.site-header .actions .btn {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 13px;
  box-shadow: none;
}

/* Hero */

.hero {
  padding: 24px 0 0;
}

.hero-stage {
  position: relative;
  min-height: clamp(650px, 72vw, 790px);
  overflow: hidden;
  border-radius: clamp(24px, 4vw, 48px);
  background: var(--color-surface-deep);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  animation: hero-image-in 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(8 20 12 / 0.87) 0%, rgb(8 20 12 / 0.68) 42%, rgb(8 20 12 / 0.06) 77%),
    linear-gradient(0deg, rgb(8 20 12 / 0.38), transparent 42%);
}

.hero-content {
  display: flex;
  min-height: inherit;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 8vw, 96px);
  color: var(--color-on-primary);
}

.hero-copy {
  max-width: 660px;
  animation: hero-copy-in 800ms 100ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero .eyebrow {
  color: #d8e9c8;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(52px, 7.1vw, 86px);
  line-height: 0.98;
}

.hero .sub {
  max-width: 590px;
  margin-top: 28px;
  color: rgb(255 253 245 / 0.86);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
}

.hero .cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
}

.hero .text-link {
  color: var(--color-on-primary);
}

.hero-proof {
  display: grid;
  max-width: 690px;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 0.24);
  animation: hero-copy-in 800ms 260ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-proof li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgb(255 253 245 / 0.88);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.45;
}

.hero-proof li::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 6px;
  border-radius: 50%;
  background: #b8d39d;
  box-shadow: 0 0 0 4px rgb(184 211 157 / 0.15);
  content: "";
}

.hero-note {
  position: absolute;
  right: clamp(24px, 4vw, 48px);
  bottom: clamp(24px, 4vw, 42px);
  max-width: 210px;
  color: rgb(255 253 245 / 0.72);
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

/* Emotional story */

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.7fr);
  gap: clamp(56px, 9vw, 120px);
  align-items: start;
}

.story .section-heading h2 {
  max-width: 760px;
}

.story-side {
  padding-top: 48px;
}

.story-side .when {
  display: block;
  margin-bottom: 16px;
  color: var(--color-earth);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-side .scene {
  color: var(--color-on-surface-variant);
  font-size: 17px;
  line-height: 1.75;
}

.story-outcome {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--color-outline-variant);
}

.story-outcome strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.story-outcome p {
  margin-top: 14px;
  color: var(--color-on-surface-variant);
  font-size: 14px;
}

/* Product / setup */

.product {
  background: var(--color-surface-bright);
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.76fr);
  gap: clamp(56px, 8vw, 104px);
  align-items: center;
}

.product-media {
  position: relative;
}

.product-media > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 52px 52px 18px 52px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.product-badge {
  position: absolute;
  right: -24px;
  bottom: 38px;
  max-width: 220px;
  padding: 18px 20px;
  border: 1px solid rgb(255 255 255 / 0.55);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--color-surface-bright) 90%, transparent);
  box-shadow: 0 14px 40px rgb(31 48 33 / 0.16);
  color: var(--color-on-surface);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  backdrop-filter: blur(14px);
}

.product-content .section-heading h2 {
  font-size: clamp(38px, 4.7vw, 60px);
}

.steps {
  margin-top: 48px;
  counter-reset: setup;
}

.steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--color-outline-variant);
  counter-increment: setup;
}

.steps li::before {
  color: var(--color-primary);
  content: "0" counter(setup);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.steps h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.steps p {
  color: var(--color-on-surface-variant);
  font-size: 14px;
  line-height: 1.65;
}

/* Mei */

.advisor {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-deep);
  color: var(--color-on-deep);
}

.advisor::before {
  position: absolute;
  top: -220px;
  right: -160px;
  width: 520px;
  height: 520px;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgb(255 255 255 / 0.025), 0 0 0 140px rgb(255 255 255 / 0.018);
  content: "";
}

.advisor-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.12fr);
  gap: clamp(56px, 9vw, 112px);
  align-items: center;
}

.advisor .eyebrow {
  color: #aeca9f;
}

.advisor .section-heading h2 {
  font-size: clamp(40px, 5.3vw, 66px);
}

.advisor .section-heading > p {
  color: var(--color-on-deep-muted);
}

.mei-principle {
  margin-top: 38px;
  padding-left: 22px;
  border-left: 2px solid #91b58c;
  color: var(--color-on-deep-muted);
  font-size: 15px;
  line-height: 1.7;
}

.mei-principle strong {
  color: var(--color-on-deep);
}

.advisor-demo {
  position: relative;
  min-height: 520px;
}

.app-window {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 610px);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 30px;
  background: #f7f7ef;
  box-shadow: 0 30px 90px rgb(0 0 0 / 0.3);
}

.app-window-bar {
  display: flex;
  height: 52px;
  align-items: center;
  gap: 8px;
  padding-inline: 20px;
  border-bottom: 1px solid #dbe0d4;
}

.app-window-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a9b3a6;
}

.app-window > img {
  width: 100%;
  min-height: 280px;
  object-fit: cover;
}

.mei-message {
  position: absolute;
  right: clamp(12px, 2vw, 36px);
  bottom: 0;
  width: min(88%, 430px);
  padding: 22px 24px;
  border: 1px solid rgb(255 255 255 / 0.58);
  border-radius: 22px 22px 6px 22px;
  background: color-mix(in srgb, var(--color-surface-bright) 94%, transparent);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.25);
  color: var(--color-on-surface);
  backdrop-filter: blur(14px);
}

.mei-message-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mei-message p:last-child {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.35;
}

/* Promise */

.promise-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.44fr);
  gap: 56px;
  align-items: end;
}

.promise-header > p {
  padding-bottom: 8px;
  color: var(--color-on-surface-variant);
  font-size: 17px;
  line-height: 1.75;
}

.promise-list {
  margin-top: clamp(56px, 8vw, 92px);
  border-top: 1px solid var(--color-outline);
}

.promise-item {
  display: grid;
  grid-template-columns: 80px minmax(220px, 0.75fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: baseline;
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--color-outline-variant);
}

.promise-number {
  color: var(--color-primary);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.promise-item h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.15;
}

.promise-item p {
  color: var(--color-on-surface-variant);
  font-size: 15px;
  line-height: 1.75;
}

.founder-note {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  max-width: 850px;
  margin: 72px 0 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--color-outline-variant);
}

.founder-note .label {
  color: var(--color-earth);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.founder-note p {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.5;
}

/* Early access */

.early-access {
  padding-top: 0;
  background: var(--color-surface);
}

.early-access .panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
  gap: clamp(42px, 8vw, 100px);
  align-items: end;
  padding: clamp(44px, 7vw, 88px);
  border-radius: clamp(28px, 4vw, 48px);
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-soft);
}

.early-access .eyebrow {
  color: #c7dcba;
}

.early-access h2 {
  font-size: clamp(42px, 5.5vw, 70px);
  line-height: 1;
}

.early-access .lead {
  max-width: 540px;
  margin-top: 22px;
  color: rgb(255 253 245 / 0.78);
  font-size: 17px;
  line-height: 1.7;
}

.signup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.signup-form input {
  min-width: 0;
  height: 54px;
  padding: 0 20px;
  border: 1px solid rgb(255 255 255 / 0.34);
  border-radius: var(--radius-full);
  background: rgb(255 255 255 / 0.1);
  color: var(--color-on-primary);
}

.signup-form input::placeholder {
  color: rgb(255 255 255 / 0.62);
}

.signup-form .btn {
  min-height: 54px;
}

.form-message {
  min-height: 22px;
  margin-top: 12px;
  color: var(--color-on-primary);
  font-size: 13px;
}

.privacy {
  color: rgb(255 253 245 / 0.58);
  font-size: 12px;
}

/* Sticky CTA */

.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  padding: 10px 20px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-outline-variant);
  background: color-mix(in srgb, var(--color-surface-bright) 94%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  backdrop-filter: blur(14px);
  transition: transform 220ms ease, opacity 220ms ease;
}

.sticky-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sticky-cta .btn {
  width: 100%;
}

/* Footer */

.site-footer {
  padding: 52px 0 34px;
  background: var(--color-surface);
}

.site-footer .row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--color-outline-variant);
}

.brand-block p {
  max-width: 340px;
  margin-top: 12px;
  color: var(--color-on-surface-variant);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--color-on-surface-variant);
  font-size: 13px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
}

.rights,
.icp-link {
  color: var(--color-on-surface-variant);
  font-size: 12px;
}

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

.icp-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.icp-link:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-image-in {
  from {
    opacity: 0.72;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1.015);
  }
}

@media (max-width: 900px) {
  .site-header .links {
    display: none;
  }

  .hero-stage {
    min-height: 720px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgb(8 20 12 / 0.86), rgb(8 20 12 / 0.44)),
      linear-gradient(0deg, rgb(8 20 12 / 0.54), transparent 52%);
  }

  .story-grid,
  .product-grid,
  .advisor-grid,
  .promise-header,
  .early-access .panel {
    grid-template-columns: 1fr;
  }

  .story-side {
    max-width: 620px;
    padding-top: 0;
  }

  .product-grid {
    gap: 64px;
  }

  .product-media {
    width: min(90%, 660px);
  }

  .advisor-grid {
    gap: 68px;
  }

  .advisor-demo {
    min-height: 480px;
  }

  .promise-header > p {
    max-width: 640px;
  }

  .promise-item {
    grid-template-columns: 52px minmax(200px, 0.72fr) minmax(250px, 1fr);
  }

  .early-access .panel {
    align-items: start;
  }
}

@media (max-width: 680px) {
  .container {
    padding-inline: 16px;
  }

  .site-header .bar {
    height: 72px;
  }

  .site-header .brand-lockup {
    width: 128px;
  }

  .site-header .actions {
    gap: 11px;
  }

  .site-header .actions .btn {
    min-height: 38px;
    padding-inline: 14px;
  }

  .site-header .actions .btn::after {
    display: none;
  }

  .hero {
    padding-top: 10px;
  }

  .hero-stage {
    min-height: 700px;
    border-radius: 24px;
  }

  .hero-image {
    object-position: 68% center;
  }

  .hero-content {
    justify-content: flex-end;
    padding: 40px 24px 60px;
  }

  .hero h1 {
    font-size: clamp(44px, 13.2vw, 61px);
  }

  .hero .sub {
    font-size: 16px;
  }

  .hero .cta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 34px;
  }

  .hero-note {
    display: none;
  }

  .section-heading h2,
  .product-content .section-heading h2,
  .advisor .section-heading h2 {
    font-size: clamp(36px, 10.4vw, 48px);
  }

  .product-media {
    width: 100%;
  }

  .product-media > img {
    border-radius: 30px 30px 12px 30px;
  }

  .product-badge {
    right: 12px;
    bottom: 16px;
    max-width: 190px;
  }

  .advisor-demo {
    min-height: 380px;
  }

  .app-window-bar {
    height: 40px;
  }

  .app-window > img {
    min-height: 220px;
  }

  .mei-message {
    width: 94%;
    padding: 18px;
  }

  .promise-item {
    grid-template-columns: 42px 1fr;
    gap: 16px;
  }

  .promise-item p {
    grid-column: 2;
  }

  .founder-note {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 56px;
  }

  .early-access .panel {
    padding: 42px 22px;
    border-radius: 28px;
  }

  .early-access h2 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .signup-form {
    grid-template-columns: 1fr;
  }

  .site-footer .row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .site-header .actions .btn {
    display: none;
  }

  .hero h1 {
    font-size: clamp(42px, 12.2vw, 50px);
  }
}

@media (min-width: 861px) {
  .sticky-cta {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
