/* ============================================================
   MyDataSights landing — single stylesheet
   System fonts only. No external resources. Dark + light mode.
   ============================================================ */

:root {
  --bg:        #fafafa;
  --bg-elev:   #ffffff;
  --bg-mute:   #f4f4f5;
  --fg:        #0a0a0a;
  --fg-dim:    #525252;
  --fg-faint:  #a3a3a3;
  --border:    #e5e5e5;
  --border-strong: #d4d4d8;
  --accent:    #0e7490;
  --accent-fg: #ffffff;
  --accent-hover: #155e75;
  --accent-tint: rgba(14, 116, 144, 0.08);
  --shadow:    0 1px 2px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
  --shadow-lift: 0 2px 6px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.06);

  --maxw: 1080px;
  --pad:  clamp(1.25rem, 3vw, 2rem);
  --radius: 10px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0a0a0a;
    --bg-elev:   #131316;
    --bg-mute:   #1c1c20;
    --fg:        #f4f4f5;
    --fg-dim:    #a1a1aa;
    --fg-faint:  #52525b;
    --border:    #27272a;
    --border-strong: #3f3f46;
    --accent:    #22d3ee;
    --accent-fg: #0a0a0a;
    --accent-hover: #67e8f9;
    --accent-tint: rgba(34, 211, 238, 0.10);
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.3);
    --shadow-lift: 0 2px 6px rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.45);
  }
}

* { box-sizing: border-box; }
*::selection { background: var(--accent); color: var(--accent-fg); }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.06rem; }
p  { margin: 0 0 .5rem; color: var(--fg-dim); }

code { font-family: var(--font-mono); font-size: .875em; }

/* Skip link ----------------------------------------------- */
.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--accent-fg);
  padding: .5rem 1rem; border-radius: 4px;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 100; }

/* Pre-launch banner -------------------------------------- */
.prelaunch {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem .55rem;
  background: var(--accent-tint);
  border-bottom: 1px solid var(--border);
  color: var(--fg-dim);
  font-size: .86rem;
  font-weight: 400;
  line-height: 1.5;
  padding: .65rem var(--pad);
  position: relative;
  z-index: 60;
}
.prelaunch-pulse {
  align-self: center;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.6s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) { .prelaunch-pulse { animation: none; } }
.prelaunch-label {
  color: var(--accent);
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-feature-settings: "tnum" on;
}
.prelaunch-sep {
  color: var(--fg-faint);
  user-select: none;
  margin-inline: -.1rem;
}
.prelaunch a {
  color: var(--accent);
  font-weight: 500;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.prelaunch a:hover { color: var(--accent-hover); }
@media (max-width: 480px) {
  .prelaunch { font-size: .8rem; padding-block: .55rem; }
  .prelaunch-label { font-size: .68rem; }
}

/* Top nav ------------------------------------------------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--pad);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--fg);
  font-weight: 600; letter-spacing: -0.01em;
  font-size: 0.98rem;
}
.brand:hover { color: var(--fg); text-decoration: none; }
.logo { flex: none; display: block; }

.topnav nav { display: flex; gap: 1.4rem; }
.topnav nav a {
  color: var(--fg-dim);
  font-size: .92rem;
  font-weight: 500;
}
.topnav nav a:hover { color: var(--fg); text-decoration: none; }

@media (max-width: 640px) {
  .topnav nav a:not(:last-child) { display: none; }
}

/* Section wrapper ---------------------------------------- */
main > section {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad);
}

/* Hero ---------------------------------------------------- */
.hero { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem .85rem;
  font-size: .78rem; font-weight: 500;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   color-mix(in srgb, var(--accent) 60%, transparent); }
  70%  { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent)  0%, transparent); }
  100% { box-shadow: 0 0 0 0   color-mix(in srgb, var(--accent)  0%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .eyebrow-dot { animation: none; } }

.hero h1 { margin-bottom: 1.25rem; }
.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--fg-dim);
  max-width: 38rem;
  margin: 0 auto 2rem;
}

.cta-row {
  display: inline-flex; flex-wrap: wrap; gap: .75rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.15rem;
  font-size: .95rem; font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-fg); }

.btn-secondary {
  background: var(--bg-elev);
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-secondary:hover { color: var(--fg); border-color: var(--fg-dim); }

.btn-ghost {
  background: transparent;
  color: var(--fg-dim);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--fg); border-color: var(--fg-dim); }

.hero-fineprint {
  font-size: .82rem;
  color: var(--fg-faint);
  margin: .25rem 0 1.5rem;
}

.platforms {
  list-style: none; padding: 0; margin: 0;
  display: inline-flex; flex-wrap: wrap; gap: .25rem .65rem;
  font-size: .82rem;
  color: var(--fg-faint);
  font-weight: 500;
}

