/* ============================================================
   ONCO-ALLY DESIGN SYSTEM — MIT PROJECT
   Modern, world-class UI with glassmorphism + gradient design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  --page-gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3rem, 6vw, 5rem);
  --section-y-lg: clamp(4rem, 8vw, 6rem);
  --content-max: 1280px;
  --touch-min: 44px;
  --primary: #0D47A1;
  --primary-light: #1565C0;
  --primary-dark: #0a3880;
  --accent: #00BCD4;
  --accent2: #26C6DA;
  --teal: #00ACC1;
  --gold: #FFB300;
  --gold-light: #FFC107;
  --white: #ffffff;
  --off-white: #F8FAFF;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --dark-bg: #0a0f1e;
  --dark-surface: #0f1a35;
  --card-bg: rgba(255,255,255,0.07);
  --card-border: rgba(255,255,255,0.12);
  --glass-bg: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.15);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.15);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
  --shadow-xl: 0 25px 60px rgba(0,0,0,0.3);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  background: var(--dark-bg);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

/* ============================================================
   HEADER
   ============================================================ */
.main-header {
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.85em 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.main-header.scrolled {
  background: rgba(10, 15, 30, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

@media (max-width: 960px) {
  .main-header.nav-open {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  }
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem 1rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--touch-min);
  height: var(--touch-min);
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.main-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.main-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.main-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  justify-self: center;
}

.site-nav ul {
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(0, 188, 212, 0.4);
}

.logo h1 {
  color: var(--white);
  font-size: 1.35em;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav ul,
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.15em;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

nav ul li a,
.site-nav ul li a {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  font-size: 0.88em;
  letter-spacing: 0.01em;
  padding: 0.45em 0.75em;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  white-space: nowrap;
}

nav ul li a:hover,
.site-nav ul li a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

nav ul li a.active,
.site-nav ul li a.active {
  color: var(--accent);
  background: rgba(0, 188, 212, 0.12);
}

.header-actions {
  display: flex;
  gap: 0.5em;
  align-items: center;
}

.button-signin {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.88em;
  padding: 0.45em 1em;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  transition: var(--transition-fast);
}

.button-signin:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
}

.button-signup {
  background: linear-gradient(135deg, var(--gold) 0%, #FF8F00 100%);
  color: #1a1a1a;
  padding: 0.5em 1.2em;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88em;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px rgba(255, 179, 0, 0.35);
  transition: var(--transition-fast);
}

.button-signup:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 179, 0, 0.5);
}

@media (min-width: 961px) {
  .logo {
    grid-column: 1;
    justify-self: start;
  }

  .site-nav {
    grid-column: 2;
    max-height: none;
    overflow: visible;
  }

  .nav-toggle {
    display: none;
  }

  .header-actions {
    grid-column: 3;
    justify-self: end;
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #050d1f 0%, #0a1a3a 35%, #0d2a5e 65%, #0a1a3a 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 188, 212, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(13, 71, 161, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(255, 179, 0, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

/* Animated grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float-orb 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,188,212,0.15) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(13,71,161,0.25) 0%, transparent 70%);
  bottom: -80px; right: 10%;
  animation-delay: -4s;
}

.hero-orb-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,179,0,0.1) 0%, transparent 70%);
  top: 40%; right: 20%;
  animation-delay: -2s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3em;
  flex-wrap: wrap;
  padding: 5em 0 4em;
}

.hero-image-box {
  flex: 1 1 320px;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image-box::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,188,212,0.15) 0%, transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.hero-image {
  width: 280px;
  max-width: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,188,212,0.2), 0 0 60px rgba(0,188,212,0.1);
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1 1 380px;
  text-align: left;
  padding: 0 1em;
}

.hero-badges-row {
  display: flex;
  gap: 0.75em;
  align-items: center;
  margin-bottom: 1.2em;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.project-tagline-hero {
  display: inline-block;
  font-size: clamp(0.72rem, 2.2vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #E53935;
  text-decoration: none;
  margin-bottom: 0.9rem;
  line-height: 1.35;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.project-tagline-hero:hover {
  color: #ff6b6b;
  text-decoration: underline;
}

.project-tagline-hero:focus-visible {
  color: #ff6b6b;
  text-decoration: underline;
  outline: 2px solid rgba(229, 57, 53, 0.5);
  outline-offset: 3px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: rgba(0,188,212,0.1);
  border: 1px solid rgba(0,188,212,0.3);
  color: var(--accent);
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35em 0.9em;
  border-radius: var(--radius-full);
  margin-bottom: 1.2em;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.bigger-hero-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 0.5em;
}

.bigger-hero-title .gradient-word {
  background: linear-gradient(135deg, var(--accent) 0%, #80DEEA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bigger-hero-subtitle {
  font-size: clamp(1em, 2vw, 1.2em);
  color: rgba(255,255,255,0.65);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 2em;
  max-width: 480px;
}

.hero-cta-group {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  align-items: center;
}

.button-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: var(--touch-min);
  background: linear-gradient(135deg, var(--gold) 0%, #FF8F00 100%);
  color: #1a1a1a;
  padding: 0.85em 2em;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95em;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 24px rgba(255, 179, 0, 0.4);
  transition: var(--transition);
}

.button-join:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 179, 0, 0.55);
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: var(--touch-min);
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  font-size: 0.95em;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.2);
  transition: var(--transition);
}

.button-secondary:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: linear-gradient(90deg, rgba(0,188,212,0.08) 0%, rgba(13,71,161,0.12) 50%, rgba(0,188,212,0.08) 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 2.5em 0;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1 1 180px;
  text-align: center;
  padding: 1em 2em;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2.2em;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--white) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82em;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.25em;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75em;
}

.section-title {
  font-size: clamp(1.6em, 3vw, 2.2em);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.5em;
}

.section-subtitle {
  font-size: 1em;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   PROBLEM & SOLUTION CARDS
   ============================================================ */
.problem-solution {
  padding: var(--section-y-lg) 0;
  text-align: center;
}

.problem-solution .section-header {
  margin-bottom: 3em;
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5em;
  justify-content: center;
}

.card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2em 2.2em;
  text-align: left;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,188,212,0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,188,212,0.1);
}

.card:hover::before {
  opacity: 1;
}

.card-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6em;
  margin-bottom: 1.2em;
}

