/* ============================================
   STYLE.CSS — Core Layout, Typography & Colors
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-bg-primary: #080c14;
  --color-bg-secondary: #0f141f;
  --color-bg-tertiary: #161c2e;
  --color-teal: #00d4aa;
  --color-purple: #7c3aed;
  --color-blue: #3b82f6;
  --color-neon: #00ffcc;
  --color-red: #ef4444;
  --color-text-primary: #f4f6fb;
  --color-text-secondary: #9ca8b8;
  --color-text-muted: #6b7a8f;
  --color-border: rgba(255, 255, 255, 0.07);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container-max: 1200px;
  --section-padding: 120px;
  --header-height: 72px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-glass: 0 4px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  --shadow-glass-hover: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  background-image:
    radial-gradient(ellipse 100% 60% at 50% -15%, rgba(124, 58, 237, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(0, 212, 170, 0.06), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 70%, rgba(59, 130, 246, 0.05), transparent 45%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}

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

ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-teal);
  margin-bottom: 12px;
  padding: 6px 16px;
  border: 1px solid rgba(0, 212, 170, 0.28);
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, rgba(0, 212, 170, 0.12) 0%, rgba(0, 212, 170, 0.05) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 8px 24px rgba(0, 0, 0, 0.2);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
  color: var(--color-text-primary);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 640px;
  line-height: 1.8;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-header .section-desc {
  margin: 0 auto;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-teal), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Section Base --- */
.section {
  padding: var(--section-padding) 0;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- Fullpage Snap: Section Overlay --- */
.snap-section-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.88);
  opacity: 0;
  z-index: 50;
  pointer-events: none;
  will-change: opacity, backdrop-filter;
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
}

/* --- Hidden SVG Filters --- */
.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header--scrolled {
  background: rgba(8, 12, 20, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.15em;
}

.logo-text {
  background: linear-gradient(135deg, var(--color-teal), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header__nav {
  position: relative;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text-primary);
}

.nav-link.active {
  background: rgba(0, 212, 170, 0.12);
  color: var(--color-teal);
}

.header__cta {
  flex-shrink: 0;
}

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

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

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

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
}

.btn--sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

.btn--primary {
  background: linear-gradient(145deg, #00e0b8 0%, var(--color-teal) 45%, #00b894 100%);
  color: #04120e;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 4px 24px rgba(0, 212, 170, 0.28);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 10px 36px rgba(0, 212, 170, 0.42);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero .snap-section-overlay {
  z-index: 60;
}

/* Avoid will-change on all sections — it can rasterize content at low res and blur photos/text on some GPUs. */
.hero__content {
  will-change: transform, opacity;
}

.hero__liquid-ether,
.hero__particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* LiquidEther container (fluid sim canvas inside) */
.liquid-ether-container {
  overflow: hidden;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* When used as hero background, keep absolute positioning */
.hero__liquid-ether.liquid-ether-container {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.hero__particles {
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, var(--color-bg-primary) 75%),
    linear-gradient(180deg, transparent 60%, var(--color-bg-primary) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--header-height) 24px calc(var(--header-height) + 24px);
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero__badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-teal);
  padding: 8px 22px;
  border: 1px solid rgba(0, 212, 170, 0.35);
  border-radius: var(--radius-full);
  background: rgba(8, 12, 20, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.1), 0 12px 40px rgba(0, 0, 0, 0.25);
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.035em;
  text-shadow:
    0 2px 24px rgba(8, 12, 20, 0.85),
    0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Brighter stops + no dark shadow so “Before the Breach” stays readable on the hero */
.hero__title .text-gradient {
  text-shadow: none;
  background: linear-gradient(
    125deg,
    #5ffce8 0%,
    #2dd4bf 28%,
    #7dd3fc 52%,
    #c4b5fd 78%,
    #f0abfc 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 28px rgba(45, 212, 191, 0.22))
    drop-shadow(0 0 20px rgba(196, 181, 253, 0.18));
}

.hero__subtitle {
  font-size: 1.12rem;
  color: rgba(203, 213, 225, 0.95);
  max-width: 34rem;
  margin: 0 auto 40px;
  line-height: 1.75;
  text-shadow: 0 1px 16px rgba(8, 12, 20, 0.75);
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
  50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.problem__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.stat-card {
  text-align: center;
  padding: 24px 18px;
}

.stat-card__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-teal);
  margin-bottom: 6px;
  text-shadow: 0 0 40px rgba(0, 212, 170, 0.25);
}

.stat-card__label {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* Comparison Card */
.comparison-card {
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}

.comparison-card__side {
  padding: 8px 4px;
}

.comparison-card__side h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin-bottom: 16px;
}

.comparison-card__side ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comparison-card__side li {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  padding-left: 8px;
}

.comparison-card__side--old li {
  text-decoration: line-through;
  opacity: 0.7;
}

.comparison-card__side--new li {
  color: var(--color-text-primary);
}

.comparison-card__divider {
  text-align: center;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-card__divider span {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
}

@media (min-width: 640px) {
  .comparison-card {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px 16px;
    padding: 32px 28px;
    align-items: start;
  }

  .comparison-card__divider {
    padding: 0 8px;
    align-self: stretch;
    min-height: 100%;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.02) 50%,
      transparent 100%
    );
  }
}

/* ============================================
   PRODUCT — EXPANDED SECTION w/ ColorBends + CardSwap
   ============================================ */
.product--expanded {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0;
  background: var(--color-bg-primary);
}

.product__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.product__bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 12, 20, 0.88) 0%, rgba(8, 12, 20, 0.42) 50%, rgba(8, 12, 20, 0.65) 100%),
    linear-gradient(180deg, var(--color-bg-primary) 0%, transparent 10%, transparent 90%, var(--color-bg-primary) 100%);
  pointer-events: none;
}

