:root {
  /* Updated Palette: More depth */
  --bg-main: #fdfbf7;
  --bg-warm: #efece6;
  --bg-dark: #0f2a26;
  --bg-terracotta: #c05621;

  --accent: #1b4d3e;
  --accent-light: #2c7a62;

  --text-main: #1a1a1a;
  --text-light: #f9f9f9;

  --border: #d1d1d1;
  --line-decor: #c05621;

  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Inter", "Helvetica Neue", "Arial", sans-serif;

  --container-width: 1100px;
  --text-width: 760px;
  --header-height: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.text-container {
  max-width: var(--text-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header (FIXED) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.header-grid {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  color: var(--line-decor);
  font-size: 1.8rem;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-main);
  opacity: 0.7;
  position: relative;
}

.nav-link:hover {
  opacity: 1;
  color: var(--accent);
}

.btn-header {
  border: 1px solid var(--accent);
  padding: 0.5rem 1.5rem;
  border-radius: 2px;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}
.btn-header:hover {
  background: var(--accent);
  color: #fff;
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-main);
  z-index: 1000;
  transform: translateX(100%);
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--accent);
}
.close-menu {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 6rem 0 4rem;

  background: linear-gradient(
    45deg,
    var(--bg-main),
    var(--bg-warm),
    #e8f1ee,
    var(--bg-main)
  );
  background-size: 300% 300%;
  animation: gradient-flow 15s ease infinite;
}

@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.date-marker {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--line-decor);
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  width: fit-content;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 2.5rem;
  color: var(--text-main);
}
.hero-body {
  font-size: 1.25rem;
  border-left: 3px solid var(--accent);
  padding-left: 2rem;
  color: #333;
}
.hero-footer {
  margin-top: 3rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: #666;
}

/* Sections */
.section {
  padding: 5rem 0;
}
.bg-warm {
  background-color: var(--bg-warm);
}
.bg-dark {
  background-color: var(--bg-dark);
}
.bg-terracotta {
  background-color: var(--bg-terracotta);
}
.bg-main {
  background-color: var(--bg-main);
}

.text-light h2,
.text-light p {
  color: var(--text-light);
}
.text-white {
  color: #fff !important;
}
.text-white-opacity {
  color: rgba(255, 255, 255, 0.8) !important;
}

.section-title {
  font-size: 2.2rem;
  border-bottom: 3px solid var(--line-decor);
  padding-bottom: 1rem;
  margin-bottom: 3rem;
  display: inline-block;
}
.bg-dark .section-title {
  border-color: rgba(255, 255, 255, 0.3);
}

/* Insight */
.section-insight {
  padding: 6rem 0;
  background-color: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.insight-box {
  text-align: center;
  padding: 0 1rem;
}
.quote-icon {
  width: 48px;
  height: 48px;
  color: var(--line-decor);
  margin-bottom: 1rem;
}
.insight-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.insight-text {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--text-main);
}

/* Content */
.content-block p {
  color: #333;
}
.img-wrapper {
  margin: 3rem 0;
  text-align: center;
}
.img-wrapper img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  padding: 10px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.img-caption {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

/* Framework */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.f-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.f-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--line-decor);
  opacity: 0.8;
  margin-bottom: 1rem;
}
.f-card h3 {
  color: #fff;
  margin-bottom: 1rem;
}
.f-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

/* Takeaways */
.editorial-list {
  list-style: none;
  margin-top: 2rem;
}
.editorial-list li {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.list-icon {
  flex-shrink: 0;
  color: var(--bg-terracotta);
  width: 32px;
  height: 32px;
  margin-top: 5px;
}
.editorial-list strong {
  color: var(--accent);
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

/* Mistakes */
.mistake-block p {
  font-size: 1.25rem;
  line-height: 1.6;
  border-left: 2px solid rgba(255, 255, 255, 0.4);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

/* FAQ */
.acc-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.acc-header {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.5rem 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.acc-header:hover {
  color: var(--bg-terracotta);
}
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: 0.4s ease;
}

/* Form */
.editorial-form {
  margin-top: 2rem;
  background: #fff;
  padding: 3rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--accent);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-main);
  border: 1px solid var(--border);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-main);
  transition: 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.short-input {
  width: 150px !important;
}

/* Checkbox & Legal Links */
.checkbox-group {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.checkbox-group input {
  margin-top: 5px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.checkbox-group label {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
  cursor: pointer;
}
.checkbox-group a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}
.checkbox-group a:hover {
  color: var(--bg-terracotta);
  border-color: var(--bg-terracotta);
}

.btn-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 1rem 3rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: 0.3s;
}
.btn-submit:hover {
  background-color: var(--bg-terracotta);
}

/* Footer */
.footer {
  background: #111;
  color: #999;
  padding: 4rem 0 2rem;
}
.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid #333;
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #fff;
  display: block;
  margin-bottom: 1rem;
}
.footer h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.footer-col a {
  display: block;
  color: #999;
  margin-bottom: 0.5rem;
  transition: 0.3s;
}
.footer-col a:hover {
  color: var(--bg-terracotta);
  text-decoration: underline;
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  font-size: 0.85rem;
}

/* Cookie */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 3px solid var(--accent);
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transform: translateY(100%);
  transition: 0.5s;
  z-index: 999;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}
.cookie-bar.active {
  transform: translateY(0);
}
.cookie-bar a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}
.cookie-btn {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0.75rem 2rem;
  cursor: pointer;
  font-weight: 600;
}
.cookie-btn:hover {
  background: var(--bg-terracotta);
}

@media (max-width: 900px) {
  .nav,
  .btn-header {
    display: none;
  }
  .burger-btn {
    display: block;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .framework-grid,
  .footer-content,
  .form-row {
    grid-template-columns: 1fr;
  }
  .insight-text {
    font-size: 1.4rem;
  }
  .cookie-bar {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
}
