:root {
  --bg: #0b0b0b;
  --bg-soft: #111110;
  --text: #f5f3ee;
  --muted: #b4b0a8;
  --faint: #737067;
  --border: rgba(255, 255, 255, 0.13);
  --green: #19d846;
  --green-soft: #55d85f;
  --lime: #8bd820;
  --gold: #f4a90d;
  --orange: #ff7a14;
  --radius: 28px;
  --radius-sm: 16px;
  --space: clamp(1rem, 2vw, 1.5rem);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 35% 38%, rgba(89, 150, 70, 0.17), transparent 26rem),
    radial-gradient(circle at 78% 72%, rgba(78, 183, 75, 0.095), transparent 17rem),
    linear-gradient(135deg, #11110f 0%, var(--bg) 43%, #080808 100%);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.45;
}

body.legal-page {
  background:
    radial-gradient(circle at 50% -16%, rgba(89, 150, 70, 0.075), transparent 24rem),
    linear-gradient(135deg, #10100f 0%, var(--bg) 50%, #080808 100%);
}

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

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

.home {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100vh - 76px);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(300px, 1fr);
  align-items: center;
  width: min(100%, 1130px);
  margin: auto;
  gap: clamp(1.5rem, 4vw, 3.8rem);
}

.phone-wrap {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: min(100%, 292px);
  aspect-ratio: 603 / 1304;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 46px;
  background: linear-gradient(145deg, #2d2d2c, #050505 48%, #171716);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.58),
    0 0 70px rgba(79, 195, 83, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 50%;
  width: 90px;
  height: 24px;
  border-radius: 999px;
  background: #050505;
  transform: translateX(-50%);
}

.phone img {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  object-fit: cover;
}

.hero-copy {
  max-width: 540px;
  text-align: center;
}

.app-icon {
  width: 118px;
  height: 118px;
  margin: 0 auto 1.9rem;
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(85, 216, 95, 0.18);
}

.app-name {
  margin: 0;
  font-size: clamp(3.5rem, 7vw, 5.35rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.95;
}

.app-name span {
  color: var(--green);
}

h1 {
  margin: 1.75rem 0 1rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.05;
}

h1 span,
.brand-green {
  color: var(--green-soft);
  background: linear-gradient(100deg, #62e86c 0%, #23d84b 56%, #78df58 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.summary {
  max-width: 500px;
  margin: 0 auto 2.1rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
}

.app-store {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 62px;
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 13px;
  background: #050505;
  color: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  font-size: 1.8rem;
  font-weight: 650;
  line-height: 0.95;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.app-store:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45);
}

.app-store small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.apple svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.ambient {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(86px, 10vw, 128px);
  height: clamp(86px, 10vw, 128px);
  border-radius: 999px;
  filter: blur(7px);
  opacity: 0.15;
}

.ambient-green {
  left: -4%;
  top: 23%;
  background: var(--lime);
}

.ambient-gold {
  left: 4%;
  bottom: 16%;
  background: var(--gold);
}

.ambient-lime {
  right: -8%;
  bottom: 12%;
  background: var(--green);
}

.ambient-orange {
  right: 12%;
  top: 18%;
  width: clamp(70px, 8vw, 105px);
  height: clamp(70px, 8vw, 105px);
  background: var(--orange);
  opacity: 0.105;
}

.ambient-green-soft {
  left: 32%;
  top: 8%;
  width: clamp(62px, 7vw, 92px);
  height: clamp(62px, 7vw, 92px);
  background: var(--green-soft);
  opacity: 0.085;
}

.ambient-gold-soft {
  right: 28%;
  bottom: 3%;
  width: clamp(68px, 8vw, 104px);
  height: clamp(68px, 8vw, 104px);
  background: var(--gold);
  opacity: 0.095;
}

.ambient-lime-soft {
  right: 2%;
  top: 46%;
  width: clamp(52px, 6vw, 76px);
  height: clamp(52px, 6vw, 76px);
  background: var(--lime);
  opacity: 0.07;
}

.ambient-green-tiny {
  left: 17%;
  top: 5%;
  width: clamp(42px, 5vw, 64px);
  height: clamp(42px, 5vw, 64px);
  background: var(--green);
  opacity: 0.065;
}

.ambient-yellow-low {
  left: 24%;
  bottom: 2%;
  width: clamp(58px, 7vw, 86px);
  height: clamp(58px, 7vw, 86px);
  background: var(--gold);
  opacity: 0.075;
}

.ambient-green-low {
  left: 9%;
  bottom: 40%;
  width: clamp(50px, 6vw, 74px);
  height: clamp(50px, 6vw, 74px);
  background: var(--lime);
  opacity: 0.06;
}

.ambient-yellow-top {
  right: 38%;
  top: -2%;
  width: clamp(52px, 6vw, 82px);
  height: clamp(52px, 6vw, 82px);
  background: #f0cf18;
  opacity: 0.065;
}

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.35rem;
  padding: 0 1rem 1.5rem;
  color: #aaa69e;
  font-size: 0.95rem;
}

.footer a {
  transition: color 160ms ease;
}

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

.legal-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 720px);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.legal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0 2rem;
  color: var(--muted);
}

.legal-nav a:hover {
  color: var(--text);
}

.legal-card {
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
}

.legal-card h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 6vw, 3.35rem);
  line-height: 1;
}

.legal-card h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
}

.legal-card h3 {
  margin: 1.4rem 0 0.35rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.72;
}

.legal-card a {
  color: var(--green);
}

.updated {
  margin: 0 0 1.5rem;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 780px) {
  .home {
    min-height: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.3rem 0 2rem;
  }

  .phone-wrap {
    order: 2;
  }

  .hero-copy {
    order: 1;
    margin: 0 auto;
  }

  .phone {
    width: min(72vw, 285px);
  }

  .app-icon {
    width: 92px;
    height: 92px;
    border-radius: 22px;
  }

  .ambient {
    opacity: 0.14;
  }

}

@media (max-width: 460px) {
  .app-store {
    width: min(100%, 260px);
    justify-content: center;
    font-size: 1.55rem;
  }

  .footer {
    padding-bottom: 1.25rem;
  }
}
