/* ================================================================
   DIGIMUURI — Theme CSS
   Self-hosted. Zero external dependencies. OKLCH color system.
   ================================================================ */

/* ── TOKENS ─────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:          oklch(10.5% 0.012 245);
  --bg-raised:   oklch(13.5% 0.011 245);
  --bg-elevated: oklch(17%   0.010 245);

  /* Borders */
  --border:        oklch(26%  0.014 245);
  --border-subtle: oklch(18%  0.010 245);

  /* Accent: electric cyan-teal */
  --accent:      oklch(64%  0.19  200);
  --accent-hi:   oklch(70%  0.20  200);
  --accent-tint: oklch(64%  0.19  200 / 0.09);

  /* Text */
  --text:   oklch(94%  0.007 245);
  --text-2: oklch(68%  0.018 245);
  --text-3: oklch(46%  0.012 245);

  /* Radii */
  --r-sm:  6px;
  --r:     10px;
  --r-lg:  14px;
  --r-xl:  20px;

  /* Layout */
  --max-w:  1200px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --gap:    clamp(60px, 10vw, 120px);

  /* Type */
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ── BASE ───────────────────────────────────────────────────────── */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── LAYOUT ─────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── SECTION ────────────────────────────────────────────────────── */
.sec {
  padding-block: var(--gap);
}
.sec__head {
  text-align: center;
  margin-bottom: 3.5rem;
}
.sec__eye {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid oklch(64% 0.19 200 / 0.25);
  background: oklch(64% 0.19 200 / 0.07);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  margin-bottom: 1.25rem;
}
.sec__title {
  font-size: clamp(2rem, 4.5vw, 3.375rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--text);
}
.sec__sub {
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 54ch;
  margin-inline: auto;
  margin-top: 0.75rem;
}

/* ── HERO ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem var(--gutter) 4rem;
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid oklch(64% 0.19 200 / 0.28);
  background: oklch(64% 0.19 200 / 0.07);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
}

.hero__title {
  font-size: clamp(3.25rem, 13vw, 10rem);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.045em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero__sub {
  color: var(--text-2);
  font-size: clamp(1rem, 2vw, 1.1875rem);
  line-height: 1.7;
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 3.5rem;
}

/* Stat strip */
.hero__strip {
  display: flex;
  align-items: stretch;
  max-width: 600px;
  margin-inline: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  background: var(--bg-raised);
  overflow: hidden;
}
.hero__strip-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 1.125rem 0.75rem;
  border-right: 1px solid var(--border-subtle);
  text-align: center;
}
.hero__strip-item:last-child { border-right: none; }
.hero__strip-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  background: oklch(64% 0.19 200 / 0.11);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__strip-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.3;
}

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0.75rem 1.625rem;
  border-radius: var(--r);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition:
    background  0.15s ease-out,
    box-shadow  0.15s ease-out,
    transform   0.12s ease-out,
    border-color 0.15s ease-out,
    color       0.15s ease-out;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg    { flex-shrink: 0; }

.btn-primary {
  background: var(--accent);
  color: oklch(11% 0.012 245);
  border-color: transparent;
  box-shadow: 0 4px 18px oklch(64% 0.19 200 / 0.32);
}
.btn-primary:hover {
  background: var(--accent-hi);
  box-shadow: 0 8px 28px oklch(64% 0.19 200 / 0.44);
  color: oklch(11% 0.012 245);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--bg-raised);
  border-color: oklch(64% 0.19 200 / 0.4);
  color: var(--accent);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  border-radius: var(--r-lg);
}
.btn-full { width: 100%; }

/* ── FEATURES ───────────────────────────────────────────────────── */

/* Primary: 3 large cards */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

/* Secondary: compact tiles */
.feat-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.feat-card {
  background: var(--bg-raised);
  padding: 2.25rem 2rem;
  transition: background 0.15s;
}
.feat-card:hover { background: var(--bg-elevated); }

.feat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  background: oklch(64% 0.19 200 / 0.11);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.feat-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.feat-card__body {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.6;
}

.feat-tile {
  background: var(--bg-raised);
  padding: 1.125rem 1.375rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}
.feat-tile:hover {
  background: var(--bg-elevated);
  color: var(--text);
}
.feat-tile svg { flex-shrink: 0; color: var(--accent); }

/* ── PRICING ────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  overflow: hidden;
  max-width: 960px;
  margin-inline: auto;
}

.plan {
  background: var(--bg-raised);
  padding: 2rem 1.875rem 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan--popular {
  background: var(--bg-elevated);
  padding-top: 3.25rem;
}

.plan__badge {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 0.4375rem 0;
  text-align: center;
  background: var(--accent);
  color: oklch(11% 0.012 245);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.plan__tier {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.75rem;
}

.plan__price {
  font-size: clamp(1.875rem, 3vw, 2.625rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.plan--popular .plan__price { color: var(--accent); }

.plan__cadence {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-bottom: 1.5rem;
}

.plan__hr {
  height: 1px;
  background: var(--border-subtle);
  margin-bottom: 1.375rem;
}

.plan__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6875rem;
  margin-bottom: 1.75rem;
}
.plan__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.45;
}
.plan__item svg { flex-shrink: 0; color: var(--accent); margin-top: 1px; }

/* ── FOOTER ─────────────────────────────────────────────────────── */
.site-footer {
  padding: 4rem var(--gutter) 2rem;
  border-top: 1px solid var(--border-subtle);
}
.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.footer__logo svg { color: var(--accent); }
.footer__blurb {
  font-size: 0.875rem;
  color: var(--text-3);
  line-height: 1.65;
  max-width: 34ch;
}
.footer__heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.875rem;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer__links a {
  font-size: 0.875rem;
  color: var(--text-3);
  transition: color 0.15s;
}
.footer__links a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.footer__copy {
  font-size: 0.875rem;
  color: var(--text-3);
}
.footer__socials {
  display: flex;
  gap: 10px;
}
.footer__social {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-3);
  transition: border-color 0.15s, color 0.15s;
}
.footer__social:hover {
  border-color: oklch(64% 0.19 200 / 0.5);
  color: var(--accent);
}

/* ── ENTRANCE ANIMATIONS ─────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-up {
  animation: fade-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.13s; }
.d3 { animation-delay: 0.22s; }
.d4 { animation-delay: 0.33s; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .feat-grid    { grid-template-columns: 1fr; }
  .feat-tiles   { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan--popular { padding-top: 3.25rem; }
  .footer__top  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .feat-tiles  { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__strip {
    flex-direction: column;
  }
  .hero__strip-item {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.875rem 1rem;
  }
  .hero__strip-item:last-child { border-bottom: none; }
}

/* ── LANGUAGE SWITCHER ───────────────────────────────────────────── */
.lang-switcher {
  position: fixed;
  top: 1.125rem;
  right: 1.375rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: oklch(13.5% 0.011 245 / 0.88);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lang-switcher__item {
  display: block;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  line-height: 1.4;
}

.lang-switcher__item:hover {
  color: var(--text);
  background: oklch(20% 0.012 245);
}

.lang-switcher__item--active {
  color: var(--accent);
  background: oklch(19% 0.015 200);
}

/* ── REDUCED MOTION ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
  html { scroll-behavior: auto; }
}
