@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600&display=swap');

:root {
  --black: #000000;
  --coral: #E8685D;
  --white: #ffffff;
  --muted: #5a2e26;
  --frame-border: #2a2a2a;
  --footer-link: #3a3a3a;
  --divider: #111111;
}

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

html {
  background: #000000;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(to bottom, #1A0F0C 0%, #000000 100%);
  background-attachment: fixed;
  color: var(--white);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ─── Site Header ─── */

.site-header {
  padding: 36px 40px;
  display: flex;
  justify-content: center;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.logo-link:hover {
  opacity: 1;
}

.logo {
  height: 32px;
  width: auto;
}

/* ─── Hero ─── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding: 40px 40px 100px;
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 780px) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 60px 60px 120px;
    max-width: 860px;
  }
}

/* Phone device frame */
.phone-frame {
  flex-shrink: 0;
  width: 280px;
  height: calc(280px * (19.5 / 9));
  background: #080808;
  border-radius: 36px;
  border: 1.5px solid var(--frame-border);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 1px #000, 0 32px 80px rgba(0, 0, 0, 0.6);
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, #000000 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
  border-radius: 36px 36px 0 0;
}

.phone-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.phone-placeholder .placeholder-logo {
  height: 48px;
  width: auto;
  opacity: 0.25;
}

.phone-placeholder span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2a2a2a;
  font-weight: 400;
}

/* Hero text column */
.hero-text {
  max-width: 460px;
  width: 100%;
}

.hero-headline {
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}

@media (max-width: 779px) {
  .hero-headline {
    font-size: 52px;
  }
}

.hero-subhead {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 52px;
}

/* App Store badge */
.appstore-link {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.appstore-link:hover {
  opacity: 0.8;
}

.appstore-link--disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

.appstore-badge {
  display: block;
  height: 48px;
  width: auto;
}

/* Early access */
.early-access {
  margin-top: 56px;
}

.early-access-heading {
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.early-access-subhead {
  font-size: 14px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 28px;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 320px;
}

.waitlist-input {
  width: 100%;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.waitlist-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.waitlist-input:focus {
  border-color: rgba(255, 255, 255, 0.6);
}

.waitlist-error {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0;
}

.waitlist-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 11px 24px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.waitlist-button:hover:not(:disabled) {
  opacity: 0.75;
}

.waitlist-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.waitlist-success {
  font-size: 15px;
  font-weight: 300;
  color: var(--white);
  margin-top: 4px;
  line-height: 1.6;
}

/* ─── About block ─── */

.about {
  padding: 80px 40px;
  max-width: 640px;
  margin: 0 auto;
  border-top: 1px solid var(--divider);
}

.about p {
  font-size: 18px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.85;
}

.about p + p {
  margin-top: 28px;
}

/* ─── Footer ─── */

.site-footer {
  padding: 52px 40px;
  border-top: 1px solid var(--divider);
}

.footer-disclaimer {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  text-align: center;
  max-width: 480px;
  margin: 0 auto 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 24px;
}

.footer-links a {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ─── Legal pages ─── */

.legal-title {
  padding: 60px 40px 16px;
  max-width: 680px;
  margin: 0 auto;
}

.legal-title h1 {
  font-size: clamp(36px, 7vw, 60px);
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.legal-content {
  padding: 40px 40px 120px;
  max-width: 680px;
  margin: 0 auto;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

.legal-content p + p {
  margin-top: 20px;
}

.legal-meta {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 36px;
}

.legal-intro {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
  border-left: 2px solid #2a2a2a;
  padding-left: 20px;
  margin-bottom: 8px !important;
}

.legal-intro--attr {
  margin-bottom: 52px !important;
}

.legal-content h2 {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 52px;
  margin-bottom: 16px;
}

.legal-content h3 {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content a {
  color: var(--coral);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.legal-content a:hover {
  opacity: 0.75;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.legal-content li {
  margin-bottom: 8px;
}

/* ─── Responsive tweaks ─── */

@media (max-width: 480px) {
  .site-header {
    padding: 28px 24px;
  }

  .hero {
    padding: 32px 24px 80px;
    gap: 48px;
  }

  .phone-frame {
    width: 240px;
    height: calc(240px * (19.5 / 9));
  }

  .about,
  .disclaimer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .legal-title,
  .legal-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .site-footer {
    padding: 40px 24px;
  }
}