.product__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.product__text {
  text-align: left;
}

.product__text .section-header {
  text-align: left;
  margin-bottom: 0;
}

.product__text .section-desc {
  margin: 0 0 32px;
}

.product__highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.product__highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.product__highlight svg {
  flex-shrink: 0;
}

/* --- CardSwap Container --- */
.product__cards {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.card-swap-container {
  position: relative;
  width: 420px;
  height: 360px;
  perspective: 900px;
  overflow: visible;
  transform: translate(5%, 10%);
  transform-origin: center center;
}

.swap-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 420px;
  height: 360px;
  border-radius: var(--radius-lg);
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  cursor: pointer;
}

.swap-card__inner {
  width: 100%;
  height: 100%;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(8, 12, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: background 0.5s ease;
}

.swap-card.swap-card--active .swap-card__inner {
  background: rgba(30, 35, 55, 0.93);
  border-color: rgba(255, 255, 255, 0.15);
}

.swap-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.78);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.swap-card__inner:hover {
  transform: none;
}

.swap-card__icon {
  margin-bottom: 16px;
}

.swap-card__inner h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.swap-card__inner p {
  font-size: 0.9rem;
  color: #c8d1e0;
  line-height: 1.7;
  flex: 1;
}

.swap-card__tag {
  display: inline-block;
  align-self: flex-start;
  margin-top: 16px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #00f0c0;
  border: 1px solid rgba(0, 212, 170, 0.35);
  border-radius: var(--radius-full);
  background: rgba(0, 212, 170, 0.12);
}

/* ============================================
   FEATURES GRID (kept for reference/fallback)
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  text-align: left;
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(0, 212, 170, 0.06);
  border: 1px solid rgba(0, 212, 170, 0.1);
  margin-bottom: 20px;
}

.feature-card__title {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--color-text-primary);
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.feature-card:hover {
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: 0 8px 40px rgba(0, 212, 170, 0.08);
}

/* ============================================
   HOW IT WORKS — STEPS
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps__line {
  display: none;
}

.step-card {
  position: relative;
  z-index: 1;
  padding: 32px 24px;
  text-align: center;
}

.step-card__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-teal), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  margin-bottom: 8px;
}

.step-card__icon {
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ============================================
   BENEFITS
   ============================================ */
.benefits__comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: stretch;
}

.benefits__column {
  padding: 40px 32px;
}

.benefits__column h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.benefits__column ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefits__column li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.benefits__column li svg {
  flex-shrink: 0;
}

.benefits__column--old h3 {
  color: var(--color-red);
}

.benefits__column--new h3 {
  color: var(--color-teal);
}

.benefits__column--new li {
  color: var(--color-text-primary);
}

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

.benefits__vs span {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  writing-mode: vertical-rl;
  letter-spacing: 0.2em;
}

/* ============================================
   USE CASES
   ============================================ */
.use-cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.use-case-card {
  padding: 32px;
}

.use-case-card__icon {
  margin-bottom: 20px;
}

.use-case-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.use-case-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.use-case-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
}

/* ============================================
   ABOUT
   ============================================ */
