/* ═══════════════════════════════════════════════════════════
   Hayden-Fisher Technologies — Premium UI v2
   Warm obsidian + amber fire. Professional glows & polish.
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg-deep:        #0c0a09;
  --bg-surface:     #1c1917;
  --bg-elevated:    #292524;
  --bg-glass:       rgba(28, 25, 23, 0.6);
  --text-primary:   #fafaf9;
  --text-secondary: #a8a29e;
  --text-muted:     #78716c;
  --accent:         #f59e0b;
  --accent-hot:     #f97316;
  --accent-glow:    rgba(245, 158, 11, 0.15);
  --accent-ember:   rgba(249, 115, 22, 0.08);
  --border:         rgba(168, 162, 158, 0.08);
  --border-hover:   rgba(245, 158, 11, 0.25);
  --font-display:   'Instrument Serif', Georgia, serif;
  --font-body:      'DM Sans', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', monospace;
  --section-pad:    clamp(4rem, 10vw, 8rem);
  --container:      1280px;
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
  min-height: 100vh; background-color: var(--bg-deep); color: var(--text-primary);
  font-family: var(--font-body); font-weight: 400; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; background: none; border: none; outline: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.15; }

/* ── Film Grain ────────────────────────────────────────────── */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 200px;
}

/* ── Cursor Glow ───────────────────────────────────────────── */
.cursor-glow {
  position: fixed; width: 500px; height: 500px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.07) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: left 0.8s var(--ease-out), top 0.8s var(--ease-out), opacity 0.4s ease;
  opacity: 0; will-change: left, top;
}
@media (hover: hover) { .cursor-glow { opacity: 1; } }

/* ── Layout ────────────────────────────────────────────────── */
.container, .footer__container, .contact__container, .apps__container,
.products__container, .about__container, .team__container, .partners__container {
  width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem;
}
@media (min-width: 640px) {
  .container, .footer__container, .contact__container, .apps__container,
  .products__container, .about__container, .team__container, .partners__container { padding: 0 2rem; }
}
.section, .contact, .apps, .products, .about, .team, .partners { padding: var(--section-pad) 0; position: relative; }

