/* ACOCO landing — Polsia/Nanocorp-format hero: one line, one button.
   Dark photographic hero, glass nav, staged entrance. Adapted from the
   eico-landing system so the two brand surfaces stay visually related. */

:root {
  --color-cta: #ffffff;
  --color-layer-0: #020302;
  --color-text-default: #ffffff;
  --color-text-subtle: rgba(255, 255, 255, 0.76);
  --color-text-muted: rgba(255, 255, 255, 0.46);
  --space-3: 20px;
  --font-display: "Geist", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-layer-0);
  color: var(--color-text-default);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  background: var(--color-layer-0);
  margin: 0;
  min-height: 100vh;
  width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  background: #020302;
  height: 100svh;
  isolation: isolate;
  min-height: 660px;
  overflow: hidden;
  position: relative;
}

.hero-media,
.hero-grade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-media {
  object-fit: cover;
  opacity: 0.92;
  z-index: -4;
}

.is-loading .hero-media {
  filter: blur(2px) saturate(0.92);
  opacity: 0.72;
}

.is-ready .hero-media {
  animation: hero-media-in 800ms cubic-bezier(0.45, 0, 0.15, 1) 10ms both;
}

@keyframes hero-media-in {
  from {
    filter: blur(2px) saturate(0.92);
    opacity: 0.72;
    transform: scale(1.03);
  }
  to {
    filter: none;
    opacity: 0.92;
    transform: scale(1);
  }
}

.hero-grade {
  background:
    radial-gradient(circle at 74% 47%, rgba(255, 122, 47, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 38%, rgba(0, 0, 0, 0.96)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.12) 52%, rgba(0, 0, 0, 0.6));
  z-index: -3;
}

/* ---------- Nav ---------- */

.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  left: 0;
  padding: 32px clamp(var(--space-3), 4.2vw, 60px) var(--space-3);
  position: absolute;
  right: 0;
  top: 0;
  z-index: 4;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-height: 40px;
}

.is-ready .brand {
  animation: hero-item-in 340ms ease-out 120ms both;
}

.brand-mark {
  display: inline-flex;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.16));
}

.brand-text {
  align-items: center;
  display: inline-flex;
  font-size: 13px;
  font-weight: 500;
  gap: 8px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-sep,
.brand-tag {
  color: var(--color-text-muted);
}

/* ---------- Live ticker pill ---------- */

.nav-center {
  flex: 0 1 auto;
}

.live-pill {
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  gap: 8px;
  letter-spacing: -0.01em;
  padding: 8px 14px;
}

.is-ready .live-pill {
  animation: hero-item-in 340ms ease-out 160ms both;
}

.live-dot {
  background: #5ef0b0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(94, 240, 176, 0.5);
  height: 8px;
  width: 8px;
  animation: live-pulse 2.2s ease-out infinite;
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(94, 240, 176, 0.5);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(94, 240, 176, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(94, 240, 176, 0);
  }
}

.live-label {
  color: var(--color-text-subtle);
}

.live-count {
  font-family: var(--font-mono);
  font-weight: 500;
}

/* ---------- Nav links / buttons ---------- */

.nav-links {
  align-items: center;
  display: flex;
  gap: clamp(var(--space-3), 2.4vw, 32px);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.is-ready .nav-links {
  animation: hero-item-in 340ms ease-out 200ms both;
}

.nav-links a:not(.nav-cta) {
  opacity: 0.9;
  transition: opacity 160ms ease;
}

.nav-links a:not(.nav-cta):hover {
  opacity: 1;
}

.nav-cta,
.button {
  align-items: center;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  gap: 6px;
  justify-content: center;
  line-height: 1.2;
  min-height: 44px;
  padding: 12px 18px;
  transition: opacity 160ms ease, background 160ms ease, transform 160ms ease;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}

.nav-cta {
  border-radius: 8px;
}

.button {
  font-size: 15px;
  min-height: 52px;
  padding: 16px 26px;
}

.button-primary {
  background: var(--color-cta);
  color: #050505;
}

.button-primary:hover {
  opacity: 0.9;
}

/* Ghost secondary — transparent fill, hairline border (matches the mockup) */
.button-outline {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
  color: var(--color-text-default);
}

.button-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.button-glass {
  backdrop-filter: blur(39px);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-default);
}

.button-glass:hover {
  opacity: 0.86;
}

/* ---------- Hero copy ---------- */

.hero-grid {
  align-items: flex-end;
  display: flex;
  min-height: 100%;
  padding: 128px clamp(var(--space-3), 4.2vw, 60px) clamp(72px, 12vh, 128px);
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 760px;
}

.is-ready .hero-copy {
  animation: hero-item-in 380ms ease-out 240ms both;
}

.eyebrow {
  color: var(--color-text-subtle);
  font-size: clamp(11px, 1.05vw, 14px);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.6vw, 84px);
  font-weight: 450;
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.is-ready .hero-actions {
  animation: hero-item-in 340ms ease-out 320ms both;
}

/* ---------- Entrance / loading states ---------- */

@keyframes hero-item-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.is-loading .nav,
.is-loading .hero-copy {
  opacity: 0;
}

.hero::after {
  background: rgba(0, 0, 0, 0.5);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 600ms ease;
  z-index: -1;
}

.is-loading .hero::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .is-ready .hero-media,
  .is-ready .brand,
  .is-ready .live-pill,
  .is-ready .nav-links,
  .is-ready .hero-copy,
  .is-ready .hero-actions {
    animation: none;
  }
  .live-dot {
    animation: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav-center {
    display: none;
  }
  .brand-sep,
  .brand-tag {
    display: none;
  }
}

@media (max-width: 600px) {
  .nav {
    padding: 20px 20px 16px;
  }
  .nav-links {
    gap: 14px;
  }
  .nav-links a[href="https://acoco.ai/login"] {
    display: none;
  }
  .hero-grid {
    padding: 110px 20px 64px;
  }
  .hero-actions {
    gap: 12px;
  }
  .button {
    flex: 1 1 auto;
  }
}
