/* Atlante Assurdo v0.2 — static, no JS */
:root {
  color-scheme: dark;
  --bg: #06101d;
  --bg-2: #0a1728;
  --surface: rgba(255,255,255,.065);
  --surface-strong: rgba(255,255,255,.105);
  --fg: #f7edd9;
  --muted: #b7c1cd;
  --muted-2: #8290a2;
  --line: rgba(247,237,217,.16);
  --line-strong: rgba(247,237,217,.28);
  --accent: #ffb84d;
  --accent-2: #67d8ff;
  --green: #9de0b2;
  --red: #ff8d7a;
  --shadow: 0 28px 80px rgba(0,0,0,.38);
  --radius: 26px;
  --radius-sm: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 4%, rgba(103,216,255,.16), transparent 27rem),
    radial-gradient(circle at 86% 10%, rgba(255,184,77,.14), transparent 24rem),
    linear-gradient(180deg, #050d18 0%, var(--bg) 42%, #081120 100%);
  color: var(--fg);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(247,237,217,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,237,217,.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.72; font-size: 1.04rem; }
strong { color: var(--fg); }
.container { width: min(1120px, calc(100% - 28px)); margin: 0 auto; position: relative; z-index: 1; }
.skip-link { position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus { left: 1rem; top: 1rem; width:auto; height:auto; padding:.7rem 1rem; border-radius:999px; background:var(--fg); color:var(--bg); z-index:5; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}
.brand { display: flex; align-items: center; gap: .75rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(255,184,77,.16), rgba(103,216,255,.13));
  display: grid; place-items: center;
  box-shadow: inset 0 0 22px rgba(255,255,255,.08);
}
.brand-mark img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.nav { display:flex; align-items:center; justify-content:flex-end; gap:.55rem; flex-wrap:wrap; }
.nav a, .chip-link {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  border-radius: 999px;
  padding: .68rem .9rem;
  color: var(--fg);
  font-weight: 760;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.nav a:hover, .chip-link:hover { border-color: rgba(255,184,77,.55); color: #fff2d9; }
.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
  padding: clamp(1.2rem, 3vw, 3rem) 0 2rem;
}
.hero.compact { min-height: auto; grid-template-columns: minmax(0, 1fr); padding-top: clamp(1.4rem, 4vw, 3rem); }
.eyebrow, .pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  border: 1px solid rgba(103,216,255,.36);
  color: #aeeaff;
  background: rgba(103,216,255,.07);
  border-radius: 999px;
  padding: .38rem .7rem;
  font-weight: 820;
  font-size: .86rem;
  letter-spacing: .01em;
}
h1, h2, h3 { margin: 0; letter-spacing: -.055em; line-height: .95; }
h1 { font-size: clamp(2.75rem, 7vw, 5.1rem); max-width: 10.8ch; }
h1.wide { max-width: 13ch; }
h2 { font-size: clamp(2.05rem, 5.4vw, 4rem); max-width: 11ch; }
h3 { font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.035em; }
.accent { color: var(--accent); }
.lead { font-size: clamp(1.17rem, 2vw, 1.55rem); max-width: 720px; color: #d4dce6; line-height: 1.55; }
.stack { display:grid; gap: 1.2rem; }
.cta-row { display:flex; align-items:center; gap:.75rem; flex-wrap:wrap; margin-top: 1.45rem; }
.button {
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem;
  min-height: 52px;
  padding: .95rem 1.14rem;
  border-radius: 16px;
  font-weight: 900;
  border:1px solid var(--line);
  text-align:center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.button.primary { background: linear-gradient(135deg, #ffc566, #ffae37); color: #140c02; border-color: transparent; }
.button.secondary { background: rgba(255,255,255,.055); color: var(--fg); }
.button.ghost { background: transparent; color: var(--muted); }
.button.full { width: 100%; }
.note { font-size: .95rem; color: var(--muted-2); max-width: 720px; }
.hero-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.7rem);
  min-height: 390px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.085), rgba(255,255,255,.035)),
    radial-gradient(circle at 15% 25%, rgba(255,184,77,.18), transparent 22rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.map-lines { position: absolute; inset: 0; opacity: .75; }
.route-line {
  position:absolute; width: 118%; height: 3px; left:-9%; top:50%;
  background: linear-gradient(90deg, transparent, var(--accent-2), var(--accent), transparent);
  transform: rotate(-27deg);
  border-radius:999px;
  filter: drop-shadow(0 0 12px rgba(103,216,255,.42));
}
.route-line.two { transform: rotate(18deg); top: 38%; opacity:.55; }
.route-line.three { transform: rotate(-4deg); top: 69%; opacity:.38; }
.dot { position:absolute; width:16px; height:16px; border-radius:50%; background: var(--accent); box-shadow: 0 0 0 8px rgba(255,184,77,.15), 0 0 28px rgba(255,184,77,.45); }
.dot.a { left: 18%; top: 36%; }
.dot.b { left: 64%; top: 55%; background: var(--accent-2); box-shadow: 0 0 0 8px rgba(103,216,255,.14), 0 0 28px rgba(103,216,255,.45); }
.dot.c { left: 47%; top: 73%; }
.card-overlay { position:absolute; inset:auto 1rem 1rem 1rem; display:grid; gap:.8rem; }
.stat-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: .95rem 1rem;
  background: rgba(6,16,29,.76);
  backdrop-filter: blur(10px);
}
.stat-card strong { display:block; font-size: 1.2rem; }
.stat-card span { display:block; color: var(--muted); margin-top:.18rem; line-height:1.45; }
.section { padding: clamp(2.6rem, 7vw, 5.8rem) 0; border-top: 1px solid rgba(247,237,217,.07); }
.section-head { display:flex; justify-content:space-between; align-items:end; gap:1.5rem; margin-bottom: 1.45rem; }
.section-head p { max-width: 620px; margin:0; }
.grid { display:grid; gap: 1rem; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .feature, .resource, .callout, .table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.052);
  padding: 1.15rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.feature strong, .resource strong { display:block; margin-bottom:.45rem; font-size:1.08rem; }
.feature p, .resource p, .card p { margin:.35rem 0 0; font-size:.98rem; }
.freebie-box {
  display:grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items:center;
  border: 1px solid rgba(255,184,77,.28);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 3vw, 1.8rem);
  background: linear-gradient(135deg, rgba(255,184,77,.16), rgba(103,216,255,.08));
  box-shadow: var(--shadow);
}
.freebie-box strong { display:block; font-size: clamp(1.5rem, 3.2vw, 2.35rem); letter-spacing:-.04em; line-height:1.05; margin:.65rem 0 .35rem; }
.muted { color: var(--muted); }
.link-list { display:grid; gap:.8rem; }
.link-card {
  display:flex; justify-content:space-between; align-items:center; gap:1rem;
  border:1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255,255,255,.052);
}
.link-card span { color: var(--muted); display:block; margin-top:.2rem; line-height:1.35; }
.kpi { display:grid; gap:.25rem; }
.kpi strong { font-size: clamp(2rem, 6vw, 3.8rem); line-height:1; letter-spacing:-.055em; color: var(--accent); }
.kpi span { color: var(--muted); line-height:1.35; }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse: collapse; min-width: 680px; }
th, td { text-align:left; padding:.85rem .75rem; border-bottom:1px solid var(--line); vertical-align:top; color:var(--muted); line-height:1.45; }
th { color:var(--fg); font-size:.86rem; text-transform:uppercase; letter-spacing:.08em; }
footer { display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; padding: 2rem 0 2.6rem; color:var(--muted-2); border-top:1px solid rgba(247,237,217,.08); }
footer a { color: var(--muted); }
.badge-row { display:flex; gap:.5rem; flex-wrap:wrap; }
.badge { border:1px solid var(--line); border-radius:999px; padding:.38rem .64rem; color:var(--muted); background:rgba(255,255,255,.035); font-size:.9rem; }
.warning { border-color: rgba(255,184,77,.38); background: rgba(255,184,77,.08); }
.clean-list { margin:0; padding-left:1.1rem; color: var(--muted); line-height:1.7; }
.clean-list li + li { margin-top:.25rem; }
@media (max-width: 860px) {
  .site-header { align-items:flex-start; flex-direction:column; }
  .nav { justify-content:flex-start; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 1.5rem; }
  .hero-card { min-height: 360px; }
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  .section-head { display:grid; }
  .freebie-box { grid-template-columns: 1fr; }
  .freebie-box .button { width:100%; }
}
@media (max-width: 520px) {
  .container { width: min(100% - 28px, 1120px); }
  .brand { font-size:.92rem; letter-spacing:.08em; }
  .brand-mark { width:38px; height:38px; }
  .nav a { padding:.62rem .78rem; }
  h1 { font-size: clamp(2.55rem, 13vw, 3.75rem); }
  h2 { font-size: clamp(1.95rem, 10vw, 2.75rem); }
  .button { width:100%; }
  .cta-row { align-items:stretch; }
  .link-card { align-items:flex-start; flex-direction:column; }
}