/* ── Section Headers ───────────────────────────────────────── */
.section__header { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem;
}
.section__eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--accent); }
.section__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.75rem, 6vw, 5rem); line-height: 1.1; letter-spacing: -0.02em;
}
.section__title em { font-style: italic; color: var(--accent); }
.section__subtitle { font-size: 1.1875rem; color: var(--text-secondary); max-width: 580px; margin-top: 1.25rem; line-height: 1.7; }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; height: 4.5rem;
  background: rgba(12, 10, 9, 0.7);
  backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--border); z-index: 1000;
  transition: background 350ms ease, box-shadow 350ms ease;
}
.nav.scrolled { background: rgba(12, 10, 9, 0.92); box-shadow: 0 1px 40px rgba(0,0,0,0.5); }
.nav__container {
  max-width: var(--container); margin: 0 auto; padding: 0 2rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { display: flex; align-items: center; gap: 0.75rem; }
.nav__logo-mark {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 400;
  color: var(--accent); letter-spacing: -0.04em; line-height: 1;
}
.nav__logo-text {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-secondary); position: relative; top: 1px;
}
.nav__toggle { display: flex; flex-direction: column; gap: 6px; padding: 0.5rem; z-index: 10; }
@media (min-width: 768px) { .nav__toggle { display: none; } }
.nav__toggle-bar {
  display: block; width: 24px; height: 1.5px; background: var(--text-primary);
  border-radius: 2px; transition: transform 300ms var(--ease-out), opacity 200ms ease;
}
.nav__toggle.active .nav__toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.active .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle.active .nav__toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav__links {
  display: none; flex-direction: column; position: absolute; top: 4.5rem; left: 0; width: 100%;
  background: rgba(12, 10, 9, 0.97); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border); padding: 1.5rem 0;
}
.nav__links.active { display: flex; }
@media (min-width: 768px) {
  .nav__links {
    display: flex; flex-direction: row; position: static; width: auto;
    background: none; backdrop-filter: none; border-bottom: none; padding: 0; gap: 0.25rem; align-items: center;
  }
}
.nav__link {
  display: block; padding: 0.75rem 1.5rem; font-size: 0.8125rem; font-weight: 500;
  color: var(--text-secondary); letter-spacing: 0.03em; transition: color 250ms ease;
}
.nav__link:hover { color: var(--text-primary); }
.nav__link--active { color: var(--accent) !important; }
@media (min-width: 768px) { .nav__link { padding: 0.5rem 0.75rem; } }
.nav__link--cta {
  color: var(--bg-deep) !important; background: var(--accent); border-radius: 100px;
  padding: 0.5rem 1.25rem; font-weight: 600;
  transition: background 250ms ease, transform 250ms var(--ease-spring), box-shadow 250ms ease;
}
.nav__link--cta:hover {
  background: var(--accent-hot); transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

/* ── Scroll Reveals ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; } .reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; } .reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; } .reveal-delay-6 { transition-delay: 0.48s; }
.reveal-left { opacity: 0; transform: translateX(-60px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(60px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 7rem 1.5rem 4rem; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__orb {
  position: absolute; border-radius: 50%; filter: blur(100px); will-change: transform;
  animation: orbFloat 20s ease-in-out infinite;
}
.hero__orb--1 {
  width: 50vw; height: 50vw; max-width: 600px; max-height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  top: 10%; left: 15%;
}
.hero__orb--2 {
  width: 40vw; height: 40vw; max-width: 500px; max-height: 500px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
  bottom: 10%; right: 10%; animation-delay: -7s; animation-duration: 25s;
}
.hero__orb--3 {
  width: 30vw; height: 30vw; max-width: 400px; max-height: 400px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.06) 0%, transparent 70%);
  top: 50%; left: 60%; animation-delay: -13s; animation-duration: 30s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.02); }
}
.hero__lines {
  position: absolute; inset: 0; opacity: 0.025;
  background: repeating-conic-gradient(from 0deg at 50% 55%, transparent 0deg, transparent 8deg, var(--text-primary) 8deg, var(--text-primary) 8.3deg);
}
.hero__content { position: relative; z-index: 1; max-width: 900px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.625rem;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 2.5rem;
  opacity: 0; animation: heroFadeUp 1s var(--ease-out) 0.3s forwards;
}
.hero__badge-dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 8px rgba(245,158,11,0.6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(245,158,11,0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 16px rgba(245,158,11,0); }
}
.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3rem, 8vw, 6.5rem); line-height: 1.05; letter-spacing: -0.03em;
  margin-bottom: 2rem; opacity: 0; animation: heroFadeUp 1s var(--ease-out) 0.5s forwards;
}
.hero__title-line { display: block; }
.hero__title-accent {
  color: var(--accent); font-style: italic; position: relative;
  text-shadow: 0 0 60px rgba(245, 158, 11, 0.15);
}
.hero__title-accent::after {
  content: ''; position: absolute; bottom: 0.08em; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent); opacity: 0.4;
}
.hero__description {
  font-size: clamp(1.0625rem, 1.8vw, 1.375rem); color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 3rem; line-height: 1.8;
  opacity: 0; animation: heroFadeUp 1s var(--ease-out) 0.7s forwards;
}
.hero__actions {
  display: flex; flex-direction: column; gap: 1rem; align-items: center;
  opacity: 0; animation: heroFadeUp 1s var(--ease-out) 0.9s forwards;
}
@media (min-width: 640px) { .hero__actions { flex-direction: row; justify-content: center; } }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.hero__btn {
  display: inline-flex; align-items: center; gap: 0.625rem;
  padding: 1rem 2.25rem; font-size: 0.9375rem; font-weight: 600;
  letter-spacing: 0.01em; border-radius: 100px; transition: all 300ms var(--ease-spring);
  position: relative; overflow: hidden;
}
.hero__btn--primary {
  background: var(--accent); color: var(--bg-deep);
  box-shadow: 0 0 20px rgba(245,158,11,0.12);
}
.hero__btn--primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform 600ms ease;
}
.hero__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.35), 0 0 60px rgba(245, 158, 11, 0.12);
}
.hero__btn--primary:hover::before { transform: translateX(100%); }
.hero__btn--secondary {
  background: transparent; color: var(--text-primary); border: 1px solid rgba(168, 162, 158, 0.2);
}
.hero__btn--secondary:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 30px rgba(245, 158, 11, 0.06); }

.hero__scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  color: var(--text-muted); font-size: 0.6875rem; letter-spacing: 0.15em; text-transform: uppercase;
  opacity: 0; animation: heroFadeUp 1s var(--ease-out) 1.3s forwards;
}
.hero__scroll-line {
  width: 1px; height: 40px; background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 1; transform: scaleY(1); } 50% { opacity: 0.3; transform: scaleY(0.6); } }

/* ── ABOUT ─────────────────────────────────────────────────── */
.about { background: var(--bg-deep); overflow: hidden; }
.about__container { max-width: var(--container); }
.about__grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .about__grid { grid-template-columns: 1fr 1fr; gap: 6rem; } }
.about__text { order: 2; }
@media (min-width: 1024px) { .about__text { order: 1; } }
.about__description { font-size: 1.0625rem; color: var(--text-secondary); line-height: 1.8; margin-top: 1.5rem; }
.about__stats {
  order: 1; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
}
.about__stat { flex: 0 1 160px; }
@media (min-width: 1024px) { .about__stats { order: 2; } }

