/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* ── Brand Blues ── */
  --navy-deep: #0a1033;        /* deepest — hero bg, footer */
  --navy: #14215c;             /* primary brand navy */
  --navy-surface: #1a2d70;     /* elevated navy surface */
  --navy-muted: #283b85;       /* muted navy (borders on dark) */
  --blue: #3568f0;             /* primary accent — CTAs, links */
  --blue-bright: #5b8af7;      /* hover / glow states */
  --blue-pale: #dce7fe;        /* tinted backgrounds, badges */
  --cyan: #22c5e0;             /* secondary pop accent */
  --cyan-pale: #d3f7fc;        /* cyan tinted backgrounds */

  /* ── Neutrals (cool slate undertone) ── */
  --white: #ffffff;
  --gray-25:  #fafbfc;
  --gray-50:  #f5f6f8;
  --gray-100: #eef0f4;
  --gray-200: #e2e5eb;
  --gray-300: #cdd2db;
  --gray-400: #9da4b2;
  --gray-500: #717885;
  --gray-600: #555b66;
  --gray-700: #3b3f48;
  --gray-800: #23262c;
  --gray-900: #111318;

  /* ── Semantic ── */
  --success-bg: #e6f7ef;
  --success-text: #0d7d4a;
  --success-border: #a3e4c1;
  --warning-bg: #fef9ec;
  --warning-text: #a86f0a;
  --warning-border: #f7d98c;

  /* ── Gradients ── */
  --gradient-hero: linear-gradient(170deg, #0a1033 0%, #14215c 40%, #1a2d70 100%);
  --gradient-features: linear-gradient(160deg, #0d1540 0%, #162060 50%, #1e347a 100%);
  --gradient-accent: linear-gradient(135deg, #3568f0 0%, #5b8af7 50%, #22c5e0 100%);
  --gradient-card-dark: linear-gradient(145deg, rgba(26,45,112,0.95) 0%, rgba(20,33,92,0.98) 100%);
  --gradient-text: linear-gradient(135deg, #5b8af7 0%, #22c5e0 100%);
  --gradient-page-hero: linear-gradient(180deg, #f5f6f8 0%, #ffffff 100%);

  /* ── Shadows ── */
  --shadow-xs: 0 1px 2px rgba(10,16,51,0.04);
  --shadow-sm: 0 1px 3px rgba(10,16,51,0.06), 0 1px 2px rgba(10,16,51,0.04);
  --shadow-md: 0 4px 16px rgba(10,16,51,0.08), 0 2px 4px rgba(10,16,51,0.04);
  --shadow-lg: 0 12px 32px rgba(10,16,51,0.1), 0 4px 8px rgba(10,16,51,0.05);
  --shadow-xl: 0 20px 48px rgba(10,16,51,0.14), 0 8px 16px rgba(10,16,51,0.06);
  --shadow-glow-blue: 0 0 0 3px rgba(53,104,240,0.15);
  --shadow-glow-cyan: 0 0 24px rgba(34,197,224,0.25);
  --shadow-card-hover: 0 16px 40px rgba(10,16,51,0.14);

  /* ── Glass ── */
  --glass-bg: rgba(255,255,255,0.7);
  --glass-border: rgba(255,255,255,0.5);
  --glass-blur: blur(16px);

  /* ── Typography ── */
  --font-primary: 'Helvetica', 'Arial', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  /* ── Radii ── */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 40px;
}

/* ============================================================
   2. CSS RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* ============================================================
   3. UTILITY CLASSES
   ============================================================ */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.btn--signin {
  padding: 10px 24px;
  background: var(--navy);
  color: var(--white);
  border-radius: 24px;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}

.btn--signin:hover {
  background: var(--blue);
  box-shadow: var(--shadow-glow-blue);
  transform: translateY(-1px);
}

.btn--primary {
  padding: 0.75rem 1.5rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 2rem;
  font-size: 0.875rem;
  min-width: 120px;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--blue);
  box-shadow: var(--shadow-glow-blue);
  transform: translateY(-1px);
}

.btn--white {
  padding: 14px 40px;
  background: var(--white);
  color: var(--navy-deep);
  border-radius: 8px;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
}

.btn--white:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline-light {
  padding: 14px 40px;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  font-size: 16px;
}

.btn--outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn--outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
}

.btn--outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--notify {
  padding: 16px 28px;
  background: var(--white);
  color: var(--navy);
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn--notify:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Reveal animation helper */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ============================================================
   4. HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
}

.header__pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.header__pill--shadow {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header__logo img {
  height: 32px;
  width: auto;
}

.header__brand {
  font-size: 16px;
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}

.header__nav {
  display: none; /* hidden on mobile */
  align-items: center;
  gap: 32px;
}

.header__nav--open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100px;
  left: 15px;
  right: 15px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  z-index: 100;
}

.nav-item__link,
.nav-item__trigger {
  color: var(--navy);
  font-size: 16px;
  font-weight: 500;
  padding: 8px 4px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-item__chevron {
  width: 14px;
  height: 14px;
  color: var(--navy);
  transition: transform 0.2s;
}

.nav-item--open .nav-item__chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0 8px 16px;
}

.nav-item--open .nav-dropdown {
  display: flex;
}

.nav-dropdown a {
  font-size: 15px;
  color: var(--gray-600);
  padding: 6px 0;
  transition: color 0.2s;
}

.nav-dropdown a:hover {
  color: var(--navy);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger--open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger--open span:nth-child(2) {
  opacity: 0;
}

.hamburger--open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.header-spacer {
  height: 100px;
}

/* ============================================================
   5. HERO SECTION
   ============================================================ */
.hero {
  padding: 2rem 1rem;
  background: var(--gradient-page-hero);
}

.hero__content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  padding: 1.5rem 0.5rem;
}

.hero__title {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  overflow: visible;
  animation: fadeInUp 0.8s forwards;
  animation-delay: 0.2s;
  opacity: 0;
  color: var(--gray-900);
}

.hero__prefix {
  font-weight: 700;
  font-family: var(--font-primary);
}

.hero__highlight {
  font-weight: 400;
  font-style: italic;
  font-family: var(--font-display);
  position: relative;
  display: inline-block;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-right: 0.6em;
}

.hero__highlight::after {
  content: '';
  position: absolute;
  width: 0;
  height: 4px;
  bottom: -15px;
  left: 0;
  background: var(--gradient-accent);
  border-radius: 2px;
  animation: lineGrow 1.2s forwards;
  animation-delay: 1s;
}

.hero__desc {
  font-size: 1.1rem;
  max-width: 800px;
  margin-bottom: 2rem;
  line-height: 1.5;
  color: var(--gray-500);
  animation: fadeInUp 0.8s forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero__cta {
  animation: fadeInUp 0.8s forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero__cta-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--gray-500);
}

.hero__cta-note a {
  color: var(--blue);
  text-decoration: underline;
}

/* ============================================================
   6. PARTNER LOGOS
   ============================================================ */
.partners {
  padding: 3rem 1.5rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.partners__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.partners__heading {
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.partners__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 180px;
  transition: transform 0.3s;
}

.partner-item:hover {
  transform: translateY(-3px);
}

.partner-item img {
  max-width: 150px;
  max-height: 55px;
  object-fit: contain;
  transition: transform 0.3s;
}

.partner-item span {
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .partners__grid {
    gap: 48px;
  }

  .partner-item img {
    max-width: 180px;
    max-height: 65px;
  }
}

/* ============================================================
   7. FEATURE SHOWCASE
   ============================================================ */
.features {
  margin: 40px auto;
  max-width: 1200px;
  padding: 3rem 1.5rem;
  background: var(--gradient-features);
  border-radius: var(--radius-xl);
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.features__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 40%, rgba(53,104,240,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(34,197,224,0.08) 0%, transparent 55%);
  pointer-events: none;
}

.features__inner {
  position: relative;
  z-index: 1;
}

.features__heading {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.features__subtitle {
  font-size: 15px;
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}

.features__video {
  position: relative;
  margin-bottom: 2.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  background: #000;
}

.features__video-poster {
  width: 100%;
  display: block;
}

.features__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  transition: 0.3s;
}

.features__play-btn:hover {
  background: var(--blue-bright);
  box-shadow: var(--shadow-glow-blue);
  transform: translate(-50%, -50%) scale(1.08);
}

.features__cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--blue-light);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

.features__buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* ============================================================
   8. PUBLICATION CARD
   ============================================================ */
.publication {
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px 24px;
  background: var(--white);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.publication__accent {
  position: absolute;
  height: 100%;
  width: 4px;
  left: 0;
  top: 0;
  background: var(--gradient-accent);
}

.publication__deco {
  position: absolute;
  border-radius: 50%;
  background: rgba(26,42,108,0.05);
  z-index: 0;
}

.publication__deco--1 {
  right: -50px;
  bottom: -50px;
  width: 200px;
  height: 200px;
}

.publication__deco--2 {
  right: 100px;
  top: -30px;
  width: 100px;
  height: 100px;
}

.publication__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.publication h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.publication p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-500);
  margin-bottom: 24px;
  max-width: 700px;
}

/* ============================================================
   9. NEWS SECTION
   ============================================================ */
.news {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.news__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.news__header h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.2;
}

.news__all-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 600;
  font-size: 15px;
  transition: gap 0.3s;
}

