/* Marketing surfaces (landing, auth, legal). App shell styles live in app.css. */

.dy-nav .nav-links { display: flex; gap: 20px; margin-left: 14px; }
.dy-nav .nav-links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.dy-nav .nav-links a:hover { color: var(--text-heading); }
.dy-nav .nav-cta { margin-left: auto; display: flex; gap: 10px; }

main { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 24px 80px; }

/* ── hero ─────────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 48px;
  align-items: center;
  padding: 76px 0 60px;
}

.hero-title {
  color: var(--text-heading);
  font-size: clamp(40px, 6vw, 62px);
  line-height: 1.03;
  letter-spacing: -.035em;
  margin: 18px 0 20px;
}

.hero-sub { color: var(--text-secondary); font-size: 16.5px; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.hero-fineprint { font-size: 13px; }

/* live preview card */
.preview { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.preview-title { color: var(--text-heading); font-size: 17px; margin-bottom: 4px; }

.preview-map {
  position: relative;
  height: 168px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-inset);
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 30% 20%, rgba(61, 107, 196, .34), transparent 70%),
    radial-gradient(60% 80% at 80% 80%, rgba(95, 227, 200, .16), transparent 70%),
    #0a1020;
}

.preview-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 26px 26px;
}

.preview-aoi {
  position: absolute;
  left: 24%;
  top: 26%;
  width: 46%;
  height: 44%;
  border: 1px solid rgba(123, 165, 245, .85);
  border-radius: 4px;
  background: rgba(123, 165, 245, .12);
  box-shadow: 0 0 26px rgba(123, 165, 245, .35);
}

.preview-map-tag { position: absolute; left: 12px; bottom: 10px; }

.preview-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.preview-metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, .028);
  box-shadow: var(--glass-inset);
}

.preview-foot { display: flex; justify-content: space-between; gap: 10px; }

/* ── trust strip ──────────────────────────────────────────────────────────── */
.trust {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px 22px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-inset);
  border-radius: var(--radius-lg);
}

.trust-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }

