/* ============================================================
   DvSum — Homepage Styles
   ============================================================ */

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}
.hero__bg-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(240,80,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero__bg-glow-teal {
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(40,180,200,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-16) var(--container-px);
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__ctas { justify-content: center; }
}

.hero__content { max-width: 580px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--dv-orange-dim);
  border: 1px solid rgba(240,80,0,0.2);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  margin-bottom: var(--space-5);
}
.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--dv-orange);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero__eyebrow-text {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dv-orange);
}
.hero h1 {
  margin-bottom: var(--space-5);
  line-height: 1.05;
}
.hero h1 em {
  font-style: normal;
  color: var(--dv-orange);
}
.hero__sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-8);
  max-width: 480px;
}
.hero__ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}
.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}
.hero__trust-item svg {
  width: 14px;
  height: 14px;
  color: var(--dv-teal);
  flex-shrink: 0;
}

/* ── Animated ANI Diagram ── */
.hero__diagram {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}
@media (max-width: 900px) {
  .hero__diagram { margin: 0 auto; max-width: 400px; }
}
.ani-diagram {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
}
.ani-diagram svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Node styles */
.ani-node {
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.1));
}
.ani-node__ring {
  fill: none;
  stroke-width: 1.5;
  opacity: 0;
  animation: node-ring-in 0.6s ease forwards;
}
.ani-node__bg {
  fill: var(--bg-card);
  stroke: var(--border);
  stroke-width: 1.5;
  transition: stroke var(--transition-base);
}
.ani-node:hover .ani-node__bg { stroke: var(--dv-orange); }
.ani-node__label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--dv-orange);
}
.ani-node__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  fill: var(--text-primary);
  letter-spacing: -0.02em;
}
.ani-node__sub {
  font-family: var(--font-body);
  font-size: 10px;
  fill: var(--text-muted);
}

/* Connector paths */
.ani-connector {
  fill: none;
  stroke-width: 1.5;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}
.ani-connector--orange {
  stroke: var(--dv-orange);
  animation: draw-path 0.8s ease forwards;
}
.ani-connector--teal {
  stroke: var(--dv-teal);
  animation: draw-path 0.8s ease forwards;
}
.ani-connector--dashed { stroke-dasharray: 6 4; }

/* Central orb */
.ani-orb {
  animation: orb-in 0.5s ease forwards;
  opacity: 0;
}
.ani-orb__outer { fill: none; stroke: var(--border); stroke-width: 1; }
.ani-orb__mid   { fill: none; stroke: var(--dv-orange); stroke-width: 1.5; opacity: 0.4; }
.ani-orb__inner { fill: var(--dv-orange-dim); }
.ani-orb__pulse {
  fill: none;
  stroke: var(--dv-orange);
  stroke-width: 1;
  opacity: 0;
  animation: orb-pulse 2.5s ease-in-out 1.5s infinite;
}
.ani-orb__text-top {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  fill: var(--text-primary);
  letter-spacing: -0.02em;
}
.ani-orb__text-bot {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--dv-orange);
}

/* Arrow markers */
@keyframes draw-path {
  to { stroke-dashoffset: 0; }
}
@keyframes node-ring-in {
  from { opacity: 0; r: 30; }
  to   { opacity: 0.15; r: 42; }
}
@keyframes orb-in {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes orb-pulse {
  0%   { opacity: 0.6; r: 38; }
  100% { opacity: 0; r: 56; }
}

/* Animation delays for staged entrance */
.ani-node--sense  { animation: node-in 0.5s 0.2s ease both; }
.ani-node--reason { animation: node-in 0.5s 0.8s ease both; }
.ani-node--act    { animation: node-in 0.5s 0.5s ease both; }
.ani-connector--sr { animation-delay: 0.9s; }
.ani-connector--ra { animation-delay: 1.2s; }
.ani-connector--as { animation-delay: 1.5s; }
.ani-orb { animation-delay: 0.7s; animation-duration: 0.6s; }

@keyframes node-in {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Proof Strip ── */
.proof-strip {
  padding: var(--space-10) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.proof-strip__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-px);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.proof-strip__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.proof-strip__divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}
.proof-strip__metrics {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  flex: 1;
}
.proof-strip__metric {}
.proof-strip__number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--dv-orange);
  letter-spacing: -0.03em;
  line-height: 1;
}
.proof-strip__metric-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}
.proof-strip__cta {
  flex-shrink: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--dv-orange);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: gap var(--transition-fast);
}
.proof-strip__cta:hover { gap: 10px; }
@media (max-width: 768px) {
  .proof-strip__inner { flex-wrap: wrap; }
  .proof-strip__label, .proof-strip__divider { display: none; }
  .proof-strip__metrics { gap: var(--space-6); }
}