.news__all-link:hover {
  gap: 10px;
}

.news__grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gray-300);
}

.news-card__image {
  overflow: hidden;
  height: 200px;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.news-card:hover .news-card__image img {
  transform: scale(1.05);
}

.news-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card__tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 10px;
  line-height: 1.35;
}

.news-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__meta {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card__more {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.3s;
}

.news-card:hover .news-card__more {
  gap: 10px;
}

/* ============================================================
   10. NEWSLETTER
   ============================================================ */
.newsletter {
  margin-top: 40px;
  padding: 40px 24px;
  background: var(--gradient-hero);
  color: var(--white);
  box-shadow: var(--shadow-xl);
}

.newsletter__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.newsletter h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}

.newsletter p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 650px;
  color: var(--gray-200);
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 650px;
}

.newsletter__form input {
  padding: 16px 20px;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}

.newsletter__form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter__form input:focus {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
}

.newsletter__privacy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 20px;
  max-width: 650px;
}

.newsletter__privacy a {
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

/* ============================================================
   10.5 SPECTRUM UPLOAD & IDENTIFICATION
   ============================================================ */
.uploader {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
}

.uploader__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.uploader__heading {
  font-size: 28px;
  font-weight: 600;
  color: var(--navy-deep);
  text-align: center;
  margin-bottom: 12px;
}

.uploader__subtitle {
  font-size: 16px;
  color: var(--gray-500);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

/* Amide question */
.uploader__amide {
  text-align: center;
  padding: 32px 24px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  margin-bottom: 24px;
}

.uploader__amide-text {
  font-size: 16px;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.uploader__amide-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.btn--amide {
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: 0.3s;
  min-width: 280px;
}

.btn--amide-yes {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn--amide-yes:hover {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  box-shadow: var(--shadow-glow-blue);
}

.btn--amide-no {
  background: var(--white);
  color: var(--navy);
}

.btn--amide-no:hover {
  background: var(--gray-100);
}

.uploader__amide-hint {
  font-size: 13px;
  color: var(--gray-500);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Loading */
.uploader__loading {
  text-align: center;
  padding: 32px;
  color: var(--gray-500);
  font-size: 15px;
}

.uploader__loading p {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.uploader__dropzone {
  position: relative;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  background: var(--gray-50);
}

.uploader__dropzone:hover,
.uploader__dropzone--active {
  border-color: var(--blue);
  background: rgba(37,99,235,0.04);
}

.uploader__icon {
  color: var(--blue);
  margin-bottom: 16px;
}

.uploader__dropzone-text {
  font-size: 16px;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.uploader__dropzone-text strong {
  color: var(--blue);
}

.uploader__dropzone-hint {
  font-size: 13px;
  color: var(--gray-500);
}

.uploader__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Result panel */
.uploader__result {
  margin-top: 32px;
  animation: fadeInUp 0.5s ease-out;
}

.uploader__result-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.uploader__chart-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px;
}

.uploader__chart {
  width: 100%;
  height: 300px;
}

.uploader__matches {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
}

.match-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.match-item--best {
  border-color: var(--blue);
  background: rgba(37,99,235,0.04);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.match-item__rank {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-400);
  min-width: 28px;
}

.match-item--best .match-item__rank {
  color: var(--blue);
}

.match-item__info {
  flex: 1;
}

.match-item__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.match-item__type {
  font-size: 13px;
  color: var(--gray-500);
}

.match-item__score {
  text-align: right;
}

.match-item__score-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--blue);
}

.match-item--best .match-item__score-value {
  color: var(--navy);
}

.match-item__score-label {
  font-size: 12px;
  color: var(--gray-500);
}

.uploader__note {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--blue);
}

/* Tablet+ */
@media (min-width: 768px) {
  .uploader__result-grid {
    flex-direction: row;
  }

  .uploader__chart-wrap {
    flex: 3;
  }

  .uploader__matches {
    flex: 2;
  }
}

/* ============================================================
   11. FOOTER
   ============================================================ */
.footer {
  background: var(--gray-25);
  border-top: 1px solid var(--gray-100);
  padding: 40px 0 20px;
}

.footer__main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 36px;
}

.footer__brand {
  max-width: 300px;
}

.footer__brand-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer__brand-title img {
  height: 28px;
}

.footer__brand p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 14px;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--gray-500);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}

