:root {
  --bg: #fffaf2;
  --panel: #ffffff;
  --ink: #1d1a17;
  --muted: #5a534b;
  --brand: #005f73;
  --brand-2: #c84b31;
  --stroke: #e6d8c8;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, #ffe7bf, transparent 38%),
    radial-gradient(circle at 80% 10%, #d9f3f6, transparent 35%), var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(6px);
}

.bg-shape-a {
  width: 260px;
  height: 260px;
  background: #ffd79f;
  top: -80px;
  right: -40px;
}

.bg-shape-b {
  width: 340px;
  height: 340px;
  background: #cdeef2;
  left: -100px;
  bottom: -120px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(255, 250, 242, 0.85);
  border-bottom: 1px solid var(--stroke);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.topnav {
  display: flex;
  gap: 16px;
}

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

.lang-toggle {
  display: flex;
  gap: 6px;
}

.lang-btn {
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  align-items: start;
  padding-top: 48px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
}

h1,
h2,
h3 {
  font-family: "Spectral", serif;
  line-height: 1.15;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
}

.hero-text,
.section-sub {
  color: var(--muted);
  max-width: 65ch;
}

.hero-cta {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--brand), #0b8fa8);
}

.btn-secondary {
  color: var(--ink);
  background: #f7e7cf;
}

.hero-card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
}

.downloads-grid,
.blog-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card p {
  color: var(--muted);
}

.card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card .actions a {
  font-size: 0.9rem;
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--stroke);
  color: var(--ink);
}

.card .actions a.primary {
  background: var(--brand-2);
  color: #fff;
  border-color: var(--brand-2);
}

.status {
  color: var(--muted);
  margin-bottom: 12px;
}

.inline-link {
  color: var(--brand);
  font-weight: 700;
}

.contact-form {
  max-width: 740px;
  display: grid;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--stroke);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
}

.pager {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.75s ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 0.08s;
}

.reveal:nth-child(3) {
  animation-delay: 0.16s;
}

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

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

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

@media (max-width: 640px) {
  .topbar {
    flex-wrap: wrap;
  }

  .topnav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .downloads-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
