/* ===================================================================
   GeAD Landing Page — Polished (Orbit Theme Aligned)
   Dark theme, Poppins, Flat-by-default, Accessible
   =================================================================== */

:root {
  /* Brand palette (Orbit Tokens) */
  --primary-50: oklch(0.989 0.034 115.868);
  --primary-100: oklch(0.978 0.073 116.796);
  --primary-200: oklch(0.957 0.146 119.534);
  --primary-300: oklch(0.937 0.208 122.229);
  --primary-400: oklch(0.939 0.213 121.173);
  --primary-500: oklch(0.931 0.228 123.104);
  --primary-600: oklch(0.931 0.228 123.104);
  --primary-700: oklch(0.858 0.214 124.245);
  --primary-800: oklch(0.6 0.144 120.984);
  --primary-900: oklch(0.433 0.105 122.178);
  --primary-950: oklch(0.311 0.075 121.36);

  --gray-50: oklch(0.988 0 89.876);
  --gray-100: oklch(0.964 0 89.876);
  --gray-200: oklch(0.937 0 89.876);
  --gray-300: oklch(0.855 0.003 197.095);
  --gray-400: oklch(0.719 0.004 174.436);
  --gray-500: oklch(0.583 0.005 179.618);
  --gray-600: oklch(0.53 0.006 196.971);
  --gray-700: oklch(0.319 0.003 164.871);
  --gray-800: oklch(0.275 0.003 196.987);
  --gray-900: oklch(0.246 0.003 196.962);
  --gray-950: oklch(0.154 0 89.876);

  --white: #ffffff;

  /* Semantic roles */
  --color-bg: var(--gray-950);
  --color-surface: var(--gray-900);
  --color-surface-raised: var(--gray-800);
  --color-primary: var(--primary-500);
  --color-primary-hover: var(--primary-400);
  --color-text: var(--gray-100);
  --color-text-secondary: var(--gray-300);
  --color-text-muted: var(--gray-400);
  --color-border: var(--gray-800);
  --color-border-subtle: var(--gray-900);
  
  /* Buttons */
  --btn-text-color: var(--gray-950);

  /* Typography */
  --font-family: 'Poppins', 'Inter Variable', system-ui, -apple-system, sans-serif;
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.75rem; /* 28px */
  --font-size-3xl: 2rem; /* 32px */
  --font-size-display: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Radius (Component Philosophy: Arredondados) */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;

  /* Shadows (Elevation: Flat-by-default) */
  --shadow-none: none;
  --shadow-hover: 0 8px 24px oklch(0 0 0 / 0.4);

  /* Z-index scale */
  --z-bg: 0;
  --z-content: 1;
}

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

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

body {
  font-family: var(--font-family);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

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

ul {
  list-style: none;
}

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

/* ── Ambient Background (Refined & Flat) ───────────────────────────── */
.bg-orbs {
  display: none; /* Removed heavy orbs to match Flat-by-default philosophy */
}

/* ── Split Layout ──────────────────────────────────────────────────── */
.split {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* Left: Brand panel — Flat structural dark gray */
.split__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-10);
  background: var(--gray-900);
  border-right: 1px solid var(--color-border);
  position: relative;
}

/* Right: Access panel */
.split__access {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-10);
  background: var(--gray-950);
  position: relative;
}

/* ── Brand Side (Left) ─────────────────────────────────────────────── */
.brand-content {
  max-width: 440px;
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-10);
  width: 100%;
}

.brand-logo {
  width: 120px;
  height: auto;
}

.brand-description {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  font-weight: 500;
  line-height: 1.75;
  max-width: 38ch;
  text-wrap: pretty;
  margin-bottom: var(--space-8);
  text-align: center;
}

.brand-description strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Feature highlights — Flat boxes with subtle borders */
.features {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--gray-950);
  border: 1px solid var(--color-border);
  padding: var(--space-6);
  border-radius: var(--radius-md);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.feature-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

.feature-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-item strong {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.feature-item span {
  font-size: var(--font-size-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ── Access Side (Right) ───────────────────────────────────────────── */
.access-section {
  max-width: 400px;
  width: 100%;
}

.access-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text);
  text-wrap: balance;
  margin-bottom: var(--space-2);
}

.access-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

/* ── Anonymity Seal ────────────────────────────────────────────────── */
.seal {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--gray-900);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
}

.seal__icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.seal__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seal__text strong {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
}

.seal__text span {
  font-size: var(--font-size-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ── CTA Button ────────────────────────────────────────────────────── */
.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 56px;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--btn-text-color);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-out-expo),
    transform var(--duration-fast) var(--ease-out-expo),
    box-shadow var(--duration-fast) var(--ease-out-expo);
  box-shadow: var(--shadow-none); /* Flat by default */
}

.cta-button:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover); /* Elevate on hover */
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-none);
}

.cta-button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

.cta-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── CTA Hint ──────────────────────────────────────────────────────── */
.cta-hint {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-4);
}

/* ── LabSIS Attribution ────────────────────────────────────────────── */
.brand-labsis {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: transparent;
  width: max-content;
  transition: opacity var(--duration-fast) var(--ease-out-expo);
  opacity: 1;
}

.brand-labsis:hover {
  opacity: 1;
}

.brand-labsis__text {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  font-weight: 500;
}

.brand-labsis__link {
  display: flex;
  align-items: center;
}

.brand-labsis__logo {
  height: 24px;
  width: auto;
}

.brand-labsis:hover .brand-labsis__logo {
}

/* ── Footer ────────────────────────────────────────────────────────── */
.footer {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  padding: var(--space-6) var(--space-10);
  text-align: center;
  z-index: var(--z-content);
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__text {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* ── Entrance Animations ───────────────────────────────────────────── */
.brand-content {
  animation: fade-in-up 0.6s var(--ease-out-quart) both;
}

.access-section {
  animation: fade-in-up 0.6s var(--ease-out-quart) 0.1s both;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-item {
  opacity: 0;
  animation: fade-in 0.4s var(--ease-out-quart) both;
}

.feature-item:nth-child(1) { animation-delay: 0.2s; }
.feature-item:nth-child(2) { animation-delay: 0.3s; }
.feature-item:nth-child(3) { animation-delay: 0.4s; }

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Reduced Motion ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .brand-content,
  .access-section,
  .feature-item {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .cta-button {
    transition: none;
  }

  .cta-button:hover {
    transform: none;
  }
}

/* ── Responsive: Tablet (≤ 1024px) ─────────────────────────────────── */
@media (max-width: 1024px) {
  .split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .split__brand {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-10) var(--space-8);
  }

  .split__access {
    padding: var(--space-10) var(--space-8);
  }

  .brand-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
  }

  .logo-wrapper {
    justify-content: center;
  }

  .features {
    text-align: left;
  }

  .brand-labsis {
    margin: var(--space-8) auto 0;
  }

  .access-section {
    max-width: 600px;
    margin: 0 auto;
  }

  .access-title,
  .access-subtitle {
    text-align: center;
  }

  .footer {
    position: relative;
    width: 100%;
    padding: var(--space-6) var(--space-8);
  }
}

/* ── Responsive: Mobile (≤ 640px) ──────────────────────────────────── */
@media (max-width: 640px) {
  .split__brand {
    padding: var(--space-8) var(--space-6);
  }

  .split__access {
    padding: var(--space-8) var(--space-6);
  }

  .brand-logo {
    width: 100px;
  }

  .access-title {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  }
}
