/* ============================================================
   EARNED ATLAS — Creator Marketing Studio
   Design system + page styles  (Cobalt / Porcelain edition)
   ============================================================ */

:root {
  /* Color — cool porcelain canvas, deep navy darks, cobalt accent */
  --bg:        #edf0f5;   /* cool porcelain paper */
  --bg-card:   #f9fbfd;   /* lifted card surface */
  --ink:       #11151f;   /* cool near-black */
  --ink-2:     #474f60;   /* muted body text */
  --ink-3:     #828b9d;   /* faint meta text */
  --navy:      #0e1730;   /* deep navy for dark sections */

  --accent:    #2450e6;   /* cobalt */
  --accent-2:  color-mix(in srgb, var(--accent) 82%, #000);   /* hover */

  --line:      rgba(17, 21, 31, 0.13);
  --line-soft: rgba(17, 21, 31, 0.07);
  --on-dark:   #e7ecf6;   /* text on navy */
  --on-dark-2: #97a1ba;

  /* Type — Newsreader serif display + Geist body */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:    "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1240px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 5px;
  --btn-radius: 6px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: .65rem 1.1rem; border-radius: 0 0 8px 8px;
  font-size: .85rem; font-weight: 600; z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---------- Shared layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--section-y); }
.section.bordered { border-top: 1px solid var(--line-soft); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}

/* Headings — refined serif, light tracking */
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.015em; line-height: 1.06; margin: 0; }
.serif-it { color: var(--accent); font-style: italic; font-weight: inherit; }

h2.display {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  text-wrap: balance;
  max-width: 16ch;
  margin-top: 1.2rem;
}

p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.24rem); color: var(--ink-2); line-height: 1.55; max-width: 48ch; }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--accent);
  --fg-btn: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 0.9em 1.4em;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  background: var(--bg-btn);
  color: var(--fg-btn);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), background .2s, box-shadow .25s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--accent) 80%, #000); }
.btn:active { transform: translateY(0); }
.btn .arw { transition: transform .25s; }
.btn:hover .arw { transform: translate(3px,-3px); }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }

.btn.on-dark.ghost { color: var(--on-dark); border-color: rgba(231,236,246,.28); }
.btn.on-dark.ghost:hover { background: var(--on-dark); color: var(--navy); border-color: var(--on-dark); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s, box-shadow .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--sans); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em; }
.brand .mark { width: 21px; height: 21px; position: relative; flex: none; }
.brand .mark::before, .brand .mark::after { content: ""; position: absolute; }
.brand .mark::before { inset: 0; background: var(--accent); border-radius: 3px; }
.brand .mark::after { inset: 0; background: var(--ink); border-radius: 3px; transform: scale(.46); }

.nav-links { display: flex; gap: clamp(1rem, 2.4vw, 2rem); }
.nav-links a {
  font-size: .95rem; font-weight: 500; color: var(--ink-2);
  position: relative; padding-block: 4px;
  transition: color .2s;
}
.nav-links a .ix { font-size: .68rem; font-weight: 500; color: var(--ink-3); margin-right: .5em; font-variant-numeric: tabular-nums; }
.nav-links a:hover .ix { color: var(--accent); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width .25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 1rem; }
.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: transparent; border-radius: 8px; cursor: pointer;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.burger span { width: 18px; height: 1.6px; background: var(--ink); transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: .25rem;
  padding: var(--pad);
  transform: translateY(-100%); transition: transform .5s cubic-bezier(.7,0,.2,1);
  visibility: hidden;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu a {
  font-family: var(--display); font-size: clamp(2rem, 9vw, 3rem); font-weight: 500; letter-spacing: -0.02em;
  padding-block: .35rem; border-bottom: 1px solid var(--line-soft); color: var(--ink);
}
.mobile-menu a:last-of-type { border: none; }
.mobile-menu .btn { margin-top: 1.5rem; align-self: flex-start; font-family: var(--sans); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(7rem, 14vw, 10rem); padding-bottom: clamp(3rem, 7vw, 6rem); position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 5.2rem);
  line-height: 1.02; letter-spacing: -0.02em; font-weight: 500;
  text-wrap: balance; margin-top: 1.6rem;
}
.hero .lead { margin-top: 1.6rem; }
.hero-cta { display: flex; gap: .9rem; margin-top: 2.2rem; flex-wrap: wrap; }

