:root {
  --bg: #070908;
  --panel: #121514;
  --panel-2: #191c1b;
  --text: #f7fbf9;
  --muted: #9ca6a2;
  --line: rgba(255, 255, 255, 0.12);
  --teal: #08c7ad;
  --mint: #6fffe6;
  --violet: #8d6cf7;
  --gold: #d9bd78;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 80% -10%, rgba(8, 199, 173, 0.18), transparent 34rem),
    linear-gradient(135deg, #060707 0%, #0b1715 56%, #082723 100%);
  line-height: 1.65;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 8, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  font-size: 1.42rem;
}

.mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #04110f;
  background: linear-gradient(135deg, var(--mint), var(--teal));
  box-shadow: 0 12px 32px rgba(8, 199, 173, 0.34);
}

.navlinks {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.navlinks a {
  padding: 9px 11px;
  border-radius: var(--radius);
  color: rgba(247, 251, 249, 0.72);
  font-size: 0.92rem;
  font-weight: 700;
}

.navlinks a:hover,
.navlinks a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.download-link {
  color: #04110f !important;
  background: linear-gradient(135deg, var(--mint), var(--teal)) !important;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 76px);
}

#constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(transparent, rgba(7, 9, 8, 0.9));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 900;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.4rem, 8vw, 7.6rem);
}

.hero-copy,
.lead {
  color: rgba(247, 251, 249, 0.76);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-copy {
  max-width: 690px;
  margin: 24px 0 0;
}

.actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 255, 230, 0.42);
}

.button.primary {
  color: #04110f;
  background: linear-gradient(135deg, var(--mint), var(--teal));
  box-shadow: 0 18px 42px rgba(8, 199, 173, 0.28);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
}

.device {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateY(-7deg) rotateX(4deg);
  animation: floatDevice 7s ease-in-out infinite;
}

@keyframes floatDevice {
  50% {
    transform: perspective(900px) rotateY(-2deg) rotateX(2deg) translateY(-16px);
  }
}

.mock-screen {
  min-height: 620px;
  padding: 22px;
  border-radius: var(--radius);
  background: #0b0c0c;
}

.mock-head,
.segmented,
.bottom-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-head strong {
  font-size: 2rem;
  font-weight: 950;
}

.search-dot {
  width: 38px;
  height: 38px;
  border: 4px solid #fff;
  border-radius: 50%;
  position: relative;
}

.search-dot::after {
  content: "";
  width: 15px;
  height: 4px;
  background: #fff;
  position: absolute;
  right: -11px;
  bottom: 1px;
  transform: rotate(45deg);
}

.segmented {
  gap: 12px;
  margin: 30px 0 26px;
}

.pill {
  flex: 1;
  padding: 16px 10px;
  text-align: center;
  border-radius: 999px;
  background: #252626;
  color: #8f9391;
  font-weight: 950;
}

.pill.active {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #00d0b5);
}

.media-card,
.diary-card,
.legal-card,
.support-panel {
  border-radius: var(--radius);
  background: rgba(25, 28, 27, 0.92);
  border: 1px solid var(--line);
}

.media-card {
  overflow: hidden;
}

.thumb {
  min-height: 210px;
  display: grid;
  place-items: center;
  color: #06110f;
  font-weight: 950;
  background:
    linear-gradient(135deg, rgba(141, 108, 247, 0.9), rgba(8, 199, 173, 0.88)),
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(255, 255, 255, 0.18) 16px 18px);
}

.media-body {
  padding: 20px;
}

.media-body strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.2;
}

.media-body span,
.muted {
  color: var(--muted);
}

.tile-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mini {
  min-height: 120px;
  padding: 14px;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #242728, #102f2b);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.bottom-tabs {
  margin-top: 22px;
  padding: 14px;
  color: #777;
  background: #151716;
  border-radius: var(--radius);
  font-weight: 800;
}

.bottom-tabs .active {
  color: var(--teal);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.section-title {
  max-width: 850px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.lead {
  max-width: 840px;
  margin: 20px 0 0;
}

.feature-grid,
.legal-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-height: 240px;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.card h3 {
  margin-bottom: 12px;
  color: var(--mint);
}

.card p,
.legal-card p,
.legal-card li,
.support-panel p {
  color: rgba(247, 251, 249, 0.73);
}

.showcase {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(141, 108, 247, 0.12), rgba(8, 199, 173, 0.12));
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.diary-card {
  padding: 24px;
}

.date-num {
  color: var(--teal);
  display: block;
  font-size: 3rem;
  line-height: 1;
  font-weight: 950;
}

.policy-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(7, 9, 8, 0.96), rgba(8, 199, 173, 0.16)),
    radial-gradient(circle at 90% 10%, rgba(111, 255, 230, 0.22), transparent 28rem);
}

.legal-wrap {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 82px;
}

.legal-card,
.support-panel {
  padding: clamp(22px, 5vw, 44px);
  box-shadow: var(--shadow);
}

.legal-card h2 {
  margin-top: 34px;
  font-size: 1.45rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.callout {
  margin: 24px 0;
  padding: 18px;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: rgba(8, 199, 173, 0.11);
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.phone-number {
  display: inline-flex;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: #04110f;
  background: linear-gradient(135deg, var(--mint), var(--teal));
  font-size: 1.24rem;
  font-weight: 950;
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(7, 9, 8, 0.82);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}

@media (max-width: 880px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .navlinks {
    justify-content: flex-start;
  }

  .hero-inner,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .device {
    transform: none;
    animation: none;
  }

  .feature-grid,
  .workflow,
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .navlinks a {
    padding: 8px 9px;
    font-size: 0.82rem;
  }

  .hero-inner,
  .section {
    padding: 54px 0;
  }

  .mock-screen {
    min-height: 500px;
    padding: 16px;
  }

  .mock-head strong {
    font-size: 1.55rem;
  }

  .thumb {
    min-height: 160px;
  }

  .tile-grid {
    grid-template-columns: 1fr;
  }

  .actions,
  .button {
    width: 100%;
  }
}
