/* ═══════════════════════════════════════════════
   ATLAS AGENTS — Brand Stylesheet
   Palette: #FF5758 coral / #0D0D0D–#333 charcoal
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --coral: #FF5758;
  --coral-dark: #E04E4F;
  --coral-light: #FF7A7B;
  --coral-glow: rgba(255, 87, 88, 0.12);
  --coral-glow-strong: rgba(255, 87, 88, 0.25);
  --black: #0D0D0D;
  --charcoal: #1A1A1A;
  --charcoal-mid: #252525;
  --charcoal-light: #333333;
  --gray-700: #555555;
  --gray-500: #888888;
  --gray-400: #AAAAAA;
  --gray-300: #CCCCCC;
  --gray-200: #E5E5E5;
  --gray-100: #F3F3F3;
  --white: #FFFFFF;
  --success: #34D399;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: var(--coral-glow-strong);
  color: var(--white);
}

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

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

/* ── Grain Overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.32s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.4s; }
.stagger > .reveal:nth-child(7) { transition-delay: 0.48s; }
.stagger > .reveal:nth-child(8) { transition-delay: 0.56s; }

/* ── Layout ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 24px;
  position: relative;
}

.section--charcoal { background: var(--charcoal); }
.section--compact { padding: 48px 24px; }

.section__inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* ── Typography ── */
.section-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--coral);
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-sub {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-400);
  max-width: 600px;
}
.section-sub--center {
  margin: 0 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}
.btn--primary {
  background: var(--coral);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--coral-dark);
}
.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--charcoal-light);
}
.btn--secondary:hover {
  border-color: var(--gray-500);
}
.btn--ghost {
  background: transparent;
  color: var(--coral);
  padding: 14px 0;
}
.btn--ghost:hover {
  color: var(--coral-light);
}
.btn--sm {
  padding: 10px 22px;
  font-size: 14px;
}
.btn--lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn svg {
  width: 16px;
  height: 16px;
}
.btn--sm svg {
  width: 14px;
  height: 14px;
}

/* ── Icon Box ── */
.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--coral-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-box svg {
  width: 20px;
  height: 20px;
  stroke: var(--coral);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 24px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.35s ease;
}
.nav.scrolled {
  padding: 12px 24px;
  background: rgba(13, 13, 13, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--charcoal-mid);
}
.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.nav__logo svg { flex-shrink: 0; }
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-400);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.nav__link:hover,
.nav__link.active {
  color: var(--coral);
}
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}
.nav__toggle svg { width: 24px; height: 24px; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 101;
  background: rgba(13, 13, 13, 0.98);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  transition: color 0.2s;
}
.mobile-menu__link:hover,
.mobile-menu__link.active {
  color: var(--coral);
}
.mobile-menu__cta {
  margin-top: 16px;
}
.mobile-menu__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

/* nav responsive — see main @media block at bottom */

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--coral-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--charcoal-mid) 1px, transparent 1px),
    linear-gradient(90deg, var(--charcoal-mid) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.25;
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--charcoal-light);
  background: var(--charcoal-mid);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  margin-bottom: 28px;
}
.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero__title span { color: var(--coral); }
.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
  color: var(--gray-400);
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Grid Layouts ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.grid-4-sm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 64px;
  align-items: center;
}

/* ── Cards ── */
.card {
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--charcoal-mid);
  background: var(--charcoal);
}
.card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin: 20px 0 10px;
}
.card__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-500);
}

/* Agent cards */
.agent-card {
  padding: 24px 20px;
  border-radius: 10px;
  border: 1px solid var(--charcoal-mid);
  background: var(--charcoal-mid);
  transition: border-color 0.25s;
}
.agent-card:hover { border-color: var(--coral); }
.agent-card svg {
  width: 20px;
  height: 20px;
  stroke: var(--coral);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.agent-card__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin: 14px 0 6px;
}
.agent-card__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-500);
}

/* Stat cards */
.stat-card {
  padding: 28px 24px;
  border-radius: 10px;
  border: 1px solid var(--charcoal-mid);
  background: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 20px;
}
.stat-card__number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--coral);
  min-width: 80px;
}
.stat-card__label {
  font-size: 15px;
  color: var(--gray-400);
}

/* Feature detail cards (features page) */
.feature-detail {
  padding: 36px 32px;
  border-radius: 14px;
  border: 1px solid var(--charcoal-mid);
  background: var(--charcoal);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.feature-detail__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.feature-detail__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}
