/* ============================================
   CREOLE AI LABS — Design System v2
   Dark. Premium. Alive. World-class.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=Caveat:wght@400;500;600&display=swap');

/* --- Tokens --- */
:root {
  --bg: #0a0a0f;
  --bg-elevated: #0f0f0f;
  --bg-card: rgba(17,17,17,0.4);
  --bg-card-hover: rgba(23,23,23,0.5);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);

  --text-white: #f5f5f5;
  --text-primary: #e0e0e0;
  --text-secondary: #888888;
  --text-muted: #555555;

  --nextgrades-dark: #0A0A0A;
  --nextgrades-light: #F5F0E8;
  --domus: #C4714A;
  --sana: #A8C8D8;
  --lux: #D4AF7A;
  --veho: #5B4FE8;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-accent: 'Caveat', cursive;

  --nav-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- Reset --- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(91,79,232,0.08), transparent),
                     radial-gradient(ellipse 60% 40% at 100% 50%, rgba(196,113,74,0.05), transparent),
                     radial-gradient(ellipse 60% 40% at 0% 80%, rgba(168,200,216,0.05), transparent);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Loader (cinematic) --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

/* Five product-colored dots that orbit and converge */
.loader-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 0.8rem;
}
.loader-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0;
  transform: translateY(20px);
}
.loader-dots span:nth-child(1) { animation: dotIn 0.4s 0.05s var(--ease) forwards, dotPulse 1.5s 0.6s ease-in-out infinite; }
.loader-dots span:nth-child(2) { animation: dotIn 0.4s 0.15s var(--ease) forwards, dotPulse 1.5s 0.75s ease-in-out infinite; }
.loader-dots span:nth-child(3) { animation: dotIn 0.4s 0.25s var(--ease) forwards, dotPulse 1.5s 0.9s ease-in-out infinite; }
.loader-dots span:nth-child(4) { animation: dotIn 0.4s 0.35s var(--ease) forwards, dotPulse 1.5s 1.05s ease-in-out infinite; }
.loader-dots span:nth-child(5) { animation: dotIn 0.4s 0.45s var(--ease) forwards, dotPulse 1.5s 1.2s ease-in-out infinite; }

@keyframes dotIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.6; }
}

.loader-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(10px);
  animation: loaderTextIn 0.8s 0.3s var(--ease) forwards;
}
.loader-star {
  width: 40px;
  height: 40px;
  filter: brightness(1.5);
}
.loader-text {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--text-white);
  letter-spacing: -0.03em;
}
.loader-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--domus), var(--sana), var(--lux), var(--veho));
  border-radius: 2px;
  transform: scaleX(0);
  animation: loaderLineIn 0.9s 0.6s var(--ease) forwards;
}
.loader-sub {
  font-family: var(--font-accent);
  font-size: 1rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(5px);
  animation: loaderSubIn 0.5s 0.9s var(--ease) forwards;
}

