/* dumMySQL landing — Content Factory OÜ
   Brand: primary #006bbd, accent #f2504e
   Avoid purple AI-slop / cream+terracotta clichés
*/

:root {
  --blue: #006bbd;
  --blue-deep: #004a82;
  --coral: #f2504e;
  --ink: #12151a;
  --ink-soft: #3a4250;
  --paper: #f7f4ef;
  --paper-2: #ebe6dc;
  --sql-bg: #0e1620;
  --sql-line: #1a2836;
  --kw: #7ec8ff;
  --lit: #ffb4a8;
  --muted: #8a93a3;
  --radius: 2px;
  --font-display: "Syne", sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 42rem;
  --max-wide: 58rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  font-optical-sizing: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  padding: 0.5rem 1rem;
}

.m {
  color: var(--coral);
  font-weight: inherit;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(0, 107, 189, 0.08);
  padding: 0.1em 0.35em;
  border-radius: var(--radius);
}

a {
  color: var(--blue);
  text-underline-offset: 0.15em;
}
a:hover {
  color: var(--blue-deep);
}

/* ——— Nav ——— */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem);
  color: #e8eef4;
}

.site-nav__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
}

.site-nav__links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
}

.site-nav__links a {
  color: rgba(232, 238, 244, 0.85);
  text-decoration: none;
}
.site-nav__links a:hover {
  color: #fff;
}

.site-nav__cta {
  background: var(--coral);
  color: #fff !important;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #e8eef4;
}

.hero__plane {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0, 107, 189, 0.45), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(242, 80, 78, 0.22), transparent 50%),
    linear-gradient(165deg, #0a1018 0%, #121c28 45%, #0e1620 100%);
}

.hero__glow {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  top: -20%;
  right: -15%;
  background: radial-gradient(circle, rgba(0, 107, 189, 0.35), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent 95%);
  pointer-events: none;
}

.hero__sql {
  position: absolute;
  top: 18%;
  right: 6%;
  left: auto;
  margin: 0;
  max-width: min(36rem, 48vw);
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1.1vw, 0.85rem);
  line-height: 1.7;
  color: rgba(126, 200, 255, 0.55);
  white-space: pre;
  overflow: hidden;
  opacity: 0.9;
  animation: sqlPulse 6s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 720px) {
  .hero__sql {
    max-width: 90%;
    right: 4%;
    left: 4%;
    top: 12%;
    font-size: 0.62rem;
    opacity: 0.45;
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 12vh, 7rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 8vh, 4.5rem);
  max-width: 40rem;
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero__headline {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
}

.hero__lede {
  margin: 0 0 1.75rem;
  font-size: 1.15rem;
  color: rgba(232, 238, 244, 0.78);
  max-width: 32ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--coral);
  color: #fff;
}
.btn--primary:hover {
  background: #e03e3c;
  color: #fff;
}
.btn--ghost {
  background: transparent;
  border-color: rgba(232, 238, 244, 0.45);
  color: #e8eef4;
}
.btn--ghost:hover {
  border-color: #fff;
  color: #fff;
}
.section .btn--ghost {
  border-color: rgba(18, 21, 26, 0.25);
  color: var(--ink);
}
.section .btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ——— Sections ——— */
.section {
  padding: clamp(3.5rem, 10vh, 6rem) 0;
}

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

.section__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section__lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 38rem;
}

.section--story {
  background: #fff;
}

.section--ask {
  background: var(--paper-2);
}

.ask-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(18, 21, 26, 0.12);
}

.ask-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(18, 21, 26, 0.12);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.ask-list li.is-in {
  opacity: 1;
  transform: none;
}

@media (min-width: 640px) {
  .ask-list li {
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }
}

.ask-list__q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.ask-list__a {
  color: var(--ink-soft);
  font-size: 1rem;
}

/* Answer stage */
.section--answer {
  background: var(--sql-bg);
  color: #e8eef4;
}

.answer-stage {
  text-align: center;
  padding: 1rem 0;
}

.answer-stage__eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.answer-stage__number {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 12vw, 6rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.answer-stage__label {
  margin: 1rem auto 0;
  max-width: 28rem;
  font-size: 1.15rem;
  color: rgba(232, 238, 244, 0.85);
}

.answer-stage__meta {
  margin: 0.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

/* Learn */
.section--learn {
  background: #fff;
}

.lesson {
  margin-top: 2.5rem;
  background: var(--paper);
  border: 1px solid rgba(18, 21, 26, 0.1);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.lesson__eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.lesson__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.lesson__code {
  margin: 0 0 1.5rem;
  padding: 1.25rem;
  background: var(--sql-bg);
  color: #c8d4e0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.65;
  overflow-x: auto;
  border-radius: var(--radius);
}

.lesson__code .kw {
  color: var(--kw);
}
.lesson__code .lit {
  color: var(--lit);
}

.lesson__glossary {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.lesson__glossary li {
  display: grid;
  grid-template-columns: minmax(6.5rem, 8rem) 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.95rem;
}

.lesson__glossary code {
  font-size: 0.85rem;
  background: rgba(0, 107, 189, 0.12);
  color: var(--blue-deep);
}

.lesson__glossary span {
  color: var(--ink-soft);
}

@media (max-width: 480px) {
  .lesson__glossary li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.section--habit {
  background: var(--paper-2);
}

.section--who {
  background: #fff;
}

.who-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.who-list li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 1.1rem;
}
.who-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--coral);
  border-radius: 1px;
}

.section--get {
  background: var(--ink);
  color: #e8eef4;
  text-align: center;
}

.section--get .section__title {
  color: #fff;
}
.section--get .section__lede {
  color: rgba(232, 238, 244, 0.75);
  margin-inline: auto;
}

.get-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.section--get .btn--ghost {
  border-color: rgba(232, 238, 244, 0.4);
  color: #e8eef4;
}
.section--get .btn--ghost:hover {
  border-color: #fff;
  color: #fff;
}

.get-note {
  margin: 2rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.get-note a {
  color: rgba(232, 238, 244, 0.85);
}

/* Footer */
.site-foot {
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
  background: #0a0c10;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.site-foot a {
  color: rgba(232, 238, 244, 0.7);
}
.site-foot__fine {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  opacity: 0.7;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-8%, 6%) scale(1.08);
  }
}

@keyframes sqlPulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero__glow,
  .hero__sql,
  .hero__content,
  .ask-list li {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