.about__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about__pillar {
  padding: 40px 32px;
  text-align: center;
}

.about__pillar-icon {
  margin-bottom: 20px;
}

.about__pillar h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.about__pillar p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* ============================================
   TEAM
   ============================================ */

/* Header: stronger badge + clearer hierarchy */
.team .section-header {
  margin-bottom: 56px;
}

.team .section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 10px 22px;
  margin-bottom: 16px;
  border-color: rgba(0, 212, 170, 0.45);
  background: rgba(0, 212, 170, 0.1);
  box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.08);
}

.team .section-title {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.team-section__lede {
  max-width: 52ch;
  color: rgba(226, 232, 240, 0.95);
  font-size: 1.05rem;
  line-height: 1.75;
}

.team-section__brand {
  font-weight: 600;
  color: var(--color-text-primary);
}

.team-section__product {
  font-weight: 600;
  color: var(--color-teal);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 28px;
  max-width: 1040px;
  margin: 0 auto;
  /* Same row height for all columns; shorter bios get extra space above the social row */
  align-items: stretch;
}

.team-card {
  padding: 32px 26px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

/* Solid, readable cards */
.team .glass-card {
  background: linear-gradient(165deg, rgba(20, 26, 42, 0.97) 0%, rgba(14, 18, 32, 0.96) 100%);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-glass);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.team-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Reduce hover lift on team cards */
.team-card.glass-card:hover {
  transform: none;
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: var(--shadow-glass-hover), 0 0 48px rgba(124, 58, 237, 0.08);
}

/* Contained portraits — one consistent size; pinned to top of card */
.team-card__photo {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto 22px;
  margin-top: 0;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  align-self: center;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 12px 32px rgba(0, 0, 0, 0.45);
  background: var(--color-bg-tertiary);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Tighter crop for varied selfie framing (e.g. car / ceiling) */
.team-card__photo--arif img {
  object-position: 50% 32%;
}

.team-card__name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.team-card__role {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 212, 170, 0.95);
  margin-bottom: 14px;
}

.team-card__bio {
  font-size: 0.92rem;
  color: rgba(220, 228, 238, 0.95);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 38ch;
  flex: 1 1 auto;
  min-height: 0;
}

.team-card__socials {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.team-card__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.team-card__socials a:hover {
  color: var(--color-teal);
  background: rgba(0, 212, 170, 0.12);
  border-color: rgba(0, 212, 170, 0.35);
  transform: translateY(-1px);
}

/* Fade-only reveal on team cards (no translateY) — keeps all three columns vertically aligned */
.team .team-card.reveal {
  opacity: 0;
  transform: none;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.team .team-card.reveal.visible {
  opacity: 1;
}

/* ============================================
   CONTACT
   ============================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.contact__form-wrapper {
  padding: 40px;
}

.contact-success {
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(0, 212, 170, 0.12);
  border: 1px solid rgba(0, 212, 170, 0.35);
  color: var(--color-text-primary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.contact-api-banner {
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

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

.contact__info-card {
  padding: 32px;
}

.contact__info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.contact__info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.contact__social-card {
  padding: 32px;
}

.contact__social-card h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.contact__socials {
  display: flex;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  color: var(--color-teal);
  border-color: var(--color-teal);
  background: rgba(0, 212, 170, 0.1);
}

/* ============================================
   GOOEY NAV EFFECT
   ============================================ */
.gooey-effect {
  position: absolute;
  pointer-events: none;
  z-index: 10;
}

.gooey-filter {
  filter: url(#gooey);
}

.gooey-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gooey-text.active {
  opacity: 0;
}

.gooey-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  animation: gooeyParticle var(--t, 600ms) ease-out forwards;
}

.gooey-point {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, #00d4aa);
  transform: scale(var(--sc, 1));
}

@keyframes gooeyParticle {
  0% {
    transform: translate(var(--sx, 0), var(--sy, 0)) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--ex, 0), var(--ey, 0)) rotate(var(--r, 0deg)) scale(0);
    opacity: 0;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  padding: 72px 0 28px;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.45) 0%, var(--color-bg-primary) 55%);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 170, 0.35) 25%,
    rgba(124, 58, 237, 0.28) 50%,
    rgba(0, 212, 170, 0.35) 75%,
    transparent
  );
  pointer-events: none;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__tagline {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer__links h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-text-primary);
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

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

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

.footer__bottom-links a {
  color: var(--color-text-muted);
}

.footer__bottom-links a:hover {
  color: var(--color-teal);
}
