/* ============================================
   Dacxi Verify — Microsite Styles
   ============================================ */

/* --- Font --- */
@font-face {
  font-family: 'Public Sans';
  src: url('./fonts/PublicSans-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Public Sans';
  src: url('./fonts/PublicSans-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* --- Variables --- */
:root {
  --foundation-blue: #000032;
  --electric-purple: #aa69ff;
  --purple-dim: rgba(170, 105, 255, 0.5);
  --purple-glow: rgba(170, 105, 255, 0.15);
  --grey: #EDEDED;
  --white: #ffffff;
  --text-primary: #f0f0f5;
  --text-secondary: rgba(240, 240, 245, 0.7);
  --text-muted: rgba(240, 240, 245, 0.45);
  --surface-dark: #000032;
  --surface-darker: #00001e;
  --surface-card: rgba(170, 105, 255, 0.06);
  --surface-card-border: rgba(170, 105, 255, 0.12);
  --surface-light: #f5f5f8;
  --surface-light-card: #ffffff;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1200px;
  --container-narrow: 800px;
  --section-py: clamp(80px, 10vw, 140px);
  --section-py-sm: clamp(60px, 8vw, 100px);
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--foundation-blue);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--electric-purple);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

a:hover {
  color: var(--white);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.accent {
  color: var(--electric-purple);
}

.accent-dim {
  color: var(--purple-dim);
}

/* --- Typography --- */
h1 {
  font-weight: 200;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}

h2 {
  font-weight: 900;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
}

h3 {
  font-weight: 700;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.35;
  color: var(--white);
}

h4, .approach-card h4 {
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.4;
  color: var(--white);
}

strong {
  font-weight: 700;
  color: var(--white);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

.btn:active {
  transform: translateY(0) !important;
}

.btn-primary {
  background: var(--electric-purple);
  color: var(--white);
}

.btn-primary:hover {
  background: #c08aff;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(170, 105, 255, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(240, 240, 245, 0.2);
}

.btn-secondary:hover {
  background: rgba(240, 240, 245, 0.06);
  border-color: rgba(240, 240, 245, 0.4);
  color: var(--white);
  transform: translateY(-1px);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 300ms var(--ease-out), padding 300ms var(--ease-out);
}

.nav.scrolled {
  background: rgba(0, 0, 50, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  border-bottom: 1px solid rgba(170, 105, 255, 0.1);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--transition-interactive);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links .nav-cta {
  padding: 8px 20px;
  background: var(--electric-purple);
  color: var(--white);
  border-radius: 5px;
  font-weight: 600;
}

.nav-links .nav-cta:hover {
  background: #c08aff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0 clamp(20px, 5vw, 40px) 20px;
  gap: 16px;
}

.mobile-menu a {
  font-size: 1rem;
  color: var(--text-secondary);
  padding: 8px 0;
}

.mobile-menu a:hover {
  color: var(--white);
}

.mobile-menu .nav-cta {
  display: inline-flex;
  align-self: flex-start;
  padding: 10px 24px;
  background: var(--electric-purple);
  color: var(--white);
  border-radius: 5px;
  font-weight: 600;
  margin-top: 8px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(120px, 15vh, 180px) 0 var(--section-py);
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(170, 105, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 105, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
}

.hero-network {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
}

.hero-network canvas {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.hero-badge {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero h1 {
  max-width: 800px;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 20px;
  line-height: 1.55;
}

.hero-supporting {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-weight: 400;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Sections shared --- */
.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section-dark {
  background: var(--surface-darker);
}

.section-accent-edge {
  background: var(--surface-dark);
  border-top: 1px solid var(--surface-card-border);
  border-bottom: 1px solid var(--surface-card-border);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--electric-purple);
  margin-bottom: 20px;
}

.section h2 {
  margin-bottom: 40px;
}

/* --- Section 1: Problem --- */
.two-line {
  margin-bottom: 48px;
}

.statement {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.5;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.problem-col h3 {
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 1rem;
}

.check-list li,
.pain-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--electric-purple);
  opacity: 0.5;
}

.pain-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(240, 240, 245, 0.25);
}

.closing-statement {
  border-top: 1px solid var(--surface-card-border);
  padding-top: 40px;
}

.closing-statement p {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 200;
  color: var(--text-primary);
  line-height: 1.5;
}

.closing-statement p:last-child {
  color: var(--electric-purple);
  font-weight: 700;
}

/* --- Section 2: Approach --- */
.approach-intro {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 48px;
  line-height: 1.6;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.approach-card {
  padding: 36px 28px;
  border: 1px solid var(--surface-card-border);
  border-radius: 8px;
  background: var(--surface-card);
  transition: border-color var(--transition-interactive), background var(--transition-interactive);
}

.approach-card:hover {
  border-color: rgba(170, 105, 255, 0.3);
  background: rgba(170, 105, 255, 0.1);
}

.approach-icon {
  margin-bottom: 20px;
}

.approach-card h4 {
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1.0625rem;
}

.approach-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.approach-closing {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 300;
  color: var(--text-secondary);
}

.approach-closing strong {
  color: var(--electric-purple);
}

/* --- Section 3: Modules --- */
.modules-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
}

.modules-now h2,
.modules-roadmap h2 {
  margin-bottom: 32px;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
}

.module-card {
  padding: 28px;
  border: 1px solid var(--surface-card-border);
  border-radius: 8px;
  background: var(--surface-card);
  margin-bottom: 20px;
}

.module-card h3 {
  margin-bottom: 12px;
  font-size: 1.125rem;
}

.module-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.module-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.module-card ul li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-left: 16px;
  position: relative;
}

.module-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--electric-purple);
}

.module-roadmap {
  border-style: dashed;
  border-color: rgba(170, 105, 255, 0.15);
  background: rgba(170, 105, 255, 0.03);
}

/* --- Section 4: Enables --- */
.section-enables {
  background: var(--surface-dark);
  border-top: 1px solid var(--surface-card-border);
}

.enables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.enables-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--surface-card-border);
  border-radius: 8px;
  background: var(--surface-card);
}

.enables-number {
  font-size: 2rem;
  font-weight: 200;
  color: var(--electric-purple);
  line-height: 1;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.enables-item p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-top: 6px;
}

/* --- Section 5: Pilot --- */
.section-pilot {
  background:
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(170, 105, 255, 0.06), transparent),
    var(--surface-darker);
}

