/* =============================================
   ATLAS.COM — STYLES
   ============================================= */

:root {
  --bg: #060c14;
  --surface: #0d1a2a;
  --surface2: #112236;
  --accent: #00c6ff;
  --accent2: #0072ff;
  --text: #e8f0fe;
  --muted: #7a94b0;
  --border: rgba(0, 198, 255, 0.15);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(6, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: #060c14;
  padding: .5rem 1.3rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: opacity .2s;
}
.nav-cta:hover { opacity: .85; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8rem 4rem 4rem;
  position: relative; overflow: hidden; gap: 3rem;
}

.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0,114,255,.12) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 20% 70%, rgba(0,198,255,.06) 0%, transparent 60%);
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,198,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,198,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Animated clouds */
.cloud {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,198,255,.07) 0%, transparent 70%);
  animation: drift 20s ease-in-out infinite;
}
.c1 { width: 600px; height: 300px; top: 10%; left: 30%; animation-duration: 22s; }
.c2 { width: 400px; height: 200px; top: 50%; left: 50%; animation-duration: 18s; animation-delay: -8s; }
.c3 { width: 300px; height: 150px; top: 25%; left: 60%; animation-duration: 25s; animation-delay: -5s; }

@keyframes drift {
  0%, 100% { transform: translate(0,0); }
  33% { transform: translate(30px, -20px); }
  66% { transform: translate(-20px, 15px); }
}

.hero-content { position: relative; flex: 1; max-width: 580px; animation: fadeUp .8s ease both; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem; letter-spacing: 3px;
  color: var(--accent); margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: .95;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.hero-sub { color: var(--muted); font-size: 1.1rem; margin-bottom: 2.5rem; }

.hero-actions { display: flex; gap: 1rem; align-items: center; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block; text-decoration: none;
  padding: .75rem 1.8rem; border-radius: 8px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: none; transition: all .2s; font-family: var(--font-body);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #060c14;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,198,255,.3); }
.btn-ghost { color: var(--accent); background: transparent; }
.btn-ghost:hover { color: #fff; }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: rgba(0,198,255,.1); }

/* ---- HERO WIDGET ---- */
.hero-widget {
  position: relative; flex-shrink: 0;
  background: rgba(13, 26, 42, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 320px;
  backdrop-filter: blur(16px);
  box-shadow: 0 32px 64px rgba(0,0,0,.4);
  animation: fadeUp .8s .2s ease both;
}

.widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.widget-label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: 2px; color: var(--muted); }
.widget-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.4)} 50%{box-shadow:0 0 0 6px rgba(34,197,94,0)} }

.widget-location { color: var(--muted); font-size: .85rem; margin-bottom: .25rem; }
.widget-temp { font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--text); }
.widget-temp span { font-size: 2rem; color: var(--muted); }
.widget-desc { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }

.widget-row { display: flex; gap: .75rem; margin-bottom: 1.5rem; }
.widget-stat { flex: 1; background: var(--surface2); border-radius: 8px; padding: .6rem .5rem; text-align: center; }
.widget-stat span { display: block; font-size: .6rem; color: var(--muted); letter-spacing: 1px; font-family: var(--font-mono); margin-bottom: .2rem; }
.widget-stat strong { font-size: .9rem; color: var(--accent); }

.widget-week { display: flex; gap: .4rem; }
.day-pill {
  flex: 1; background: var(--surface2); border-radius: 8px;
  padding: .5rem .2rem; text-align: center;
  font-size: .65rem; color: var(--muted); line-height: 1.6;
  transition: all .2s;
}
.day-pill.active { background: rgba(0,198,255,.15); color: var(--accent); border: 1px solid var(--border); }

/* ---- STATS BAND ---- */
.stats-band {
  display: flex; justify-content: center; align-items: center; gap: 3rem;
  padding: 2rem 4rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-item strong { display: block; font-family: var(--font-display); font-size: 2.2rem; color: var(--accent); line-height: 1; }
.stat-item span { font-size: .8rem; color: var(--muted); letter-spacing: 1px; }
.divider { width: 1px; height: 40px; background: var(--border); }

/* ---- SECTIONS ---- */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-eyebrow { font-family: var(--font-mono); font-size: .75rem; letter-spacing: 3px; color: var(--accent); margin-bottom: .75rem; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.05; letter-spacing: 1px; }
.section-header h2 em { font-style: normal; color: var(--accent); }

/* ---- FEATURES ---- */
.features { padding: 6rem 4rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all .3s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(0,198,255,.4); box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .6rem; }
.feature-card p { color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* ---- PLANS ---- */
.plans { padding: 6rem 4rem; background: var(--surface); }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }

.plan-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  position: relative; transition: all .3s;
}
.plan-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(0,198,255,.12);
}
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #060c14;
  font-size: .65rem; font-weight: 700; letter-spacing: 2px;
  padding: .3rem .8rem; border-radius: 20px;
}
.plan-name { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: 1px; margin-bottom: .5rem; }
.plan-price { font-family: var(--font-display); font-size: 3.5rem; color: var(--accent); line-height: 1; margin-bottom: .75rem; }
.plan-price span { font-size: 1rem; color: var(--muted); font-family: var(--font-body); }
.plan-desc { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }

