/* Dream Garage — landing page
   Deliberately its own, fresher design system, distinct from the product app's UI. */

:root {
  --bg: #0a0b0d;
  --bg-elevated: #101318;
  --surface: #171a20;
  --surface-2: #1d2129;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f3f1ec;
  --text-muted: #9aa0aa;
  --accent: #ff6a3d;
  --accent-strong: #ff8a5c;
  --accent-ink: #1a0e08;
  --accent-2: #34d3c0;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --header-h: 72px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf8f5;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-2: #f1efe9;
    --border: rgba(20, 16, 12, 0.1);
    --text: #16181c;
    --text-muted: #5b6169;
    --shadow: 0 16px 44px -20px rgba(20, 16, 12, 0.22);
  }
}

* { box-sizing: border-box; }

html { color-scheme: dark light; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.nav-cta) { color: var(--text-muted); font-size: 0.95rem; transition: color 0.15s; }
.site-nav a:not(.nav-cta):hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background 0.15s, transform 0.15s;
}
.nav-cta:hover { background: var(--accent-strong); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 96px;
  background:
    radial-gradient(60% 55% at 82% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent),
    linear-gradient(var(--bg), var(--bg));
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent-2);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
}

.hero .lede {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 1.1rem;
  color: var(--text-muted);
}

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

/* ---------- Gauge illustration ---------- */
.hero-art { position: relative; display: flex; justify-content: center; }
.gauge { width: min(100%, 400px); height: auto; overflow: visible; }

.gauge-ring-outer { fill: none; stroke: var(--border); stroke-width: 2; }
.gauge-ring-progress {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 660 943;
  transform: rotate(-90deg);
  transform-origin: 180px 180px;
  opacity: 0.9;
}
.gauge-face { fill: var(--surface); filter: drop-shadow(var(--shadow)); }
.tick { stroke: var(--border); stroke-width: 2; }
.tick-major { stroke: var(--text-muted); stroke-width: 3; }

.gauge-value {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  fill: var(--text);
  text-anchor: middle;
}
.gauge-unit {
  font-family: var(--font-body);
  font-size: 12px;
  fill: var(--text-muted);
  text-anchor: middle;
}

.gauge-needle {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  transform-origin: 180px 180px;
  animation: needle-sweep 1.3s cubic-bezier(0.2, 0.85, 0.25, 1) both;
  animation-delay: 0.15s;
}
.gauge-hub { fill: var(--accent); }
@keyframes needle-sweep {
  from { transform: rotate(-95deg); }
  to { transform: rotate(128deg); }
}
@media (prefers-reduced-motion: reduce) {
  .gauge-needle { animation: none; transform: rotate(128deg); }
}

.gauge-chip {
  transform: translate(0, 0);
}
.gauge-chip rect {
  fill: var(--surface-2);
  stroke: var(--border);
  stroke-width: 1;
}
.gauge-chip text {
  font-family: var(--font-body);
  font-size: 11px;
  fill: var(--text-muted);
}
.gauge-chip text:last-of-type {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  fill: var(--text);
}
.gauge-chip-1 { transform: translate(4px, 296px); }
.gauge-chip-2 { transform: translate(224px, 296px); }

/* ---------- Section shared ---------- */
section { padding: 96px 0; }
section h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: -0.01em; }
.section-lede { color: var(--text-muted); margin-top: 12px; max-width: 60ch; }

/* ---------- Features ---------- */
.feature-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Pricing ---------- */
.pricing { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pricing-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.pricing-inner h2 { margin: 14px 0 14px; }
.pricing-inner p { color: var(--text-muted); margin-bottom: 30px; }

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid color-mix(in srgb, var(--accent-2) 40%, transparent);
  background: color-mix(in srgb, var(--accent-2) 10%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- Apps ---------- */
.apps-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  color: var(--text-muted);
  cursor: not-allowed;
  user-select: none;
  background: var(--surface);
}
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; opacity: 0.7; }
.store-badge span { display: flex; flex-direction: column; font-weight: 600; font-size: 0.95rem; color: var(--text); }
.store-badge small { font-weight: 400; font-size: 0.72rem; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand { font-size: 0.95rem; opacity: 0.85; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { color: var(--text-muted); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--text); }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; width: 100%; order: 3; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .apps-inner { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px 26px;
    gap: 16px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .site-nav a { padding: 6px 0; }
  .nav-cta { text-align: center; }
}

@media (max-width: 480px) {
  section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
}

/* ---------- Legal document pages (privacy policy) ---------- */
.legal-shell { max-width: 760px; margin: 0 auto; padding: 56px 20px 100px; }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}
.legal-back:hover { color: var(--text); }

.lang-switch {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.lang-switch a { color: var(--accent-2); }
.lang-switch a:hover { text-decoration: underline; }
.lang-switch span { color: var(--text-muted); }

.legal-shell h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.01em; }
.legal-updated { color: var(--text-muted); font-size: 0.85rem; margin: 10px 0 40px; }

.legal-shell h2 {
  font-size: 1.2rem;
  margin: 0 0 14px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
/* Cancel the marketing page's `section { padding: 96px 0 }` (above) - legal-page sections
   space themselves via their own h2's border-top instead. */
.legal-shell section { padding: 0; }
.legal-shell section:first-of-type h2 { border-top: none; padding-top: 0; }

.legal-shell p { color: var(--text-muted); margin: 0 0 14px; }
.legal-shell ul { margin: 0 0 16px; padding-left: 20px; color: var(--text-muted); }
.legal-shell li { margin-bottom: 7px; }
.legal-shell a.inline-link { color: var(--accent-2); }

.legal-group {
  border-left: 3px solid var(--border);
  padding: 2px 0 2px 16px;
  margin: 0 0 16px;
}
.legal-group.required { border-color: var(--accent); }
.legal-group.optional { border-color: var(--accent-2); }
.legal-group h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  margin: 0 0 8px;
}