.pilot-intro {
  font-size: clamp(1rem, 1.8vw, 1.1875rem);
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.pilot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.pilot-test-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pilot-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.pilot-bullet {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border: 2px solid var(--electric-purple);
  border-radius: 50%;
}

.pilot-partners h3 {
  margin-bottom: 20px;
  font-size: 1.125rem;
}

.pilot-partners ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pilot-partners li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.pilot-partners li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--electric-purple);
  border-radius: 1px;
  opacity: 0.6;
}

.pilot-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Section 6: Behind --- */
.section-behind {
  background: var(--surface-dark);
  border-top: 1px solid var(--surface-card-border);
}

.behind-content {
  max-width: var(--container-narrow);
}

.behind-main {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.behind-role {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 40px;
}

.behind-closing {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}

/* --- Contact --- */
.section-contact {
  padding: var(--section-py-sm) 0;
}

.contact-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.contact-inner h2 {
  margin-bottom: 16px;
}

.contact-inner p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* --- Footer --- */
.footer {
  background: var(--surface-darker);
  border-top: 1px solid var(--surface-card-border);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 22px;
  width: auto;
  margin-bottom: 12px;
  opacity: 0.7;
}

.footer-brand p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--electric-purple);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(170, 105, 255, 0.08);
  padding-top: 24px;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-attribution {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-attribution:hover {
  color: var(--electric-purple);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.problem-grid .fade-in:nth-child(2) { transition-delay: 100ms; }
.approach-grid .fade-in:nth-child(2) { transition-delay: 80ms; }
.approach-grid .fade-in:nth-child(3) { transition-delay: 160ms; }
.enables-grid .fade-in:nth-child(2) { transition-delay: 60ms; }
.enables-grid .fade-in:nth-child(3) { transition-delay: 120ms; }
.enables-grid .fade-in:nth-child(4) { transition-delay: 180ms; }
.enables-grid .fade-in:nth-child(5) { transition-delay: 240ms; }
.pilot-test-items .fade-in:nth-child(2) { transition-delay: 60ms; }
.pilot-test-items .fade-in:nth-child(3) { transition-delay: 120ms; }
.pilot-test-items .fade-in:nth-child(4) { transition-delay: 180ms; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-grid-bg {
    animation: none;
  }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .mobile-menu.open {
    display: flex;
  }
  .nav.scrolled .mobile-menu.open {
    background: rgba(0, 0, 50, 0.95);
  }
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .approach-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .modules-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .pilot-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .enables-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }
  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .hero {
    min-height: auto;
    padding-top: clamp(100px, 20vh, 140px);
    padding-bottom: clamp(60px, 10vh, 80px);
  }
  .hero-ctas {
    flex-direction: column;
  }
  .hero-ctas .btn {
    width: 100%;
    text-align: center;
  }
  .pilot-ctas {
    flex-direction: column;
  }
  .pilot-ctas .btn {
    width: 100%;
    text-align: center;
  }
  .btn {
    padding: 14px 24px;
    font-size: 0.875rem;
  }
  .section {
    padding: clamp(60px, 10vw, 80px) 0;
  }
}

/* --- Subtle background geometric pattern for select sections --- */
.section-enables::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(170, 105, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 105, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, black 0%, transparent 70%);
  pointer-events: none;
}

.section-behind::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(170, 105, 255, 0.06) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 50% 60% at 70% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 50% 60% at 70% 40%, black 0%, transparent 70%);
  pointer-events: none;
}
