/* =============================================
   SORA DESIGN — Premium Stylesheet
   ============================================= */

/* ── Tokens ── */
:root {
  --bg:         #050810;
  --bg-elevated:#0a0f1e;
  --bg-card:    #0c1224;
  --bg-subtle:  #111827;

  --blue-50:  #eef4ff;
  --blue-100: #d9e5ff;
  --blue-200: #b3cbff;
  --blue-300: #7ba1ff;
  --blue-400: #4f7df3;
  --blue-500: #3b6cf5;
  --blue-600: #2857d9;
  --blue-700: #1e44b3;
  --blue-800: #15338a;
  --blue-900: #0c1f59;

  --text:      #eef0f6;
  --text-2:    #9ba3b5;
  --text-3:    #5e6578;

  --border:    rgba(255,255,255,0.06);
  --border-h:  rgba(255,255,255,0.12);

  --radius:    14px;
  --radius-lg: 22px;
  --nav-h:     72px;
  --container:  1200px;

  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.55, 0, 1, 0.45);
  --ease-smooth:cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

::selection {
  background: var(--blue-500);
  color: white;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

.section {
  padding: clamp(100px, 14vw, 180px) 0;
  position: relative;
}

/* ── Preloader ── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pre-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.pre-logo {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  opacity: 0;
  transform: translateY(12px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.pre-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.pre-logo span { color: var(--blue-400); }

.pre-count {
  font-family: 'Space Grotesk', 'Sora', sans-serif;
  font-size: clamp(72px, 12vw, 140px);
  font-weight: 700;
  letter-spacing: -4px;
  color: var(--text);
  margin: 24px 0 32px;
  opacity: 0;
  line-height: 1;
}

.pre-bar {
  width: 180px;
  height: 1px;
  background: var(--border);
  margin: 0 auto;
  border-radius: 1px;
  overflow: hidden;
  opacity: 0;
}

.pre-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--blue-400);
  border-radius: 1px;
}

.pre-curtain {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: var(--bg);
  z-index: 1;
}

/* ── Cursor ── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--blue-400);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
              background 0.25s, opacity 0.2s;
  mix-blend-mode: screen;
  will-change: transform;
}

.cursor.hover {
  width: 48px;
  height: 48px;
  background: rgba(79, 125, 243, 0.12);
  mix-blend-mode: normal;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(79, 125, 243, 0.25);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.45s var(--ease), height 0.45s var(--ease),
              border-color 0.3s, opacity 0.2s;
  will-change: transform;
}

.cursor-follower.hover {
  width: 64px;
  height: 64px;
  border-color: rgba(79, 125, 243, 0.08);
}

.cursor.hidden, .cursor-follower.hidden { opacity: 0; }

@media (pointer: coarse), (max-width: 768px) {
  .cursor, .cursor-follower { display: none !important; }
  body, a, button { cursor: auto; }
}

@media (pointer: fine) and (min-width: 769px) {
  body, a, button { cursor: none; }
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(24px, 5vw, 64px);
  transition: transform 0.55s var(--ease), background 0.4s, 
              backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(5, 8, 16, 0.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--border);
}

.header.hide { transform: translateY(-100%); }

.header-inner {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 910;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 30px;
  width: auto;
  display: block;
}

.logo span { color: var(--blue-400); }

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-size: 14px;
  font-weight: 450;
  color: var(--text-2);
  letter-spacing: 0.2px;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue-400);
  transition: width 0.45s var(--ease);
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-50);
  background: var(--blue-600);
  padding: 10px 22px;
  border-radius: 100px;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}

.header-cta:hover {
  background: var(--blue-500);
  box-shadow: 0 6px 28px rgba(59, 108, 245, 0.35);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 2px 0;
  z-index: 910;
}

.menu-toggle span {
  width: 100%;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s;
  transform-origin: center;
}

.menu-toggle.open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle.open span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-links, .header-cta { display: none; }
  .menu-toggle { display: flex; }
}

/* ── Mobile Nav ── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 899;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.mobile-nav-links a {
  font-family: 'Sora', sans-serif;
  font-size: clamp(32px, 7vw, 48px);
  font-weight: 600;
  letter-spacing: -1px;
  color: var(--text);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}

.mobile-nav.open .mobile-nav-links a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.open .mobile-nav-links a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.open .mobile-nav-links a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.open .mobile-nav-links a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.open .mobile-nav-links a:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.open .mobile-nav-links a:nth-child(5) { transition-delay: 0.3s; }

.mobile-nav-links a:hover { color: var(--blue-400); }

.mobile-nav-footer {
  margin-top: 48px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease) 0.3s, transform 0.5s var(--ease) 0.3s;
}

.mobile-nav.open .mobile-nav-footer {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-footer a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.3s;
}

.mobile-nav-footer a:hover { color: var(--blue-400); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--nav-h) 24px 0;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(30, 68, 179, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(79, 125, 243, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 50% 80%, rgba(59, 108, 245, 0.08) 0%, transparent 70%);
  animation: meshShift 18s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0%   { filter: blur(0px); transform: scale(1); }
  50%  { filter: blur(0px); transform: scale(1.04) translate(1%, -1%); }
  100% { filter: blur(0px); transform: scale(1) translate(-1%, 1%); }
}

.hero-grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(14px);
}

.hero-eyebrow span {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-300);
}

.hero-eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--blue-400);
}

.hero-heading {
  font-family: 'Sora', sans-serif;
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.h-line {
  display: block;
  overflow: hidden;
  padding-bottom: 4px;
}

.h-line-inner {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

.h-line-inner.accent {
  background: linear-gradient(135deg, var(--blue-300) 0%, var(--blue-500) 50%, var(--blue-300) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 4s ease infinite;
}

@keyframes gradientFlow {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.hero-desc {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: var(--blue-600);
  padding: 14px 32px;
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  transition: background 0.35s, box-shadow 0.35s, transform 0.35s var(--ease);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.65s var(--ease);
}

.btn-primary:hover {
  background: var(--blue-500);
  box-shadow: 0 8px 36px rgba(59, 108, 245, 0.35);
  transform: translateY(-2px);
}

.btn-primary:hover::before { transform: translateX(120%); }

.btn-primary.btn-lg {
  padding: 18px 44px;
  font-size: 16px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 14px 32px;
  border-radius: 100px;
  border: 1px solid var(--border-h);
  transition: border-color 0.35s, background 0.35s, transform 0.35s var(--ease);
}

.btn-outline:hover {
  border-color: var(--blue-500);
  background: rgba(59, 108, 245, 0.06);
  transform: translateY(-2px);
}

/* ── Scroll indicator ── */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
}