.social-icon:hover {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-glow-blue);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__links h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.footer__links a {
  font-size: 13px;
  color: var(--gray-500);
  padding: 3px 0;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--navy);
}

.footer__bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 20px 0;
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--gray-500);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__legal a {
  font-size: 13px;
  color: var(--gray-500);
  transition: color 0.2s;
}

.footer__legal a:hover {
  color: var(--navy);
}

/* ============================================================
   12. CHAT WIDGET
   ============================================================ */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.chat-widget:hover {
  background: var(--blue-bright);
  box-shadow: var(--shadow-glow-blue);
  transform: scale(1.08);
}

/* ============================================================
   13. ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineGrow {
  from { width: 0; }
  to { width: 100%; }
}

/* ============================================================
   13.5 SUBPAGE STYLES (Context / Mission / Methods / Team)
   ============================================================ */

/* Page Hero (smaller than homepage hero) */
.page-hero {
  padding: 3rem 1.5rem 1.5rem;
  background: var(--gradient-page-hero);
}

.page-hero__content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 1rem;
  line-height: 1.2;
  overflow: visible;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.text-highlight {
  font-style: italic;
  font-family: var(--font-display);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-right: 0.4em;
}

/* Page Body */
.page-body {
  padding: 2rem 1.5rem 4rem;
}

