/* ATLAS AGENCY — ICE / SNOW / MOUNTAIN — light theme
 * Glacier-clean, sky-bright, mountain-crisp
 */
:root {
  /* Brand primaries */
  --atlas-blue: #0EA5FF;
  --atlas-blue-bright: #38BDF8;
  --atlas-blue-deep: #0369A1;
  --atlas-cyan: #5EE0FF;
  --atlas-ink: #0A1628;
  --atlas-noir: #0A1628;
  --atlas-paper: #FBFDFF;

  /* Surfaces — light */
  --surface-0: #FBFDFF;
  --surface-1: #F1F6FC;
  --surface-2: #E6F0FA;
  --surface-line: rgba(10,22,40,0.08);
  --surface-line-bright: rgba(14,165,255,0.20);

  /* Text — dark on light */
  --ink-100: #0A1628;
  --ink-80: rgba(10,22,40,0.78);
  --ink-60: rgba(10,22,40,0.55);
  --ink-40: rgba(10,22,40,0.32);

  /* Accents */
  --accent-glow: 0 0 60px rgba(14,165,255,0.25);
  --accent-glow-cyan: 0 0 80px rgba(94,224,255,0.3);

  /* Type */
  --font-display: "League Spartan", "Inter Tight", sans-serif;
  --font-body: "Inter", "Montserrat", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--surface-0);
  color: var(--ink-80);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Mountain/ice/snow background — clean light field */
.atlas-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F6FC 60%, #E6F0FA 100%);
}
.atlas-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,22,40,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,22,40,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
}
/* Mountain silhouettes at the bottom */
.atlas-bg::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 0; height: 28vh;
  background:
    linear-gradient(135deg, transparent 70%, #C5D8EB 70.3%, #C5D8EB 80%, transparent 80.3%),
    linear-gradient(225deg, transparent 75%, #B6CCE2 75.3%, #B6CCE2 85%, transparent 85.3%),
    linear-gradient(135deg, transparent 80%, #A8BACE 80.3%, #A8BACE 90%, transparent 90.3%);
  opacity: 0.5;
}

/* Page wrapper */
.atlas-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.atlas-main {
  flex: 1;
}

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ------- Headings ------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--atlas-cyan);
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--atlas-cyan);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-100);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 7vw, 104px); line-height: 0.95; font-weight: 600; }
h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-80);
  line-height: 1.55;
  max-width: 56ch;
}

/* ------- Buttons ------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--atlas-blue);
  color: white;
  box-shadow: 0 10px 40px -10px rgba(0,102,204,0.6), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover {
  background: var(--atlas-blue-bright);
  transform: translateY(-1px);
  box-shadow: 0 16px 50px -10px rgba(0,102,204,0.8), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-ghost {
  background: rgba(10,22,40,0.04);
  color: var(--ink-100);
  border-color: rgba(10,22,40,0.14);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(10,22,40,0.06);
  border-color: var(--atlas-blue);
}
.btn-arrow svg { transition: transform 0.25s var(--ease-out); }
.btn-arrow:hover svg { transform: translateX(3px); }

/* ------- Cards ------- */
.card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--surface-line);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s var(--ease-out);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(10,22,40,0.04);
}
.card:hover {
  border-color: var(--atlas-blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(14,165,255,0.18);
}

/* Tag chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(14,165,255,0.10);
  border: 1px solid rgba(14,165,255,0.30);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--atlas-blue-deep);
}

/* Section */
section.atlas-section {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
}

/* Divider */
.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--surface-line) 20%, var(--surface-line) 80%, transparent);
  margin: 0;
  border: 0;
}

/* Animation utils */
@keyframes float-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: float-up 0.8s var(--ease-out) both; }

@keyframes pulse-cyan {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,225,255,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0,225,255,0); }
}
.pulse { animation: pulse-cyan 2.4s ease-in-out infinite; }

/* Selection */
::selection { background: var(--atlas-cyan); color: var(--atlas-noir); }

/* Scrollbar (thin, dark) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface-0); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,225,255,0.3); }


/* ============================================
   MOBILE-FIRST RESPONSIVE OVERRIDES
   Targets Atlas Agency design specifically
   ============================================ */

/* Tablet — start collapsing */
@media (max-width: 1024px) {
  .hero h1 { font-size: clamp(48px, 11vw, 96px) !important; }
  .hero__sub { grid-template-columns: 1fr !important; gap: 24px !important; }
  .svc-grid { gap: 12px !important; }
  .svc-card { grid-column: span 6 !important; min-height: 220px !important; }
  .svc-card.featured { grid-column: span 12 !important; min-height: 280px !important; }
  .ai-demo { grid-template-columns: 1fr !important; gap: 32px !important; }
  .cases-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .process-track { grid-template-columns: repeat(2, 1fr) !important; }
  .process-step:not(:last-child)::after { display: none !important; }
  .process-head { grid-template-columns: 1fr !important; gap: 24px !important; }
  .cta-block { grid-template-columns: 1fr !important; gap: 32px !important; }
  .contact-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .case-deep__head { grid-template-columns: 1fr !important; gap: 16px !important; }
  .case-deep__head .case-deep__meta { text-align: left !important; }
  .case-deep__metrics { grid-template-columns: repeat(2, 1fr) !important; }
  .case-deep__body { grid-template-columns: 1fr !important; gap: 32px !important; }
}

