/* ============================================================
   DashPhone — Apple-inspired Stylesheet
   ============================================================ */

:root {
  --blue-50:  #eef6ff;
  --blue-100: #d6e9ff;
  --blue-200: #a8cdff;
  --blue-400: #4ea2ff;
  --blue-500: #0a84ff;
  --blue-600: #006bd6;
  --blue-700: #0052a3;
  --blue-900: #002a5c;
  --ink:      #1d1d1f;
  --ink-soft: #424245;
  --ink-mute: #6e6e73;
  --bg:       #ffffff;
  --bg-soft:  #f5f7fb;
  --line:     rgba(0,0,0,0.08);
  --radius:   22px;
  --radius-l: 32px;
  --ease:     cubic-bezier(.22,.61,.36,1);
  --font:     -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
              "Helvetica Neue", Helvetica, "Segoe UI", Roboto, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}
.brand img { width: 28px; height: 28px; }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 14px;
}
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--blue-600); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 17px;
  font-weight: 500;
  border-radius: 980px;
  border: 0;
  cursor: pointer;
  transition: all .25s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-500);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--blue-600);
  border: 1px solid rgba(10,132,255,0.3);
}
.btn-ghost:hover {
  background: var(--blue-50);
  text-decoration: none;
}
.btn-soon {
  background: rgba(10,132,255,0.08);
  color: var(--blue-700);
  cursor: default;
}
.btn-soon:hover { background: rgba(10,132,255,0.12); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 24px 80px;
  text-align: center;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-size: 15px;
  color: var(--blue-600);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}
.hero h1 {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #0a84ff 0%, #0040a0 60%, #002a5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h2 {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 400;
  color: var(--ink-soft);
  margin-bottom: 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Animated blue blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  animation: float 18s var(--ease) infinite;
}
.blob.b1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #a8cdff 0%, transparent 70%);
  top: -120px; left: -100px;
}
.blob.b2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #4ea2ff 0%, transparent 70%);
  top: 60px; right: -120px;
  animation-delay: -6s;
  animation-duration: 22s;
}
.blob.b3 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #d6e9ff 0%, transparent 70%);
  bottom: -120px; left: 30%;
  animation-delay: -12s;
  animation-duration: 26s;
}
@keyframes float {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.08); }
  66%  { transform: translate(-30px, 50px) scale(0.95); }
  100% { transform: translate(0,0) scale(1); }
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  margin: 0 auto;
  width: 260px;
  height: 540px;
  border-radius: 44px;
  background: linear-gradient(145deg, #1d1d1f 0%, #2c2c2e 100%);
  padding: 12px;
  box-shadow:
    0 50px 100px rgba(0,40,120,0.25),
    0 10px 30px rgba(0,0,0,0.12);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, #001a3c 0%, #003a8a 50%, #0a84ff 100%);
}
.phone-notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 24px;
  background: #1d1d1f;
  border-radius: 14px;
  z-index: 3;
}
.hud {
  position: absolute;
  top: 50px; left: 16px; right: 16px;
  display: flex; justify-content: space-between;
  color: #fff; font-size: 12px;
  font-variant-numeric: tabular-nums;
  z-index: 2;
}
.hud-block {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 10px;
  display: flex; flex-direction: column;
  align-items: center;
  min-width: 64px;
}
.hud-block .v { font-size: 18px; font-weight: 600; }
.hud-block .l { font-size: 10px; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.5px; }
.rec-dot {
  position: absolute;
  top: 50px; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  background: #ff3b30;
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
  z-index: 2;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50%     { opacity: 0.4; transform: translateX(-50%) scale(1.4); }
}
.road {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    #001a3c 0%, #00224d 40%, #003a8a 70%, #0a84ff 100%);
}
.road::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%) perspective(400px) rotateX(60deg);
  width: 80%;
  height: 60%;
  background:
    repeating-linear-gradient(0deg,
      transparent 0 20px,
      rgba(255,255,255,0.7) 20px 40px) center/8px 100% no-repeat;
  animation: road 2.5s linear infinite;
  transform-origin: bottom;
}
@keyframes road {
  0%   { background-position-y: 0; }
  100% { background-position-y: 80px; }
}
.pip {
  position: absolute;
  bottom: 80px; right: 18px;
  width: 70px; height: 70px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4ea2ff, #002a5c);
  border: 2px solid rgba(255,255,255,0.6);
  z-index: 3;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.btn-rec {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 3px solid #fff;
  z-index: 3;
}
.btn-rec::after {
  content: "";
  position: absolute; inset: 6px;
  border-radius: 50%;
  background: #ff3b30;
}

/* ---------- Section base ---------- */
section {
  position: relative;
  padding: 100px 24px;
}
.container {
  max-width: 1080px;
  margin: 0 auto;
}
.section-eyebrow {
  font-size: 15px;
  color: var(--blue-600);
  font-weight: 500;
  margin-bottom: 12px;
  text-align: center;
}
.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 16px;
  color: var(--ink);
}
.section-sub {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink-soft);
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
  line-height: 1.45;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-soft);
  border-radius: var(--radius-l);
  padding: 40px 32px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: -50%; right: -30%;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(10,132,255,0.12) 0%, transparent 70%);
  border-radius: 50%;
  transition: transform .6s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0,40,120,0.08);
}
.feature-card:hover::before { transform: scale(1.4); }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: #fff;
  box-shadow: 0 12px 24px rgba(10,132,255,0.25);
  position: relative;
  z-index: 2;
}
.feature-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  position: relative; z-index: 2;
}
.feature-card p {
  color: var(--ink-soft);
  font-size: 16px;
  position: relative; z-index: 2;
}