/* Demo frame --------------------------------------------- */
.demo { padding-top: 0; padding-bottom: clamp(2rem, 5vw, 4rem); }
.demo-frame {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.demo-chrome {
  display: flex; align-items: center; gap: .35rem;
  padding: .7rem 1rem;
  background: var(--bg-mute);
  border-bottom: 1px solid var(--border);
}
.demo-chrome span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-strong);
}
.demo-chrome code {
  margin-left: auto;
  font-size: .8rem;
  color: var(--fg-faint);
}
.demo-body {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 0;
  font-size: .87rem;
}
.demo-pane { padding: 1rem 1.1rem; }
.demo-pane + .demo-pane { border-left: 1px solid var(--border); }
.demo-pane p { margin: .25rem 0; color: var(--fg-dim); }
.demo-label {
  font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--fg-faint) !important;
  margin-bottom: .55rem !important;
}
.demo-caption {
  text-align: center;
  padding: .6rem;
  font-size: .78rem;
  color: var(--fg-faint);
  border-top: 1px solid var(--border);
  background: var(--bg-mute);
  margin: 0;
}
@media (max-width: 720px) {
  .demo-body { grid-template-columns: 1fr; }
  .demo-pane + .demo-pane { border-left: none; border-top: 1px solid var(--border); }
}

/* Value props strip -------------------------------------- */
.props { padding-top: 0; padding-bottom: clamp(3rem, 6vw, 5rem); }
.props ul {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 2rem;
  padding: 1.5rem 1.6rem;
  background: var(--bg-mute);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.props li { color: var(--fg-dim); font-size: .94rem; }
.props strong { color: var(--fg); display: block; }

/* Features grid ------------------------------------------ */
.features h2 { text-align: center; margin-bottom: 2.5rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.grid article {
  padding: 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.grid article:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.grid svg {
  width: 24px; height: 24px;
  color: var(--accent);
  margin-bottom: 1rem;
}
.grid h3 { margin-bottom: .4rem; color: var(--fg); }
.grid p  { font-size: .93rem; }

/* How it works ------------------------------------------- */
.how h2 { text-align: center; margin-bottom: 2.5rem; }
.how ol {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.how li {
  counter-increment: step;
  padding: 1.4rem 1.4rem 1.4rem 3.2rem;
  position: relative;
  background: var(--bg-mute);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.how li::before {
  content: counter(step);
  position: absolute;
  left: 1.2rem; top: 1.25rem;
  width: 1.6rem; height: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: 50%;
  font-size: .82rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.how strong { color: var(--fg); display: block; margin-bottom: .25rem; }
.how li { color: var(--fg-dim); font-size: .95rem; }

/* FAQ ---------------------------------------------------- */
.faq { max-width: 760px; }
.faq h2 { text-align: center; }
details {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
}
details:last-of-type { border-bottom: 1px solid var(--border); }
details summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  color: var(--fg);
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  font-size: 1.4rem; font-weight: 300;
  color: var(--fg-faint);
  transition: transform .2s;
  width: 1rem; text-align: center; flex: none;
}
details[open] summary::after { content: "−"; }
details p {
  margin: .8rem 0 0;
  color: var(--fg-dim);
  font-size: .95rem;
}

/* Bottom CTA --------------------------------------------- */
.cta-bottom {
  text-align: center;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem);
}
.cta-bottom h2 { margin-bottom: .5rem; }
.cta-bottom p { margin-bottom: 1.75rem; color: var(--fg-dim); }

/* Footer ------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-mute);
}
.foot-cols {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad) 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 720px) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
.foot-cols a {
  display: block;
  color: var(--fg-dim);
  font-size: .9rem;
  padding: .15rem 0;
}
.foot-cols a:hover { color: var(--fg); text-decoration: none; }
.foot-brand {
  color: var(--fg);
  font-weight: 600;
  margin-bottom: .3rem;
}
.foot-tag { color: var(--fg-dim); font-size: .9rem; }
.foot-h {
  color: var(--fg);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}
.foot-fine {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1rem var(--pad) 2rem;
  font-size: .82rem;
  color: var(--fg-faint);
  border-top: 1px solid var(--border);
}

/* Legal pages (privacy / imprint / license / 404) -------- */
.legal {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad) 4rem;
}
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.25rem; margin: 2.25rem 0 .75rem; }
.legal p, .legal li { color: var(--fg-dim); }
.legal ul { padding-left: 1.4rem; }
.legal li { margin-bottom: .35rem; }
.legal .updated { color: var(--fg-faint); font-size: .85rem; }
.legal pre {
  background: var(--bg-mute);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: .85rem;
  white-space: pre-wrap;
  overflow-x: auto;
}
