/* ============================================================
   KALLIRION MOVEMENT — DESIGN SYSTEM
   Brand: Charcoal Black, Electric Blue, Crimson Red, Steel Gray, Ice White
   Fonts: Exo 2 (display) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;600;700;900&family=Inter:wght@400;500;600&display=swap');

:root {
  --black:    #0B0B0F;
  --blue:     #00AEEF;
  --red:      #E50914;
  --steel:    #1F1F26;
  --gray:     #3A3A45;
  --ice:      #F2F4F8;
  --white:    #FFFFFF;
  --text-dim: #9090A0;

  --font-display: 'Exo 2', sans-serif;
  --font-body:    'Inter', sans-serif;

  --max-w: 1100px;
  --section-pad: 100px 24px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

p { color: var(--text-dim); line-height: 1.8; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--white); }

/* ── UTILITY ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.text-blue  { color: var(--blue); }
.text-red   { color: var(--red); }
.text-white { color: var(--white); }

.section { padding: var(--section-pad); }

.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--black);
}
.btn-primary:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 174, 239, 0.3);
}

.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover {
  background: #ff1a25;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(229, 9, 20, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--ice);
  border: 2px solid var(--gray);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  background: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-logo span { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--blue);
  color: var(--black) !important;
  padding: 10px 22px;
  border-radius: 4px;
}
.nav-cta:hover { background: var(--white) !important; color: var(--black) !important; }

.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: 2px;
  background: var(--ice);
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0, 174, 239, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 90% 80%, rgba(229, 9, 20, 0.05) 0%, transparent 50%),
    var(--black);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-eyebrow-line {
  width: 40px;
  height: 2px;
  background: var(--blue);
}

.hero-eyebrow-text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 28px;
  color: var(--white);
}

.hero h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 44px;
  color: var(--text-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-num span { color: var(--blue); }

.hero-stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── MARQUEE ── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: var(--steel);
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 16px;
}

.marquee-item::after {
  content: '●';
  color: var(--blue);
  font-size: 0.5rem;
}

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

/* ── WHAT IS KALLIRION ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-card {
  background: var(--steel);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--red));
}

.about-card-quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 20px;
}

.about-card-attr {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.about-float-badge {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 90px;
  height: 90px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  text-align: center;
  line-height: 1.3;
}

.about-text h2 { margin-bottom: 20px; color: var(--white); }
.about-text p  { margin-bottom: 20px; }

.about-pillars-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
}

.pillar-chip {
  background: var(--steel);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ice);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ── PILLARS ── */
.pillars-section { background: var(--steel); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.pillar-card {
  background: var(--black);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 36px 28px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.pillar-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}

.pillar-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.pillar-card:hover::after { opacity: 1; }

.pillar-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--blue);
  margin-bottom: 16px;
}

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.pillar-card h3 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.pillar-card p { font-size: 0.9rem; }

/* ── LEVELS ── */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.level-card {
  background: var(--steel);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 40px 32px;
  position: relative;
  text-align: center;
}

.level-card.active {
  border-color: var(--blue);
  background: rgba(0, 174, 239, 0.05);
}

.level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--blue);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--blue);
  margin: 0 auto 20px;
}

.level-card.level-2 .level-badge {
  border-color: var(--red);
  color: var(--red);
}

.level-card.level-3 .level-badge {
  border-color: #FFD700;
  color: #FFD700;
  border-width: 3px;
}

.level-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 8px;
}

.level-title {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.level-card.level-2 .level-title { color: var(--red); }
.level-card.level-3 .level-title { color: #FFD700; }

.level-card p { font-size: 0.88rem; }

/* ── CREED ── */
.creed-section {
  background: var(--black);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.creed-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(229, 9, 20, 0.06) 0%, transparent 70%);
}

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

.creed-text {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  font-weight: 700;
  line-height: 2;
  color: var(--ice);
  max-width: 780px;
  margin: 0 auto 48px;
}

.creed-text strong {
  color: var(--blue);
}

.creed-divider {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 0 auto 40px;
}

/* ── CODES ── */
.codes-section { background: var(--steel); }

.codes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.code-card {
  background: var(--black);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 28px;
  transition: border-color 0.3s;
}

.code-card:hover { border-color: rgba(0, 174, 239, 0.3); }

.code-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.5rem;
  color: rgba(0, 174, 239, 0.12);
  line-height: 1;
  margin-bottom: 8px;
}

.code-card h3 {
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 8px;
  font-weight: 700;
}

.code-card p { font-size: 0.85rem; }

/* ── BLOG PREVIEW ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.blog-card {
  background: var(--steel);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  text-decoration: none;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
}

.blog-card-thumb {
  height: 180px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.blog-card-body { padding: 24px; }

.blog-card-tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
  display: block;
}

.blog-card h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card p { font-size: 0.85rem; }

/* ── JOIN / CTA ── */
.join-section {
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.08) 0%, rgba(229, 9, 20, 0.05) 100%);
  border-top: 1px solid rgba(0, 174, 239, 0.15);
  border-bottom: 1px solid rgba(0, 174, 239, 0.15);
  text-align: center;
}

.join-section h2 { color: var(--white); margin-bottom: 16px; }
.join-section > .container > p { max-width: 520px; margin: 0 auto 40px; font-size: 1.05rem; }

.join-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 48px 0;
  flex-wrap: wrap;
}

.join-step {
  display: flex;
  align-items: center;
  gap: 0;
}

.join-step-inner {
  text-align: center;
  padding: 0 28px;
}

.join-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.join-step-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}

.join-step-arrow {
  color: var(--gray);
  font-size: 1.2rem;
  padding: 0 4px;
}

/* ── FAQ ── */
.faq-section { background: var(--black); }

.faq-list {
  max-width: 720px;
  margin: 56px auto 0;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--gray);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.2rem;
  transition: all 0.3s;
}

.faq-item.open .faq-icon {
  background: var(--blue);
  color: var(--black);
  border-color: var(--blue);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding-bottom: 24px;
  font-size: 0.95rem;
}

.faq-item.open .faq-answer { max-height: 300px; }

/* ── FOUNDER ── */
.founder-section { background: var(--steel); }

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}

.founder-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--black);
  border: 2px solid rgba(0,174,239,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.founder-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(0,174,239,0.15) 0%, transparent 60%);
}

.founder-handle {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-top: 16px;
  position: relative;
}

.founder-text h2 { color: var(--white); margin-bottom: 20px; }
.founder-text p  { margin-bottom: 16px; }

.founder-links {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ice);
  text-decoration: none;
  transition: all 0.2s;
}

.social-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 60px 24px 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand h3 span { color: var(--blue); }

.footer-brand p {
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--blue); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-mantra {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ── SECTION HEADERS ── */
.section-header { margin-bottom: 56px; }
.section-header h2 { color: var(--white); margin-top: 12px; margin-bottom: 16px; }
.section-header p { max-width: 520px; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-grid, .founder-grid { grid-template-columns: 1fr; gap: 40px; }
  .pillars-grid, .levels-grid { grid-template-columns: repeat(2, 1fr); }
  .codes-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 24px;
    gap: 20px;
  }
  .nav-hamburger { display: flex; }
}

@media (max-width: 600px) {
  .pillars-grid, .levels-grid, .codes-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .join-steps { flex-direction: column; align-items: center; }
  .join-step-arrow { transform: rotate(90deg); }
}