.hero-scroll-hint span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-3);
}

.scroll-indicator {
  width: 20px;
  height: 32px;
  border: 1.5px solid var(--text-3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 3px;
  height: 6px;
  background: var(--blue-400);
  border-radius: 2px;
  animation: scrollBounce 1.8s var(--ease) infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(10px); opacity: 0.2; }
}

/* ── Marquee ── */
.marquee {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  position: relative;
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.marquee-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.marquee-inner span {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.marquee-inner .outline {
  -webkit-text-stroke: 1px var(--text-2);
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.marquee-inner .sep {
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--text-3);
  font-weight: 400;
}

/* ── Philosophy ── */
.philosophy {
  padding: clamp(80px, 12vw, 160px) 0;
}

.reveal-text {
  font-family: 'Sora', sans-serif;
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-3);
  max-width: 960px;
}

.reveal-text .word {
  display: inline-block;
  transition: color 0.5s var(--ease), opacity 0.5s var(--ease);
}

.reveal-text .word.active {
  color: var(--text);
  opacity: 1;
}

/* ── Section Labels ── */
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.label-num {
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-400);
}

.label-text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-3);
}

.section-heading {
  font-family: 'Sora', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* ── Services ── */
.services-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: 64px 1fr 48px;
  gap: 24px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  position: relative;
  transition: background 0.5s var(--ease);
}

.service-row:last-child {
  border-bottom: 1px solid var(--border);
}

.service-row::before {
  content: '';
  position: absolute;
  inset: 0 -32px;
  background: linear-gradient(135deg, rgba(79, 125, 243, 0.04), transparent 60%);
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.service-row:hover::before { opacity: 1; }

.service-num {
  font-family: 'Space Grotesk', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-400);
  padding-top: 4px;
}

.service-info h3 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.service-row:hover .service-info h3 { color: var(--blue-300); }

.service-info p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 560px;
}

.service-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-3);
  transition: border-color 0.35s, color 0.35s, transform 0.35s var(--ease);
  margin-top: 2px;
}

.service-row:hover .service-arrow {
  border-color: var(--blue-500);
  color: var(--blue-400);
  transform: translate(4px, -4px);
}

@media (max-width: 640px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .service-arrow { display: none; }
}

/* ── Team ── */
.team {
  position: relative;
  overflow: hidden;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  z-index: 2;
  min-height: 310px;
  --mx: 50%;
  --my: 50%;
  overflow: hidden;
}

