/* ===== Reset & base ===== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

:root {
  --brand: #FFE135;
  --ink: #1A1A1A;
  --ink-2: #2a2a2a;
  --muted: #6b6b6b;
  --paper: #fbfaf4;
  --cream: #fff7d6;
  --teal: #0f7f84;
  --clay: #c76858;
  --radius: 999px;
  --pad-x: clamp(20px, 5vw, 56px);
  --max-w: 1200px;
  --serif: ui-serif, "New York", Georgia, serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  background-color: #1A1A1A;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  position: relative;
  /* iOS 26+ Safari samples body.background-color for the toolbar tint
     when no fixed/sticky element near the edges has a bg-color. JS keeps
     this in sync with whichever section is currently in view. */
  background-color: #C76858;
  transition: background-color 200ms ease-out;
}
/* iOS 26+ Safari samples the bg-color of fixed/sticky elements near
   the viewport edges to tint its top status bar and bottom URL bar.
   These zero-overlap bars (height = exactly the safe-area inset) sit
   purely inside the iOS chrome zone — invisible to the user but
   readable by WebKit's live color observer. JS updates their bg-color
   on scroll so the chrome tint follows the current section. */
.tint-bar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9999;
  pointer-events: none;
  transition: background-color 200ms ease-out;
}
.tint-bar--top {
  top: 0;
  height: env(safe-area-inset-top, 0px);
  background-color: #C76858;
}
.tint-bar--bottom {
  bottom: 0;
  height: env(safe-area-inset-bottom, 0px);
  background-color: #fafafa;
}

/* ===== Header ===== */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand span { font-size: 20px; }

.lang-switcher {
  display: inline-flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid rgba(26, 26, 26, 0.08);
}
.lang-switcher a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 120ms ease;
}
.lang-switcher a:hover { background: rgba(26, 26, 26, 0.06); }
.lang-switcher a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 132px var(--pad-x) 86px;
  background-image: url("/background/background-mobile.jpg");
  background-size: cover;
  background-position: center;
  isolation: isolate;
  overflow: hidden;
}
@media (min-width: 900px) {
  .hero { background-image: url("/background/background.jpg"); }
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  /* Bottom stop lands on the solid #1A1A1A of the first section below, so the
     hero image melts seamlessly into the dark section (no hard seam). */
  background:
    linear-gradient(
      to bottom,
      rgba(26,26,26,0.08) 0%,
      rgba(26,26,26,0.20) 38%,
      rgba(26,26,26,0.62) 82%,
      #1A1A1A 100%
    );
  z-index: -1;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 18px;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.hero p.lede {
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 650;
  margin: 0 0 18px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--brand);
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  border-radius: var(--radius);
  box-shadow:
    0 10px 30px rgba(255, 225, 53, 0.4),
    0 2px 0 rgba(26, 26, 26, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 225, 53, 0.5); }
.cta:active { transform: translateY(0); }
.cta[data-coming-soon] { cursor: not-allowed; opacity: 0.95; }
.cta[data-coming-soon]::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  margin-left: 4px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.35); }
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Sections ===== */
.section {
  padding: 104px var(--pad-x);
  /* Solid light band by default (--alt flips it dark). Explicit bg matters:
     the body bg-color is driven by JS for the iOS chrome tint, so a
     background-less section would let that color bleed through. */
  background: var(--paper);
  color: var(--ink);
}
.section > * {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}
.section h2 {
  font-size: clamp(34px, 4.8vw, 62px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0 0 18px;
  text-align: left;
}
.section .lede-secondary {
  text-align: left;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  margin: 0;
  max-width: 560px;
}

.feature--dark,
.social-proof {
  background: var(--ink);
  color: #fff;
}
.feature--dark .lede-secondary,
.social-proof .lede-secondary { color: rgba(255,255,255,0.68); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
}
.feature > * {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.feature--reverse {
  grid-template-columns: minmax(320px, 1.05fr) minmax(0, 0.95fr);
}
.feature--reverse .feature-copy { grid-column: 2; }
.feature--reverse .feature-visual { grid-column: 1; grid-row: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--brand);
}
.feature--light .eyebrow { background: var(--ink); color: #fff; }
.quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.quick-list span {
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
}
.feature--light .quick-list span {
  color: var(--ink-2);
  background: #fff;
  border-color: rgba(26,26,26,0.08);
}
.feature-visual {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  min-height: 430px;
  box-shadow: 0 26px 70px rgba(0,0,0,0.26);
}
.feature--light .feature-visual {
  box-shadow: 0 24px 60px rgba(26,26,26,0.14);
}
.feature-visual img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}
.float-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: grid;
  gap: 2px;
  min-width: min(310px, calc(100% - 36px));
  padding: 14px 15px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(26,26,26,0.08);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.float-card .tag {
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
}
.float-card strong {
  font-size: 19px;
}
.float-card span:last-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.social-proof {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(26,26,26,0.96), rgba(26,26,26,0.76)),
    url("/background/background2.jpg") center / cover;
}
.social-proof > * {
  max-width: var(--max-w);
  margin: 0 auto;
}
.social-copy {
  max-width: 760px;
  margin-bottom: 42px;
}
.bullets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.bullet {
  padding: 20px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.bullet h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--brand); }
