:root {
  --c-primary: #5a9cb5;
  --c-accent: #face68;
  --c-warm: #faac68;
  --c-alert: #fa6868;
  --c-ink: #1f2d35;
  --c-muted: #60727c;
  --c-bg: #f2f7fa;
  --c-paper: #ffffff;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --space-1: 0.45rem;
  --space-2: 0.8rem;
  --space-3: 1.2rem;
  --space-4: 1.8rem;
  --space-5: 2.7rem;
  --space-6: 3.8rem;
  --shadow-soft: 0 10px 24px rgba(24, 49, 63, 0.08);
  --shadow-hover: 0 16px 38px rgba(24, 49, 63, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Trebuchet MS", "Avenir Next", sans-serif;
  color: var(--c-ink);
  background: linear-gradient(180deg, #f6fbfd 0%, #f2f7fa 40%, #eef4f7 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(246, 251, 253, 0.9);
  border-bottom: 1px solid #dbe7ed;
}

.menu-grid {
  max-width: 1220px;
  margin: 0 auto;
  padding: var(--space-3);
  display: grid;
  gap: var(--space-2);
}

.brand {
  display: block;
}

.brand img {
  width: 4rem;
  position: relative;
  z-index: 20;
}

.brand img {
  display: inline-block;
  transform: rotate(-5deg);
  transition: transform var(--transition-normal);
}

.brand:hover img {
  transform: rotate(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .brand img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 768px) {
  .brand img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 576px) {
  .brand img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 400px) {
  .brand img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

.brand-box {
  background: linear-gradient(120deg, var(--c-primary), #4f89a0);
  color: white;
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  letter-spacing: 0.2px;
}

.square-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: var(--space-2);
}

.square-menu a {
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--c-paper);
  border: 1px solid #d8e4ea;
  border-radius: var(--radius-sm);
  padding: 0.7rem;
  font-size: 0.92rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.square-menu a:hover,
.square-menu a:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow: var(--shadow-soft);
  background: #f9fcff;
}

main {
  max-width: 1220px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-3) var(--space-6);
}

.hero-split {
  display: grid;
  gap: var(--space-3);
}

.hero-copy,
.card,
.note,
.paper-box,
.policy-card,
.contact-panel,
.timeline,
.cookie-panel,
.stat-tile,
.doc-fragment,
.interactive-pad {
  background: var(--c-paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.hero-copy {
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(250, 206, 104, 0.35) 0%, rgba(250, 206, 104, 0) 70%);
  right: -50px;
  top: -40px;
}

h1 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.12;
  margin-top: 0;
}

h2 {
  margin-top: 0;
}

.note {
  padding: var(--space-3);
  border-left: 5px solid var(--c-accent);
}

.asymmetric {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.left-heavy {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: #fff6e7;
}

.right-stack {
  display: grid;
  gap: var(--space-3);
}

.grid-3 {
  display: grid;
  gap: var(--space-3);
}

.card {
  padding: var(--space-3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px) rotate(-0.3deg);
  box-shadow: var(--shadow-hover);
}

.stat-ribbon {
  margin: var(--space-5) 0;
  display: grid;
  gap: var(--space-2);
}

.stat-tile {
  padding: var(--space-3);
  border-top: 4px solid var(--c-primary);
  animation: driftIn 0.7s ease both;
}

.doc-cluster {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.doc-fragment {
  padding: var(--space-3);
  border: 1px dashed #e5cf91;
  background: linear-gradient(180deg, #fffefb 0%, #fff8ea 100%);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.filter-btn {
  border: 1px solid #ccd9e0;
  border-radius: 999px;
  background: #fff;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}

.faq-item {
  background: var(--c-paper);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: var(--space-3);
  font-size: 1rem;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 var(--space-3);
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 240px;
  padding-bottom: var(--space-3);
}

.interactive-pad {
  padding: var(--space-4);
  margin-top: var(--space-5);
}

.output-chip {
  display: inline-block;
  margin-top: 0.7rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #edf4f8;
}

label {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid #ccd8de;
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(90, 156, 181, 0.18);
}

.error {
  font-size: 0.85rem;
  color: #a64040;
  margin-top: 0.35rem;
}

.field.invalid input,
.field.invalid textarea {
  border-color: var(--c-alert);
}

.form-layout {
  display: grid;
  gap: var(--space-4);
}

.button-row,
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.btn {
  border: 0;
  padding: 0.72rem 1.12rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.btn.primary {
  background: var(--c-primary);
  color: #fff;
}

.btn.warn {
  background: var(--c-warm);
}

.btn.muted {
  background: #e4ebf0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tab-btn {
  background: #eef5f8;
  border: 1px solid #d7e4ea;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--c-accent);
  border-color: #edc65c;
}

.tab-panel {
  display: none;
  margin-top: 0.8rem;
}

.tab-panel.active {
  display: block;
  animation: softRise 0.35s ease both;
}

.site-footer {
  background: #17262f;
  color: #e5edf2;
  padding: var(--space-5) var(--space-3);
}

.footer-grid {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-3);
}

.footer-grid a {
  color: #e5edf2;
  text-decoration: none;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  background: #0f1d25;
  color: #f4f9fc;
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-hover);
}

.cookie-banner[hidden],
.cookie-panel[hidden] {
  display: none;
}

.cookie-panel {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 130;
  padding: var(--space-3);
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e9eef1;
  padding: 0.55rem 0;
}

.pill {
  background: #ecf3f7;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.82rem;
}

.muted-text {
  color: var(--c-muted);
}

@keyframes driftIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softRise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 760px) {
  .menu-grid {
    grid-template-columns: 310px 1fr;
    align-items: start;
  }

  .square-menu {
    grid-template-columns: repeat(5, minmax(90px, 1fr));
  }

  .hero-split {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .asymmetric {
    grid-template-columns: 1.3fr 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat-ribbon {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .doc-cluster {
    grid-template-columns: 1fr 1fr;
  }

  .form-layout {
    grid-template-columns: 1.12fr 0.88fr;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .cookie-panel {
    left: auto;
    width: 450px;
  }
}