:root {
  /* Copied from Hairqoo design tokens (Flutter source). */
  --bg: #13131a;
  --surface: #1b1b22;
  --surface-soft: #1f1f26;
  --surface-high: #2a2931;
  --surface-highest: #34343c;
  --text: #e4e1ec;
  --muted: #c9c4d8;
  --line: #484555;
  --outline: #928ea1;
  --accent: #c9bfff;
  --accent-dark: #917eff;
  --secondary: #ffb2b8;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.22), 0 2px 12px rgba(123, 97, 255, 0.08);
  --space-xs: 4px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 28px;
  --space-xl: 36px;
  --space-xxl: 56px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 85% -20%, #7b61ff1e, transparent), var(--bg);
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-soft {
  background: color-mix(in srgb, var(--surface-soft) 86%, transparent);
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.12;
  margin-top: 0;
  letter-spacing: -0.015em;
}

h2,
h3 {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.7rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 1.6rem;
}

h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(19, 19, 26, 0.66);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 999px;
  padding: 0.2rem;
  background: rgba(31, 31, 38, 0.55);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  min-width: 40px;
  min-height: 30px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.is-active {
  background: rgba(201, 191, 255, 0.22);
  color: var(--text);
}

.nav-list,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.4rem;
}

.nav-list a,
.footer-links a {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--muted);
  transition: color 180ms ease;
}

.nav-list a:hover,
.footer-links a:hover {
  color: var(--text);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11, 11, 18, 0.82), rgba(19, 19, 26, 0.48));
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(38vw, 430px);
  background: url("./home_hero.png") center center / auto 108% no-repeat;
  opacity: 0.7;
  filter: saturate(0.92) contrast(1.02);
  mask-image: linear-gradient(to left, #000 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, #000 75%, transparent 100%);
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  background: #2a2931;
  color: var(--accent);
  border: 1px solid var(--line);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.lead {
  color: var(--muted);
  max-width: 58ch;
  font-size: 1.05rem;
  line-height: 1.65;
}

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

.proof-strip {
  border-top: 1px solid color-mix(in srgb, var(--line) 58%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 58%, transparent);
  background: rgba(22, 22, 30, 0.66);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1rem 0;
}

.proof-item {
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  background: rgba(37, 37, 48, 0.45);
  border-radius: 999px;
  padding: 0.58rem 0.9rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ddd8ef;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  min-height: 48px;
  padding: 0.72rem 1.25rem;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

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

.btn-primary {
  background: linear-gradient(160deg, var(--accent), var(--accent-dark));
  color: #1a0063;
  box-shadow: 0 8px 20px rgba(123, 97, 255, 0.35);
}

.btn-ghost {
  background: rgba(31, 31, 38, 0.65);
  border-color: color-mix(in srgb, var(--line) 72%, transparent);
  color: var(--text);
}

.hero-mockup {
  background: linear-gradient(180deg, rgba(27, 27, 34, 0.75), rgba(31, 31, 38, 0.82));
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.app-window {
  background: rgba(27, 27, 34, 0.68);
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
}

.app-topbar {
  display: flex;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 62%, transparent);
}

.app-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-highest);
}

.app-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  padding: 0.9rem;
}

.app-card {
  border: 1px solid color-mix(in srgb, var(--line) 58%, transparent);
  border-radius: 14px;
  padding: 0.85rem;
  background: rgba(52, 52, 60, 0.34);
}

.app-card h2 {
  margin-bottom: 0.45rem;
  font-size: 1.02rem;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.app-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.app-images {
  grid-column: 1 / -1;
}

.image-pills {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.image-pills span {
  font-size: 0.78rem;
  background: var(--surface-highest);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: rgba(27, 27, 34, 0.54);
  border: 1px solid color-mix(in srgb, var(--line) 52%, transparent);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  backdrop-filter: blur(4px);
}

.card h3,
.feature,
.step h3,
.trust-list p,
.signup-form label {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: -0.01em;
}

.card p,
.step p {
  line-height: 1.6;
}

.feature {
  background: rgba(27, 27, 34, 0.5);
  border: 1px solid color-mix(in srgb, var(--line) 52%, transparent);
  border-radius: 14px;
  padding: 1rem;
  font-weight: 600;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step {
  border: 1px solid color-mix(in srgb, var(--line) 52%, transparent);
  border-radius: var(--radius-md);
  background: rgba(27, 27, 34, 0.62);
  padding: 1.2rem;
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--surface-highest);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.section-intro {
  color: var(--muted);
  margin-bottom: 1rem;
}

.card-plan {
  font-weight: 500;
}

.story {
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(27, 27, 34, 0.72), rgba(31, 31, 38, 0.74));
  padding: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(5px);
}

.story p {
  font-size: 1.1rem;
  font-weight: 500;
}

.trust-list {
  display: grid;
  gap: 0.8rem;
}

.trust-list p {
  background: rgba(27, 27, 34, 0.52);
  border: 1px solid color-mix(in srgb, var(--line) 52%, transparent);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-weight: 500;
}

.cta-section {
  background: linear-gradient(180deg, rgba(27, 27, 34, 0.74), rgba(19, 19, 26, 0.8));
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 1.3rem;
  align-items: start;
}

.signup-form {
  background: rgba(27, 27, 34, 0.76);
  border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  display: grid;
  gap: 0.65rem;
  backdrop-filter: blur(6px);
}

.signup-form label {
  font-size: 0.9rem;
  font-weight: 600;
}

.signup-form input,
.signup-form select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.72rem;
  font: inherit;
  background: var(--surface-high);
  color: var(--text);
}

.signup-form input:focus,
.signup-form select:focus {
  outline: none;
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(145, 126, 255, 0.25);
}

.form-message {
  min-height: 1.2rem;
  color: #3d8152;
  font-weight: 500;
  margin-top: 0.3rem;
}

.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  padding: 2.2rem 0;
  background: rgba(19, 19, 26, 0.45);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.footer-grid p {
  color: var(--muted);
  margin-top: 0.4rem;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .cta-grid,
  .steps,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.4rem;
    min-height: 68vh;
  }

  .hero::before {
    background: linear-gradient(to bottom, rgba(11, 11, 18, 0.78), rgba(19, 19, 26, 0.5));
  }

  .hero::after {
    width: min(44vw, 340px);
    background: url("./home_hero.png") center center / auto 105% no-repeat;
    opacity: 0.56;
  }

  .footer-grid {
    flex-direction: column;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(1120px, calc(100% - 1.4rem));
  }

  .section {
    padding: 3.9rem 0;
  }

  .nav-list {
    display: none;
  }

  .lang-switch {
    margin-left: auto;
  }

  .grid.four {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .hero::before {
    background: linear-gradient(to bottom, rgba(11, 11, 18, 0.82), rgba(19, 19, 26, 0.58));
  }

  .hero::after {
    display: none;
  }
}
