/* Betabox Maintenance — brand-aligned premium page */
:root {
  --bg: #f6f7f5;
  --bg-elevated: #ffffff;
  --fg: #152018;
  --muted: #3f4f44;
  --muted-soft: #6a7a70;
  --line: #d5ddd7;
  --line-soft: #e6ebe7;
  --primary: #1a5c32;
  --primary-deep: #0d3320;
  --primary-bright: #2f9e55;
  --accent: #248a48;
  --ink: #0d3320;
  --ink-fg: #f3faf5;
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --shadow: 0 18px 40px -28px rgba(13, 51, 32, 0.45);
  --font: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --grad: linear-gradient(135deg, #0d3320 0%, #1a5c32 55%, #2f9e55 100%);
  --soft: linear-gradient(180deg, #f6f7f5 0%, #eef3ef 100%);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--primary-bright);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0;
  font-weight: 600;
  color: var(--fg);
}

p { margin: 0; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Hero stage ─── */
.stage {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: var(--ink-fg);
  background: #091c12;
}

.stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -3;
  transform: scale(1.06);
  animation: kenburns 28s ease-in-out infinite alternate;
}

.stage-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(105deg, rgba(9, 28, 18, 0.92) 0%, rgba(13, 51, 32, 0.78) 42%, rgba(13, 51, 32, 0.42) 100%),
    linear-gradient(180deg, rgba(9, 28, 18, 0.35) 0%, transparent 28%, rgba(9, 28, 18, 0.55) 100%);
}

.stage-glow {
  position: absolute;
  right: -12%;
  bottom: -18%;
  width: min(52vw, 34rem);
  height: min(52vw, 34rem);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 158, 85, 0.28) 0%, transparent 68%);
  z-index: -1;
  filter: blur(8px);
  animation: glowPulse 7s ease-in-out infinite;
  pointer-events: none;
}

.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1160px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding-top: clamp(1.25rem, 3vw, 2rem);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: clamp(3.1rem, 5vw, 4rem);
  height: clamp(3.1rem, 5vw, 4rem);
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.brand-name {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
}

.brand-name em {
  font-style: normal;
  color: var(--primary-bright);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.4rem;
  border: 1px solid rgba(243, 250, 245, 0.22);
  border-radius: 999px;
  background: rgba(9, 28, 18, 0.35);
  backdrop-filter: blur(10px);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(243, 250, 245, 0.7);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.lang-btn:hover { color: #fff; }

.lang-btn.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.lang-sep {
  width: 1px;
  height: 0.85rem;
  background: rgba(243, 250, 245, 0.22);
}

.stage-body {
  width: min(1160px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5.5rem) 0 clamp(2.5rem, 6vh, 4rem);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.eyebrow {
  display: block;
  margin-bottom: 0.95rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-bright);
}

.stage-body h1 {
  color: #fff;
  font-size: clamp(2.35rem, 6.2vw, 4.35rem);
  font-weight: 600;
  max-width: 14ch;
  line-height: 1.05;
}

.stage-body .lede {
  margin-top: 1.25rem;
  max-width: 38rem;
  color: rgba(243, 250, 245, 0.9);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.95rem 1.25rem;
  margin-top: 1.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: var(--shadow);
}

.btn-primary:hover { color: #fff; }

.btn-text {
  color: rgba(243, 250, 245, 0.92);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

.btn-text:hover { color: #fff; }

.pulse-track {
  margin-top: 2.35rem;
  width: min(100%, 18rem);
  height: 2px;
  border-radius: 999px;
  background: rgba(243, 250, 245, 0.16);
  overflow: hidden;
}

.pulse-bar {
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--primary-bright), #7fd99a);
  animation: progressSweep 2.8s ease-in-out infinite;
}

.pulse-label {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 250, 245, 0.62);
}

.stage-place {
  width: min(1160px, calc(100% - 2.5rem));
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(243, 250, 245, 0.7);
}

.stage-place .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-bright);
  box-shadow: 0 0 0 0 rgba(47, 158, 85, 0.55);
  animation: liveDot 2.2s ease-out infinite;
}

/* ─── Contacts ─── */
.contacts {
  background: var(--soft);
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  border-top: 1px solid var(--line-soft);
}

.contacts-inner {
  width: min(1160px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.contacts-head {
  max-width: 36rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.contacts-head .eyebrow {
  color: var(--primary);
}

.contacts-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.55rem);
  color: var(--fg);
}

.contacts-lede {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}

.contact-list li {
  display: grid;
  gap: 0.45rem;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.contact-list p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.contact-list a {
  font-weight: 600;
  color: var(--primary-deep);
}

.contact-list a:hover { color: var(--accent); }

.soft-link {
  font-weight: 500 !important;
  color: var(--muted-soft) !important;
}

.soft-link:hover { color: var(--primary) !important; }

/* ─── Footer ─── */
.site-footer {
  background: #eef1ee;
  border-top: 1px solid var(--line);
  padding: 2rem 0 1.65rem;
}

.footer-inner {
  width: min(1160px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.footer-brand img {
  width: 2.15rem;
  height: 2.15rem;
  object-fit: contain;
}

.footer-brand em {
  font-style: normal;
  color: var(--primary);
}

.footer-copy {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 34rem;
}

.footer-legal {
  color: var(--muted-soft);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

/* ─── Motion ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes kenburns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

@keyframes progressSweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

@keyframes liveDot {
  0% { box-shadow: 0 0 0 0 rgba(47, 158, 85, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(47, 158, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 158, 85, 0); }
}

@media (min-width: 760px) {
  .contact-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
  }

  .footer-inner {
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: 2rem;
  }

  .footer-legal {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .contact-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .stage-body h1 {
    max-width: 15ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage-bg,
  .stage-glow,
  .pulse-bar,
  .stage-place .dot {
    animation: none !important;
  }

  .stage-bg { transform: none; }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