.about__stat {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 1rem;
  padding: 2rem 1rem; text-align: center; position: relative; overflow: hidden;
  transition: border-color 400ms ease, transform 400ms var(--ease-spring), box-shadow 400ms ease;
}
.about__stat::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 2px; background: var(--accent); opacity: 0;
  transition: opacity 400ms ease, width 400ms var(--ease-out);
}
.about__stat::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-glow) 0%, transparent 60%);
  opacity: 0; transition: opacity 400ms ease;
}
.about__stat:hover {
  border-color: var(--border-hover); transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(245, 158, 11, 0.06);
}
.about__stat:hover::before { opacity: 1; width: 100%; }
.about__stat:hover::after { opacity: 1; }
.about__stat-value {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 400;
  color: var(--accent); margin-bottom: 0.5rem; line-height: 1; position: relative; z-index: 1;
}
.about__stat-label {
  font-size: 0.75rem; font-weight: 500; color: var(--text-muted);
  letter-spacing: 0.1em; text-transform: uppercase; position: relative; z-index: 1;
}

/* ── PRODUCTS / SERVICES ───────────────────────────────────── */
.products { background: var(--bg-surface); position: relative; }
.products::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}
.products__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .products__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .products__grid .product-card--center {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.75rem);
    justify-self: center;
    width: 100%;
  }
}

.product-card {
  position: relative; background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: 1.25rem; padding: 2rem; display: flex; flex-direction: column;
  transition: transform 500ms var(--ease-spring), border-color 400ms ease, box-shadow 500ms ease;
  overflow: hidden;
}
@media (min-width: 640px) { .product-card { padding: 2.5rem; } }
.product-card::after {
  content: ''; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
  border-radius: 1.25rem 1.25rem 0 0; opacity: 0; transition: opacity 400ms ease;
}
/* Corner glow on hover */
.product-card::before {
  content: ''; position: absolute; top: -40px; right: -40px; width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
  border-radius: 50%; opacity: 0; transition: opacity 500ms ease;
}
.product-card:hover {
  transform: translateY(-6px); border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 60px var(--accent-ember), inset 0 1px 0 rgba(255,255,255,0.03);
}
.product-card:hover::after { opacity: 1; }
.product-card:hover::before { opacity: 1; }

.product-card__icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  border-radius: 0.875rem; margin-bottom: 1.75rem;
  background: var(--accent-ember); border: 1px solid rgba(245, 158, 11, 0.1);
  color: var(--accent);
  transition: transform 400ms var(--ease-spring), box-shadow 400ms ease;
}
.product-card__icon svg { width: 26px; height: 26px; }
.product-card:hover .product-card__icon {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 0 24px rgba(245,158,11,0.12);
}
.product-card__icon--secondary { background: rgba(168, 85, 247, 0.08); border-color: rgba(168, 85, 247, 0.12); color: #a855f7; }
.product-card__icon--tertiary { background: rgba(20, 184, 166, 0.08); border-color: rgba(20, 184, 166, 0.12); color: #14b8a6; }
.product-card__title {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 400;
  margin-bottom: 0.875rem; letter-spacing: -0.01em;
}
.product-card__description { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.75; margin-bottom: 1.75rem; flex: 1; }
.product-card__link {
  display: inline-flex; align-items: center; gap: 0.625rem; font-size: 0.875rem;
  font-weight: 600; color: var(--accent); transition: gap 300ms var(--ease-out), color 250ms ease;
}
.product-card__link:hover { gap: 1rem; color: var(--accent-hot); }

/* ── APPLICATIONS ──────────────────────────────────────────── */
.apps { background: var(--bg-deep); position: relative; }
.apps__grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .apps__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (min-width: 1024px) {
  .apps__grid { grid-template-columns: repeat(2, 1fr); }
  .apps__grid .app-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.75rem);
    justify-self: center;
    width: 100%;
  }
}

