/* =============================================
   RETUSHNIK · CORE
   neo-brutalist mobile-first
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

:root {
  /* palette — bold flat colors */
  --bg:        #f4d03f;        /* mustard yellow */
  --bg-alt:    #ffe066;        /* lighter mustard */
  --paper:     #fffdf5;        /* off-white */
  --ink:       #111111;        /* deep black */
  --ink-soft:  #2a2a2a;
  --shadow:    #111111;
  --accent:    #ff3d68;        /* hot pink */
  --accent-2:  #00d4a3;        /* mint */
  --accent-3:  #4361ff;        /* electric blue */
  --line:      #111111;

  /* type */
  --grotesk: 'Space Grotesk', system-ui, sans-serif;
  --mono:    'JetBrains Mono', 'Courier New', monospace;

  /* spacing & brutal aesthetics */
  --brick:   3px;            /* heavy border */
  --brick-thin: 2px;
  --pop:     6px 6px 0 0 var(--shadow);  /* hard offset shadow */
  --pop-sm:  4px 4px 0 0 var(--shadow);
  --pop-lg:  8px 8px 0 0 var(--shadow);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--grotesk);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* subtle dot pattern */
  background-image: radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 18px 18px;
}

a { color: inherit; text-decoration: none; }
img, canvas { max-width: 100%; display: block; }
button, input, output { font-family: inherit; color: inherit; }

.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }

.page {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 18px;
}

/* =============================================
   TICKER
   ============================================= */
.ticker {
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  border-bottom: var(--brick) solid var(--ink);
  padding: 10px 0;
  position: relative;
}
.ticker-track {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
  width: max-content;
}
.ticker-track span {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================
   HEADER
   ============================================= */
.topbar {
  background: var(--paper);
  border-bottom: var(--brick) solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logotype {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logotype__square {
  width: 38px;
  height: 38px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 22px;
  border: var(--brick-thin) solid var(--ink);
}
.logotype__text {
  font-family: var(--grotesk);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.logotype__dot { color: var(--accent); }
.logotype--invert .logotype__square {
  background: var(--bg);
  color: var(--ink);
}
.logotype--invert .logotype__text { color: var(--paper); }

.burger {
  width: 44px;
  height: 44px;
  background: var(--bg);
  border: var(--brick) solid var(--ink);
  box-shadow: var(--pop-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}
.burger:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 0 var(--shadow);
}
.burger span {
  width: 18px;
  height: 2.5px;
  background: var(--ink);
  transition: transform 0.25s;
}
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.drop-nav {
  display: none;
  flex-direction: column;
  border-top: var(--brick) solid var(--ink);
  margin: 0 -18px;
  padding: 0 18px 14px;
  background: var(--paper);
}
.drop-nav.is-open { display: flex; }
.drop-nav a {
  padding: 14px 4px;
  border-bottom: 1px dashed var(--ink);
  font-weight: 600;
  font-size: 17px;
  transition: padding-left 0.2s, background 0.15s;
}
.drop-nav a:hover {
  background: var(--accent);
  color: var(--paper);
  padding-left: 14px;
}
.drop-nav a:last-child { border-bottom: none; }

/* =============================================
   HERO
   ============================================= */
.hero {
  padding: 36px 0 50px;
  position: relative;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  border: var(--brick) solid var(--ink);
  box-shadow: var(--pop-sm);
  font-size: 11px;
  margin-bottom: 26px;
  transform: rotate(-1deg);
}
.tag-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }

.megatype {
  font-family: var(--grotesk);
  font-weight: 700;
  font-size: clamp(54px, 16vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.megatype__line { display: block; }
.megatype__line--alt {
  padding-left: 20%;
  margin: -2px 0;
}
.megatype__bg {
  display: inline-block;
  background: var(--ink);
  color: var(--accent);
  padding: 4px 18px 8px;
  transform: rotate(-2deg);
  border: var(--brick) solid var(--ink);
  box-shadow: var(--pop);
}

.hero__split {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 36px;
}
.hero__lede {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
  max-width: 480px;
}
.hero__cta-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border: var(--brick) solid var(--ink);
  background: var(--paper);
  box-shadow: var(--pop);
  padding: 18px 14px;
}
.stat {
  text-align: center;
  position: relative;
}
.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: var(--ink);
}
.stat__num {
  font-family: var(--grotesk);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}
.stat__label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* =============================================
   SECTION MARKERS
   ============================================= */
.section-mark {
  margin-bottom: 28px;
}
.section-mark .mono {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.section-title {
  font-family: var(--grotesk);
  font-weight: 700;
  font-size: clamp(38px, 11vw, 56px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.cursor {
  display: inline-block;
  color: var(--accent);
  animation: cursor-blink 1s infinite step-end;
}
@keyframes cursor-blink {
  50% { opacity: 0; }
}

/* =============================================
   SECTION SPACING
   ============================================= */
section { padding: 40px 0; }
.tool-section { padding-top: 20px; padding-bottom: 40px; }

/* =============================================
   FOOTER
   ============================================= */
.bottom {
  background: var(--ink);
  color: var(--paper);
  padding: 44px 0 28px;
  border-top: var(--brick) solid var(--ink);
  margin-top: 30px;
}
.bottom__top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px dashed rgba(255,253,245,0.25);
  margin-bottom: 26px;
}
.bottom__top .mono {
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.bottom__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 18px;
  margin-bottom: 28px;
}
.bottom__cols > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bottom__cols h4 {
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}
.bottom__cols a,
.bottom__cols span {
  font-size: 14px;
  color: rgba(255,253,245,0.8);
  transition: color 0.15s;
}
.bottom__cols a:hover {
  color: var(--bg);
}

.bottom__base {
  padding-top: 22px;
  border-top: 1px dashed rgba(255,253,245,0.25);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,253,245,0.55);
  letter-spacing: 0.05em;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (min-width: 520px) {
  .hero__cta-stack { flex-direction: row; }
  .bottom__cols { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 720px) {
  .page { max-width: 720px; padding: 0 24px; }
  .hero__split { flex-direction: row; align-items: flex-end; gap: 30px; }
  .hero__lede { flex: 1; }
}
