/* NEXOR THERAPEUTICS — studio dark landing page */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);

  /* Spacing (4px system) */
  --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;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Color — derived from the NEXOR brand mark itself:
     near-black studio background, cyan DNA-helix accent */
  --color-bg: #08090b;
  --color-bg-2: #0c0e11;
  --color-vignette: #000000;
  --color-text: #e7e9ea;
  --color-text-muted: #8b9296;
  --color-text-faint: #565b5f;
  --color-border: #202427;
  --color-primary: #4fd8e8;
  --color-primary-dim: #2f8b96;
  --color-primary-highlight: rgba(79, 216, 232, 0.12);

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Cabinet Grotesk', 'General Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

/* ============ Studio backdrop ============ */

.studio-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 620px at 50% 38%, rgba(79, 216, 232, 0.10), transparent 62%),
    radial-gradient(ellipse 1400px 900px at 50% 100%, rgba(79, 216, 232, 0.05), transparent 70%),
    linear-gradient(180deg, #08090b 0%, #08090b 55%, #050607 100%);
}

.studio-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.025;
  mix-blend-mode: overlay;
}

/* ============ Layout shell ============ */

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ============ Hero ============ */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(var(--space-16), 8vw, var(--space-24)) var(--space-6) var(--space-16);
  gap: clamp(var(--space-10), 6vw, var(--space-16));
}

.hero__logo-wrap {
  position: relative;
  width: min(680px, 92vw);
  opacity: 0;
  animation: logo-reveal 1.6s var(--ease-out) 0.15s forwards;
}

.hero__logo-wrap::before {
  content: '';
  position: absolute;
  inset: -18% -10%;
  background: radial-gradient(ellipse 60% 65% at 50% 50%, rgba(79, 216, 232, 0.16), transparent 72%);
  filter: blur(6px);
  z-index: -1;
}

.hero__logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(79, 216, 232, 0.14));
}

@keyframes logo-reveal {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

.hero__theme {
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  opacity: 0;
  animation: fade-up 1.2s var(--ease-out) 0.9s forwards;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--color-primary-dim);
}

.hero__statement {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 34ch;
}

.hero__statement em {
  font-style: normal;
  color: var(--color-text);
  font-weight: 400;
}

@keyframes fade-up {
  from {
    opacity: 0;
    clip-path: inset(0 0 30% 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

.hero__divider {
  width: 1px;
  height: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(180deg, transparent, var(--color-border), transparent);
  opacity: 0;
  animation: fade-in 1s var(--ease-out) 1.3s forwards;
}

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

.hero__contact {
  opacity: 0;
  animation: fade-in 1s var(--ease-out) 1.5s forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.hero__contact-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.hero__contact-link {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  padding-bottom: var(--space-1);
  border-bottom: 1px solid var(--color-border);
  transition:
    color var(--transition-interactive),
    border-color var(--transition-interactive);
}

.hero__contact-link:hover,
.hero__contact-link:focus-visible {
  color: var(--color-primary);
  border-color: var(--color-primary-dim);
}

/* ============ Footer ============ */

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-10) var(--space-6) var(--space-10);
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.site-footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.02em;
}

/* ============ Accessibility ============ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-bg-2);
  color: var(--color-text);
  padding: var(--space-3) var(--space-4);
  z-index: 100;
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* ============ Responsive ============ */

@media (max-width: 480px) {
  .hero {
    gap: var(--space-10);
  }
  .hero__statement {
    max-width: 30ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo-wrap,
  .hero__theme,
  .hero__divider,
  .hero__contact {
    opacity: 1;
    animation: none;
  }
}