.app-card {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 1.25rem;
  padding: 2rem; transition: border-color 400ms ease, box-shadow 500ms ease, transform 500ms var(--ease-spring);
  overflow: hidden; position: relative;
}
.app-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 0;
  background: linear-gradient(to top, var(--accent-ember), transparent);
  transition: height 500ms var(--ease-out);
}
.app-card:hover {
  border-color: var(--border-hover); transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3), 0 0 40px var(--accent-ember);
}
.app-card:hover::before { height: 100%; }
.app-card__header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; position: relative; z-index: 1; }
.app-card__icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 0.75rem; background: var(--accent-ember);
  border: 1px solid rgba(245, 158, 11, 0.1); color: var(--accent); flex-shrink: 0;
  transition: transform 400ms var(--ease-spring);
}
.app-card__icon svg { width: 22px; height: 22px; }
.app-card:hover .app-card__icon { transform: rotate(-5deg) scale(1.1); }
.app-card__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; position: relative; z-index: 1; }
.app-card__type {
  display: inline-block; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--accent);
  background: var(--accent-ember); border: 1px solid rgba(245, 158, 11, 0.1);
  border-radius: 100px; padding: 0.25rem 0.75rem; margin-bottom: 0.875rem;
  text-transform: uppercase; letter-spacing: 0.08em; position: relative; z-index: 1;
}
.app-card__description { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.75; margin-bottom: 1.25rem; position: relative; z-index: 1; }
.app-card__link {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem;
  font-weight: 600; color: var(--accent); transition: gap 300ms var(--ease-out); position: relative; z-index: 1;
}
.app-card__link:hover { gap: 0.875rem; }
.apps__loading {
  text-align: center; color: var(--text-muted); font-size: 0.9375rem; padding: 4rem 0; grid-column: 1 / -1;
}
.apps__loading::after {
  content: ''; display: inline-block; width: 16px; height: 16px;
  border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin-left: 0.75rem; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.apps__empty { text-align: center; color: var(--text-muted); font-size: 1rem; padding: 4rem 0; grid-column: 1 / -1; }

/* ── TEAM ──────────────────────────────────────────────────── */
.team { background: var(--bg-surface); position: relative; }
.team::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}
.team__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .team__grid { grid-template-columns: repeat(2, 1fr); } }

.team-card {
  background: var(--bg-deep); border: 1px solid var(--border); border-radius: 1.25rem;
  padding: 2.5rem; position: relative; overflow: hidden;
  transition: border-color 400ms ease, box-shadow 500ms ease, transform 500ms var(--ease-spring);
}
.team-card::after {
  content: ''; position: absolute; top: -60px; left: -60px; width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
  border-radius: 50%; opacity: 0; transition: opacity 500ms ease;
}
.team-card:hover {
  border-color: var(--border-hover); transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3), 0 0 40px var(--accent-ember);
}
.team-card:hover::after { opacity: 1; }

.team-card__avatar {
  width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  font-family: var(--font-display); font-size: 1.5rem; color: var(--bg-deep);
  margin-bottom: 1.5rem; flex-shrink: 0;
  box-shadow: 0 0 20px rgba(245,158,11,0.12);
  transition: transform 400ms var(--ease-spring), box-shadow 400ms ease;
  overflow: hidden; object-fit: cover;
}
.team-card__avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.team-card:hover .team-card__avatar {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(245,158,11,0.2);
}
.team-card__name {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; margin-bottom: 0.25rem;
}
.team-card__role {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.team-card__bio { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.75; margin-bottom: 1.5rem; }
.team-card__link {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem;
  font-weight: 600; color: var(--text-muted); transition: color 250ms ease, gap 300ms var(--ease-out);
}
.team-card__link:hover { color: var(--accent); gap: 0.75rem; }
.team-card__link svg { width: 16px; height: 16px; fill: currentColor; }

/* ── PARTNERS ──────────────────────────────────────────────── */
.partners { background: var(--bg-deep); }
.partners__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .partners__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.partner-card {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 1.25rem;
  padding: 2.5rem; position: relative; overflow: hidden;
  transition: border-color 400ms ease, box-shadow 500ms ease, transform 500ms var(--ease-spring);
}
.partner-card::before {
  content: ''; position: absolute; bottom: -60px; right: -60px; width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(217,169,99,0.06) 0%, transparent 70%);
  border-radius: 50%; opacity: 0; transition: opacity 500ms ease;
}
.partner-card:hover {
  border-color: rgba(217,169,99,0.25); transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3), 0 0 40px rgba(217,169,99,0.06);
}
.partner-card:hover::before { opacity: 1; }

