/* ============================================
   Dowser Marketing Site
   Design Tokens & Global Reset
   ============================================ */

:root {
  --bg-base: #0F172A;
  --bg-raised: #1E293B;
  --accent-blue: #3B82F6;
  --text-muted: #94A3B8;
  --text-bright: #F1F5F9;
  --border-subtle: #334155;
  --text-dim: #64748B;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-bright);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

/* ============================================
   Shared Utilities
   ============================================ */

.section-heading {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 32px;
  color: var(--text-bright);
  text-align: center;
  margin-bottom: 12px;
}

.section-subheading {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
}

/* ============================================
   SECTION 1 — STICKY NAV
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav--scrolled {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.nav__wordmark {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-right: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-right: 32px;
}

.nav__link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--text-bright);
}

.nav__cta {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent-blue);
  padding: 8px 20px;
  border-radius: 100px;
  transition: background 0.2s ease;
}

.nav__cta:hover {
  background: #2563EB;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger--open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border-subtle);
}

.nav__mobile-menu--open {
  display: flex;
}

.nav__mobile-link {
  font-size: 15px;
  color: var(--text-muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.2s ease;
}

.nav__mobile-link:hover {
  color: var(--text-bright);
}

.nav__mobile-cta {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent-blue);
  padding: 10px 20px;
  border-radius: 100px;
  text-align: center;
  margin-top: 16px;
}

/* ============================================
   SECTION 2 — HERO
   ============================================ */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 200px 24px 120px;
  background: var(--bg-base);
}

.hero__tagline {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 48px;
  color: var(--text-bright);
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.hero__play-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #000;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 20px 10px 16px;
  transition: border-color 0.2s ease;
}

.hero__play-badge:hover {
  border-color: var(--text-muted);
}

.hero__play-icon {
  flex-shrink: 0;
}

.hero__play-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.hero__play-label {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.2;
}

.hero__play-store {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.hero__get-started {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent-blue);
  padding: 12px 28px;
  border-radius: 100px;
  transition: background 0.2s ease;
}

.hero__get-started:hover {
  background: #2563EB;
}

.hero__platform {
  font-size: 12px;
  color: var(--text-dim);
}

/* ============================================
   SECTION 3 — HOW IT WORKS
   ============================================ */

.how-it-works {
  background: var(--bg-raised);
  padding: 80px 24px;
}

.steps {
  display: flex;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
}

.step__number {
  display: block;
  font-family: var(--font-body);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 16px;
}

.step__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.step__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   SECTION 4 — THEME SHOWCASE
   ============================================ */

.themes {
  background: var(--bg-base);
  padding: 80px 24px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 800px;
  margin: 48px auto 0;
}

.theme-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-raised);
  border: 1px solid rgba(var(--theme-color), 0.06);
  border-color: color-mix(in srgb, var(--theme-color) 6%, transparent);
  border-radius: 8px;
  padding: 16px;
}

.theme-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--theme-color) 10%, transparent);
}

.theme-card__icon .material-symbols-outlined {
  font-size: 22px;
  color: var(--theme-color);
}

.theme-card__text {
  min-width: 0;
}

.theme-card__name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-bright);
  margin-bottom: 2px;
}

.theme-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================
   SECTION 5 — WHY DOWSER EXISTS
   ============================================ */

.values {
  background: var(--bg-raised);
  padding: 80px 24px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.value-card {
  background: var(--bg-base);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.value-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.value-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   SECTION 6 — APP PREVIEW
   ============================================ */

.preview {
  background: var(--bg-base);
  padding: 80px 24px;
}

.preview__phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  margin: 48px 0 32px;
}

.preview__phone-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview__phone {
  width: 280px;
  height: 560px;
  background: var(--bg-raised);
  border-radius: 32px;
  border: 3px solid var(--border-subtle);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.preview__phone-notch {
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  flex-shrink: 0;
}

.preview__phone-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
}

.preview__phone-screen--themes {
  justify-content: flex-start;
  gap: 12px;
  padding-top: 16px;
}

.preview__screen-wordmark {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.preview__screen-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}

.preview__theme-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 0 4px;
}

.preview__theme-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-base);
  border-left: 3px solid var(--pill-color);
  border-radius: 6px;
  padding: 7px 12px;
}

.preview__pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pill-color);
  flex-shrink: 0;
}

.preview__pill-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-bright);
}

.preview__phone-screen--arrow {
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.preview__arrow-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
}

.preview__pulse-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.25);
  animation: pulse-ring 2.5s ease-out infinite;
}

.preview__pulse-ring--delayed {
  animation-delay: 1.25s;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.preview__arrow {
  position: relative;
  z-index: 1;
  opacity: 0.95;
}

.preview__distance {
  font-size: 40px;
  font-weight: 300;
  color: var(--text-bright);
  font-family: var(--font-heading);
}

.preview__venue-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 16px;
  margin-top: auto;
  margin-bottom: 16px;
}

.preview__venue-icon {
  font-size: 16px;
  line-height: 1;
}

.preview__venue-name {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.preview__label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 16px;
}