/* Hero editorial card (no imagery) */
.hero-card { position: relative; }
.accent-block {
  position: absolute; z-index: 0; inset: 0; border-radius: var(--radius);
  background: var(--accent); transform: translate(18px, 18px);
}
.hc-inner {
  position: relative; z-index: 1;
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: clamp(1.5rem, 2.6vw, 2.2rem);
  box-shadow: 0 40px 80px -50px rgba(14,23,48,.55);
}
.hc-kicker {
  font-family: var(--sans); font-weight: 600; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.hc-line {
  font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.2; letter-spacing: -.02em; color: var(--ink);
  margin-top: 1rem; max-width: 24ch;
}
.hc-steps { list-style: none; margin: 1.7rem 0 0; padding: 0; display: grid; gap: 0; }
.hc-steps li {
  display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: baseline;
  padding: .95rem 0; border-top: 1px solid var(--line-soft);
}
.hc-steps .n { font-family: var(--sans); font-weight: 600; font-size: .78rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.hc-steps .t { font-weight: 600; font-size: 1rem; color: var(--ink); }
.hc-steps .d { grid-column: 2; font-size: .88rem; color: var(--ink-2); margin-top: .15rem; }
.hc-foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft);
  font-size: .76rem; color: var(--ink-3); letter-spacing: .01em;
}

/* ============================================================
   SECTION HEAD + STEPS
   ============================================================ */
