:root {
  --purple: #8B5CF6;
  --pink: #EC4899;
  --text-primary: #1A1A2E;
  --text-secondary: #6B6B80;
  --bg: #FFFFFF;
  --surface: #F7F6FB;
  --border: #ECEAF4;
}

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

html, body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  height: 100%;
}

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

/* ---------- Hero (homepage) ---------- */

.hero-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

.hero-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 6vw;
}

.hero {
  width: 100%;
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-left {
  flex: 1 1 420px;
  max-width: 480px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.18);
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.hero-headline {
  font-size: 44px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.hero-headline .accent {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 420px;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.badge-row a {
  display: inline-block;
  transition: transform 0.15s ease;
}

.badge-row a:hover {
  transform: translateY(-2px);
}

/* ---------- Phone mockups ---------- */

.hero-right {
  flex: 1 1 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  position: relative;
}

.phone {
  position: relative;
  width: 220px;
  height: 452px;
  border-radius: 46px;
  background: #0c0c14;
  padding: 10px;
  box-shadow:
    0 30px 60px -15px rgba(20, 10, 50, 0.35),
    0 10px 25px -8px rgba(20, 10, 50, 0.25),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.06);
}

.phone--back {
  transform: rotate(-6deg) translateY(18px);
  opacity: 0.92;
}

.phone--front {
  transform: rotate(4deg);
  z-index: 2;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
}

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

.phone-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 24px;
  background: #0c0c14;
  border-radius: 16px;
  z-index: 5;
}

.phone-buttons::before,
.phone-buttons::after {
  content: "";
  position: absolute;
  background: #0c0c14;
  border-radius: 2px;
}

/* side buttons for realism */
.phone::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 120px;
  width: 3px;
  height: 50px;
  background: #181820;
  border-radius: 2px;
}

.phone::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 95px;
  width: 3px;
  height: 30px;
  background: #181820;
  border-radius: 2px;
}

/* ---------- Footer ---------- */

.hero-footer {
  width: 100%;
  padding: 20px 6vw 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}

.hero-footer a {
  font-size: 13.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.hero-footer a:hover {
  color: var(--purple);
}

.hero-footer .sep {
  color: var(--border);
}

/* ---------- Legal / Support pages ---------- */

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legal-page .brand-row {
  margin-bottom: 36px;
}

.legal-page h1 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 6px;
}

.legal-page .updated {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal-page p, .legal-page li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.legal-page ul {
  padding-left: 20px;
  margin-bottom: 8px;
}

.legal-page a.email-link {
  color: var(--purple);
  font-weight: 700;
}

.legal-page .back-link {
  display: inline-block;
  margin-top: 36px;
  font-size: 14px;
  font-weight: 700;
  color: var(--purple);
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .hero-page {
    height: auto;
    min-height: 100vh;
  }
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 36px;
  }
  .hero-left {
    max-width: 100%;
  }
  .brand-row, .badge-row {
    justify-content: center;
  }
  .hero-sub {
    max-width: 100%;
  }
  .hero-headline {
    font-size: 34px;
  }
  .hero-right {
    gap: 14px;
  }
  .phone {
    width: 170px;
    height: 350px;
    border-radius: 36px;
  }
  .phone-screen {
    border-radius: 28px;
  }
}

@media (max-width: 420px) {
  .phone {
    width: 140px;
    height: 288px;
  }
}