.preview__tagline {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================
   SECTION 7 — AYTEN ECOSYSTEM
   ============================================ */

.ecosystem {
  background: var(--bg-raised);
  padding: 60px 24px;
}

.ecosystem__divider {
  width: 200px;
  height: 1px;
  background: var(--border-subtle);
  margin: 0 auto 32px;
}

.ecosystem__heading {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 24px;
  color: var(--text-bright);
  text-align: center;
  margin-bottom: 40px;
}

.ecosystem__content {
  display: flex;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
  align-items: center;
}

.ecosystem__text {
  flex: 1;
}

.ecosystem__text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.ecosystem__link {
  font-size: 14px;
  color: var(--accent-blue);
  transition: opacity 0.2s ease;
}

.ecosystem__link:hover {
  opacity: 0.8;
}

.ecosystem__diagram {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.ecosystem__app-box {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-bright);
  text-align: center;
  min-width: 100px;
}

.ecosystem__connections {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ecosystem__arrow-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--border-subtle);
  font-size: 14px;
  width: 60px;
  justify-content: space-between;
}

.ecosystem__arrow-line::before {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.ecosystem__arrow-left,
.ecosystem__arrow-right {
  color: var(--border-subtle);
  font-size: 12px;
  line-height: 1;
}

.ecosystem__conn-label {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ============================================
   SECTION 8 — FOOTER
   ============================================ */

.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  padding: 24px;
}

.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dim);
}

.footer__links {
  font-size: 13px;
  color: var(--text-dim);
}

.footer__copy {
  font-size: 12px;
  color: var(--text-dim);
}

/* ============================================
   NAV — SUBPAGE VARIANTS
   ============================================ */

.nav--scrolled-always {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.nav__link--active {
  color: var(--text-bright);
}

/* ============================================
   LEGAL PAGES — Privacy & Terms
   ============================================ */

.legal-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 160px 24px 64px;
  background: var(--bg-base);
}

.legal-hero__title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 42px;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.legal-hero__subtitle {
  font-size: 15px;
  color: var(--text-dim);
}

.legal-content {
  background: var(--bg-base);
  padding: 0 24px 80px;
}

.legal-content__inner {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 48px;
}

.legal-content__inner h2 {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-bright);
  margin-top: 40px;
  margin-bottom: 16px;
}

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

.legal-content__inner h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-bright);
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-content__inner p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-content__inner ul {
  list-style: none;
  margin-bottom: 20px;
  padding: 0;
}

.legal-content__inner li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 6px 0 6px 20px;
  position: relative;
}

.legal-content__inner li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-subtle);
}

.legal-content__inner strong {
  color: var(--text-bright);
  font-weight: 600;
}

.legal-link {
  color: var(--accent-blue);
  transition: opacity 0.2s ease;
}

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

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 160px 24px 64px;
  background: var(--bg-base);
}

.about-hero__title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 42px;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.about-hero__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  font-style: italic;
}

.about-content {
  background: var(--bg-base);
  padding: 0 24px 40px;
}

.about-section {
  max-width: 760px;
  margin: 0 auto 40px;
}

.about-section__inner {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 40px 48px;
}

.about-section__heading {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 28px;
  color: var(--text-bright);
  margin-bottom: 24px;
}

.about-section p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.about-lead {
  font-size: 18px;
  color: var(--text-bright);
  line-height: 1.7;
}

.about-section--opening .about-section__inner {
  border-color: color-mix(in srgb, var(--accent-blue) 20%, transparent);
}

/* About — How it works steps */

.about-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.about-step__number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent-blue) 12%, transparent);
  color: var(--accent-blue);
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
}

.about-step p {
  padding-top: 4px;
  margin-bottom: 0;
}

/* About — Values grid */

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.about-value {
  background: var(--bg-base);
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.about-value h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 10px;
}

.about-value p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* About — Contact email */

.about-email {
  color: var(--accent-blue);
  font-size: 18px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.about-email:hover {
  opacity: 0.8;
}

/* About — Closing tagline */

.about-closing {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 28px;
  color: var(--text-bright);
  text-align: center;
}

.about-section--closing .about-section__inner {
  background: transparent;
  border: none;
  padding: 24px 0;
}

/* Footer link styles */

.footer__links a {
  color: var(--text-dim);
  transition: color 0.2s ease;
}

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

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */

@media (max-width: 1024px) {
  .theme-grid {
    max-width: 600px;
    grid-template-columns: repeat(2, 1fr);
  }

  .preview__phones {
    gap: 32px;
  }

  .preview__phone {
    width: 240px;
    height: 480px;
  }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero {
    padding: 140px 24px 80px;
  }

  .hero__tagline {
    font-size: 36px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__cta {
    flex-direction: column;
  }

  .steps {
    flex-direction: column;
    gap: 40px;
    max-width: 400px;
  }

  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .preview__phones {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .preview__phone {
    width: 260px;
    height: 520px;
  }

  .ecosystem__content {
    flex-direction: column;
  }

  .ecosystem__diagram {
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Legal pages responsive */
  .legal-hero {
    padding: 120px 24px 48px;
  }

  .legal-hero__title {
    font-size: 32px;
  }

  .legal-content__inner {
    padding: 28px 20px;
  }

  .legal-content__inner h2 {
    font-size: 19px;
  }

  /* About page responsive */
  .about-hero {
    padding: 120px 24px 48px;
  }

  .about-hero__title {
    font-size: 32px;
  }

  .about-section__inner {
    padding: 28px 20px;
  }

  .about-section__heading {
    font-size: 24px;
  }

  .about-values-grid {
    grid-template-columns: 1fr;
  }

  .about-closing {
    font-size: 24px;
  }
}