.partner-card__badge {
  display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono);
  font-size: 0.6875rem; color: #d9a963; background: rgba(217,169,99,0.08);
  border: 1px solid rgba(217,169,99,0.15); border-radius: 100px; padding: 0.25rem 0.75rem;
  margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.partner-card__badge-dot {
  width: 5px; height: 5px; background: #d9a963; border-radius: 50%;
  box-shadow: 0 0 6px rgba(217,169,99,0.6);
}
.partner-card__name { font-family: var(--font-display); font-size: 2rem; font-weight: 400; margin-bottom: 0.75rem; }
.partner-card__logo {
  width: 100%; max-width: 280px; border-radius: 0.75rem; margin: 0 auto 1.25rem;
  border: 1px solid rgba(217,169,99,0.12); overflow: hidden;
}
.partner-card__logo img { width: 100%; height: auto; display: block; }
.partner-card__description { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.75; margin-bottom: 1.5rem; }
.partner-card__link {
  display: inline-flex; align-items: center; gap: 0.625rem; font-size: 0.875rem;
  font-weight: 600; color: #d9a963; transition: gap 300ms var(--ease-out);
}
.partner-card__link:hover { gap: 1rem; }

.partner-info { padding: 1rem 0; }
.partner-info__title { font-family: var(--font-display); font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 400; margin-bottom: 1rem; }
.partner-info__text { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.75; }

/* ── CONTACT ───────────────────────────────────────────────── */
.contact { background: var(--bg-surface); position: relative; }
.contact::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}
.contact__container { max-width: 760px; }
.contact__form { display: flex; flex-direction: column; gap: 1.75rem; }
.contact__row { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
@media (min-width: 768px) { .contact__row { grid-template-columns: 1fr 1fr; } }
.contact__field { display: flex; flex-direction: column; gap: 0.625rem; }
.contact__label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

.contact__input, .contact__textarea {
  width: 100%; padding: 1rem 1.25rem; background: var(--bg-deep);
  border: 1px solid var(--border); border-radius: 0.75rem; color: var(--text-primary);
  font-size: 0.9375rem; transition: border-color 300ms ease, box-shadow 300ms ease;
}
.contact__input::placeholder, .contact__textarea::placeholder { color: var(--text-muted); }
.contact__input:focus, .contact__textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 0 30px rgba(245, 158, 11, 0.06);
}
.contact__textarea { min-height: 160px; resize: vertical; }

.contact__submit {
  align-self: stretch; display: inline-flex; align-items: center; justify-content: center;
  gap: 0.625rem; padding: 1rem 2.5rem; font-size: 0.9375rem; font-weight: 700;
  color: var(--bg-deep); background: var(--accent); border-radius: 100px;
  transition: all 300ms var(--ease-spring); cursor: pointer; position: relative; overflow: hidden;
  box-shadow: 0 0 20px rgba(245,158,11,0.1);
}
@media (min-width: 640px) { .contact__submit { align-self: flex-start; } }
.contact__submit::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform 500ms ease;
}
.contact__submit:hover {
  transform: translateY(-2px); background: var(--accent-hot);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.3), 0 0 60px rgba(245, 158, 11, 0.1);
}
.contact__submit:hover::before { transform: translateX(100%); }
.contact__submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.contact__feedback { padding: 1rem 1.25rem; border-radius: 0.75rem; font-size: 0.875rem; text-align: center; }
.contact__feedback--success { background: rgba(20, 184, 166, 0.08); border: 1px solid rgba(20, 184, 166, 0.2); color: #14b8a6; }
.contact__feedback--error { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.2); color: #ef4444; }

/* ── FOOTER ────────────────────────────────────────────────── */
.footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding: 3rem 0 2rem; }
@media (min-width: 640px) { .footer { padding: 4rem 0 2.5rem; } }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer__brand { max-width: 360px; }
.footer__logo { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 1.25rem; }
.footer__logo-mark { font-family: var(--font-display); font-size: 1.75rem; color: var(--accent); letter-spacing: -0.04em; }
.footer__logo-text { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.footer__tagline { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.75; }
.footer__column-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1.25rem; color: var(--text-primary); }
.footer__link { display: block; color: var(--text-secondary); font-size: 0.875rem; padding: 0.3rem 0; transition: color 250ms ease; }
.footer__link:hover { color: var(--accent); }
.footer__divider { border: none; border-top: 1px solid var(--border); margin-bottom: 2rem; }
.footer__bottom { display: flex; flex-direction: column; gap: 1rem; align-items: center; text-align: center; }
@media (min-width: 768px) { .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer__copyright { color: var(--text-muted); font-size: 0.8125rem; }
.footer__location { font-family: var(--font-mono); color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.05em; }

/* ── Utility ───────────────────────────────────────────────── */
::selection { background: rgba(245, 158, 11, 0.25); color: var(--text-primary); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
