:root {
  --ink: #1d2939;
  --muted: #5f6c7b;
  --line: #d9e2ec;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --teal: #137c7b;
  --coral: #c65d4c;
  --yellow: #f2b84b;
  --blue: #2f5f98;
  --shadow: 0 18px 50px rgba(29, 41, 57, 0.09);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

.modal-open body {
  overflow: hidden;
}

.page-shell {
  min-height: 100vh;
  transition: filter 180ms ease, opacity 180ms ease;
}

.modal-open .page-shell {
  filter: blur(18px) brightness(0.62);
  pointer-events: none;
  user-select: none;
}

.age-blocked .page-shell {
  opacity: 0;
  visibility: hidden;
}

.age-blocked .age-gate {
  background: #1d2939;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 10;
}

.skip-link:focus {
  left: 8px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 24px rgba(29, 41, 57, 0.04);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand-logo {
  width: 220px;
  height: 56px;
  object-fit: contain;
}

.main-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.main-nav a,
.footer-links a {
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
}

.main-nav a.active,
.main-nav a:hover,
.footer-links a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.hero {
  padding: 48px 0 34px;
  background:
    linear-gradient(135deg, rgba(19, 124, 123, 0.12), rgba(242, 184, 75, 0.12)),
    var(--soft);
}

.home-page .hero h1,
.home-page .hero p,
.home-page .hero .button-row {
  animation: fadeUp 700ms ease both;
}

.home-page .hero p {
  animation-delay: 100ms;
}

.home-page .hero .button-row {
  animation-delay: 200ms;
}

.home-page .hero-image {
  animation: softReveal 800ms ease both;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: 36px;
  align-items: center;
}

.hero h1,
.page-title h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.hero p,
.lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 760px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(19, 124, 123, 0.18);
}

.button.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button:hover {
  filter: brightness(0.97);
}

.hero-image {
  border-radius: 8px;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 11;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.page-title {
  padding: 44px 0 22px;
}

.section {
  padding: 32px 0;
}

.section-muted {
  background: var(--soft);
}

.section h2,
.article h2 {
  margin-top: 0;
  font-size: 1.65rem;
  line-height: 1.2;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  min-height: 100%;
  box-shadow: 0 10px 28px rgba(29, 41, 57, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.home-page .section .card {
  animation: cardIn 650ms ease both;
}

.home-page .section .card:nth-child(2) {
  animation-delay: 90ms;
}

.home-page .section .card:nth-child(3) {
  animation-delay: 180ms;
}

.home-page .section .card:nth-child(4) {
  animation-delay: 270ms;
}

.home-page .section .card:nth-child(5) {
  animation-delay: 360ms;
}

.home-page .section .card:nth-child(6) {
  animation-delay: 450ms;
}

.card h3 {
  margin: 0 0 8px;
  line-height: 1.25;
}

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

.tag {
  display: inline-block;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13px;
  margin-bottom: 10px;
}

.app-list {
  display: grid;
  gap: 22px;
}

.app-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(29, 41, 57, 0.05);
}

.app-card h2 {
  margin-bottom: 8px;
}

.feature-list {
  columns: 2;
  padding-left: 20px;
}

.article {
  max-width: 820px;
  padding: 28px 0 46px;
}

.article-meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.notice {
  border-left: 4px solid var(--yellow);
  background: #fff8e8;
  padding: 14px 18px;
}

.contact-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(47, 95, 152, 0.08), rgba(198, 93, 76, 0.08)),
    var(--soft);
}

.site-footer {
  margin-top: 34px;
  padding: 34px 0 18px;
  border-top: 1px solid var(--line);
  background: #f9fbfd;
  color: var(--muted);
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(29, 41, 57, 0.82);
  backdrop-filter: blur(10px);
}

.age-gate-panel {
  width: min(100%, 520px);
  border-radius: 8px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(19, 124, 123, 0.08), rgba(242, 184, 75, 0.12)),
    #fff;
  box-shadow: 0 24px 80px rgba(29, 41, 57, 0.28);
  animation: modalPop 240ms ease both;
}

.age-gate-denied .age-gate-panel {
  background:
    linear-gradient(135deg, rgba(198, 93, 76, 0.12), rgba(29, 41, 57, 0.08)),
    #fff;
}

.age-gate-denied .button-row {
  display: none;
}

.age-gate-panel h2 {
  margin: 0 0 10px;
  font-size: 1.65rem;
  line-height: 1.2;
}

.age-gate-kicker {
  margin: 0 0 8px;
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.age-gate-message {
  margin: 16px 0 0;
  color: #8a2f24;
  font-weight: 700;
}

.age-gate button[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.cookie-banner-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(29, 41, 57, 0.18);
}

.cookie-banner p {
  margin: 0;
}

.cookie-title {
  color: var(--ink);
  font-weight: 700;
}

.cookie-button {
  border: 0;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-title {
  margin: 0 0 4px;
  color: var(--ink);
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 14px;
  font-size: 0.92rem;
}

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

@keyframes softReveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 820px) {
  .header-inner,
  .footer-grid,
  .hero-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .header-inner {
    justify-items: start;
    padding: 16px 0;
  }

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

  .feature-list {
    columns: 1;
  }

  .brand-logo {
    width: 190px;
  }

  .cookie-banner-inner {
    grid-template-columns: 1fr;
  }

  .cookie-button {
    width: 100%;
  }
}