.plan-features { list-style: none; margin-bottom: 2rem; }
.plan-features li { padding: .45rem 0; font-size: .9rem; color: var(--text); }
.plan-features li.off { color: var(--muted); opacity: .5; }

/* ---- API PREVIEW ---- */
.api-preview {
  padding: 6rem 4rem;
  display: flex; gap: 5rem; align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.api-text { flex: 1; }
.api-text h2 { font-family: var(--font-display); font-size: 3rem; line-height: 1.05; margin-bottom: 1rem; }
.api-text p { color: var(--muted); max-width: 380px; }

.api-code {
  flex: 1.2;
  background: #020810;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.code-header {
  display: flex; align-items: center; gap: .4rem;
  padding: .75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.code-title { margin-left: .5rem; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }

pre { padding: 1.5rem; overflow-x: auto; }
code { font-family: var(--font-mono); font-size: .82rem; line-height: 1.8; }
.kw { color: #7dd3fc; }
.str { color: #86efac; }
.comment { color: #4b6178; }

/* ---- CONTACT ---- */
.contact { padding: 6rem 4rem; max-width: 700px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .85rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border .2s;
  outline: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form select option { background: var(--surface); }
.form-feedback { text-align: center; font-size: .9rem; min-height: 1.4rem; }

/* ---- FOOTER ---- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem;
}
.footer-top { display: flex; justify-content: space-between; gap: 4rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: 1rem; line-height: 1.7; }
.footer-links { display: flex; gap: 4rem; }
.footer-links div { display: flex; flex-direction: column; gap: .6rem; }
.footer-links strong { color: var(--text); font-size: .85rem; margin-bottom: .25rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between;
  padding-top: 2rem; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .8rem;
}

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 2.5rem;
  width: 420px; max-width: 90vw;
  position: relative; animation: fadeUp .3s ease;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: var(--muted);
  font-size: 1.1rem; cursor: pointer;
}
.modal h3 { font-family: var(--font-display); font-size: 2rem; margin-bottom: .5rem; }
.modal p { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.modal input {
  width: 100%; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 8px;
  padding: .8rem 1rem; color: var(--text); font-family: var(--font-body);
  font-size: .9rem; margin-bottom: .75rem; outline: none;
}
.modal input:focus { border-color: var(--accent); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero { flex-direction: column; padding: 7rem 2rem 4rem; text-align: center; }
  .hero-actions { justify-content: center; }
  .features-grid, .plans-grid { grid-template-columns: 1fr 1fr; }
  .api-preview { flex-direction: column; padding: 4rem 2rem; }
  .stats-band { flex-wrap: wrap; gap: 2rem; }
}

@media (max-width: 640px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hero { padding: 6rem 1.5rem 3rem; }
  .features { padding: 4rem 1.5rem; }
  .features-grid, .plans-grid { grid-template-columns: 1fr; }
  .plans { padding: 4rem 1.5rem; }
  .contact { padding: 4rem 1.5rem; }
  .footer { padding: 3rem 1.5rem; }
  .footer-top { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-widget { width: 100%; }
  .regime-dashboard { grid-template-columns: 1fr; }
  .impact-row { grid-template-columns: 1fr 1fr; }
  .nao-table { font-size: .78rem; }
}

/* =============================================
   CLIMATE REGIME DASHBOARD
   ============================================= */

.regime-section {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, var(--bg) 0%, #081525 50%, var(--bg) 100%);
}

.regime-section-sub {
  color: var(--muted);
  font-size: .92rem;
  margin-top: .75rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.regime-dashboard {
  max-width: 1100px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

/* ---------- regime cards ---------- */
.regime-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.regime-card-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
}

.regime-card-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
  flex: 1;
}

.regime-date {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--muted);
}

.regime-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}

.regime-name {
  font-family: var(--font-display);
  font-size: 2.6rem;
  letter-spacing: .04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.regime-similarity-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.regime-similarity-bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(0,198,255,.1);
  border-radius: 3px;
  overflow: hidden;
}

.regime-similarity-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  border-radius: 3px;
  transition: width .8s ease;
}

.regime-sim-pct {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--accent);
  white-space: nowrap;
}

.regime-narrative {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.regime-prob-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: .6rem;
}

.regime-prob-bars {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.regime-prob-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
}

.regime-prob-name {
  width: 130px;
  color: var(--text);
  font-size: .75rem;
}

.regime-prob-bar-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  overflow: hidden;
}

.regime-prob-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .8s ease;
}

.regime-prob-val {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--muted);
  width: 36px;
  text-align: right;
}

/* ---------- NAO table ---------- */
.nao-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}

.nao-table th {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: center;
  padding: .4rem .5rem;
  border-bottom: 1px solid var(--border);
}

.nao-table th:first-child { text-align: left; }

.nao-table td {
  padding: .55rem .5rem;
  text-align: center;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.nao-table td:first-child {
  text-align: left;
  color: var(--muted);
  font-size: .78rem;
}

.nao-skill-row td {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
}

.nao-note {
  margin-top: 1rem;
  font-size: .72rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ---------- impact row ---------- */
.impact-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.impact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: border-color .2s;
}

.impact-card:hover { border-color: rgba(0,198,255,.35); }

.impact-icon {
  font-size: 1.4rem;
  margin-bottom: .5rem;
}

.impact-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: .04em;
  color: var(--accent);
  margin-bottom: .25rem;
}

.impact-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
}