.page-body__inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* Info Section */
.info-section {
  margin-bottom: 3.5rem;
}

.info-section h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 0.5rem;
}

.info-section__intro {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 700px;
}

/* Info Grid */
.info-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-grid--2 { /* 2-col on desktop */ }
.info-grid--3 { /* 3-col on desktop */ }

/* Info Card */
.info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: box-shadow 0.3s, transform 0.3s;
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.info-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 0.5rem;
}

.info-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 0.4rem;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Numbered card */
.info-card--simple {
  padding: 1.5rem;
  position: relative;
}

.info-card__num {
  font-size: 2rem;
  font-weight: 700;
  color: rgba(37,99,235,0.15);
  margin-bottom: 0.5rem;
  line-height: 1;
}

/* Icon card */
.info-card--icon {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-card__icon-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,0.08);
  border-radius: 12px;
}

/* Mission Statement */
.mission-statement {
  padding: 2rem;
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  margin-bottom: 3rem;
}

.mission-statement__text {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.7;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.mission-statement__text strong {
  color: var(--white);
}

/* Method Block (Methods page) */
.method-block {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  background: var(--white);
  transition: box-shadow 0.3s;
}

.method-block:hover {
  box-shadow: var(--shadow-lg);
}

.method-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.method-block__title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy-deep);
}