/* ── Audience Router ── */
.audience-router {
  padding: var(--section-py) 0;
}
.audience-router__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-10);
}
@media (max-width: 900px) {
  .audience-router__grid { grid-template-columns: 1fr; }
}
.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.audience-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--dv-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}
.audience-card:hover::before { transform: scaleX(1); }
.audience-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--dv-orange);
}
.audience-card--builders::before { background: var(--dv-teal); }
.audience-card--builders:hover { border-color: var(--dv-teal); }

.audience-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--dv-orange-dim);
  border: 1px solid rgba(240,80,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.audience-card__icon svg { width: 22px; height: 22px; color: var(--dv-orange); }
.audience-card--builders .audience-card__icon {
  background: var(--dv-teal-dim);
  border-color: rgba(40,180,200,0.15);
}
.audience-card--builders .audience-card__icon svg { color: var(--dv-teal); }

.audience-card__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dv-orange);
}
.audience-card--builders .audience-card__eyebrow { color: var(--dv-teal); }
.audience-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.audience-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.audience-card__personas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-1);
}
.audience-card__persona-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px 10px;
}
.audience-card__arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--dv-orange);
  margin-top: var(--space-2);
  transition: gap var(--transition-fast);
}
.audience-card:hover .audience-card__arrow { gap: 10px; }
.audience-card--builders .audience-card__arrow { color: var(--dv-teal); }

/* ── Newsletter ── */
.newsletter-section {
  padding: var(--space-16) 0;
  background: var(--bg-inverse);
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(240,80,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.newsletter-section .container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
}
.newsletter-section h2 {
  color: var(--text-hero-color);
  margin: var(--space-3) 0;
}
.newsletter-section p {
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-8);
  font-size: var(--text-lg);
}
.newsletter-form-wrapper {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

/* ── Latest Posts ── */
.latest-posts {
  padding: var(--section-py) 0;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
}
@media (max-width: 900px) {
  .posts-grid { grid-template-columns: 1fr; }
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.post-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-surface);
  overflow: hidden;
}
.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card__image img { transform: scale(1.04); }
.post-card__body { padding: var(--space-4); flex: 1; display: flex; flex-direction: column; }
.post-card__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dv-orange);
  margin-bottom: var(--space-2);
}
.post-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: var(--space-2);
  flex: 1;
}
.post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__date {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── CTA Section ── */
.cta-section {
  padding: var(--section-py) 0;
  text-align: center;
}
.cta-section h2 { margin-bottom: var(--space-3); }
.cta-section p {
  font-size: var(--text-lg);
  max-width: 480px;
  margin: 0 auto var(--space-8);
}
.cta-section__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}
.cta-section__note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ── Proof strip: force single row, no wrap ── */
.proof-strip__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-px);
}
.proof-strip__inner::-webkit-scrollbar { display: none; }

.proof-strip__metrics {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex: 1;
  flex-wrap: nowrap;
}

.proof-strip__metric {
  flex: 0 0 auto;
  text-align: center;
  min-width: 120px;
}

.proof-strip__divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

.proof-strip__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.proof-strip__cta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--dv-orange);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  margin-left: auto;
}

@media (max-width: 900px) {
  .proof-strip__metrics { gap: var(--space-4); }
  .proof-strip__metric { min-width: 90px; }
}


/* ── Tighten section vertical padding globally ── */
:root {
  --section-py: clamp(60px, 8vw, 100px);
}

/* ── Post card styles ── */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--dv-orange);
}
.post-card__image {
  height: 180px;
  background: var(--bg-surface);
  flex-shrink: 0;
}
.post-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.post-card__tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dv-orange);
}
.post-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}
.post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.post-card__meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
}

/* ── Posts grid ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
}
@media (max-width: 900px) {
  .posts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr; }
}

/* ── Audience router section header spacing ── */
.audience-router .section-header {
  margin-bottom: var(--space-8);
}

/* ── Reduce hero top whitespace ── */
.hero {
  padding-top: calc(var(--nav-height, 72px) + 40px) !important;
  min-height: auto !important;
}

/* ── Hero trust signals — attach directly below CTAs ── */
.hero__trust {
  margin-top: var(--space-5);
}

/* ── CTA section buttons ── */
.cta-section__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin: var(--space-6) 0 var(--space-3);
  flex-wrap: wrap;
}
.cta-section__note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
}


/* ================================================================
   QA FIX PASS 2 — June 2026
   ================================================================ */

/* ── Fix: define --nav-height so hero padding calc works ── */
:root { --nav-height: 72px; }

/* ── Fix: hero — remove double padding, clean whitespace ── */
.hero {
  min-height: calc(100svh - var(--nav-height)) !important;
  padding-top: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.hero__inner {
  padding-top: var(--space-10) !important;
  padding-bottom: var(--space-10) !important;
}

/* ── Fix: CTA section — reduce bottom padding before footer ── */
.cta-section {
  padding: clamp(48px, 6vw, 80px) 0 !important;
}

/* ── Fix: footer — reduce top padding ── */
.footer {
  padding-top: var(--space-10) !important;
  padding-bottom: var(--space-6) !important;
}
