:root {
  color-scheme: dark;
  --background: #000000;
  --surface: #08080a;
  --surface-soft: #17171c;
  --graphite: #29292f;
  --text: #f5f5fa;
  --muted: #c7c7d1;
  --subtle: #80808f;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #6030a0;
  --accent-strong: #7b45c4;
  --silver: #b3bdcc;
  --confirmed: #94b39e;
  --requested: #b89f6b;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 74% 16%, rgba(96, 48, 160, 0.32), transparent 31rem),
    radial-gradient(circle at 24% 84%, rgba(255, 255, 255, 0.06), transparent 24rem),
    var(--background);
  color: var(--text);
  letter-spacing: 0;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: clamp(172px, 16vw, 236px);
  height: auto;
  display: block;
}

.language-switcher {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 999px;
}

.language-button {
  appearance: none;
  border: 0;
  min-width: 44px;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 700 12px/1 var(--font, inherit);
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.language-button:hover {
  color: var(--text);
}

.language-button.is-active {
  background: var(--accent);
  color: var(--text);
}

.language-button:focus-visible,
.primary-button:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 0.72fr);
  align-items: center;
  min-height: calc(100svh - 96px);
  padding: 42px 0 84px;
  gap: 72px;
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 10% auto auto -4%;
  width: min(58vw, 680px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(179, 189, 204, 0.62), transparent);
}

.hero-copy {
  max-width: 740px;
}

.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;
}

.app-icon {
  display: block;
  width: 76px;
  height: 76px;
  margin-bottom: 28px;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(96, 48, 160, 0.38);
}

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

.hero-lede {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.18;
  font-weight: 520;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 42px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--text), var(--silver));
  color: #08080a;
  font-size: 16px;
  font-weight: 780;
  box-shadow: 0 16px 38px rgba(255, 255, 255, 0.14);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.primary-button:hover {
  background: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 20px 46px rgba(255, 255, 255, 0.19);
}

.availability {
  color: var(--subtle);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-visual {
  position: relative;
  min-height: 610px;
  overflow: visible;
  isolation: isolate;
}

.phone-frame {
  position: absolute;
  width: 292px;
  aspect-ratio: 1206 / 2622;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 46px;
  background: #000;
  box-shadow: 0 34px 92px rgba(0, 0, 0, 0.64);
  transition:
    opacity 620ms ease,
    filter 620ms ease,
    transform 720ms cubic-bezier(0.18, 0.86, 0.2, 1);
  user-select: none;
  touch-action: pan-y;
  will-change: transform, opacity;
  cursor: pointer;
}

.phone-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, 0.025),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.phone-frame[data-phone-position="main"]:active {
  cursor: grabbing;
}

.phone-frame:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 8px;
}

.phone-hotspot {
  position: absolute;
  z-index: 5;
  border-radius: 999px;
}

.coffee-hotspot {
  left: 8%;
  top: 88.7%;
  width: 43%;
  height: 6.2%;
}

.investors-hotspot {
  left: 53.5%;
  top: 88.7%;
  width: 37.5%;
  height: 6.2%;
}

.phone-frame:not([data-phone-position="main"]) .phone-hotspot {
  display: none;
}

.phone-frame[data-phone-position="main"] {
  left: 50%;
  top: 50%;
  opacity: 1;
  filter: brightness(1);
  transform: translate(-35%, -50%) rotate(2deg) scale(1);
  z-index: 3;
}

.phone-frame[data-phone-position="secondary"] {
  left: 50%;
  top: 50%;
  opacity: 0.78;
  filter: brightness(0.86);
  transform: translate(-96%, -43%) rotate(-7deg) scale(0.77);
  z-index: 2;
}

.phone-frame[data-phone-position="tertiary"] {
  left: 50%;
  top: 50%;
  opacity: 0.64;
  filter: brightness(0.74);
  transform: translate(2%, -57%) rotate(8deg) scale(0.71);
  z-index: 1;
}

.beta-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 44px;
  padding: 88px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.beta-section h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  font-weight: 760;
}

.beta-section p {
  align-self: end;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.42;
}

.features {
  padding: 42px 0 82px;
}

.feature-row {
  display: grid;
  grid-template-columns: 80px minmax(190px, 0.55fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 32px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.feature-index {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.feature-row h3 {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
  font-weight: 730;
}

.feature-row p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 112px;
  color: var(--subtle);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

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

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

@media (max-width: 860px) {
  .site-shell {
    width: min(100% - 28px, 680px);
  }

  .site-header {
    min-height: 82px;
  }

  .brand img {
    width: 166px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 34px 0 60px;
    gap: 42px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .phone-frame {
    width: 250px;
  }

  .phone-frame[data-phone-position="main"] {
    left: 50%;
    top: 50%;
    transform: translate(-38%, -50%) rotate(1deg) scale(1);
  }

  .phone-frame[data-phone-position="secondary"] {
    left: 50%;
    top: 50%;
    transform: translate(-94%, -42%) rotate(-6deg) scale(0.74);
  }

  .phone-frame[data-phone-position="tertiary"] {
    left: 50%;
    top: 50%;
    transform: translate(0%, -57%) rotate(7deg) scale(0.68);
  }

  .beta-section,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .beta-section {
    gap: 28px;
    padding: 64px 0;
  }

  .feature-row {
    gap: 12px;
    padding: 30px 0;
  }
}

@media (max-width: 540px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    justify-content: center;
    padding: 18px 0 10px;
  }

  .hero-lede {
    margin-top: 0;
  }

  .primary-button {
    width: 100%;
    padding: 0 18px;
    text-align: center;
  }

  .hero-visual {
    min-height: 520px;
  }

  .phone-frame[data-phone-position="secondary"] {
    display: none;
  }

  .phone-frame[data-phone-position="tertiary"] {
    display: none;
  }

  .site-footer {
    justify-content: center;
    padding: 28px 0;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .phone-frame {
    transition: none;
  }
}
