/* Alphamotion site — shared styles (Direction A, extended) */

:root {
  --bg:        #F8FAFC;
  --surface:   #FFFFFF;
  --surface-2: #F1F5F9;
  --border:    #E2E8F0;
  --border-2:  #CBD5E1;
  --ink:       #0F172A;
  --ink-2:     #475569;
  --ink-3:     #94A3B8;
  --indigo:    #6366F1;
  --indigo-2:  #4F46E5;
  --indigo-wash:#EEF2FF;
  --emerald:   #10B981;
  --emerald-2: #059669;
  --emerald-wash:#ECFDF5;
  --emerald-border:#A7F3D0;
  --amber:     #F59E0B;
  --container: 1280px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.mono { font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-feature-settings: "ss01"; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,250,252,0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand strong { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; }
.nav-brand .tag { font-size: 10px; color: var(--ink-3); letter-spacing: 1.4px; margin-left: 6px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.nav-links a { position: relative; padding: 6px 0; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 500; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -20px; height: 2px; background: var(--indigo);
}
.nav-cta {
  background: var(--ink); color: #fff; border: none; border-radius: 999px;
  padding: 10px 18px; font-size: 14px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s, transform .15s;
}
.nav-cta:hover { background: #1E293B; transform: translateY(-1px); }
.nav-sign { font-size: 14px; color: var(--ink-2); cursor: pointer; }
.nav-sign:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 10px; padding: 14px 22px; font-size: 15px; font-weight: 500;
  cursor: pointer; border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1E293B; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border-2); }
.btn-secondary:hover { background: var(--surface); border-color: var(--ink-2); }
.btn-emerald { background: var(--emerald); color: #fff; }
.btn-emerald:hover { background: var(--emerald-2); transform: translateY(-1px); }
.btn-indigo { background: var(--indigo); color: #fff; }
.btn-indigo:hover { background: var(--indigo-2); transform: translateY(-1px); }

/* Eyebrow */
.eyebrow {
  font-family: "Geist Mono", monospace;
  font-size: 11px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--indigo);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow.emerald { color: var(--emerald-2); }
.eyebrow.muted { color: var(--ink-3); }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
}
.card-padded { padding: 28px; }
.card-hover { transition: border-color .2s, transform .2s, box-shadow .2s; }
.card-hover:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(15,23,42,0.12); }

/* Governance hover: pulsing green glow */
@keyframes am-gov-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
  50%     { box-shadow: 0 0 0 6px rgba(16,185,129,0.16), 0 0 32px rgba(16,185,129,0.28); }
}
.gov-box:hover { animation: am-gov-pulse 1.8s ease-in-out infinite; border-color: var(--emerald) !important; }

/* Slider range reset */
input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; background: transparent; cursor: pointer; }

/* Footer */
.footer {
  background: #0F172A; color: rgba(255,255,255,0.8);
  padding: 72px 0 32px; margin-top: 96px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer h4 { font-size: 12px; letter-spacing: 1.6px; color: rgba(255,255,255,0.5); text-transform: uppercase; font-family: "Geist Mono", monospace; font-weight: 500; margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 12px; font-size: 14px; }
.footer li a { color: rgba(255,255,255,0.7); transition: color .15s; }
.footer li a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; font-size: 12px; color: rgba(255,255,255,0.5);
  font-family: "Geist Mono", monospace; letter-spacing: 0.8px;
}

/* Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hide-sm { display: none !important; }
  h1.hero-headline { font-size: 56px !important; letter-spacing: -1.8px !important; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Pretty text */
.pretty { text-wrap: pretty; }
.balance { text-wrap: balance; }

/* Dashed separator */
.dashed { border-top: 1px dashed var(--border-2); }

/* Mobile optimization pass */
@media (max-width: 1024px) {
  .home-hero-grid,
  .home-proof-grid,
  .usecase-hero-grid,
  .usecase-case-grid,
  .usecase-calc-grid,
  .gov-hero-grid,
  .gov-cadence-grid,
  .gov-faq-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .home-bento-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: auto !important;
  }

  .home-bento-grid > a {
    grid-column: span 2 !important;
    grid-row: span 1 !important;
  }

  .home-bento-grid > a:nth-last-child(-n+2) {
    grid-column: span 1 !important;
  }

  .home-engagement-grid,
  .usecase-agents-grid,
  .gov-controls-grid,
  .gov-cadence-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .usecase-workflow-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .usecase-workflow-grid > div {
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
  }

  .usecase-workflow-grid > div > div[style*='position: absolute'] {
    display: none !important;
  }

  .home-hero-pulse svg,
  .usecase-hero-grid svg,
  .gov-hero-grid svg {
    max-width: 360px;
    height: auto;
  }

  .home-hero-actions,
  .usecase-hero-actions,
  .gov-hero-actions {
    flex-wrap: wrap;
  }

  .home-stats-row,
  .usecase-stats-row {
    gap: 20px !important;
    flex-wrap: wrap;
  }

  .usecase-metrics-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  h1.hero-headline {
    font-size: 44px !important;
    line-height: 1.02 !important;
    letter-spacing: -1.2px !important;
  }

  .home-bento-head,
  .usecase-hero-grid,
  .gov-hero-grid {
    gap: 18px !important;
  }

  .btn,
  .nav-cta {
    min-height: 46px;
  }

  .home-hero-actions .btn,
  .usecase-hero-actions .btn,
  .gov-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .home-proof-logos,
  .usecase-metrics-grid,
  .home-engagement-grid,
  .usecase-agents-grid,
  .gov-controls-grid,
  .gov-cadence-cards {
    grid-template-columns: 1fr !important;
  }

  .home-bento-grid {
    grid-template-columns: 1fr !important;
  }

  .home-bento-grid > a,
  .home-bento-grid > a:nth-last-child(-n+2) {
    grid-column: span 1 !important;
  }

  .card-padded {
    padding: 18px;
  }

  .footer {
    padding: 52px 0 24px;
    margin-top: 64px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  h1.hero-headline {
    font-size: 36px !important;
  }

  .home-hero-pulse svg,
  .usecase-hero-grid svg,
  .gov-hero-grid svg {
    max-width: 300px;
  }

  .nav-brand .tag {
    display: none;
  }
}