.feature-detail__tagline {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-400);
  margin-top: 8px;
}
.feature-detail__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-detail__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.feature-detail__item svg {
  width: 16px;
  height: 16px;
  stroke: var(--coral);
  fill: none;
  stroke-width: 2;
  margin-top: 3px;
  flex-shrink: 0;
}
.feature-detail__item span {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-400);
}

/* feature-detail responsive — see main @media block at bottom */

/* ── CTA Block ── */
.cta-block {
  text-align: center;
  padding: 80px 40px;
  border-radius: 16px;
  border: 1px solid var(--charcoal-light);
  background: linear-gradient(135deg, var(--charcoal-mid) 0%, var(--charcoal) 100%);
  position: relative;
  overflow: hidden;
}
.cta-block__glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--coral-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta-block__inner {
  position: relative;
  z-index: 1;
}

/* ── Trust Bar ── */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.5;
}
.trust-bar__item {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
}

/* ── Footer ── */
.footer {
  padding: 60px 24px 40px;
  background: var(--charcoal);
  border-top: 1px solid var(--charcoal-mid);
}
.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}
.footer__brand { max-width: 280px; }
.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer__brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}
.footer__brand-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-500);
}
.footer__columns {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.footer__col-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col-link {
  font-size: 14px;
  color: var(--gray-500);
  transition: color 0.2s;
}
.footer__col-link:hover { color: var(--gray-300); }
.footer__bottom {
  max-width: 1120px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--charcoal-mid);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--gray-700);
}

/* ── Privacy Page ── */
.privacy {
  max-width: 720px;
  margin: 0 auto;
  padding: 160px 24px 100px;
}
.privacy h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}
.privacy p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-400);
}
.privacy a { color: var(--coral); }
.privacy__section { margin-bottom: 48px; }
.privacy ul {
  list-style: disc;
  padding-left: 24px;
  margin: 12px 0;
}
.privacy li {
  color: var(--gray-400);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 4px;
}
.privacy__updated {
  color: var(--gray-500);
  margin-bottom: 48px;
}
.privacy__address {
  margin-top: 8px;
}

/* ── Features Hero ── */
.features-hero {
  padding: 160px 24px 80px;
  position: relative;
  overflow: hidden;
}
.features-hero__content {
  position: relative;
  z-index: 1;
}
.features-hero__glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--coral-glow) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Utility / Layout helpers ── */
.text-center {
  text-align: center;
}
.hero__logo {
  margin-bottom: 32px;
}
.section-header {
  max-width: 640px;
}
.section-grid-top {
  margin-top: 60px;
}
.section-grid-top--sm {
  margin-top: 56px;
}
.section-grid-top--xs {
  margin-top: 48px;
}
.cta-actions {
  margin-top: 32px;
}
.stat-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── Inline SVG icon colors ── */
.icon-coral {
  stroke: var(--coral);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Tablet & Mobile
   ═══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .grid-2 {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  /* Nav */
  .nav__links { display: none; }
  .nav__toggle { display: block; }

  /* Sections */
  .section {
    padding: 64px 20px;
  }
  .section--compact {
    padding: 32px 20px;
  }

  /* Hero */
  .hero {
    min-height: 0;
    padding: 120px 20px 64px;
  }
  .hero__glow {
    width: 400px;
    height: 400px;
  }

  /* Grids */
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .grid-4-sm {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Cards */
  .card {
    padding: 24px;
  }
  .stat-card {
    padding: 20px 16px;
    gap: 16px;
  }
  .stat-card__number {
    font-size: 26px;
    min-width: 64px;
  }

  /* Feature Detail */
  .feature-detail {
    grid-template-columns: 1fr;
  }

  /* CTA Block */
  .cta-block {
    padding: 48px 24px;
  }

  /* Trust Bar */
  .trust-bar {
    gap: 24px;
  }

  /* Footer */
  .footer {
    padding: 48px 20px 32px;
  }
  .footer__inner {
    flex-direction: column;
    gap: 32px;
  }
  .footer__brand {
    max-width: 100%;
  }
  .footer__columns {
    gap: 32px;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    margin-top: 32px;
  }

  /* Features Hero */
  .features-hero {
    padding: 120px 20px 48px;
  }

  /* Privacy */
  .privacy {
    padding: 120px 20px 64px;
  }
}

@media (max-width: 480px) {
  /* Grids go single-column on small phones */
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .grid-4-sm {
    grid-template-columns: 1fr;
  }

  /* Agent cards */
  .agent-card {
    padding: 20px 16px;
  }

  /* Buttons */
  .btn--lg {
    padding: 14px 28px;
    font-size: 15px;
  }

  /* Hero actions stack */
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }
}