@keyframes loaderTextIn {
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
@keyframes loaderLineIn {
  to { transform: scaleX(1); }
}
@keyframes loaderSubIn {
  to { opacity: 1; transform: translateY(0); }
}

.loader.exit .loader-dots span {
  animation: dotOut 0.3s var(--ease) forwards;
}
.loader.exit .loader-dots span:nth-child(1) { animation-delay: 0s; }
.loader.exit .loader-dots span:nth-child(2) { animation-delay: 0.04s; }
.loader.exit .loader-dots span:nth-child(3) { animation-delay: 0.08s; }
.loader.exit .loader-dots span:nth-child(4) { animation-delay: 0.12s; }
.loader.exit .loader-dots span:nth-child(5) { animation-delay: 0.16s; }

@keyframes dotOut {
  to { transform: scale(0); opacity: 0; }
}

.loader.exit {
  animation: loaderExit 0.5s 0.2s var(--ease-out-expo) forwards;
}
@keyframes loaderExit {
  to {
    opacity: 0;
    transform: translateY(-40px);
    pointer-events: none;
  }
}

/* --- Stripe-inspired vivid gradient background --- */
.gradient-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  filter: blur(80px) saturate(1.3);
  opacity: 0.55;
}
.gradient-mesh span {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

/* Terracotta — warm, dominant */
.gradient-mesh .g1 {
  width: 50vmax; height: 50vmax;
  background: radial-gradient(circle, rgba(220,120,70,0.5) 0%, transparent 70%);
  animation: mix1 18s ease-in-out infinite alternate;
}
/* Ice blue — cool contrast */
.gradient-mesh .g2 {
  width: 45vmax; height: 45vmax;
  background: radial-gradient(circle, rgba(100,180,220,0.4) 0%, transparent 70%);
  animation: mix2 22s ease-in-out infinite alternate;
}
/* Gold — luxury warmth */
.gradient-mesh .g3 {
  width: 40vmax; height: 40vmax;
  background: radial-gradient(circle, rgba(230,190,100,0.35) 0%, transparent 70%);
  animation: mix3 15s ease-in-out infinite alternate;
}
/* Indigo — electric energy */
.gradient-mesh .g4 {
  width: 55vmax; height: 55vmax;
  background: radial-gradient(circle, rgba(100,80,255,0.45) 0%, transparent 70%);
  animation: mix4 20s ease-in-out infinite alternate;
}
/* Warm white — softening agent */
.gradient-mesh .g5 {
  width: 35vmax; height: 35vmax;
  background: radial-gradient(circle, rgba(255,245,230,0.2) 0%, transparent 70%);
  animation: mix5 13s ease-in-out infinite alternate;
}

@keyframes mix1 {
  0%   { top: -15%; left: -5%;  transform: scale(1); }
  50%  { top: 40%;  left: 55%;  transform: scale(1.3); }
  100% { top: 10%;  left: 75%;  transform: scale(0.9); }
}
@keyframes mix2 {
  0%   { top: 60%;  left: 70%;  transform: scale(1); }
  50%  { top: -5%;  left: 15%;  transform: scale(1.2); }
  100% { top: 50%;  left: 85%;  transform: scale(0.8); }
}
@keyframes mix3 {
  0%   { top: 75%;  left: 35%;  transform: scale(1); }
  50%  { top: 5%;   left: 70%;  transform: scale(1.1); }
  100% { top: 45%;  left: 5%;   transform: scale(1.2); }
}
@keyframes mix4 {
  0%   { top: 15%;  left: 80%;  transform: scale(1); }
  50%  { top: 65%;  left: 5%;   transform: scale(1.3); }
  100% { top: 25%;  left: 45%;  transform: scale(1.1); }
}
@keyframes mix5 {
  0%   { top: 35%;  left: 45%;  transform: scale(1); }
  50%  { top: 15%;  left: 75%;  transform: scale(1.2); }
  100% { top: 55%;  left: 25%;  transform: scale(0.9); }
}

/* Cursor removed for performance */
.cursor, .cursor-dot { display: none; }

/* --- Layout --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: all 0.5s var(--ease);
}
.nav.scrolled {
  top: 12px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(92%, 900px);
  height: 52px;
  border-radius: 100px;
  background: rgba(18,18,18,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-white);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(1.5);
}
.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color 0.3s, background 0.3s;
  padding: 0.45rem 1rem;
  border-radius: 100px;
}
.nav-links a:hover {
  color: var(--text-white);
  background: rgba(255,255,255,0.06);
}
.nav-links .nav-cta {
  background: var(--text-white);
  color: var(--bg);
  font-weight: 600;
  padding: 0.45rem 1.2rem;
}
.nav-links .nav-cta:hover {
  background: #e0e0e0;
  color: var(--bg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-white);
  transition: transform 0.3s var(--ease), opacity 0.3s;
  border-radius: 1px;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding-top: var(--nav-h);
  position: relative;
}
.hero-content {
  padding: 4rem 0;
  position: relative;
  z-index: 2;
}
.hero-label {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-white);
  margin-bottom: 1.5rem;
}
/* #1 — Rotating word in hero */
.hero h1 .rotating-word {
  display: inline-block;
  position: relative;
  font-style: italic;
  min-width: 5ch;
  vertical-align: baseline;
}
.hero h1 .rotating-word span {
  display: inline-block;
  background: linear-gradient(135deg, #D4AF7A 0%, #A8C8D8 50%, #5B4FE8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  transition: opacity 0.5s, transform 0.5s var(--ease);
  transform: translateY(20px);
  white-space: nowrap;
}
.hero h1 .rotating-word span.active {
  opacity: 1;
  position: relative;
  transform: translateY(0);
}
.hero h1 .rotating-word span.exit {
  opacity: 0;
  transform: translateY(-20px);
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, #D4AF7A 0%, #A8C8D8 50%, #5B4FE8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 46ch;
  margin-bottom: 2.5rem;
}
.hero-crystal {
  position: relative;
  width: 100%;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#crystal-container {
  width: 100%;
  height: 100%;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 100px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--text-white);
  color: var(--bg);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.12);
}
.btn-primary svg {
  transition: transform 0.3s var(--ease);
}
.btn-primary:hover svg {
  transform: translateX(3px);
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 100px;
  transition: all 0.4s var(--ease);
  color: var(--bg);
}
.btn-accent:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

