/* ==========================================================================
   MONTOYA.XYZ — Design System
   Minimalist. Precise. High-level.
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #0a0a0a;
  color: #ffffff;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- Layout --- */
.container {
  max-width: 80rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 60rem;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: opacity 0.2s;
}

.nav-logo:hover {
  opacity: 0.7;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.nav-cta:hover {
  color: #ffffff;
}

/* --- Language Toggle --- */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
  transition: border-color 0.2s;
}

.lang-toggle:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.lang-separator {
  color: rgba(255, 255, 255, 0.15);
  font-weight: 300;
}

.lang-option {
  transition: color 0.2s;
}

.lang-option.lang-active {
  color: #ffffff;
}

/* --- Sections --- */
.section {
  padding: 10rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section:first-of-type {
  border-top: none;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
}

.hero-name {
  font-size: clamp(3.5rem, 12vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 3rem;
}

.hero-tagline {
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 2rem;
  max-width: 50rem;
}

.hero-sub {
  font-size: clamp(1.25rem, 3vw, 2.5rem);
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 3rem;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.25);
  max-width: 48rem;
  margin-bottom: 3rem;
}

/* --- Statement --- */
.statement {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  border-top: none;
}

.statement-text {
  font-size: clamp(2.5rem, 9vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 700;
}

/* --- Typography scale --- */
.section-label {
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 4rem;
}

.text-lead {
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  line-height: 1.15;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
}

.text-body {
  font-size: clamp(1.125rem, 2.5vw, 1.75rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2rem;
}

.text-accent {
  font-size: clamp(1.125rem, 2.5vw, 1.75rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 2rem;
}

.text-subtle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.22);
  margin-bottom: 2rem;
}

.text-muted {
  color: rgba(255, 255, 255, 0.35);
}

.text-area {
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.75rem 0;
}

/* --- Grid --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 4rem 4rem;
  }
}

/* --- Areas list --- */
.areas-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* --- CTA --- */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1rem, 2vw, 1.375rem);
  font-weight: 500;
  color: #ffffff;
  transition: color 0.2s, gap 0.3s;
}

.cta-link:hover {
  color: rgba(255, 255, 255, 0.7);
  gap: 0.75rem;
}

.cta-link-lg {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: 2rem;
}

.cta-arrow {
  transition: transform 0.3s;
}

.cta-link:hover .cta-arrow {
  transform: translateX(4px);
}

/* --- Footer --- */
.site-footer {
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.2);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.2s;
}

.footer-legal a:hover,
.footer-legal a[aria-current="page"] {
  color: rgba(255, 255, 255, 0.5);
}

/* --- Cookie Banner (GDPR) — Card Style --- */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 3rem);
  max-width: 42rem;
  background: rgba(22, 22, 26, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.3);
  animation: cookieSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cookieSlideUp {
  from { transform: translateX(-50%) translateY(120%); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}

.cookie-banner-hide {
  animation: cookieSlideDown 0.4s ease-in forwards;
}

@keyframes cookieSlideDown {
  from { transform: translateX(-50%) translateY(0);    opacity: 1; }
  to   { transform: translateX(-50%) translateY(120%); opacity: 0; }
}

.cookie-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cookie-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.cookie-text a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  transition: text-decoration-color 0.2s, color 0.2s;
}

.cookie-text a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-direction: column;
}

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

.cookie-btn {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
  flex: 1;
  text-align: center;
}

.cookie-btn:active {
  transform: scale(0.97);
}

.cookie-btn-accept {
  background: #ffffff;
  color: #0a0a0a;
}

.cookie-btn-accept:hover {
  background: rgba(255, 255, 255, 0.88);
}

.cookie-btn-reject {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-btn-reject:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --- Legal Pages --- */
.legal-page {
  padding-top: 8rem;
}

.legal-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.legal-updated {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 4rem;
}

.legal-page h2 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.legal-page h3 {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.legal-page p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.legal-page a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  color: #fff;
}

.legal-page ul {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.legal-page ul li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.375rem;
  list-style: disc;
}

.legal-page strong {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.legal-page code {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.65);
}

/* Legal table */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-table th {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-table td {
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: 0.75rem;
    width: calc(100% - 1.5rem);
    padding: 1.25rem 1.25rem;
    border-radius: 12px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-table {
    font-size: 0.8125rem;
  }

  .legal-table th,
  .legal-table td {
    padding: 0.5rem 0.5rem;
  }
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* No animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Responsive fine-tuning
   ========================================================================== */
@media (max-width: 768px) {
  .section {
    padding: 6rem 0;
  }

  .hero {
    padding-top: 6rem;
  }

  .section-label {
    margin-bottom: 2.5rem;
  }

  .hero-name {
    margin-bottom: 2rem;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 3rem;
  }
}
