:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --text: #171717;
  --muted: #666666;
  --border: #e5e5e5;
  --primary: #111111;
  --primary-hover: #333333;
  --accent: #7c3aed;
  --white: #ffffff;
  --max-width: 1180px;
  --radius: 18px;
  --shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));

  margin-inline: auto;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.96);

  border-bottom: 1px solid var(--border);

  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 1.15rem;
  font-weight: 800;
}

.logo-mark {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  background: var(--primary);
  color: var(--white);

  border-radius: 11px;

  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  color: #555;
  font-size: 0.95rem;
  font-weight: 600;

  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;

  border: 0;
  background: transparent;

  font-size: 1.7rem;
  cursor: pointer;
}

/* HERO */

.hero {
  padding: 100px 0 90px;

  background:
    radial-gradient(
      circle at top right,
      rgba(124, 58, 237, 0.08),
      transparent 35%
    ),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;

  gap: 70px;

  align-items: center;
}

.eyebrow {
  display: inline-block;

  margin-bottom: 15px;

  color: var(--accent);

  font-size: 0.78rem;
  font-weight: 800;

  letter-spacing: 0.13em;
}

.hero h1 {
  max-width: 720px;

  font-size: clamp(3rem, 7vw, 5.7rem);

  line-height: 1.02;

  letter-spacing: -0.055em;

  margin-bottom: 25px;
}

.hero h1 span {
  color: var(--accent);
}

.hero-content > p {
  max-width: 650px;

  color: var(--muted);

  font-size: 1.15rem;

  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}

/* BUTTONS */

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 50px;

  padding: 0 22px;

  border-radius: 10px;

  font-weight: 700;

  border: 1px solid transparent;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border-color: var(--border);
}

/* HERO CARD */

.hero-card {
  padding: 45px;

  border-radius: 26px;

  background: var(--bg-soft);

  border: 1px solid var(--border);

  box-shadow: var(--shadow);
}

.story-symbol {
  width: 70px;
  height: 70px;

  display: grid;
  place-items: center;

  background: var(--primary);
  color: white;

  border-radius: 20px;

  font-size: 2rem;

  margin-bottom: 30px;
}

.hero-card h2 {
  font-size: 2rem;
  line-height: 1.2;

  margin-bottom: 18px;
}

.hero-card p {
  color: var(--muted);
}

/* SECTIONS */

.section {
  padding: 95px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 45px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);

  line-height: 1.1;

  margin-bottom: 15px;
}

.section-heading p {
  color: var(--muted);
}

/* STORY GRID */

.story-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 24px;
}

.story-card {
  padding: 30px;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  background: var(--white);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.story-card:hover {
  transform: translateY(-5px);

  box-shadow: var(--shadow);
}

.story-icon {
  width: 58px;
  height: 58px;

  display: grid;
  place-items: center;

  background: var(--bg-soft);

  border-radius: 16px;

  font-size: 1.5rem;

  margin-bottom: 25px;
}

.story-category {
  color: var(--accent);

  font-size: 0.75rem;
  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.1em;
}

.story-card h2,
.story-card h3 {
  font-size: 1.45rem;

  line-height: 1.3;

  margin: 12px 0;
}

.story-card p {
  color: var(--muted);

  margin-bottom: 20px;
}

.story-card a {
  color: var(--text);

  font-weight: 800;
}

/* TWO COLUMN */

.two-column {
  display: grid;

  grid-template-columns: 0.8fr 1.2fr;

  gap: 80px;
}

.two-column h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);

  line-height: 1.1;
}

.two-column p {
  color: var(--muted);

  margin-bottom: 20px;
}

.text-link {
  font-weight: 800;
}

/* NEWSLETTER */

.newsletter-section {
  padding: 70px 0;
}

.newsletter-box {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 30px;

  padding: 45px;

  border-radius: 24px;

  background: var(--primary);

  color: var(--white);
}

.newsletter-box .eyebrow {
  color: #c4b5fd;
}

.newsletter-box p {
  color: #cfcfcf;
}

/* PAGE HERO */

.page-hero {
  padding: 90px 0;

  background: var(--bg-soft);

  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);

  line-height: 1.05;

  margin-bottom: 18px;
}

.page-hero p {
  max-width: 700px;

  color: var(--muted);

  font-size: 1.1rem;
}

/* ARTICLES */

.article-container {
  max-width: 820px;
}

.article-page {
  padding: 80px 0;
}