.method-block__badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--success-bg);
  color: var(--success-text);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.method-block__badge--soon {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.method-block__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
}

.method-block__desc p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.method-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.method-features li {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.method-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

/* Method Entry Cards (methods.html) */
.method-entry {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
  cursor: pointer;
  margin-bottom: 1.25rem;
}

.method-entry:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--blue);
}

.method-entry__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,0.08);
  border-radius: 14px;
  color: var(--navy);
}

.method-entry__info { flex: 1; }

.method-entry__info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 0.35rem;
}

.method-entry__info p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.method-entry__badge {
  margin-top: 0.25rem;
}

.method-entry__arrow {
  font-size: 1.5rem;
  color: var(--gray-300);
  transition: color 0.3s, transform 0.3s;
}

.method-entry:hover .method-entry__arrow {
  color: var(--blue);
  transform: translateX(4px);
}

/* Method sub-buttons */
.method-entry__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-shrink: 0;
}

.method-entry__btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  background: var(--white);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.method-entry__btn:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  background: rgba(37,99,235,0.03);
}

.method-entry__btn-label {
  color: var(--navy-deep);
}

.method-entry__btn-badge {
  font-size: 0.7rem;
  white-space: nowrap;
}

.method-entry__btn--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 640px) {
  .method-entry {
    flex-wrap: wrap;
  }
  .method-entry__actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }
  .method-entry__btn {
    flex: 1;
    min-width: 140px;
    justify-content: center;
  }
}

/* Contact Card */
.contact-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.contact-card p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.contact-card a {
  color: var(--blue);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Tablet+ */
@media (min-width: 768px) {
  .page-hero h1 { font-size: 2.8rem; }
  .page-hero p { font-size: 1.15rem; }

  .info-grid { flex-direction: row; flex-wrap: wrap; }
  .info-grid--2 .info-card,
  .info-grid > .info-card { flex: 1 1 calc(50% - 0.75rem); min-width: 280px; }
  .info-grid--3 .info-card { flex: 1 1 calc(33.333% - 1rem); min-width: 220px; }

  .method-block__body { flex-direction: row; }
  .method-block__desc { flex: 1.2; }
  .method-block__visual { flex: 1; }
}

/* Desktop */
@media (min-width: 1024px) {
  .page-hero { padding: 4rem 2rem 2rem; }
  .page-hero h1 { font-size: 3rem; }
  .mission-statement__text { font-size: 1.25rem; }
}

/* ============================================================
   14. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet: 768px+ */
@media (min-width: 768px) {

  /* Header */
  .header__pill {
    padding: 0 30px;
  }

  .header__brand {
    font-size: 16px;
  }

  /* Hero */
  .hero {
    padding: 3rem 2rem;
  }

  .hero__content {
    padding: 2rem 1rem;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__desc {
    font-size: 1.2rem;
  }

  /* Partners */
  .partners__grid {
    justify-content: space-between;
    gap: 20px;
  }

  .partners__grid img {
    max-width: 180px;
    max-height: 60px;
  }

  /* Features */
  .features {
    padding: 4rem 2rem;
  }

  .features__cards {
    flex-direction: row;
    gap: 1.5rem;
  }

  .features__buttons {
    flex-direction: row;
  }

  /* Publication */
  .publication {
    padding: 40px 30px;
  }

  .publication h2 {
    font-size: 1.75rem;
  }

  .publication p {
    font-size: 1.1rem;
  }

  /* News */
  .news__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .news__grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .news-card {
    flex: 1 1 calc(50% - 14px);
    min-width: 280px;
  }

  /* Newsletter */
  .newsletter__form {
    flex-direction: row;
    align-items: flex-start;
  }

  .newsletter__form input {
    flex: 1 1 300px;
  }

  .newsletter__form button {
    flex: 0 0 auto;
  }

  /* Footer */
  .footer__main {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 36px;
  }

  .footer__brand {
    flex: 2 1 250px;
  }

  .footer__links {
    flex: 1 1 120px;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {

  /* Header */
  .header__pill {
    padding: 0 35px;
  }

  .hamburger {
    display: none;
  }

  .header__nav {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    box-shadow: none;
    padding: 0;
    flex-grow: 1;
    justify-content: center;
  }

  .header__brand {
    opacity: 1;
    width: auto;
  }

  /* Nav dropdowns */
  .nav-item {
    position: relative;
  }

  .nav-dropdown {
    position: absolute;
    top: 100%;
    left: -12px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    min-width: 180px;
    display: none;
  }

  .nav-item--open .nav-dropdown,
  .nav-item:hover .nav-dropdown {
    display: flex;
  }

  .nav-dropdown a {
    padding: 6px 0;
  }

  /* Hero */
  .hero__content {
    padding: 3rem 2rem;
  }

  .hero__title {
    font-size: 4.5rem;
    padding-top: 2rem;
  }

  .hero__desc {
    font-size: 1.5rem;
  }

  /* Features */
  .features {
    padding: 5rem 2rem;
    margin: 80px auto;
  }

  .features__heading {
    font-size: 32px;
  }

  .features__subtitle {
    font-size: 17px;
  }

  .feature-card h3 {
    font-size: 20px;
  }

  .feature-card p {
    font-size: 15px;
  }

  /* News */
  .news__grid {
    flex-wrap: nowrap;
    gap: 28px;
  }

  .news-card {
    flex: 1 1 33.333%;
  }

  .news-card__image {
    height: 220px;
  }

  .news__header h2 {
    font-size: 32px;
  }

  /* Newsletter */
  .newsletter {
    padding: 40px 30px;
  }

  /* Footer */
  .footer__main {
    flex-wrap: nowrap;
    gap: 48px;
  }
}

/* ============================================================
   15. AUTH MODAL
   ============================================================ */
.auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,16,51,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.auth-modal__card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
  z-index: 1;
  animation: authSlideIn 0.3s ease-out;
}

@keyframes authSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-modal__close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-400);
  cursor: pointer;
  line-height: 1;
}
.auth-modal__close:hover { color: var(--gray-700); }

.auth-modal__tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--gray-100);
}