/* ---------- Big alternating feature blocks ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.feature-row.reverse { grid-template-columns: 0.95fr 1.05fr; }
.feature-row.reverse .feature-visual { order: -1; }
.feature-row h3 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.feature-row p {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 20px;
}
.feature-row .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 6px 14px;
  border-radius: 980px;
  margin-bottom: 18px;
}
.feature-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--blue-50) 0%, #fff 100%);
  border-radius: var(--radius-l);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.feature-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(10,132,255,0.15) 0%, transparent 60%);
}

/* SVG illustration sizing */
.feature-visual svg {
  width: 70%;
  height: 70%;
  position: relative;
  z-index: 2;
}

/* ---------- Stats strip ---------- */
.stats {
  background: linear-gradient(135deg, #001a3c 0%, #003a8a 60%, #0a84ff 100%);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 64px 40px;
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stats::before, .stats::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.stats::before {
  width: 300px; height: 300px;
  background: rgba(78,162,255,0.5);
  top: -100px; left: -50px;
}
.stats::after {
  width: 360px; height: 360px;
  background: rgba(10,132,255,0.4);
  bottom: -150px; right: -80px;
}
.stat {
  position: relative;
  z-index: 2;
}
.stat .num {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.stat .lbl {
  font-size: 14px;
  opacity: 0.85;
  letter-spacing: 0.2px;
}

/* ---------- Download CTA ---------- */
.cta {
  text-align: center;
  background: var(--bg-soft);
  border-radius: var(--radius-l);
  padding: 80px 32px;
  margin: 40px 0 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(10,132,255,0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(78,162,255,0.15) 0%, transparent 40%);
}
.cta > * { position: relative; z-index: 2; }
.cta h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.cta p {
  color: var(--ink-soft);
  font-size: 18px;
  margin-bottom: 32px;
}
.store-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  font-family: inherit;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}
.faq-q:hover { color: var(--blue-600); }
.faq-q .icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 600;
  transition: transform .3s var(--ease);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-top: 16px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--bg-soft);
  padding: 48px 24px 32px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p {
  color: var(--ink-mute);
  font-size: 14px;
  margin-top: 12px;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: var(--ink-mute);
  font-size: 14px;
}
.footer-col a:hover {
  color: var(--blue-600);
  text-decoration: none;
}
.copyright {
  max-width: 1080px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}
.legal h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #0a84ff 0%, #002a5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 36px 0 12px;
  color: var(--ink);
}
.legal h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--ink);
}
.legal p, .legal li {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal ul, .legal ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal a { word-break: break-word; }
.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 15px;
  color: var(--blue-600);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 56px 0;
  }
  .feature-row.reverse .feature-visual { order: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 80px 20px 60px; }
  section { padding: 72px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