.team-card:hover {
  border-color: rgba(79, 125, 243, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.45), 0 0 35px rgba(79, 125, 243, 0.05);
}

.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(350px circle at var(--mx) var(--my), rgba(79, 125, 243, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
}

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

.team-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-500), transparent 50%);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.team-card:hover::after {
  opacity: 0.15;
}

.team-card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.team-card-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.team-role {
  display: inline-block;
  align-self: flex-start;
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-300);
  border: 1px solid rgba(79, 125, 243, 0.15);
  background: rgba(79, 125, 243, 0.04);
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-card-header h3 {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--text);
  margin-top: 4px;
}

.team-bio {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
}

.team-card-footer {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.team-handle {
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.3s;
}

.team-card:hover .team-handle {
  color: var(--blue-400);
}

.team-card.join-card {
  border-style: dashed;
  border-color: rgba(79, 125, 243, 0.25);
  background: rgba(79, 125, 243, 0.02);
}

.team-card.join-card:hover {
  border-style: solid;
  border-color: rgba(79, 125, 243, 0.45);
  background: rgba(79, 125, 243, 0.04);
}

.team-email-link {
  font-family: 'Space Grotesk', monospace;
  font-size: 13.5px;
  color: var(--blue-300);
  transition: color 0.3s;
  font-weight: 500;
  display: inline-block;
}

.team-card:hover .team-email-link {
  color: var(--blue-200);
}

@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .team-card {
    padding: 28px;
    min-height: auto;
  }
  .team-card.join-card {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .team-card.join-card {
    grid-column: span 1;
  }
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  margin-bottom: clamp(64px, 8vw, 100px);
}

.about-right p {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-right p:last-child { margin-bottom: 0; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
  padding: 32px 16px;
  border-radius: var(--radius-lg);
  transition: background 0.4s var(--ease);
}

.stat:hover {
  background: rgba(79, 125, 243, 0.04);
}

.stat-value {
  font-family: 'Space Grotesk', 'Sora', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--text);
  line-height: 1;
}

.stat-unit {
  font-family: 'Space Grotesk', 'Sora', sans-serif;
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 600;
  color: var(--blue-400);
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--text-2);
  margin-top: 8px;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── Pricing ── */
.pricing {
  position: relative;
  overflow: hidden;
}

.pricing-bg-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(800px, 100vw);
  height: 800px;
  background: radial-gradient(circle, rgba(79, 125, 243, 0.08) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(80px);
  z-index: 1;
}

.pricing .container {
  position: relative;
  z-index: 2;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
  margin-top: 48px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  z-index: 2;
}

.pricing-card:hover {
  border-color: rgba(79, 125, 243, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(79, 125, 243, 0.05);
}

.pricing-card.premium {
  border-color: rgba(79, 125, 243, 0.4);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(12, 18, 36, 0.8) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 20px rgba(79, 125, 243, 0.04);
}

.pricing-card.premium::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-400), var(--blue-700), transparent 60%);
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.pricing-card.premium:hover::after {
  background: linear-gradient(135deg, var(--blue-300), var(--blue-500), transparent 40%);
}

.popular-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--blue-600);
  color: white;
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(59, 108, 245, 0.25);
}

.pricing-card-header {
  margin-bottom: 32px;
}

.plan-name {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.plan-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 24px;
  min-height: 48px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

.plan-price .currency {
  font-size: 24px;
  font-weight: 600;
  color: var(--blue-400);
  margin-right: 4px;
}

.plan-price .amount {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1;
}

.plan-price .period {
  font-size: 14px;
  color: var(--text-3);
  margin-left: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 450;
}

.pricing-card-features {
  flex-grow: 1;
  margin-bottom: 40px;
}

.pricing-card-features ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.4;
  transition: color 0.3s;
}

.check-icon {
  color: var(--blue-400);
  flex-shrink: 0;
  margin-top: 2px;
  transition: color 0.3s;
}

.pricing-card:hover .pricing-card-features li {
  color: var(--text);
}

.pricing-card:hover .check-icon {
  color: var(--blue-300);
}

.pricing-card-footer .w-100 {
  width: 100%;
  justify-content: center;
}

@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pricing-card {
    padding: 32px;
  }
  .pricing-card.premium {
    transform: none !important;
  }
}

/* ── Testimonials ── */
.testimonial-slider {
  position: relative;
  min-height: 260px;
}

.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
}

.testimonial.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  position: relative;
}

