/* graphite_lime palette */
:root {
  --bg: #131313;
  --surface: #1C1C1C;
  --surface-alt: #262626;
  --primary: #A3E635;
  --primary-hover: #84CC16;
  --secondary: #22D3EE;
  --accent: #F472B6;
  --text: #FAFAFA;
  --text-secondary: #C4C4C4;
  --text-muted: #7C7C7C;
  --border: rgba(255, 255, 255, 0.09);
  --radius: 8px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 720px;
  --header-height: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover,
a:focus-visible {
  color: var(--primary-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  background: rgba(19, 19, 19, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.site-logo:hover,
.site-logo:focus-visible {
  color: var(--text);
}

.site-logo__mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* Main */
.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

/* Hero (index) */
.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero__badge {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(163, 230, 53, 0.1);
  border: 1px solid rgba(163, 230, 53, 0.25);
  border-radius: 999px;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero__title span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__text {
  margin: 0 auto 2rem;
  max-width: 32rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Notify form */
.notify-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 26rem;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .notify-form {
    flex-direction: row;
  }
}

.notify-form__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.notify-form__input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}

.notify-form__input::placeholder {
  color: var(--text-muted);
}

.notify-form__input:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.notify-form__input:focus {
  border-color: var(--primary);
  outline: none;
}

.notify-form__btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--bg);
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.notify-form__btn:hover {
  background: var(--primary-hover);
}

.notify-form__note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.notify-form__success {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--primary);
  background: rgba(163, 230, 53, 0.08);
  border: 1px solid rgba(163, 230, 53, 0.2);
  border-radius: var(--radius);
}

.notify-form__success.is-visible {
  display: block;
}

/* Decorative glow */
.hero__glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 90vw);
  height: 400px;
  background: radial-gradient(ellipse, rgba(163, 230, 53, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Legal pages */
.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-page__updated {
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
}

.legal-page ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.legal-page li + li {
  margin-top: 0.35rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
  list-style: none;
  padding: 0;
}

.site-footer__links a {
  color: var(--text-secondary);
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--primary);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-banner__inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

@media (min-width: 640px) {
  .cookie-banner__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .cookie-banner__text {
    flex: 1;
    min-width: 200px;
  }
}

.cookie-banner__text {
  flex: 1;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 0.55rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cookie-banner__btn--accept {
  color: var(--bg);
  background: var(--primary);
}

.cookie-banner__btn--accept:hover {
  background: var(--primary-hover);
}

.cookie-banner__btn--decline {
  color: var(--text-secondary);
  background: transparent;
  border-color: var(--border);
}

.cookie-banner__btn--decline:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--surface-alt);
}

/* Cookie preferences panel */
.cookie-preferences {
  display: none;
  flex-basis: 100%;
  width: 100%;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.cookie-preferences.is-visible {
  display: block;
}

.cookie-preferences__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.cookie-preferences__item label {
  cursor: pointer;
}

.cookie-preferences input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--primary);
  cursor: pointer;
}

.cookie-preferences input[type="checkbox"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
