/* ============================================================
   TWENTYONE AI — Design System
   Brand: #0A0A0F · #C49838 · #F8F6F0
   Font: Space Grotesk · DM Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

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

:root {
  --black:    #0A0A0F;
  --charcoal: #1E1E24;
  --gold:     #C49838;
  --gold-lt:  #ECD988;
  --cream:    #F8F6F0;
  --warm:     #ECEAE3;
  --white:    #FFFFFF;
  --text-dim: rgba(255,255,255,0.45);
  --text-muted: rgba(255,255,255,0.22);
  --border-dark: rgba(255,255,255,0.07);
  --border-light: #E2DFD8;
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

body.light-page {
  background: var(--cream);
  color: var(--black);
}

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: 'Space Grotesk', sans-serif; line-height: 1.2; }
p { font-family: 'DM Sans', sans-serif; }

.display    { font-size: clamp(36px, 5vw, 64px); font-weight: 700; letter-spacing: -0.02em; }
.heading-1  { font-size: clamp(28px, 3.5vw, 44px); font-weight: 600; }
.heading-2  { font-size: clamp(22px, 2.5vw, 32px); font-weight: 600; }
.heading-3  { font-size: clamp(18px, 2vw, 24px); font-weight: 600; }
.body-lg    { font-size: 16px; font-weight: 500; }
.body       { font-size: 14px; font-weight: 400; }
.caption    { font-size: 11px; font-weight: 300; letter-spacing: 0.06em; }
.label      { font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }

.gold        { color: var(--gold); }
.gold-grad   { background: linear-gradient(135deg, var(--gold-lt), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.dim         { color: var(--text-dim); }
.muted       { color: var(--text-muted); }

/* ── Layout ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 48px; }
.section   { padding: 96px 0; }

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .section   { padding: 64px 0; }
}

/* ── Section Label ── */
.section-label {
  display: flex; align-items: center; gap: 16px; margin-bottom: 56px;
}
.section-label__num {
  font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: 0.22em;
}
.section-label__line {
  flex: 1; height: 1px; background: var(--border-dark);
}
.section-label__line.light { background: var(--border-light); }
.section-label__text {
  font-size: 10px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.16em; text-transform: uppercase;
}
.section-label__text.light { color: #aaa; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 80px; display: flex; align-items: center;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border-dark);
}
.nav.light-nav.scrolled {
  background: rgba(248,246,240,0.9);
  border-bottom-color: var(--border-light);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 20px;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.nav__mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--charcoal);
  border: 1px solid rgba(196,152,56,0.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav__mark-num {
  font-size: 13px; font-weight: 700; color: #fff; line-height: 1; letter-spacing: -0.5px;
}
.nav__mark-line {
  width: 20px; height: 1px; background: var(--gold); opacity: 0.6; margin-top: 2px;
}
.nav__wordmark {
  display: flex; align-items: baseline;
}
.nav__wordmark span:first-child {
  font-size: 12px; font-weight: 300; letter-spacing: 0.2em;
  color: var(--text-dim); text-transform: uppercase;
}
.nav__wordmark span:last-child {
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em;
  color: #fff; text-transform: uppercase;
}
.nav.light-nav .nav__wordmark span:first-child { color: rgba(10,10,15,0.38); }
.nav.light-nav .nav__wordmark span:last-child { color: var(--black); }

.nav__links {
  display: flex; gap: 40px; list-style: none; flex-shrink: 0;
}
.nav__links a {
  font-size: 14px; font-weight: 400; color: var(--text-dim);
  text-decoration: none; transition: color var(--transition);
}
.nav__links a:hover, .nav__links a.active { color: #fff; }
.nav.light-nav .nav__links a { color: #666; }
.nav.light-nav .nav__links a:hover { color: var(--black); }

.nav__cta {
  display: flex; align-items: center; gap: 16px; flex-shrink: 0;
}
.btn-ghost {
  font-size: 12px; color: var(--text-dim); text-decoration: none;
  transition: color var(--transition); font-family: 'Space Grotesk', sans-serif;
}
.btn-ghost:hover { color: #fff; }
.nav.light-nav .btn-ghost { color: #aaa; }
.nav.light-nav .btn-ghost:hover { color: var(--black); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 600;
  padding: 9px 20px; border-radius: 8px;
  text-decoration: none; border: none; cursor: pointer;
  transition: all var(--transition);
}
.btn-gold {
  background: var(--gold); color: var(--black);
}
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(196,152,56,0.3); }

.btn-dark {
  background: var(--black); color: #fff;
}
.btn-dark:hover { background: var(--charcoal); transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-lg { font-size: 15px; padding: 14px 32px; border-radius: 10px; }

/* ── Logo SVG ── */
.nav__logo-svg {
  height: 50px;
  width: auto;
  display: block;
}
@media (max-width: 768px) {
  .nav__logo-svg { height: 40px; }
}

/* ── Hamburger ── */
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav__hamburger span {
  display: block; width: 24px; height: 1.5px; background: #fff;
  transition: all var(--transition);
}
.nav.light-nav .nav__hamburger span { background: var(--black); }

/* ── Mobile Menu ── */
.mobile-menu {
  position: fixed; top: 80px; left: 0; right: 0; bottom: 0; z-index: 99;
  background: rgba(10,10,15,0.97);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  transform: translateX(100%); transition: transform var(--transition);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-size: 24px; font-weight: 600; color: #fff; text-decoration: none;
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--gold); }

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--black);
}
#particles-canvas {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
}
.hero__content {
  position: relative; z-index: 1; padding-top: 80px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(196,152,56,0.3);
  border-radius: 100px; padding: 6px 16px;
  margin-bottom: 32px;
}
.hero__badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero__badge span {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  color: var(--gold); text-transform: uppercase;
}
.hero__title {
  font-size: clamp(44px, 6vw, 80px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.05;
  margin-bottom: 24px;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__sub {
  font-size: clamp(15px, 1.8vw, 18px); font-weight: 300;
  color: var(--text-dim); max-width: 560px; line-height: 1.75;
  margin-bottom: 40px; font-family: 'DM Sans', sans-serif;
}
.hero__ctas {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 72px;
}
.hero__stats {
  display: flex; gap: 48px; flex-wrap: wrap;
  padding-top: 40px; border-top: 1px solid var(--border-dark);
}
.hero__stat-num {
  font-size: 36px; font-weight: 700; color: #fff; letter-spacing: -0.02em;
}
.hero__stat-num span { color: var(--gold); }
.hero__stat-label {
  font-size: 12px; color: var(--text-dim); margin-top: 4px;
  font-family: 'DM Sans', sans-serif;
}

/* ── Cards ── */
.card {
  background: var(--charcoal); border-radius: var(--radius);
  border: 1px solid var(--border-dark);
  padding: 32px; transition: all var(--transition);
}
.card:hover { border-color: rgba(196,152,56,0.3); transform: translateY(-4px); }

.card-light {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 32px; transition: all var(--transition);
}
.card-light:hover { border-color: rgba(196,152,56,0.4); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.08); }

.card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(196,152,56,0.1);
  border: 1px solid rgba(196,152,56,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 22px;
}
.card__title { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.card__body { font-size: 14px; color: var(--text-dim); line-height: 1.7; font-family: 'DM Sans', sans-serif; }
.card-light .card__body { color: #666; }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Divider line ── */
.gold-line {
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 16px 0;
}

/* ── Tags ── */
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  background: rgba(196,152,56,0.12); color: var(--gold);
  border: 1px solid rgba(196,152,56,0.25);
}
.tag-dark {
  background: rgba(255,255,255,0.06); color: var(--text-dim);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Footer ── */
.footer {
  background: var(--black); border-top: 1px solid var(--border-dark);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer__brand-desc {
  font-size: 13px; color: var(--text-dim); line-height: 1.8;
  margin-top: 16px; max-width: 280px;
  font-family: 'DM Sans', sans-serif;
}
.footer__col-title {
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer__links a {
  font-size: 13px; color: var(--text-dim); text-decoration: none;
  transition: color var(--transition); font-family: 'DM Sans', sans-serif;
}
.footer__links a:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer__copy { font-size: 12px; color: var(--text-muted); font-family: 'DM Sans', sans-serif; }
.footer__tagline {
  font-size: 9.5px; font-weight: 300; letter-spacing: 0.4em;
  color: rgba(196,152,56,0.3); text-transform: uppercase;
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta .btn-ghost { display: none; }
  .nav__hamburger { display: flex; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: var(--black); padding: 156px 0 80px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(196,152,56,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero__content { position: relative; z-index: 1; }

/* ── Feature Row ── */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

@media (max-width: 768px) {
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse { direction: ltr; }
}

/* ── Stat Block ── */
.stat-block { text-align: center; }
.stat-block__num {
  font-size: clamp(40px, 5vw, 64px); font-weight: 700;
  letter-spacing: -0.03em;
}
.stat-block__label {
  font-size: 13px; color: var(--text-dim);
  margin-top: 8px; font-family: 'DM Sans', sans-serif;
}

/* ── Testimonial ── */
.testimonial {
  background: var(--charcoal); border-radius: var(--radius);
  border: 1px solid var(--border-dark); padding: 32px;
}
.testimonial__quote {
  font-size: 15px; color: rgba(255,255,255,0.75); line-height: 1.8;
  font-family: 'DM Sans', sans-serif; font-weight: 300;
  margin-bottom: 24px; font-style: italic;
}
.testimonial__author { display: flex; align-items: center; gap: 14px; }
.testimonial__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--black); flex-shrink: 0;
}
.testimonial__name { font-size: 14px; font-weight: 600; }
.testimonial__role { font-size: 12px; color: var(--text-dim); font-family: 'DM Sans', sans-serif; }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 0; bottom: 0;
  width: 1px; background: var(--border-dark);
}
.timeline__item { position: relative; margin-bottom: 40px; }
.timeline__dot {
  position: absolute; left: -28px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--black);
  box-shadow: 0 0 0 4px rgba(196,152,56,0.2);
}
.timeline__year {
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 6px;
}
.timeline__title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.timeline__desc { font-size: 13px; color: var(--text-dim); font-family: 'DM Sans', sans-serif; line-height: 1.7; }

/* ── Process Steps ── */
.step {
  display: flex; gap: 20px; align-items: flex-start;
}
.step__num {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(196,152,56,0.1); border: 1px solid rgba(196,152,56,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--gold);
}
.step__title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.step__desc { font-size: 13px; color: var(--text-dim); font-family: 'DM Sans', sans-serif; line-height: 1.7; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--charcoal) 0%, #12121a 100%);
  border: 1px solid rgba(196,152,56,0.15);
  border-radius: 20px; padding: 72px 64px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid rgba(196,152,56,0.08);
}
.cta-banner::after {
  content: ''; position: absolute;
  bottom: -60px; left: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid rgba(196,152,56,0.06);
}

/* ── Accordion ── */
.accordion__item {
  border-bottom: 1px solid var(--border-dark);
}
.accordion__trigger {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 500; color: #fff;
  transition: color var(--transition);
}
.accordion__trigger:hover { color: var(--gold); }
.accordion__icon {
  width: 24px; height: 24px; border-radius: 6px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: transform var(--transition), background var(--transition);
  flex-shrink: 0;
}
.accordion__item.open .accordion__icon {
  transform: rotate(45deg); background: rgba(196,152,56,0.15);
  border-color: rgba(196,152,56,0.3); color: var(--gold);
}
.accordion__body {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease;
}
.accordion__body.open { max-height: 300px; padding-bottom: 20px; }
.accordion__body p {
  font-size: 14px; color: var(--text-dim); line-height: 1.8;
  font-family: 'DM Sans', sans-serif;
}

/* ── Misc ── */
.text-center { text-align: center; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.gap-4 { gap: 16px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* ── TER App CTA (Module 06) ── */
.ter-cta-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #818CF8, #6366F1 45%, #22D3EE);
  background-size: 200% 200%;
  color: #fff; font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 700;
  padding: 18px 36px; border-radius: 16px;
  box-shadow: 0 18px 44px rgba(99,102,241,0.45);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.5s ease;
  animation: ter-btn-gradient 4s ease infinite;
}
.ter-cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 24px 56px rgba(99,102,241,0.65), 0 0 0 4px rgba(99,102,241,0.15);
  color: #fff;
}
.ter-cta-btn__glow {
  position: absolute; inset: -3px; border-radius: 18px;
  background: linear-gradient(135deg, #818CF8, #22D3EE);
  z-index: -1; opacity: 0.6; filter: blur(14px);
  animation: ter-btn-pulse 2.4s ease-in-out infinite;
}
@keyframes ter-btn-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.06); }
}
@keyframes ter-btn-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
