@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700;9..144,800&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --bg: #f4efe6;
  --bg-strong: #ebe5d8;
  --surface: rgba(255, 251, 244, 0.74);
  --surface-strong: rgba(255, 251, 244, 0.94);
  --line: rgba(77, 92, 116, 0.18);
  --line-strong: rgba(77, 92, 116, 0.28);
  --text: #201d17;
  --text-soft: #69655d;
  --accent: #5e7fab;
  --accent-strong: #466487;
  --accent-warm: #b7794f;
  --shadow-soft: 0 28px 70px rgba(74, 67, 54, 0.09);
  --shadow-strong: 0 34px 110px rgba(55, 47, 36, 0.15);
  --content-width: 1180px;
  --radius-xl: 2rem;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --phone-shell-top: #fbfcfe;
  --phone-shell-mid: #d4d8df;
  --phone-shell-bottom: #9ba3af;
  --phone-button: rgba(149, 157, 168, 0.9);
  --phone-screen-rim: rgba(16, 21, 28, 0.88);
  --phone-screen-glare: rgba(255, 255, 255, 0.2);
  --phone-island: #0d1014;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #191c20;
  --bg-strong: #21262c;
  --surface: rgba(34, 40, 47, 0.8);
  --surface-strong: rgba(36, 43, 50, 0.96);
  --line: rgba(129, 153, 186, 0.16);
  --line-strong: rgba(129, 153, 186, 0.28);
  --text: #f2eee7;
  --text-soft: #b5b1aa;
  --accent: #91b0e1;
  --accent-strong: #b4caf0;
  --accent-warm: #f0a76d;
  --shadow-soft: 0 28px 80px rgba(0, 0, 0, 0.34);
  --shadow-strong: 0 38px 130px rgba(0, 0, 0, 0.46);
  --phone-shell-top: #5a6270;
  --phone-shell-mid: #2b323b;
  --phone-shell-bottom: #0f141a;
  --phone-button: rgba(98, 109, 123, 0.92);
  --phone-screen-rim: rgba(4, 7, 10, 0.94);
  --phone-screen-glare: rgba(255, 255, 255, 0.08);
  --phone-island: #040608;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(94, 127, 171, 0.2), transparent 32rem),
    radial-gradient(circle at 90% 12%, rgba(183, 121, 79, 0.14), transparent 20rem),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg), black 2%) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}

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

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

.site-shell {
  width: min(calc(100% - 1.6rem), var(--content-width));
  margin: 0 auto;
  padding-bottom: 2rem;
  overflow-x: clip;
}

.topbar,
.hero,
.hero-metrics,
.story,
.cta,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 1.8rem;
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong), transparent 8%);
  box-shadow: var(--shadow-soft);
}