.card-icon-wrap.problem {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
}

.card-icon-wrap.solution {
  background: rgba(0,188,212,0.15);
  color: var(--accent);
}

.card h3 {
  color: var(--white);
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 0.75em;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.93em;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
}

/* ============================================================
   PARTNERSHIPS
   ============================================================ */
.partnership-card {
  padding: 4em 0;
  text-align: center;
  position: relative;
}

.partnership-card h2 {
  font-size: clamp(1.5em, 3vw, 2em);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75em;
  letter-spacing: -0.02em;
}

.partnership-card p {
  color: rgba(255,255,255,0.55);
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.97em;
  line-height: 1.8;
}

/* ============================================================
   ICON FEATURE SECTION
   ============================================================ */
.icon-section {
  padding: var(--section-y-lg) 0;
  text-align: center;
}

.icon-section-header {
  margin-bottom: 3em;
}

.icon-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5em;
  justify-content: center;
}

.icon-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2em 1.5em;
  text-align: center;
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.icon-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,188,212,0.08) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition);
}

.icon-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,188,212,0.25);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.icon-card:hover::after {
  opacity: 1;
}

.icon-card ion-icon {
  font-size: 2.2em;
  color: var(--accent);
  margin-bottom: 0.8em;
  display: block;
  filter: drop-shadow(0 0 12px rgba(0,188,212,0.4));
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.icon-card:hover ion-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 20px rgba(0,188,212,0.7));
}

.icon-card h4 {
  font-size: 1em;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5em;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.icon-card p {
  font-size: 0.85em;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: var(--section-y-lg) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  background: linear-gradient(135deg, rgba(13,71,161,0.5) 0%, rgba(0,188,212,0.2) 100%);
  border: 1px solid rgba(0,188,212,0.2);
  border-radius: var(--radius-xl);
  padding: 4em 3em;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(0,188,212,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-inner h2 {
  font-size: clamp(1.6em, 3vw, 2.4em);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 0.5em;
  position: relative;
}

.cta-inner p {
  color: rgba(255,255,255,0.6);
  font-size: 1em;
  margin-bottom: 2em;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: rgba(5, 10, 20, 0.95);
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  padding: 2.5em 0;
  font-size: 0.88em;
  color: rgba(255,255,255,0.4);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

.footer-mit-cto-link {
  color: #E53935;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-mit-cto-link:hover,
.footer-mit-cto-link:focus-visible {
  color: #ff6b6b;
  text-decoration: underline;
  outline: none;
}

.footer-links {
  display: flex;
  gap: 1.5em;
}

.footer-links a {
  color: rgba(255,255,255,0.4);
  font-size: 0.9em;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
}

.views {
  color: rgba(255,255,255,0.3);
  font-size: 0.85em;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Intersection Observer based animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

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

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.nowrap {
  /* No longer forcing nowrap on mobile — handled via clamp */
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #80DEEA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #FFCA28 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto;
    align-items: center;
  }

  .logo {
    grid-area: 1 / 1 / 2 / 2;
    min-width: 0;
  }

  .logo h1 {
    font-size: clamp(1.1rem, 4vw, 1.35rem);
  }

  .nav-toggle {
    display: flex;
    grid-area: 1 / 2 / 2 / 3;
  }

  .header-actions {
    grid-area: 1 / 3 / 2 / 4;
    flex-shrink: 0;
  }

  .site-nav {
    grid-area: 2 / 1 / 3 / 4;
    justify-self: stretch;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .main-header.nav-open .site-nav {
    max-height: min(78vh, 560px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0.35rem 0 0.85rem;
  }

  .site-nav ul li a {
    white-space: normal;
    padding: 0.72rem 0.65rem;
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    font-size: 0.92rem;
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.1em;
  }

  nav ul li a {
    font-size: 0.8em;
    padding: 0.4em 0.6em;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 3em 0;
    gap: 2em;
    text-align: center;
    flex-direction: column-reverse;
  }

  .hero-text {
    text-align: center;
    padding: 0;
  }

  .hero-text .project-tagline-hero {
    text-align: center;
  }

  .hero-text .hero-badges-row {
    justify-content: center;
  }

  .hero-image-box {
    flex: 1 1 100%;
  }

  .hero-image {
    width: 220px;
  }

  .bigger-hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .stats-row {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .stat-item {
    flex: 1 1 auto;
    padding: 1.15em 0.5em;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .stat-label {
    font-size: 0.74em;
    letter-spacing: 0.04em;
    line-height: 1.35;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .cards-row {
    grid-template-columns: 1fr;
  }

  .icon-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-inner {
    padding: 2.5em 1.5em;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .icon-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(0,188,212,0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0,188,212,0.6);
}