/* Newsletter / EmailOctopus integration */
.newsletter-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  border: 1px solid rgba(255,184,77,.28);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 3vw, 1.8rem);
  background: linear-gradient(135deg, rgba(103,216,255,.10), rgba(255,184,77,.12));
  box-shadow: var(--shadow);
}
.newsletter-copy h2 { max-width: 12ch; margin-top: .7rem; }
.newsletter-embed { border:1px solid var(--line); border-radius:22px; padding:1rem; background: rgba(6,16,29,.62); }
.newsletter-embed [data-form="5e4baa16-b5ce-11f1-85c5-b7bf468eafae"] { max-width: 100% !important; width: 100% !important; color: var(--fg) !important; font-family: inherit !important; }
.newsletter-embed [data-form="5e4baa16-b5ce-11f1-85c5-b7bf468eafae"] .emailoctopus-form { margin: 0 !important; font-family: inherit !important; }
.newsletter-embed [data-form="5e4baa16-b5ce-11f1-85c5-b7bf468eafae"] input[type=email] {
  width:100% !important; min-height:54px !important; border-radius:16px !important;
  border:1px solid var(--line-strong) !important; background: rgba(255,255,255,.08) !important;
  color: var(--fg) !important; padding: .95rem 1rem !important; font-size:1rem !important;
}
.newsletter-embed [data-form="5e4baa16-b5ce-11f1-85c5-b7bf468eafae"] input[type=email]::placeholder { color: var(--muted) !important; }
.newsletter-embed [data-form="5e4baa16-b5ce-11f1-85c5-b7bf468eafae"] input[type=submit] {
  width:100% !important; min-height:54px !important; border-radius:16px !important; border:0 !important;
  background: linear-gradient(135deg, #ffc566, #ffae37) !important; color:#140c02 !important;
  font-family: inherit !important; font-size:1rem !important; font-weight:900 !important; cursor:pointer !important;
}
.newsletter-embed [data-form="5e4baa16-b5ce-11f1-85c5-b7bf468eafae"] .emailoctopus-error-message { color: var(--red) !important; font-family: inherit !important; }
.newsletter-embed [data-form="5e4baa16-b5ce-11f1-85c5-b7bf468eafae"] .emailoctopus-success-message { color: var(--green) !important; font-family: inherit !important; }
.newsletter-embed [data-form="5e4baa16-b5ce-11f1-85c5-b7bf468eafae"] .mastfoot p { color: var(--muted-2) !important; font-size:.78rem !important; }
.newsletter-embed [data-form="5e4baa16-b5ce-11f1-85c5-b7bf468eafae"] .mastfoot a { color: var(--muted) !important; text-decoration: underline !important; }
.consent-copy { font-size:.83rem; color: var(--muted-2); line-height:1.55; margin:.8rem 0 0; }
.consent-copy a { color: var(--accent-2); text-decoration: underline; }
@media (max-width: 860px) { .newsletter-card { grid-template-columns: 1fr; } }


/* Articles */
.article-hero h1 { max-width: 16ch; }
.article-section { padding-top: clamp(1.6rem, 4vw, 3rem); }
.article-body {
  width: min(780px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.045);
  padding: clamp(1.1rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.article-body h2 { max-width: 100%; margin: 2.25rem 0 .8rem; font-size: clamp(1.65rem, 3.5vw, 2.55rem); line-height: 1.05; }
.article-body h3 { margin: 1.55rem 0 .55rem; font-size: clamp(1.18rem, 2.2vw, 1.55rem); line-height: 1.12; }
.article-body p { margin: .85rem 0; }
.article-body ul, .article-body ol { color: var(--muted); line-height: 1.7; padding-left: 1.3rem; }
.article-body li + li { margin-top: .28rem; }
.article-body blockquote { margin: 1rem 0; padding: .1rem 1rem; border-left: 3px solid var(--accent); background: rgba(255,184,77,.07); border-radius: 0 14px 14px 0; }
.article-body code { color: var(--accent-2); background: rgba(103,216,255,.08); border: 1px solid rgba(103,216,255,.18); border-radius: 8px; padding: .1rem .35rem; }
.article-body a { color: var(--accent-2); text-decoration: underline; text-underline-offset: .18em; }
.article-cta { margin-top: 2rem; }
.source-box { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.article-card strong { max-width: 760px; }
@media (max-width: 520px) { .article-body { padding: 1rem; border-radius: 20px; } }