.section-head { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: end; margin-bottom: clamp(2.5rem,5vw,4rem); }
.section-head .sub { color: var(--ink-2); max-width: 34ch; font-size: 1.02rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.4rem); list-style: none; margin: 0; padding: 0; }
.step { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.step .idx { font-family: var(--sans); font-weight: 600; font-size: .85rem; color: var(--accent); letter-spacing: .08em; }
.step h3 { font-size: clamp(1.4rem,2.2vw,1.85rem); margin-top: 1.4rem; font-weight: 500; }
.step p { margin-top: .9rem; color: var(--ink-2); font-size: 1rem; }

/* ============================================================
   SPLIT — BRANDS / CREATORS
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem,2.5vw,1.75rem); }
.panel {
  border-radius: var(--radius); padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex; flex-direction: column; min-height: 420px;
}
.panel.light { background: var(--bg-card); border: 1px solid var(--line-soft); }
.panel.dark { background: var(--navy); color: var(--on-dark); }
.panel .ptag { font-family: var(--sans); font-weight: 600; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; }
.panel.light .ptag { color: var(--accent); }
.panel.dark .ptag { color: color-mix(in srgb, var(--accent) 70%, #fff); }
.panel h3 { font-size: clamp(1.7rem,2.8vw,2.4rem); margin-top: 1.1rem; font-weight: 500; }
.panel .pd { margin-top: 1rem; font-size: 1.02rem; }
.panel.light .pd { color: var(--ink-2); }
.panel.dark .pd { color: var(--on-dark-2); }
.panel ul { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .85rem; }
.panel li { display: flex; gap: .7rem; align-items: flex-start; font-size: .98rem; }
.panel li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); margin-top: .5em; }
.panel.dark li::before { background: color-mix(in srgb, var(--accent) 70%, #fff); }
.panel.dark li { color: var(--on-dark); }
.panel .pcta { margin-top: auto; padding-top: 1.8rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { display: grid; gap: 0; }
.services .srow {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: baseline;
  padding: 1.25rem 0; border-bottom: 1px solid var(--line-soft);
  transition: padding-left .25s ease;
}
.services .srow:first-child { border-top: 1px solid var(--line-soft); }
.services .srow:hover { padding-left: .5rem; }
.services .sn { font-family: var(--sans); font-weight: 600; font-size: .8rem; color: var(--accent); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.services .st { font-weight: 600; font-size: 1.08rem; }
.services .sx { color: var(--ink-2); font-size: .92rem; grid-column: 2; margin-top: .15rem; }

/* ============================================================
   CONTACT / CTA
   ============================================================ */
.contact { background: var(--navy); color: var(--on-dark); border-radius: clamp(10px, 1.4vw, 16px); overflow: hidden; }
.contact .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem,5vw,5rem); padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.5rem,5vw,5rem); }
.on-dark-eyebrow { color: var(--on-dark-2); }
.on-dark-eyebrow::before { background: color-mix(in srgb, var(--accent) 72%, #fff); }
.contact-title { font-size: clamp(2.2rem, 4.4vw, 3.5rem); color: var(--on-dark); margin-top: 1.2rem; }
.contact-title .serif-it { color: color-mix(in srgb, var(--accent) 72%, #fff); }
.contact .cl { color: var(--on-dark-2); margin-top: 1.4rem; max-width: 38ch; font-size: 1.08rem; }
.contact-meta { margin-top: 2.4rem; display: grid; gap: 1rem; }
.contact-meta .cm { display: flex; flex-direction: column; gap: .2rem; }
.contact-meta .cm .k { font-family: var(--sans); font-weight: 600; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); }
.contact-meta .cm .v { font-size: 1.05rem; color: var(--on-dark); }
a.v { transition: color .2s; border-bottom: 1px solid transparent; width: max-content; }
a.v:hover { color: color-mix(in srgb, var(--accent) 60%, #fff); border-bottom-color: currentColor; }

/* Form */
form .role { display: flex; gap: .5rem; margin-bottom: 1.4rem; }
form .role button {
  flex: 1; font-family: var(--sans); font-size: .92rem; font-weight: 600; cursor: pointer;
  padding: .8em 1em; border-radius: var(--btn-radius); border: 1px solid rgba(231,236,246,.22);
  background: transparent; color: var(--on-dark-2); transition: all .2s;
}
form .role button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .78rem; letter-spacing: .04em; color: var(--on-dark-2); margin-bottom: .5rem; font-weight: 500; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--on-dark);
  background: rgba(231,236,246,.05); border: 1px solid rgba(231,236,246,.18);
  border-radius: var(--btn-radius); padding: .85em 1em; transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(151,161,186,.7); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(231,236,246,.08); }
.field textarea { resize: vertical; min-height: 96px; }
.field.err input, .field.err textarea { border-color: #ff6b5e; }
.field .msg { font-size: .76rem; color: #ff8a80; margin-top: .4rem; display: none; }
.field.err .msg { display: block; }
form .submit-row { display: flex; align-items: center; gap: 1rem; margin-top: .4rem; flex-wrap: wrap; }
form .fine { font-size: .8rem; color: var(--on-dark-2); }

.form-success {
  display: none; flex-direction: column; align-items: flex-start; justify-content: center;
  min-height: 320px;
}
.form-success.show { display: flex; }
.form-success .ok { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; margin-bottom: 1.4rem; }
.form-success .ok svg { width: 26px; height: 26px; }
.form-success h3 { font-size: 1.8rem; color: var(--on-dark); font-weight: 500; }
.form-success p { color: var(--on-dark-2); margin-top: .8rem; max-width: 34ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding-block: clamp(3rem, 6vw, 5rem) 2.5rem; border-top: 1px solid var(--line-soft); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.footer .fbrand { font-family: var(--sans); font-weight: 700; font-size: 1.45rem; letter-spacing: -.03em; display: inline-flex; align-items: center; gap: .6rem; }
.footer .fbrand .mark { width: 19px; height: 19px; position: relative; }
.footer .fbrand .mark::before, .footer .fbrand .mark::after { content:""; position:absolute; inset:0; }
.footer .fbrand .mark::before { background: var(--accent); border-radius: 3px; }
.footer .fbrand .mark::after { background: var(--ink); border-radius: 3px; transform: scale(.46); }
.footer .ftag { color: var(--ink-2); margin-top: 1.2rem; max-width: 30ch; font-size: .96rem; }
.footer .fcol h4 { font-family: var(--sans); font-weight: 600; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 1.1rem; }
.footer .fcol a { display: block; color: var(--ink-2); font-size: .96rem; padding-block: .35rem; transition: color .2s; }
.footer .fcol a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 2rem; flex-wrap: wrap; }
.footer-bottom .cp { font-family: var(--sans); font-weight: 500; font-size: .8rem; color: var(--ink-3); letter-spacing: .02em; }
.footer-bottom .legal { display: flex; gap: 1.5rem; }
.footer-bottom .legal a { font-size: .82rem; color: var(--ink-3); }
.footer-bottom .legal a:hover { color: var(--ink); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-cta .btn:not(.burger) { display: none; }
  .burger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 460px; margin-top: 1.5rem; }
  .steps { grid-template-columns: 1fr; max-width: 480px; }
  .split { grid-template-columns: 1fr; }
  .contact .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
  .section-head { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}