/* --- Products Section --- */
.products-section {
  padding: 10rem 0;
  position: relative;
}
.section-eyebrow {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  color: var(--text-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 4rem;
}
.section-title-sm {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--text-white);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Bento Product Grid */
.product-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 1rem;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease);
  text-decoration: none;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
  border-radius: 16px;
}
.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
}
.product-card:hover::before {
  opacity: 1;
}

/* Card sizes — asymmetric bento */
.product-card:nth-child(1) { grid-column: 1 / 8; grid-row: span 2; }
.product-card:nth-child(2) { grid-column: 8 / 13; }
.product-card:nth-child(3) { grid-column: 8 / 13; }
.product-card:nth-child(4) { grid-column: 1 / 7; }
.product-card:nth-child(5) { grid-column: 7 / 13; }

/* Product card accent glows */
.product-card[data-product="nextgrades"]::before {
  background: radial-gradient(ellipse at top right, rgba(245,240,232,0.04), transparent 60%);
}
.product-card[data-product="domus"]::before {
  background: radial-gradient(ellipse at top right, rgba(196,113,74,0.06), transparent 60%);
}
.product-card[data-product="sana"]::before {
  background: radial-gradient(ellipse at top right, rgba(168,200,216,0.06), transparent 60%);
}
.product-card[data-product="lux"]::before {
  background: radial-gradient(ellipse at top right, rgba(212,175,122,0.06), transparent 60%);
}
.product-card[data-product="veho"]::before {
  background: radial-gradient(ellipse at top right, rgba(91,79,232,0.06), transparent 60%);
}

/* Each product card — unique glass style */