.auth-modal__tab {
  flex: 1;
  padding: 0.6rem 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.auth-modal__tab:hover { color: var(--gray-700); }
.auth-modal__tab--active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.auth-form { display: flex; flex-direction: column; gap: 1rem; }

.auth-form__field { display: flex; flex-direction: column; gap: 0.35rem; }

.auth-form__field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
}

.auth-form__field input {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-form__field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--shadow-glow-blue);
}

.auth-form__error {
  font-size: 0.8rem;
  color: #dc2626;
  padding: 0.4rem 0.6rem;
  background: #fef2f2;
  border-radius: var(--radius-sm);
}

.auth-form__toggle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
}
.auth-form__toggle a { color: var(--blue); font-weight: 500; }
.auth-form__toggle a:hover { text-decoration: underline; }

/* ============================================================
   16. USER MENU (nav)
   ============================================================ */
.user-menu {
  display: flex;
  align-items: center;
  position: relative;
}

.user-menu__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 28px;
  cursor: pointer;
  transition: box-shadow 0.2s;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--gray-700);
}
.user-menu__trigger:hover { box-shadow: var(--shadow-sm); }

.user-menu__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.user-menu__name {
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 0.5rem 0;
  z-index: 100;
}

.user-dropdown--open { display: block; }

.user-dropdown__item {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.user-dropdown__item:hover { background: var(--gray-50); color: var(--navy); }

.user-dropdown__item--signout {
  width: 100%; text-align: left;
  background: none; border: none;
  cursor: pointer; font-family: inherit;
  color: var(--gray-500);
}
.user-dropdown__item--signout:hover { color: #dc2626; }

.user-dropdown__divider {
  border: none;
  border-top: 1px solid var(--gray-100);
  margin: 0.35rem 0;
}

/* user-only / guest-only visibility handled by JS */