.article-page h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);

  line-height: 1.08;

  letter-spacing: -0.04em;

  margin-bottom: 20px;
}

.article-intro {
  color: var(--muted);

  font-size: 1.25rem;

  margin-bottom: 45px;
}

.article-content h2 {
  margin-top: 45px;
  margin-bottom: 15px;

  font-size: 1.8rem;
}

.article-content p {
  margin-bottom: 22px;

  color: #444;

  font-size: 1.06rem;
}

.back-link {
  display: inline-block;

  margin-top: 30px;

  font-weight: 800;
}

/* LEGAL */

.legal-content {
  max-width: 850px;
}

.legal-content h2 {
  margin-top: 38px;
  margin-bottom: 12px;

  font-size: 1.5rem;
}

.legal-content p {
  color: #444;

  margin-bottom: 18px;
}

.legal-content a {
  color: var(--accent);
  font-weight: 600;
}

/* CONTACT */

.contact-grid {
  display: grid;

  grid-template-columns: 0.8fr 1.2fr;

  gap: 70px;
}

.contact-grid h2 {
  font-size: 2.5rem;

  line-height: 1.15;

  margin-bottom: 20px;
}

.contact-grid p {
  color: var(--muted);
}

.contact-info {
  margin-top: 30px;

  display: flex;

  flex-direction: column;

  gap: 5px;
}

.contact-info a {
  color: var(--accent);
  font-weight: 700;
}

.contact-form-card {
  padding: 35px;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  background: var(--white);

  box-shadow: var(--shadow);
}

.contact-form-card form {
  display: flex;

  flex-direction: column;

  gap: 10px;
}

.contact-form-card label {
  margin-top: 12px;

  font-weight: 700;
}

.contact-form-card input,
.contact-form-card textarea {
  width: 100%;

  border: 1px solid var(--border);

  border-radius: 10px;

  padding: 14px 15px;

  font: inherit;

  outline: none;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
  border-color: var(--accent);
}

.success-message {
  padding: 15px;

  border-radius: 10px;

  background: #ecfdf5;

  color: #065f46;

  margin-bottom: 20px;
}

/* ERROR */

.error-page {
  padding: 130px 0;

  text-align: center;
}

.error-number {
  font-size: clamp(6rem, 20vw, 12rem);

  line-height: 1;

  font-weight: 900;

  color: var(--accent);

  margin-bottom: 20px;
}

.error-page h1 {
  font-size: 2.5rem;

  margin-bottom: 15px;
}

.error-page p {
  color: var(--muted);

  margin-bottom: 30px;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid var(--border);

  background: #fafafa;
}

.footer-grid {
  padding: 65px 0;

  display: grid;

  grid-template-columns: 1.5fr 1fr 1fr;

  gap: 60px;
}

.footer-brand {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 20px;
}

.footer-grid p {
  max-width: 420px;

  color: var(--muted);
}

.footer-grid h3 {
  margin-bottom: 15px;
}

.footer-grid > div > a:not(.logo) {
  display: block;

  color: var(--muted);

  margin-bottom: 8px;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-bottom {
  padding: 20px 0;

  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--muted);

  font-size: 0.9rem;
}

/* COOKIE */

.cookie-banner {
  position: fixed;

  left: 20px;
  right: 20px;
  bottom: 20px;

  z-index: 2000;

  max-width: 900px;

  margin-inline: auto;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 25px;

  padding: 20px;

  background: var(--white);

  border: 1px solid var(--border);

  border-radius: 15px;

  box-shadow: var(--shadow);
}

.cookie-banner p {
  color: var(--muted);

  font-size: 0.9rem;

  margin-top: 3px;
}

/* MOBILE */

@media (max-width: 900px) {
  .hero-grid,
  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 45px;
  }

  .story-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 30px), var(--max-width));
  }

  .header-inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;

    left: 15px;
    right: 15px;
    top: 75px;

    display: none;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    padding: 10px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 15px;

    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 13px;

    border-radius: 8px;
  }

  .main-nav a:hover {
    background: var(--bg-soft);
  }

  .hero {
    padding: 70px 0;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero-card {
    padding: 30px;
  }

  .section {
    padding: 65px 0;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .newsletter-box {
    align-items: flex-start;

    flex-direction: column;

    padding: 30px;
  }

  .cookie-banner {
    align-items: flex-start;

    flex-direction: column;
  }

  .cookie-banner .btn {
    width: 100%;
  }
}