/* Mobile */
@media (max-width: 720px) {
  :root { --container: 100%; --gutter: 16px; }

  /* Hero */
  .hero { padding: 56px 0 60px !important; }
  .hero h1 { font-size: clamp(40px, 12vw, 72px) !important; line-height: 0.95 !important; }
  .hero__chip-row { margin-bottom: 24px !important; gap: 8px !important; }
  .hero__chip-row .chip { font-size: 10px !important; padding: 4px 8px !important; }
  .hero__sub { margin-top: 24px !important; }
  .hero__sub .actions { flex-direction: column !important; }
  .hero__sub .actions .btn { width: 100% !important; justify-content: center !important; }
  .hero__ribbon { grid-template-columns: 1fr 1fr !important; margin-top: 48px !important; }
  .hero__ribbon > div { padding: 18px !important; border-right: 1px solid var(--surface-line) !important; }
  .hero__ribbon > div:nth-child(2n) { border-right: none !important; }
  .hero__ribbon > div:nth-child(1), .hero__ribbon > div:nth-child(2) {
    border-bottom: 1px solid var(--surface-line) !important;
  }
  .hero__ribbon .num { font-size: 32px !important; }
  .hero__ribbon .lbl { font-size: 10px !important; margin-top: 6px !important; }
  .hero__mountains { height: 50% !important; opacity: 0.6 !important; }

  /* Logo bar */
  .logo-bar { padding: 40px 0 !important; }
  .logo-bar__inner { grid-template-columns: 1fr !important; gap: 18px !important; }
  .logo-bar__list { gap: 12px 20px !important; justify-content: flex-start !important; }
  .logo-bar__list span { font-size: 14px !important; }

  /* Services */
  .svc-card { grid-column: span 12 !important; padding: 24px !important; }
  .svc-card h3 { font-size: 22px !important; margin: 16px 0 8px !important; }
  .svc-grid { gap: 8px !important; margin-top: 32px !important; }

  /* Process */
  .process-track { grid-template-columns: 1fr !important; }
  .process-step { padding: 20px !important; min-height: auto !important; }
  .process-step__title { font-size: 22px !important; margin-top: 12px !important; }

  /* AI demo */
  .ai-terminal { min-height: 360px !important; }
  .ai-terminal__body { padding: 16px !important; }
  .ai-suggestions { gap: 6px !important; }
  .ai-suggestions button { font-size: 10px !important; padding: 4px 8px !important; }

  /* Cases */
  .case-card { min-height: 320px !important; padding: 24px !important; }
  .case-card__bot h3 { font-size: 26px !important; }
  .case-deep { padding: 28px 20px !important; }
  .case-deep__metrics { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .case-deep__metric { padding: 16px !important; }
  .case-deep__quote { padding: 20px !important; }
  .case-deep__quote p { font-size: 18px !important; }

  /* Manifest */
  .manifest__quote { font-size: clamp(22px, 6vw, 32px) !important; }

  /* CTA */
  .cta-block { padding: 40px 24px !important; gap: 24px !important; }
  .cta-block h2 { font-size: clamp(32px, 8vw, 48px) !important; }
  .cta-side { padding: 20px !important; }

  /* Contact form */
  .contact-form { padding: 24px !important; }
  .contact-form > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .pkg-grid { grid-template-columns: 1fr !important; }
  .contact-info { padding: 0 !important; }

  /* Sections */
  section.atlas-section { padding: 56px 0 !important; }

  /* Header chrome */
  .atlas-header__inner { height: 60px !important; gap: 16px !important; }
  .atlas-logo { font-size: 14px !important; }
  .atlas-logo__sub { font-size: 9px !important; }
  .atlas-header__cta .btn { padding: 10px 14px !important; font-size: 12px !important; }
  .atlas-header__cta .btn svg { display: none !important; }

  /* Footer */
  .atlas-footer__top { grid-template-columns: 1fr !important; gap: 32px !important; padding: 48px 0 32px !important; }
  .atlas-footer__brand h3 { font-size: clamp(32px, 8vw, 56px) !important; margin: 16px 0 12px !important; }
  .atlas-footer__bottom { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }
  .atlas-footer__bottom .meta { flex-wrap: wrap !important; gap: 16px !important; }

  /* Page-specific */
  .page-hero__grid, .case-deep__head, .case-deep__body, .ai-demo, .ai-demo__copy ul,
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* h1 on inner pages */
  .page-hero h1, .cases-hero h1, .contact-hero h1 {
    font-size: clamp(40px, 11vw, 72px) !important;
  }

  /* Responsive 404 */
  .code-404 { font-size: clamp(96px, 28vw, 160px) !important; }
  .wrap-404 h1 { font-size: clamp(28px, 7vw, 48px) !important; }
}

/* Small phones */
@media (max-width: 380px) {
  .hero h1 { font-size: 38px !important; }
  .hero__ribbon { grid-template-columns: 1fr !important; }
  .hero__ribbon > div { border-right: none !important; border-bottom: 1px solid var(--surface-line) !important; }
  .hero__ribbon > div:last-child { border-bottom: none !important; }
  .atlas-header__cta .status-dot { display: none !important; }
  .atlas-logo span:not(.atlas-logo__mark) { display: none; }
  .atlas-logo__mark + span { display: inline !important; }
}

/* Accessibility: respect motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* Touch targets ≥44px on mobile */
@media (max-width: 880px) and (pointer: coarse) {
  .btn { min-height: 44px; }
  input, textarea, select { min-height: 44px; }
  .atlas-nav a, .atlas-drawer nav a { min-height: 44px; display: flex; align-items: center; }
}

/* Better scrollbar on mobile */
@media (max-width: 720px) {
  ::-webkit-scrollbar { width: 4px; }
}
