/* Dandle landing page — slate base shared with imnick.dev, warm amber/rose
   accent identity, pure CSS animations (no JS dependencies). */

:root {
  --bg: #0f172a;
  --bg-soft: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #fbbf24;
  --accent-2: #fb7185;
  --border: #334155;
}

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

html { background: var(--bg); scroll-behavior: smooth; }

body {
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- floating background blobs ---------- */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  animation: drift 22s ease-in-out infinite alternate;
}
.blob.b1 { width: 34rem; height: 34rem; background: var(--accent); top: -12rem; left: -10rem; }
.blob.b2 { width: 28rem; height: 28rem; background: var(--accent-2); bottom: -10rem; right: -8rem; animation-delay: -8s; }
.blob.b3 { width: 20rem; height: 20rem; background: #818cf8; top: 40%; left: 55%; animation-delay: -15s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(3rem, 2rem) scale(1.15); }
}

/* ---------- entrance animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(1.4rem); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease-out both; }
.fade-up.d1 { animation-delay: 0.12s; }
.fade-up.d2 { animation-delay: 0.24s; }
.fade-up.d3 { animation-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .blob, .fade-up, .float { animation: none !important; }
}

/* ---------- header ---------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}
.brand { display: flex; align-items: center; gap: 0.5rem; font-family: ui-monospace, monospace; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.brand:hover { color: var(--accent); }
nav { display: flex; gap: 1.1rem; font-family: ui-monospace, monospace; font-size: 0.85rem; }
nav a { color: var(--muted); }
nav a:hover { color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0 4.5rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.hero h1 .warm {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede { color: var(--muted); font-size: 1.1rem; line-height: 1.65; margin-bottom: 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #1c1917;
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.25);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(251, 113, 133, 0.3); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.version-note { font-family: ui-monospace, monospace; font-size: 0.75rem; color: var(--muted); margin-top: 0.9rem; }

/* ---------- phone frame (real screenshots) ---------- */
.phone-frame {
  justify-self: center;
  width: 15.5rem;
  border-radius: 2.6rem;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  padding: 0.55rem;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.8rem); }
}
.phone-frame img {
  width: calc(100% - 0.7rem);
  margin: 0.35rem;
  height: auto;
  display: block;
  border-radius: 1.8rem;
}

.phone-frame.small {
  width: 12.5rem;
  padding: 0.45rem;
  animation: none;
}
.phone-frame.small img { border-radius: 1.7rem; }

/* ---------- sections ---------- */
section.block { padding: 3.5rem 0; }
h2.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
p.section-lede { color: var(--muted); margin-bottom: 2.2rem; max-width: 42rem; line-height: 1.65; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.pillar {
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 1.5rem 1.3rem;
  background: rgba(30, 41, 59, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--accent); }
.pillar .emoji { font-size: 1.8rem; margin-bottom: 0.7rem; }
.pillar h3 { font-size: 1.02rem; margin-bottom: 0.45rem; }
.pillar p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feature {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.15rem 1.1rem;
  background: rgba(30, 41, 59, 0.35);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover { border-color: var(--accent-2); transform: translateY(-3px); }
.feature .emoji { font-size: 1.4rem; display: block; margin-bottom: 0.5rem; }
.feature h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.feature p { color: var(--muted); font-size: 0.8rem; line-height: 1.55; }

/* ---------- release timeline ---------- */
.timeline { border-left: 2px solid var(--border); margin-left: 0.5rem; padding-left: 1.6rem; display: grid; gap: 1.4rem; }
.release { position: relative; }
.release::before {
  content: '';
  position: absolute;
  left: calc(-1.6rem - 7px);
  top: 0.3rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}
.release .tag { font-family: ui-monospace, monospace; font-size: 0.78rem; color: var(--accent); }
.release h4 { font-size: 1rem; margin: 0.15rem 0 0.3rem; }
.release p { color: var(--muted); font-size: 0.85rem; line-height: 1.55; }

/* ---------- download ---------- */
.download {
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  padding: 2.6rem 2.2rem;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(251, 191, 36, 0.08), transparent 55%),
    rgba(30, 41, 59, 0.5);
}
.download h2 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.download p { color: var(--muted); margin-bottom: 1.8rem; line-height: 1.6; }
.download .req { font-family: ui-monospace, monospace; font-size: 0.72rem; color: var(--muted); margin-top: 1rem; }

footer {
  margin-top: 4rem;
  padding: 2rem 0 2.6rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
}

/* ---------- responsive ---------- */
@media (max-width: 56rem) {
  .hero { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 34rem) {
  .features { grid-template-columns: 1fr; }
}

/* ---------- real-screenshot frames ---------- */
.brand-mark { width: 1.6rem; height: 1.6rem; border-radius: 0.4rem; }
.tagline {
  font-family: ui-monospace, monospace;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.media-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.media-split.reverse { direction: rtl; }
.media-split.reverse > * { direction: ltr; }
.media-split .phone-frame { justify-self: center; }
.media-copy { display: grid; gap: 1rem; }
.media-copy .pillar { margin: 0; }

/* ---------- trust strip ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.trust-strip div {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
  background: rgba(30, 41, 59, 0.4);
}
.trust-strip span { margin-right: 0.35rem; }

footer .fine { margin-top: 0.7rem; font-size: 0.68rem; color: #64748b; max-width: 46rem; margin-left: auto; margin-right: auto; line-height: 1.6; }

@media (max-width: 56rem) {
  .media-split { grid-template-columns: 1fr; }
  .media-split.reverse { direction: ltr; }
  .phone-frame.small { justify-self: center; width: 12.5rem; }
}

/* ---------- nav github placeholder ---------- */
nav .nav-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  cursor: default;
}
.soon-pill {
  font-size: 0.58rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: ui-monospace, monospace;
}

/* ---------- icon nav ---------- */
nav { align-items: center; }
.nav-ico {
  width: 1.2rem;
  height: 1.2rem;
  fill: var(--muted);
  display: block;
}
.nav-ico.chev {
  fill: none;
  stroke: var(--muted);
}
.nav-soon, .nav-home {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.nav-soon:hover .nav-ico, .nav-home:hover .nav-ico {
  fill: var(--accent);
  stroke: var(--accent);
}
.nav-home:hover .chev { stroke: var(--accent); }
