/**
 * ExtraCoins marketing — apex only (not dealer storefronts).
 * Dark, precise, product-first. Cache-bust via query on link.
 */
/* Scoped tokens — win over any storefront :root if both load */
html:has(body.ec-mkt),
body.ec-mkt {
  --ec-bg: #05070b;
  --ec-bg-elev: #0c1018;
  --ec-bg-card: #111722;
  --ec-line: rgba(255, 255, 255, 0.08);
  --ec-line-strong: rgba(255, 255, 255, 0.14);
  --ec-text: #f4f6fa;
  --ec-muted: #9aa3b5;
  --ec-dim: #6b7385;
  --ec-accent: #e8b84a;
  --ec-accent-soft: rgba(232, 184, 74, 0.14);
  --ec-blue: #6ea8ff;
  --ec-radius: 1.25rem;
  --ec-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ec-max: 72rem;
}

:root {
  --ec-bg: #05070b;
  --ec-bg-elev: #0c1018;
  --ec-bg-card: #111722;
  --ec-line: rgba(255, 255, 255, 0.08);
  --ec-line-strong: rgba(255, 255, 255, 0.14);
  --ec-text: #f4f6fa;
  --ec-muted: #9aa3b5;
  --ec-dim: #6b7385;
  --ec-accent: #e8b84a;
  --ec-accent-soft: rgba(232, 184, 74, 0.14);
  --ec-blue: #6ea8ff;
  --ec-radius: 1.25rem;
  --ec-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ec-max: 72rem;
}

html {
  scroll-behavior: smooth;
}

body.ec-mkt {
  margin: 0;
  background: var(--ec-bg);
  color: var(--ec-text);
  font-family: var(--ec-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.ec-mkt a {
  color: inherit;
  text-decoration: none;
}

/* Links inherit body color — force readable labels on solid CTAs */
body.ec-mkt a.ec-btn--primary {
  color: #05070b !important;
  background: #f4f6fa !important;
}
body.ec-mkt a.ec-btn--primary:hover {
  background: #ffffff !important;
  color: #05070b !important;
}
body.ec-mkt a.ec-btn--accent {
  color: #1a1205 !important;
  background: #e8b84a !important;
}
body.ec-mkt a.ec-btn--ghost {
  color: #f4f6fa !important;
}

body.ec-mkt ::selection {
  background: var(--ec-accent-soft);
  color: var(--ec-text);
}

.ec-mkt-wrap {
  width: min(100% - 2rem, var(--ec-max));
  margin-inline: auto;
}

/* —— Header —— */
.ec-mkt-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(5, 7, 11, 0.78);
  border-bottom: 1px solid var(--ec-line);
}

.ec-mkt-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(4rem + 6px); /* was 4rem — room for larger logo */
  min-height: calc(4rem + 6px);
  gap: 1rem;
}

.ec-mkt-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  max-width: min(300px, 62vw);
  line-height: 0;
}

.ec-mkt-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 900px) {
  .ec-mkt-logo {
    max-width: min(340px, 40vw);
  }
  .ec-mkt-logo img {
    max-height: 72px;
  }
}

.ec-mkt-logo span {
  color: var(--ec-accent);
}

.ec-mkt-nav {
  display: none;
  align-items: center;
  gap: 0.15rem 1.35rem;
  font-size: 0.875rem;
  color: var(--ec-muted);
  font-weight: 500;
}

.ec-mkt-nav a:hover {
  color: var(--ec-text);
}

.ec-mkt-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ec-mkt-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--ec-line-strong);
  background: transparent;
  color: var(--ec-text);
  cursor: pointer;
}

.ec-mkt-mobile {
  display: none;
  border-top: 1px solid var(--ec-line);
  background: rgba(5, 7, 11, 0.96);
  padding: 0.75rem 0 1rem;
}

.ec-mkt-mobile.is-open {
  display: block;
}

.ec-mkt-mobile nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ec-mkt-mobile a {
  padding: 0.7rem 0.25rem;
  color: var(--ec-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.ec-mkt-mobile a:hover {
  color: var(--ec-text);
}

@media (min-width: 1024px) {
  .ec-mkt-nav {
    display: flex;
  }
  .ec-mkt-burger {
    display: none;
  }
  .ec-mkt-mobile {
    display: none !important;
  }
}

/* —— Buttons —— */
.ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.ec-btn:active {
  transform: translateY(1px);
}

.ec-btn--primary {
  background: var(--ec-text);
  color: #05070b;
}

.ec-btn--primary:hover {
  background: #fff;
}

.ec-btn--ghost {
  background: transparent;
  border-color: var(--ec-line-strong);
  color: var(--ec-text);
}

.ec-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.ec-btn--accent {
  background: var(--ec-accent);
  color: #1a1205;
}

.ec-btn--accent:hover {
  filter: brightness(1.06);
}

.ec-btn--lg {
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
}

.ec-btn--sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.82rem;
}

/* —— Hero —— */
.ec-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--ec-line);
}