/* ── sections ─────────────────────────────────────────────────────────────── */
.section { padding: 86px 0 0; }
.section-head { max-width: 62ch; margin-bottom: 30px; }
.section-title { color: var(--text-heading); font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.028em; margin: 10px 0 12px; }
.section-sub { color: var(--text-secondary); font-size: 15.5px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.card-title { color: var(--text-heading); font-size: 18px; }
.card-body { color: var(--text-secondary); font-size: 14.5px; }
.card .dy-label { margin-top: auto; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.step { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.step-num { color: var(--accent-from); font-size: 13px; letter-spacing: .18em; }
.step-title { color: var(--text-heading); font-size: 17px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.plan { padding: 24px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.plan-featured { border-color: rgba(123, 165, 245, .38); box-shadow: var(--glass-inset), var(--glow-accent); }
.plan-tag { position: absolute; top: -13px; left: 22px; color: var(--accent-from); }
.plan-name { color: var(--text-heading); font-size: 18px; }
.plan-price { font-size: 34px; }
.plan-period { font-size: 11px; margin-left: 6px; }
.plan-list { list-style: none; margin: 8px 0 18px; padding: 0; display: flex; flex-direction: column; gap: 9px; color: var(--text-secondary); font-size: 14.5px; }
.plan-list li { padding-left: 20px; position: relative; }
.plan-list li::before { content: '›'; position: absolute; left: 4px; color: var(--accent-from); font-family: var(--font-mono); }
.plan .dy-btn { margin-top: auto; }

.footer-cta { margin-top: 92px; padding: 46px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-cta-title { color: var(--text-heading); font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -.028em; }

/* ── footer ───────────────────────────────────────────────────────────────── */
.footer { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 34px 24px 60px; display: flex; flex-direction: column; gap: 18px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); font-size: 14px; }
.footer-links a:hover { color: var(--text-heading); }
.footer-note { font-size: 12.5px; max-width: 100ch; }

/* ── auth pages ───────────────────────────────────────────────────────────── */
.auth-wrap { position: relative; z-index: 1; min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 430px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.auth-title { color: var(--text-heading); font-size: 24px; letter-spacing: -.02em; }
.auth-sub { color: var(--text-secondary); font-size: 14.5px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-alt { display: flex; flex-direction: column; gap: 10px; }
.auth-or { display: flex; align-items: center; gap: 12px; }
.auth-or hr { flex: 1; height: 1px; border: 0; background: var(--glass-border); }
.auth-foot { color: var(--text-secondary); font-size: 13.5px; text-align: center; }

/* ── legal pages ──────────────────────────────────────────────────────────── */
.legal { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 56px 24px 90px; display: flex; flex-direction: column; gap: 16px; }
.legal h1 { color: var(--text-heading); font-size: 32px; letter-spacing: -.03em; }
.legal h2 { color: var(--text-heading); font-size: 19px; margin-top: 18px; }
.legal p, .legal li { color: var(--text-secondary); font-size: 15px; }
.legal ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 940px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 52px; }
  .dy-nav .nav-links { display: none; }
}

/* Utility classes that replace inline style attributes, which the Content-Security-Policy forbids. */
.auth-title.is-section { font-size: 20px; }
.metric-row.is-spaced { margin-top: 12px; }
.usage-track { height: 10px; background: rgba(255,255,255,.06); border-radius: 6px; overflow: hidden; margin: 8px 0 6px; }
.usage-fill { height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width .4s ease; }
.dy-btn.is-danger { border-color: rgba(255,107,138,.42); }


/* ── public blog / field notes ────────────────────────────────────────────── */
.blog-wrap { max-width: 980px; margin: 0 auto; padding: 40px 22px 60px; }
.blog-hero { max-width: 760px; margin: 8px 0 34px; }
.blog-hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.05; margin: 10px 0 14px; color: var(--text-heading); }
.blog-hero p { color: var(--text-secondary); font-size: 17px; line-height: 1.6; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.blog-card { display: block; padding: 20px; border-radius: var(--radius); border: 1px solid var(--glass-border); background: var(--glass); text-decoration: none; transition: border-color .16s, transform .16s; }
.blog-card:hover { border-color: rgba(123,165,245,.5); transform: translateY(-2px); }
.blog-card-topic { color: var(--accent-from); }
.blog-card h2 { font-size: 20px; line-height: 1.2; margin: 8px 0 8px; color: var(--text-heading); }
.blog-card-headline { font-family: var(--font-mono); font-size: 13px; color: var(--mint); margin: 0 0 8px; }
.blog-card-dek { color: var(--text-secondary); font-size: 14.5px; line-height: 1.5; margin: 0 0 12px; }
.blog-card-meta { color: var(--text-muted); font-size: 12.5px; }
.blog-empty { color: var(--text-secondary); padding: 30px 0; }

.blog-article h1 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.08; margin: 10px 0 8px; color: var(--text-heading); max-width: 800px; }
.blog-back { display: inline-block; color: var(--text-secondary); text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.blog-back:hover { color: var(--text-heading); }
.blog-headline { font-family: var(--font-mono); color: var(--mint); font-size: 16px; margin: 4px 0 6px; }
.blog-meta { color: var(--text-muted); font-size: 13px; margin: 0 0 26px; }
.blog-body { max-width: 720px; }
.blog-body p { color: var(--text-body); font-size: 17px; line-height: 1.72; margin: 0 0 18px; }
.blog-body b { color: var(--text-heading); }
.blog-body a { color: var(--accent-from); }
.blog-body .insight-lede { font-size: 19px; color: var(--text-secondary); }
.blog-body .insight-note { font-size: 15px; color: var(--text-secondary); border-left: 2px solid var(--glass-border); padding-left: 14px; }
.blog-body .insight-source { font-size: 14.5px; color: var(--text-muted); }
.blog-body .insight-cta { margin-top: 22px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid rgba(123,165,245,.3); background: rgba(123,165,245,.08); font-size: 15.5px; color: var(--text-body); }
.blog-related { max-width: 980px; margin: 20px auto 0; padding: 24px 22px 0; border-top: 1px solid var(--glass-border); }
.blog-footer { max-width: 980px; margin: 40px auto 0; padding: 26px 22px 50px; border-top: 1px solid var(--glass-border); text-align: center; }
.blog-footer p { color: var(--text-secondary); font-size: 14.5px; margin: 0 0 14px; }
.blog-footer a { color: var(--accent-from); }

/* ── long-form insight article elements ───────────────────────────────────── */
.blog-body h2 { font-size: 24px; line-height: 1.2; color: var(--text-heading); margin: 34px 0 12px; }
.insight-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 10px; }
@media (max-width: 620px) { .insight-figs { grid-template-columns: 1fr; } }
.insight-frame { margin: 0; }
.insight-frame img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--glass-border); display: block; }
.insight-frame figcaption { color: var(--text-muted); font-size: 12.5px; line-height: 1.45; margin-top: 8px; }
.insight-legend { list-style: none; padding: 12px 14px; margin: 6px 0 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; border: 1px solid var(--glass-border); border-radius: var(--radius); background: var(--glass); }
.insight-legend li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-secondary); }
.insight-legend li b { color: var(--text-heading); font-family: var(--font-mono); font-size: 12.5px; }
.insight-legend .sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; flex: 0 0 auto; }
.sw-loss, .cm-loss { color: #FF7A5C; } .insight-legend .sw-loss { background: #FF5A4D; }
.sw-gain, .cm-gain { color: #7EC0F0; } .insight-legend .sw-gain { background: #5AA9E6; }
.sw-stable, .cm-stable { color: #9AA7C0; } .insight-legend .sw-stable { background: #6B7A99; }
.sw-ephemeral, .cm-eph { color: #5FE3C8; } .insight-legend .sw-ephemeral { background: #4FD1C5; }
.blog-body .insight-steps { color: var(--text-body); font-size: 16.5px; line-height: 1.7; padding-left: 22px; margin: 0 0 18px; }
.blog-body .insight-steps li { margin: 0 0 8px; }
.blog-body .insight-glossary { list-style: none; padding: 0; margin: 0 0 18px; }
.blog-body .insight-glossary li { color: var(--text-body); font-size: 16px; line-height: 1.6; margin: 0 0 10px; padding-left: 14px; border-left: 2px solid var(--glass-border); }

/* ── DYAAN abbreviation / brand line ──────────────────────────────────────── */
.brand-abbr { font-size: 13.5px; letter-spacing: .02em; color: var(--text-secondary); margin: 10px 0 0; }
.brand-abbr b { color: var(--accent-from); font-weight: 700; }
.dy-abbr { font-weight: 800; letter-spacing: .14em; color: var(--text-heading); text-decoration: none; border: 0; cursor: help; }
.hero-abbr { margin: 6px 0 16px; font-size: 15px; }
.footer-abbr { margin: 14px 0 0; }

/* ── cinematic hero (globe + capabilities) ────────────────────────────────── */
body { overflow-x: hidden; }
.hero { position: relative; }
.hero-copy { position: relative; z-index: 2; }
.hero .preview { position: relative; z-index: 2; }

/* the Earth backdrop rising from the lower-right */
.hero-earth { position: absolute; right: -170px; bottom: -190px; width: 760px; max-width: 82vw; z-index: 0; pointer-events: none; filter: drop-shadow(0 30px 80px rgba(9,20,40,.6)); animation: earth-float 14s ease-in-out infinite; }
.hero-earth .earth-svg { width: 100%; height: auto; display: block; }
@keyframes earth-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.earth-dots .dot { animation: dot-tw 4s ease-in-out infinite; }
.earth-dots .dot-b { animation-duration: 5.5s; animation-delay: .8s; }
.earth-dots .dot-c { animation-duration: 6.8s; animation-delay: 1.6s; }
@keyframes dot-tw { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

.earth-arcs .arc { stroke: #8FB4FF; stroke-width: 1.5; stroke-dasharray: 5 7; opacity: .85; animation: arc-flow 3.2s linear infinite; }
.earth-arcs .arc-1 { stroke: #5FE3C8; animation-duration: 4s; }
.earth-arcs .arc-2 { animation-duration: 3.6s; }
.earth-arcs .arc-3 { stroke: #8FE9FF; animation-duration: 4.4s; }
@keyframes arc-flow { to { stroke-dashoffset: -48; } }

.pin { transform-box: fill-box; }
.pin-halo { fill: var(--accent-from); opacity: .5; transform-box: fill-box; transform-origin: center; animation: pin-pulse 2.6s ease-out infinite; }
.pin-1 .pin-halo { animation-delay: .6s; fill: #5FE3C8; }
.pin-2 .pin-halo { animation-delay: 1.2s; }
.pin-3 .pin-halo { animation-delay: 1.8s; fill: #8FE9FF; }
.pin-4 .pin-halo { animation-delay: .3s; }
.pin-dot { fill: #EAF1FF; }
@keyframes pin-pulse { 0% { transform: scale(.5); opacity: .6; } 70% { transform: scale(2.4); opacity: 0; } 100% { opacity: 0; } }

/* accent gradient text */
.hero-accent, .dy-grad-text { background: linear-gradient(100deg, #8FB4FF, #5FE3C8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dy-grad-text { font-weight: 800; letter-spacing: .04em; }

/* capabilities list */
.hero-caps { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; max-width: 620px; }
.hero-caps .cap { display: flex; gap: 12px; align-items: flex-start; }
.cap-ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--accent-from); background: linear-gradient(160deg, rgba(123,165,245,.18), rgba(61,107,196,.08)); border: 1px solid rgba(123,165,245,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.cap-ico svg { width: 21px; height: 21px; }
.hero-caps .cap b { display: block; color: var(--text-heading); font-size: 15px; margin-bottom: 2px; }
.hero-caps .cap span { color: var(--text-secondary); font-size: 13.5px; line-height: 1.4; }

.hero-tagline { margin: 4px 0 10px; font-size: 15.5px; color: var(--text-secondary); }
.hero-tagline b { color: var(--text-heading); }

@media (max-width: 940px) {
  .hero-earth { right: -140px; bottom: auto; top: -40px; width: 460px; opacity: .45; animation: none; }
  .hero-caps { grid-template-columns: 1fr; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-earth, .earth-dots .dot, .earth-arcs .arc, .pin-halo { animation: none; }
}
