:root {
  --background: #09080d;
  --text: #f2eef7;
  --muted: #aaa2b3;
  --soft: #68616f;
  --accent: #a77bff;
  --accent-soft: #6e45bc;
  --line: rgba(211, 188, 255, 0.14);
  --surface: rgba(211, 188, 255, 0.035);
  --column: 660px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--background);
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.grain {
  position: fixed;
  z-index: 10;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── Fejléc és lábléc ─────────────────────────────────────────── */

.site-header {
  position: relative;
  z-index: 2;
  padding: 26px 30px 0;
}

.wordmark,
footer {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wordmark {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

footer {
  padding: 34px 30px 30px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 9px;
}

footer p {
  margin: 0;
}

/* ── Hero ─────────────────────────────────────────────────────── */

.hero {
  position: relative;
  /* A glow szándékosan túlnyúlik a szekción; itt vágjuk le,
     különben vízszintes görgetést okoz. */
  overflow: hidden;
  padding: clamp(80px, 15vh, 150px) 24px clamp(90px, 14vh, 140px);
  text-align: center;
  animation: enter 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero > *:not(.hero-glow) {
  position: relative;
  z-index: 1;
  margin-inline: auto;
  width: min(100%, var(--column));
}

.hero-glow {
  position: absolute;
  z-index: 0;
  inset: -10% -20% 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(94, 42, 158, 0.22), transparent 70%);
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(34px, 6.4vw, 68px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-wrap: balance;
}

h1 em {
  display: block;
  color: var(--accent);
  font-style: italic;
}

.lede {
  margin: 26px auto 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

/* ── Szekciók ─────────────────────────────────────────────────── */

.section {
  width: min(100%, calc(var(--column) + 48px));
  margin-inline: auto;
  padding: clamp(64px, 10vh, 96px) 24px;
  border-top: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section--bio p {
  margin: 20px 0 0;
  color: var(--muted);
  max-width: 560px;
}

.section--cta {
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.section--cta h2 {
  max-width: 520px;
  margin-inline: auto;
}

/* ── Kártyák ──────────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.cards li {
  padding: 26px 24px 30px;
  background: var(--background);
  transition: background-color 0.3s ease;
}

.cards li:hover {
  background: #0d0b13;
}

.card-label {
  margin: 0 0 12px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card-question {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 21px;
  font-style: italic;
  line-height: 1.35;
  color: var(--text);
}

/* ── Feliratkozás ─────────────────────────────────────────────── */

.subscribe {
  width: min(100%, 460px);
  margin: 40px auto 0;
}

.subscribe--primary {
  margin-top: 44px;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  box-shadow: 0 18px 50px -34px rgba(94, 42, 158, 0.55);
}

.subscribe-label {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.subscribe-row {
  display: flex;
  gap: 8px;
}

.subscribe input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.25s ease;
}

.subscribe input[type="email"]::placeholder {
  color: var(--soft);
}

.subscribe input[type="email"]:focus {
  outline: none;
  border-color: var(--accent-soft);
}

.subscribe button {
  flex: none;
  padding: 13px 20px;
  border: 0;
  border-radius: 3px;
  background: var(--accent);
  color: #16081f;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.25s ease, opacity 0.25s ease;
}

.subscribe button:hover {
  background: #b892ff;
}

.subscribe button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.subscribe button[disabled] {
  opacity: 0.45;
  cursor: default;
}

.subscribe-note,
.subscribe-msg {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.6;
}

.subscribe-note {
  color: var(--soft);
}

.subscribe-msg {
  color: var(--muted);
}

.subscribe-msg:empty {
  display: none;
}

.subscribe-msg.is-error {
  color: #e6a2a2;
}

.subscribe.is-done .subscribe-form {
  display: none;
}

.subscribe.is-done .subscribe-msg {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}

.subscribe--primary.is-done .subscribe-msg {
  padding: 6px 0;
}

/* ── Mozgás ───────────────────────────────────────────────────── */

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 21px 20px 0;
  }

  .hero {
    padding-inline: 20px;
  }

  .section {
    padding-inline: 20px;
  }

  .subscribe-row {
    flex-direction: column;
  }

  .subscribe button {
    padding: 14px 20px;
  }

  footer {
    padding: 28px 20px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