.theme-switch__button {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.theme-switch__button[aria-pressed="true"] {
  color: var(--text);
  background: var(--bg-strong);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
  padding: 0.8rem 0 3rem;
}

.hero__copy {
  min-width: 0;
  max-width: 35rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.story h2,
.cta h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.93;
}

.hero h1 {
  font-size: clamp(3.5rem, 8vw, 6.8rem);
  max-width: 9ch;
}

.hero__lede,
.hero__support,
.story p,
.metric-card__value,
.cta p,
.footer p {
  color: var(--text-soft);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.hero__lede,
.hero__support {
  font-size: 1.04rem;
  max-width: 33rem;
}

.hero__lede {
  margin: 1.5rem 0 0;
}

.hero__support {
  margin: 1rem 0 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-weight: 800;
  letter-spacing: -0.02em;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.theme-switch__button:hover,
.theme-switch__button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button--primary {
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 160%);
  box-shadow: 0 16px 34px rgba(94, 127, 171, 0.26);
}

.button--secondary,
.button--ghost {
  background: color-mix(in srgb, var(--surface-strong), transparent 10%);
  box-shadow: var(--shadow-soft);
}

.button--disabled {
  cursor: default;
  opacity: 0.82;
  user-select: none;
}

.button--disabled:hover,
.button--disabled:focus-visible {
  transform: none;
}

.hero__visual {
  position: relative;
  min-height: clamp(32rem, 58vw, 48rem);
}

.phone {
  position: relative;
  margin: 0;
  width: min(100%, 22rem);
  filter: drop-shadow(0 34px 82px rgba(11, 15, 21, 0.24));
}

.device-mockup {
  display: block;
  width: 100%;
  pointer-events: none;
}

.device-shot {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background: transparent;
}

.device-shot img {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.phone--hero-main {
  position: absolute;
  left: 3%;
  bottom: 0;
  z-index: 2;
}

.phone--hero-side {
  position: absolute;
  right: 7%;
  top: 2%;
  width: min(100%, 17.5rem);
  transform: rotate(6deg);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 4.5rem;
}

.metric-card,
.story__copy,
.cta {
  min-width: 0;
  background: color-mix(in srgb, var(--surface), transparent 6%);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.metric-card {
  min-height: 11rem;
  padding: 1.35rem 1.45rem;
  border-radius: var(--radius-lg);
}

.metric-card__label {
  margin: 0 0 0.7rem;
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-card__value {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.1;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1.8rem, 4vw, 4.5rem);
  padding: 0 0 5rem;
}

.story--reverse {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
}

.story--wide {
  grid-template-columns: 1fr;
  gap: 1.8rem;
}

.story__copy {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-xl);
}

.story__copy--wide {
  max-width: 56rem;
}

.story h2 {
  font-size: clamp(2.2rem, 4.3vw, 4rem);
  max-width: 12ch;
}

.story p {
  margin: 1.1rem 0 0;
  max-width: 34rem;
}

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

.story__visual--pair {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

.story__visual--spread {
  justify-content: space-between;
}

.phone--panel {
  width: min(100%, 23rem);
}

.phone--offset {
  transform: translateY(2rem);
}

.phone--tall {
  width: min(100%, 24rem);
}

[data-parallax-speed] {
  transform: translate3d(0, var(--parallax-shift, 0px), 0);
  transition: transform 220ms linear;
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    --reveal-x: 0px;
    --reveal-y: 3.2rem;
    --reveal-scale: 0.985;
    --reveal-delay: 0ms;
    opacity: 0;
    translate: var(--reveal-x) var(--reveal-y);
    scale: var(--reveal-scale);
    filter: saturate(0.84);
    transition:
      opacity 680ms cubic-bezier(0.22, 1, 0.36, 1),
      translate 980ms cubic-bezier(0.16, 1, 0.3, 1),
      scale 980ms cubic-bezier(0.16, 1, 0.3, 1),
      filter 680ms ease;
    transition-delay: var(--reveal-delay);
  }

  [data-reveal="left"] {
    --reveal-x: -3rem;
    --reveal-y: 1.4rem;
  }

  [data-reveal="right"] {
    --reveal-x: 3rem;
    --reveal-y: 1.4rem;
  }

  [data-reveal].is-visible {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    filter: none;
  }

  [data-parallax-speed] {
    transform: none;
    transition: none;
  }
}

.cta {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: calc(var(--radius-xl) + 0.2rem);
  margin-bottom: 2.6rem;
}

.cta h2 {
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  max-width: 11ch;
}

.cta p {
  margin: 1.1rem auto 0;
  max-width: 40rem;
}

.cta .button {
  margin-top: 1.8rem;
}

.cta__contact {
  margin: 1rem 0 0;
  color: var(--text-soft);
}

.cta__contact a,
.footer a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .story,
  .story--reverse {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    max-width: none;
  }

  .hero__visual {
    min-height: 40rem;
    overflow: clip;
  }

  .phone--hero-side {
    right: 6%;
    transform: rotate(5deg);
  }

  .story h2,
  .story p {
    max-width: none;
  }

  .story__visual--spread {
    justify-content: center;
  }
}

@media (min-width: 981px) and (max-width: 1100px) {
  .phone--hero-side {
    right: 10%;
    transform: rotate(5deg);
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(calc(100% - 1rem), var(--content-width));
  }

  .topbar,
  .topbar__actions,
  .hero__actions,
  .footer {
    flex-wrap: wrap;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: auto;
  }

  .hero__visual {
    min-height: 34rem;
    overflow: clip;
  }

  .phone--hero-main {
    left: 0;
    width: min(56vw, 18rem);
  }

  .phone--hero-side {
    right: 8%;
    width: min(46vw, 15rem);
    transform: rotate(4deg);
  }
}

@media (max-width: 560px) {
  .topbar {
    padding-bottom: 1.2rem;
    align-items: stretch;
  }

  .topbar__actions {
    display: grid;
    width: 100%;
    justify-content: stretch;
  }

  .theme-switch {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: 0.3rem;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 10.6vw, 2.95rem);
    max-width: 7.2ch;
    line-height: 0.98;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  .button,
  .button--secondary,
  .button--ghost {
    width: 100%;
  }

  .hero__visual {
    min-height: 29rem;
    overflow: clip;
  }

  .phone {
    border-radius: 1.8rem;
  }

  .phone img {
    border-radius: 1.35rem;
  }

  .phone::before {
    height: 1.2rem;
  }

  .phone--hero-main {
    left: 4%;
    width: min(54vw, 15.5rem);
  }

  .phone--hero-side {
    right: 11%;
    top: 6%;
    width: min(40vw, 12rem);
    transform: rotate(4deg);
  }

  .phone--offset {
    transform: none;
  }

  .story,
  .hero-metrics {
    padding-bottom: 3.4rem;
  }

  .footer {
    display: grid;
    gap: 0.45rem;
  }
}