.ec-hero::before {
  content: "";
  position: absolute;
  inset: -20% 20% auto -10%;
  height: 70%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(232, 184, 74, 0.12), transparent 55%),
    radial-gradient(ellipse at 80% 0%, rgba(110, 168, 255, 0.1), transparent 50%);
  pointer-events: none;
}

.ec-hero__grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .ec-hero {
    padding: 6rem 0 5rem;
  }
  .ec-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.ec-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ec-accent);
  background: var(--ec-accent-soft);
  border: 1px solid rgba(232, 184, 74, 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  margin-bottom: 1.25rem;
}

.ec-kicker__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--ec-accent);
  box-shadow: 0 0 0 3px rgba(232, 184, 74, 0.2);
}

.ec-hero h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2.15rem, 5vw, 3.55rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 650;
  max-width: 14ch;
}

.ec-hero h1 em {
  font-style: normal;
  color: var(--ec-accent);
}

.ec-hero__lead {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--ec-muted);
  max-width: 36rem;
  line-height: 1.65;
}

.ec-hero__sub {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  color: var(--ec-dim);
  max-width: 34rem;
}

.ec-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.ec-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  padding-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--ec-dim);
}

.ec-hero__proof strong {
  display: block;
  color: var(--ec-text);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 0.1rem;
}

.ec-hero__frame {
  position: relative;
  border-radius: calc(var(--ec-radius) + 0.25rem);
  border: 1px solid var(--ec-line-strong);
  background: linear-gradient(160deg, #151b28, #0a0e16 70%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 40px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.ec-hero__frame-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--ec-line);
  background: rgba(0, 0, 0, 0.25);
}

.ec-hero__frame-bar i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #3a4150;
}

.ec-hero__frame-bar i:nth-child(1) { background: #ff5f57; }
.ec-hero__frame-bar i:nth-child(2) { background: #febc2e; }
.ec-hero__frame-bar i:nth-child(3) { background: #28c840; }

.ec-hero__frame-bar em {
  margin-left: 0.5rem;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--ec-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ec-hero__frame img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

/* —— Sections —— */
.ec-sec {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--ec-line);
}

.ec-sec--tight {
  padding: 3.25rem 0;
}

.ec-sec__head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.ec-sec__head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ec-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ec-accent);
  margin: 0 0 0.75rem;
}

.ec-sec h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  font-weight: 650;
}

.ec-sec__lead {
  margin: 0;
  color: var(--ec-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* —— Pillars —— */
.ec-pillars {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  /* Keep following notes/sections clear of card overflow */
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .ec-pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ec-pillar {
  background: var(--ec-bg-card);
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius);
  padding: 1.4rem 1.35rem 1.5rem;
  /* Do NOT use min-height:100% — it overflows the grid track and covers notes below */
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.ec-pillar > p:last-child {
  flex: 1 1 auto;
  margin-bottom: 0;
}

/* Footnote under a card grid — never underlap cards */
.ec-sec-note {
  display: block;
  margin: 2rem 0 0;
  padding-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--ec-dim);
  max-width: 40rem;
  line-height: 1.55;
  clear: both;
  position: relative;
  z-index: 1;
}

.ec-pillar__num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ec-dim);
  margin-bottom: 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ec-pillar h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  font-weight: 650;
}

/* Product pillars without num badges: slightly tighter title top */
.ec-pillar > h3:first-child {
  margin-top: 0.1rem;
}

.ec-pillar p {
  margin: 0;
  color: var(--ec-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* —— Feature strip —— */
.ec-feature-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .ec-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .ec-feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ec-feat {
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius);
  padding: 1.2rem 1.15rem;
  background: rgba(255, 255, 255, 0.02);
}

.ec-feat h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.ec-feat p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ec-muted);
  line-height: 1.55;
}

.ec-feat code {
  font-size: 0.8em;
  color: var(--ec-blue);
  background: rgba(110, 168, 255, 0.1);
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
}

/* —— Steps —— */
.ec-steps {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .ec-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ec-step {
  position: relative;
  padding: 1.4rem 1.25rem;
  border-radius: var(--ec-radius);
  border: 1px solid var(--ec-line);
  background: var(--ec-bg-elev);
}

.ec-step strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ec-accent);
  margin-bottom: 0.65rem;
}

.ec-step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.ec-step p {
  margin: 0;
  color: var(--ec-muted);
  font-size: 0.9rem;
}

