/* ============================================================
   ideamap.fun — domain sale landing page
   Identity: bold/modern · ink #0B0E14 · electric indigo #4A3AFF · lime #D8F651
   No frameworks. One file.
   ============================================================ */

:root {
  --ink: #0B0E14;
  --ink-soft: #2A303C;
  --muted: #5C6577;
  --paper: #FFFFFF;
  --paper-2: #F5F6F9;
  --line: #E3E6EC;
  --accent: #4A3AFF;
  --accent-ink: #3A2BD6;
  --lime: #D8F651;
  --radius: 14px;
  --radius-lg: 22px;
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.75rem;
  --sp-4: 3rem;
  --sp-5: 5rem;
  --shadow: 0 1px 2px rgba(11, 14, 20, .06), 0 8px 24px -12px rgba(11, 14, 20, .18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }

p { margin: 0 0 var(--sp-2); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1rem;
  z-index: 99;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn--lg { min-height: 56px; padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn--sm { min-height: 44px; padding: .5rem 1.1rem; font-size: .9rem; }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: var(--paper-2); }

.closer .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.closer .btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: 68px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.brand__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(74, 58, 255, .16);
  flex: 0 0 auto;
}
.brand__tld { color: var(--accent); }
.topbar__right {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: .4rem .8rem;
  border-radius: 999px;
  white-space: nowrap;
}
.pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #17a34a;
  flex: 0 0 auto;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(74, 58, 255, .10), transparent 70%),
    radial-gradient(45% 45% at 0% 20%, rgba(216, 246, 81, .22), transparent 70%),
    var(--paper);
  overflow: hidden;
}
.hero__in { position: relative; max-width: 900px; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-2);
}
.hero__title {
  font-size: clamp(2.4rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  margin-bottom: var(--sp-3);
}
.hero__name { display: block; }
.hero__tld { color: var(--accent); }
.hero__line {
  display: block;
  color: var(--muted);
  font-weight: 600;
}
.hero__sub {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: var(--sp-3);
}
.hero__sub strong { color: var(--ink); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: var(--sp-2);
}
.cta-row--center { justify-content: center; }

.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  padding: 0;
  margin: var(--sp-2) 0 0;
  font-size: .92rem;
  color: var(--muted);
}
.trust li { display: flex; align-items: center; gap: .45rem; }
.trust li::before {
  content: "";
  width: 16px; height: 16px;
  flex: 0 0 auto;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / contain no-repeat;
}

/* ---------- sections ---------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.section__title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: var(--sp-1);
}
.section__title--tight { margin-bottom: var(--sp-2); }
.section__lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  max-width: 60ch;
  margin-bottom: var(--sp-3);
}

/* ---------- bento ---------- */
.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-2px); border-color: #C9CEE0; }
.card__tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: rgba(74, 58, 255, .08);
  padding: .25rem .6rem;
  border-radius: 999px;
  margin-bottom: .7rem;
}
.card h3 { font-size: 1.12rem; margin-bottom: .45rem; font-weight: 700; }
.card p { color: var(--muted); font-size: .96rem; }
.card--wide { background: var(--ink); border-color: var(--ink); color: #fff; }
.card--wide h3 { color: #fff; }
.card--wide p { color: rgba(255, 255, 255, .74); }
.card--wide .card__tag { color: var(--ink); background: var(--lime); }

/* ---------- facts ---------- */
.facts {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.facts .section__title { color: #fff; }
.facts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .95rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.fact dt {
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  font-weight: 700;
}
.fact dd { margin: 0; font-weight: 600; text-align: right; }
.fact__price { color: var(--lime); font-size: 1.35rem; font-weight: 800; }

/* ---------- steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 var(--sp-3);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.step {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 3vw, 1.6rem);
}
.step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: .7rem;
}
.step h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

.note {
  font-size: .95rem;
  color: var(--muted);
  background: var(--paper-2);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
}

/* ---------- faq ---------- */
.faq { display: grid; gap: .6rem; max-width: 78ch; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .1rem 1.15rem;
  background: var(--paper);
  transition: border-color .2s ease;
}
.faq details[open] { border-color: #C9CEE0; background: var(--paper-2); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  flex: 0 0 auto;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 1rem; font-size: .97rem; }

/* ---------- closer ---------- */
.closer {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(2.8rem, 7vw, 5rem);
  text-align: center;
}
.closer__in { max-width: 760px; }
.closer h2 {
  font-size: clamp(1.5rem, 4.2vw, 2.4rem);
  margin-bottom: var(--sp-1);
  font-weight: 800;
}
.closer p { color: rgba(255, 255, 255, .72); margin-bottom: var(--sp-3); }
.closer__mail {
  margin-top: var(--sp-2);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--lime);
  word-break: break-word;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: var(--sp-3);
  background: var(--paper);
}
.footer__in { display: grid; gap: .3rem; }
.footer p { margin: 0; font-size: .88rem; color: var(--muted); }
.footer__meta { font-size: .8rem; }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .card--wide { grid-column: span 2; }
  .fact { flex-direction: column; align-items: flex-start; gap: .2rem; padding: 1.1rem 0; }
  .fact dd { text-align: left; }
  .footer__in { display: flex; justify-content: space-between; align-items: center; }
}

@media (max-width: 520px) {
  .topbar__right .pill { display: none; }
  .btn--lg { width: 100%; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .brand { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