/* NextGrades — frosted with warm tint */
.product-card[data-product="nextgrades"] {
  border-top: 2px solid var(--nextgrades-light);
  background: rgba(245,240,232,0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.product-card[data-product="nextgrades"]:hover {
  background: rgba(245,240,232,0.06);
}

/* Domus — warm glass with terracotta tint */
.product-card[data-product="domus"] {
  border-top: 2px solid var(--domus);
  background: rgba(196,113,74,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 1px solid rgba(196,113,74,0.08);
}
.product-card[data-product="domus"]:hover {
  background: rgba(196,113,74,0.07);
}

/* Sana — crisp ice glass */
.product-card[data-product="sana"] {
  border-top: 2px solid var(--sana);
  background: rgba(168,200,216,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(168,200,216,0.08);
}
.product-card[data-product="sana"]:hover {
  background: rgba(168,200,216,0.07);
}

/* LUX — luxury smoked glass */
.product-card[data-product="lux"] {
  border-top: 2px solid var(--lux);
  background: rgba(212,175,122,0.04);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-right: 1px solid rgba(212,175,122,0.08);
}
.product-card[data-product="lux"]:hover {
  background: rgba(212,175,122,0.07);
}

/* Veho — electric glass with indigo glow */
.product-card[data-product="veho"] {
  border-top: 2px solid var(--veho);
  background: rgba(91,79,232,0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 30px rgba(91,79,232,0.03);
}
.product-card[data-product="veho"]:hover {
  background: rgba(91,79,232,0.07);
  box-shadow: inset 0 0 40px rgba(91,79,232,0.05);
}

.card-accent {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 2rem;
  position: relative;
}
.card-accent::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: inherit;
  filter: blur(6px);
  opacity: 0.5;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--text-white);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}
.product-card .card-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 2rem;
  max-width: 50ch;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s, gap 0.3s var(--ease);
}
.product-card:hover .card-link {
  color: var(--text-white);
  gap: 0.8rem;
}
.card-link svg {
  width: 14px;
  height: 14px;
}

/* Badge */
.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.badge-soon {
  background: rgba(91,79,232,0.12);
  color: var(--veho);
  border: 1px solid rgba(91,79,232,0.2);
}
.badge-dev {
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* --- Manifesto / Studio --- */
.studio-section {
  padding: 10rem 0;
  position: relative;
}
.studio-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}
.manifesto {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

/* Gradient dividers */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
  border: none;
  margin: 0;
}
.manifesto h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--text-white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}
.manifesto p {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

/* Manifesto timeline */
.manifesto-timeline {
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  padding-left: 4rem;
}
.manifesto-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 2rem;
  bottom: 2rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--domus), var(--sana), var(--lux), var(--veho));
  border-radius: 2px;
  opacity: 0.4;
}
.timeline-item {
  padding: 2.5rem 0;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -4rem;
  top: 3rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateX(8px);
  box-shadow: 0 0 10px currentColor;
}
.timeline-item:nth-child(1)::before { background: var(--nextgrades-light); color: var(--nextgrades-light); }
.timeline-item:nth-child(2)::before { background: var(--domus); color: var(--domus); }
.timeline-item:nth-child(3)::before { background: var(--sana); color: var(--sana); }
.timeline-item:nth-child(4)::before { background: var(--veho); color: var(--veho); }
.timeline-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.timeline-content h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}
.timeline-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 55ch;
}
@media (max-width: 768px) {
  .manifesto-timeline { padding-left: 2.5rem; }
  .timeline-item::before { left: -2.5rem; transform: translateX(4px); }
}

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin: 3rem 0;
  text-align: left;
}
.manifesto-card {
  padding: 2.5rem;
  transition: all 0.4s;
}
/* Card 1 — soft frosted */
.manifesto-card:nth-child(1) {
  background: rgba(196,113,74,0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.manifesto-card:nth-child(1):hover {
  background: rgba(196,113,74,0.06);
}
/* Card 2 — clear glass with border glow */
.manifesto-card:nth-child(2) {
  background: rgba(168,200,216,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.manifesto-card:nth-child(2):hover {
  background: rgba(168,200,216,0.06);
}
/* Card 3 — deep tinted */
.manifesto-card:nth-child(3) {
  background: rgba(91,79,232,0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.manifesto-card:nth-child(3):hover {
  background: rgba(91,79,232,0.06);
}
.manifesto-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}
.manifesto-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .manifesto-grid { grid-template-columns: 1fr; }
}
.manifesto .accent-line {
  font-family: var(--font-accent);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--text-secondary);
  margin-top: 2.5rem;
  display: block;
}

/* --- Stats Row --- */
.stats-section {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item h3 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-item p {
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.stat-item .stat-bar {
  width: 30px;
  height: 2px;
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* --- CTA Section --- */
.cta-section {
  padding: 12rem 0;
  text-align: center;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,122,0.03), transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  color: var(--text-white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.cta-section p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-email {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--text-white);
  display: inline-block;
  position: relative;
  padding-bottom: 4px;
}
.cta-email::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text-muted);
  transition: background 0.3s;
}
.cta-email:hover::after {
  background: var(--text-white);
}

/* --- Footer --- */
.footer {
  padding: 5rem 0 2.5rem;
  border-top: 1px solid var(--border);
}
.footer .container {
  display: flex;
  flex-direction: column;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-muted);
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.footer-links a:hover {
  color: var(--text-white);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.04);
}
.footer-links a svg {
  width: 15px;
  height: 15px;
}

/* #2 — Marquee Ticker */
.marquee-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marqueeScroll 25s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.marquee-track span::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.2;
  flex-shrink: 0;
}
.marquee-track span:nth-child(5n+1)::after { background: var(--nextgrades-light); opacity: 0.4; }
.marquee-track span:nth-child(5n+2)::after { background: var(--domus); opacity: 0.4; }
.marquee-track span:nth-child(5n+3)::after { background: var(--sana); opacity: 0.4; }
.marquee-track span:nth-child(5n+4)::after { background: var(--lux); opacity: 0.4; }
.marquee-track span:nth-child(5n+5)::after { background: var(--veho); opacity: 0.4; }
@keyframes marqueeScroll {
  to { transform: translateX(-50%); }
}

/* #3 — Gradient border glow on product cards */
.product-card {
  --card-border-color: rgba(255,255,255,0.06);
}
.product-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: conic-gradient(from var(--card-angle, 0deg), transparent 60%, var(--card-glow, rgba(255,255,255,0.15)) 80%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.product-card:hover::after {
  opacity: 1;
  animation: borderRotate 3s linear infinite;
}
.product-card[data-product="nextgrades"] { --card-glow: rgba(245,240,232,0.25); }
.product-card[data-product="domus"] { --card-glow: rgba(196,113,74,0.3); }
.product-card[data-product="sana"] { --card-glow: rgba(168,200,216,0.3); }
.product-card[data-product="lux"] { --card-glow: rgba(212,175,122,0.3); }
.product-card[data-product="veho"] { --card-glow: rgba(91,79,232,0.3); }

@property --card-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes borderRotate {
  to { --card-angle: 360deg; }
}

/* Problem Statement Section */
.problem-section {
  padding: 8rem 0;
  border-top: 1px solid var(--border);
}
.problem-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}
.problem-right p {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.problem-right p:last-child {
  color: var(--text-white);
  font-weight: 500;
}
@media (max-width: 768px) {
  .problem-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Social Proof Strip */
.proof-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.proof-item {
  text-align: center;
  padding: 1.5rem;
}
.proof-item h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 400;
  color: var(--text-white);
  margin-bottom: 0.4rem;
}
.proof-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
@media (max-width: 768px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .proof-grid { grid-template-columns: 1fr; }
}

/* #5 — Aurora behind hero */
.hero-aurora {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  pointer-events: none;
  z-index: 0;
}
.hero-aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  opacity: 0.7;
}
.hero-aurora .a1 {
  width: 350px; height: 250px;
  background: rgba(196,113,74,0.06);
  top: 0; left: 0;
  animation: auroraDrift1 8s ease-in-out infinite alternate;
}
.hero-aurora .a2 {
  width: 300px; height: 200px;
  background: rgba(168,200,216,0.05);
  top: 20%; left: 30%;
  animation: auroraDrift2 10s ease-in-out infinite alternate;
}
.hero-aurora .a3 {
  width: 250px; height: 200px;
  background: rgba(91,79,232,0.05);
  bottom: 0; right: 0;
  animation: auroraDrift3 12s ease-in-out infinite alternate;
}
@keyframes auroraDrift1 { to { transform: translate(40px, 20px); } }
@keyframes auroraDrift2 { to { transform: translate(-30px, 30px); } }
@keyframes auroraDrift3 { to { transform: translate(20px, -25px); } }

/* #6 — Bigger stats */
.stats-section {
  padding: 8rem 0;
}
.stat-item h3 {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

/* #8 — Enhanced Footer with newsletter */
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.footer-col a {
  display: block;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-col p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.footer-newsletter {
  display: flex;
  gap: 0.4rem;
}
.footer-newsletter input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}
.footer-newsletter input::placeholder { color: var(--text-muted); }
.footer-newsletter input:focus { border-color: var(--border-hover); }
.footer-newsletter button {
  padding: 0.8rem 1.4rem;
  background: var(--text-white);
  color: var(--bg);
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}
.footer-newsletter button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2.5rem;
  gap: 1.5rem;
  flex-wrap: wrap;
  clear: both;
  width: 100%;
}

/* #9 — Page transition overlay */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* #10 — Micro-copy annotations */
.micro-note {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.3rem;
}

/* --- GSAP Animation Helpers --- */
.split-line {
  overflow: hidden;
}
.split-line > span {
  display: inline-block;
  transform: translateY(110%);
}
[data-animate] {
  opacity: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-top: calc(var(--nav-h) + 2rem);
    padding-bottom: 2rem;
  }
  .hero-content { order: 1; padding: 2rem 0; }
  .hero-crystal { order: 0; height: 45vh; }
  .hero-sub { margin-left: auto; margin-right: auto; }

  .product-bento {
    grid-template-columns: 1fr 1fr;
  }
  .product-card:nth-child(1) { grid-column: 1 / -1 !important; grid-row: span 1 !important; }
  .product-card:nth-child(2) { grid-column: auto !important; }
  .product-card:nth-child(3) { grid-column: auto !important; }
  .product-card:nth-child(4) { grid-column: auto !important; }
  .product-card:nth-child(5) { grid-column: auto !important; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8,8,8,0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 100;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.5rem; }
  .nav-toggle { display: flex; }

  .product-bento {
    grid-template-columns: 1fr;
  }
  .product-card:nth-child(n) { grid-column: auto !important; grid-row: auto !important; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-sub { font-size: 1rem; }
  .section-title { font-size: 1.8rem; margin-bottom: 2.5rem; }
  .products-section, .studio-section { padding: 4rem 0; }
  .problem-section { padding: 4rem 0; }
  .cta-section { padding: 5rem 0; }
  .stats-section { padding: 4rem 0; }
  .stat-item h3 { font-size: 2.5rem; }
  .manifesto h2 { font-size: 1.8rem; }
  .manifesto-grid { grid-template-columns: 1fr; margin: 2rem 0; }
  .manifesto .accent-line { font-size: 1.8rem; }
  .btn { padding: 0.85rem 1.8rem; font-size: 0.9rem; }
  .nav.scrolled { width: 95%; top: 8px; }
  .footer-newsletter { flex-direction: column; }
  .proof-item h3 { font-size: 1.2rem; }

  .hero-content { padding: 1.5rem 0; }
  .hero h1 { font-size: 2rem; line-height: 1.15; }
  .hero-sub { font-size: 0.95rem; line-height: 1.6; }
  .hero-label { font-size: 1.2rem; margin-bottom: 1rem; }
  .hero-crystal { height: 35vh; }

  .product-card { padding: 1.5rem; min-height: auto; }
  .product-card h3 { font-size: 1.4rem; }
  .product-card .card-desc { font-size: 0.95rem; }

  .timeline-content h4 { font-size: 1rem; }
  .timeline-content p { font-size: 0.9rem; }

  .problem-section { padding: 3rem 0; }
  .problem-left .section-title { font-size: 1.5rem; margin-bottom: 1rem; }
  .problem-right p { font-size: 0.95rem; }
  .marquee-track span { font-size: 0.9rem; }
}