/* —— Gallery —— */
.ec-gallery {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .ec-gallery {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.ec-shot {
  border-radius: var(--ec-radius);
  border: 1px solid var(--ec-line-strong);
  overflow: hidden;
  background: var(--ec-bg-card);
}

.ec-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.ec-shot figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.85rem;
  color: var(--ec-muted);
  border-top: 1px solid var(--ec-line);
}

.ec-shot-stack {
  display: grid;
  gap: 1rem;
}

/* —— Compare —— */
.ec-compare {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .ec-compare {
    grid-template-columns: 1fr 1fr;
  }
}

.ec-compare__col {
  border-radius: var(--ec-radius);
  border: 1px solid var(--ec-line);
  padding: 1.4rem 1.35rem;
  background: var(--ec-bg-elev);
}

.ec-compare__col--win {
  border-color: rgba(232, 184, 74, 0.35);
  background: linear-gradient(165deg, rgba(232, 184, 74, 0.08), var(--ec-bg-elev) 45%);
}

.ec-compare__col h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.ec-compare__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ec-compare__col li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.25rem;
  color: var(--ec-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--ec-line);
}

.ec-compare__col li:first-of-type {
  border-top: 0;
}

.ec-compare__col li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--ec-dim);
}

.ec-compare__col--win li::before {
  content: "✓";
  color: var(--ec-accent);
  font-weight: 700;
}

/* —— FAQ —— */
.ec-faq {
  max-width: 42rem;
  margin: 0 auto;
}

.ec-faq details {
  border: 1px solid var(--ec-line);
  border-radius: 0.9rem;
  background: var(--ec-bg-elev);
  margin-bottom: 0.55rem;
  padding: 0 1rem;
}

.ec-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.ec-faq summary::-webkit-details-marker {
  display: none;
}

.ec-faq details[open] summary {
  border-bottom: 1px solid var(--ec-line);
  margin-bottom: 0.75rem;
}

.ec-faq details p {
  margin: 0 0 1rem;
  color: var(--ec-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* —— Final CTA —— */
.ec-final {
  padding: 5rem 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232, 184, 74, 0.1), transparent 55%),
    var(--ec-bg);
}

.ec-final h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.035em;
  font-weight: 650;
}

.ec-final p {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
  color: var(--ec-muted);
}

.ec-final__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

/* —— Footer —— */
.ec-mkt-footer {
  border-top: 1px solid var(--ec-line);
  background: #03050a;
  color: var(--ec-muted);
  font-size: 0.88rem;
}

.ec-mkt-footer__grid {
  display: grid;
  gap: 2rem;
  padding: 3rem 0 2.5rem;
}

@media (min-width: 768px) {
  .ec-mkt-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.ec-mkt-footer h4 {
  margin: 0 0 0.85rem;
  color: var(--ec-text);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.ec-mkt-footer__brand {
  margin: 0 0 0.85rem;
}

.ec-mkt-footer__brand a {
  display: inline-flex;
  line-height: 0;
  max-width: min(260px, 100%);
}

.ec-mkt-footer__brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
}

.ec-mkt-footer p {
  margin: 0;
  line-height: 1.6;
  max-width: 22rem;
}

.ec-mkt-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ec-mkt-footer li {
  margin-bottom: 0.4rem;
}

.ec-mkt-footer a:hover {
  color: var(--ec-text);
}

.ec-mkt-footer__bar {
  border-top: 1px solid var(--ec-line);
  padding: 1rem 0 1.25rem;
  font-size: 0.78rem;
  color: var(--ec-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
}

/* —— Nameserver / status page —— */
.ec-ns {
  min-height: 70vh;
  padding: 4rem 0 5rem;
}

.ec-ns__card {
  max-width: 40rem;
  margin: 0 auto;
  border: 1px solid var(--ec-line-strong);
  border-radius: calc(var(--ec-radius) + 0.15rem);
  background: var(--ec-bg-elev);
  padding: 2rem 1.5rem;
}

@media (min-width: 640px) {
  .ec-ns__card {
    padding: 2.5rem;
  }
}

.ec-ns h1 {
  margin: 0 0 0.75rem;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  font-weight: 650;
}

.ec-ns__lead {
  color: var(--ec-muted);
  margin: 0 0 1.5rem;
  line-height: 1.65;
}

.ec-ns__box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--ec-line);
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  color: var(--ec-blue);
  line-height: 1.7;
}

.ec-ns ol {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--ec-muted);
}

.ec-ns li {
  margin-bottom: 0.55rem;
  line-height: 1.55;
}

.ec-ns li strong {
  color: var(--ec-text);
}

.ec-ns__note {
  font-size: 0.85rem;
  color: var(--ec-dim);
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.ec-ns__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* —— Domain landing (claim / reserved) —— */
.ec-domain-hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--ec-line);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232, 184, 74, 0.08), transparent 50%),
    var(--ec-bg);
}

.ec-domain-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  font-weight: 650;
}

.ec-domain-hero p {
  margin: 0 auto 1.5rem;
  max-width: 34rem;
  color: var(--ec-muted);
  line-height: 1.65;
}

.ec-domain-hero .ec-hero__cta {
  justify-content: center;
}

.ec-domain-bullets {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
}

.ec-domain-bullets ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ec-domain-bullets li {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ec-line);
  color: var(--ec-muted);
  font-size: 0.95rem;
}

.ec-domain-bullets li::before {
  content: "✓";
  color: var(--ec-accent);
  font-weight: 700;
  flex-shrink: 0;
}