.bullet p  { margin: 0; color: rgba(255,255,255,0.7); font-size: 15px; }

/* Final CTA block — solid light (paper) closing section + brand-yellow CTA */
.final {
  position: relative;
  padding: 120px var(--pad-x);
  text-align: center;
  color: var(--ink);
  background: var(--paper);
}
.final h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.final p {
  margin: 0 0 36px;
  font-size: 17px;
  color: var(--muted);
}
.final .cta {
  background: var(--brand);
  color: var(--ink);
  box-shadow: 0 12px 36px rgba(255, 225, 53, 0.45);
}
.final .cta:hover { box-shadow: 0 16px 42px rgba(255, 225, 53, 0.55); }
.final .cta[data-coming-soon]::after { background: var(--ink); }

/* Copyright pinned to the bottom of the closing section */
.final-copy {
  position: absolute;
  left: 0; right: 0;
  bottom: 20px;
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
  .cta[data-coming-soon]::after { animation: none; }
}

/* Inline links inside the bottom-of-page copyright row. Inherit the
   muted-white color so they blend in with the © text; brighten on hover. */
.final-copy a {
  color: inherit;
  text-decoration: none;
}
.final-copy a:hover {
  color: var(--ink);
}

/* Mobile (h5) final-copy: stack © on top, links row on second line.
   The dot between the two spans is drawn via ::after on .copy so the
   separator vanishes cleanly on mobile when we switch to column flow. */
.final-copy .copy::after {
  content: " · ";
  margin: 0 2px;
}

@media (max-width: 520px) {
  /* Push the CTA up so it doesn't crowd the two-line copyright + links
     row pinned to the bottom. The .final-copy itself sits a little
     closer to the edge to claim the extra room. */
  .final {
    padding-bottom: 180px;
  }
  .final-copy {
    bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    line-height: 1.8;
  }
  .final-copy .copy::after {
    content: none;
  }
}

@media (max-width: 820px) {
  .site-header {
    padding-top: 18px;
  }
  .brand span { font-size: 18px; }
  .lang-switcher a { padding: 6px 10px; }
  .hero {
    min-height: 88svh;
    padding-top: 118px;
  }
  .hero h1 {
    font-size: clamp(44px, 15vw, 68px);
    margin-bottom: 14px;
  }
  .hero p.lede {
    max-width: 340px;
  }
  .section {
    padding-top: 74px;
    padding-bottom: 74px;
  }
  .section h2 {
    font-size: clamp(32px, 10vw, 44px);
  }
  .feature,
  .feature--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature--reverse .feature-copy,
  .feature--reverse .feature-visual {
    grid-column: auto;
    grid-row: auto;
  }
  .feature-visual,
  .feature-visual img {
    min-height: 300px;
  }
  .float-card {
    left: 12px;
    bottom: 12px;
    min-width: calc(100% - 24px);
  }
  .social-proof {
    background:
      linear-gradient(180deg, rgba(26,26,26,0.94), rgba(26,26,26,0.82)),
      url("/background/background2-mobile.jpg") center / cover;
  }
}