.testimonial-quote {
  font-family: 'Sora', sans-serif;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--text);
  font-style: normal;
  margin-bottom: 40px;
  max-width: 820px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: white;
}

.testimonial-author strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.testimonial-author span {
  font-size: 13px;
  color: var(--text-2);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.testimonial-progress {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-right: 32px;
  border-radius: 1px;
  overflow: hidden;
}

.testimonial-progress-bar {
  width: 33.33%;
  height: 100%;
  background: var(--blue-400);
  border-radius: 1px;
  transition: width 0.5s var(--ease), transform 0.5s var(--ease);
}

.testimonial-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.t-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.t-nav-btn:hover {
  border-color: var(--blue-500);
  color: var(--blue-400);
  background: rgba(59, 108, 245, 0.06);
}

.t-counter {
  font-family: 'Space Grotesk', monospace;
  font-size: 14px;
  color: var(--text-3);
  min-width: 56px;
  text-align: center;
}

/* ── CTA ── */
.cta {
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 108, 245, 0.12), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}

.cta-content { position: relative; z-index: 2; }

.cta-label {
  font-family: 'Sora', sans-serif;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 400;
  color: var(--text-2);
  margin-bottom: 12px;
}

.cta-heading {
  font-family: 'Sora', sans-serif;
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
}

/* ── Footer ── */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-2);
  padding: 5px 0;
  transition: color 0.3s, transform 0.3s var(--ease);
}

.footer-col a:hover {
  color: var(--text);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.footer-bottom span {
  font-size: 13px;
  color: var(--text-3);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.3s;
}

.footer-legal a:hover { color: var(--text-2); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

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

/* ── Fade-up animation class ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

/* ── Document Content ── */
.document-content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-2);
}

.document-content h2 {
  font-family: 'Sora', sans-serif;
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 16px;
  letter-spacing: -0.5px;
}

.document-content p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.document-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.document-content li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.7;
}

/* ── Publication Section ── */
.publication-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 40px;
}

.publication-eyebrow {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--blue-500);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.publication-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-2);
  margin: 20px 0 32px;
}

.btn-explore-book {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #FFFFFF;
  background: var(--blue-600);
  padding: 14px 28px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s, background 0.3s;
  width: fit-content;
}

.btn-explore-book:hover {
  transform: translateY(-2px);
  background: var(--blue-500);
}

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

.voice-waveform-graphic {
  position: relative;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(0, 82, 255, 0.05) 0%, rgba(18, 19, 21, 0.4) 70%);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 82, 255, 0.05);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.voice-waveform-graphic:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 82, 255, 0.12), inset 0 0 30px rgba(0, 82, 255, 0.1);
}

.waveform-ring {
  position: absolute;
  inset: -10px;
  border: 1.5px dashed rgba(0, 82, 255, 0.2);
  border-radius: 50%;
  animation: rotateWaveRing 20s linear infinite;
  pointer-events: none;
}

@keyframes rotateWaveRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.waveform-core {
  width: 70px;
  height: 70px;
  background: var(--blue-600);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #FFFFFF;
  box-shadow: 0 0 30px var(--blue-600);
  z-index: 5;
  position: relative;
}

.waveform-node {
  position: absolute;
  width: 6px;
  height: 40px;
  background: var(--blue-500);
  border-radius: 10px;
  opacity: 0.3;
  transform-origin: center;
}

.waveform-node:nth-child(1) { transform: rotate(0deg) translateY(-70px); animation: pulseNode 1.2s ease-in-out infinite alternate; }
.waveform-node:nth-child(2) { transform: rotate(72deg) translateY(-70px); animation: pulseNode 1.5s ease-in-out infinite alternate; }
.waveform-node:nth-child(3) { transform: rotate(144deg) translateY(-70px); animation: pulseNode 1.0s ease-in-out infinite alternate; }
.waveform-node:nth-child(4) { transform: rotate(216deg) translateY(-70px); animation: pulseNode 1.7s ease-in-out infinite alternate; }
.waveform-node:nth-child(5) { transform: rotate(288deg) translateY(-70px); animation: pulseNode 1.3s ease-in-out infinite alternate; }

@keyframes pulseNode {
  from {
    height: 25px;
    opacity: 0.25;
  }
  to {
    height: 55px;
    opacity: 0.7;
    background: #FF5A36;
    box-shadow: 0 0 15px #FF5A36;
  }
}

@media (max-width: 900px) {
  .publication-split {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .btn-explore-book {
    margin: 0 auto;
  }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue-900); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-700); }

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