/* ============================================================
   JEDX.ai — Global Stylesheet
   ============================================================ */

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

:root {
  --navy:       #0a1628;
  --navy-mid:   #112240;
  --navy-light: #1a3358;
  --blue-accent:#1a6fb5;
  --sky:        #4fa3e0;
  --teal:       #00b4cc;
  --teal-light: #00cfe8;
  --white:      #ffffff;
  --off-white:  #f5f5f0;
  --warm-gray:  #e8e4dc;
  --text-gray:  #8a9bb5;
  --body-gray:  #4a5568;
  --border:     rgba(255,255,255,0.1);
  --border-dark:rgba(10,22,40,0.12);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Syne', sans-serif;
  --font-body:  'Source Serif 4', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
  cursor: none;
}

/* ── CURSOR ─────────────────────────────────────────── */
.cursor {
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  opacity: 0.5;
}

/* ── NAVIGATION ─────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px;
  height: 72px;
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--teal); }
.nav-links {
  display: flex; gap: 36px; list-style: none;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.25s;
  cursor: none;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--teal); }
.nav-cta {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--teal);
  color: var(--navy);
  border: none;
  padding: 10px 24px;
  cursor: none;
  transition: background 0.25s, transform 0.2s;
  text-decoration: none;
  display: inline-block;
}
.nav-cta:hover { background: var(--teal-light); transform: translateY(-1px); }

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  background: #060e1c;
  color: rgba(255,255,255,0.5);
  padding: 64px 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-brand h3 span { color: var(--teal); }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 280px; }
.footer-url {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-top: 20px;
  display: block;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
  cursor: none;
}
.footer-col ul a:hover { color: var(--teal); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
}
.footer-copy a { color: rgba(255,255,255,0.25); text-decoration: none; cursor: none; }
.footer-copy a:hover { color: var(--teal); }

/* ── LAYOUT ─────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 56px; }
section { padding: 96px 0; }

/* ── PAGE HERO (interior pages) ─────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 148px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,180,204,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,204,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,204,0.1) 0%, transparent 65%);
  top: -150px; right: -80px;
  pointer-events: none;
}
.page-hero .breadcrumb {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.4); text-decoration: none; cursor: none; transition: color 0.2s; }
.page-hero .breadcrumb a:hover { color: var(--teal); }
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  max-width: 720px;
  margin-bottom: 24px;
}
.page-hero h1 em { font-style: italic; color: var(--teal); }
.page-hero .hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  max-width: 580px;
}
.page-hero-meta {
  display: flex; gap: 32px; align-items: center;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.page-hero-meta-item {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-gray);
}
.page-hero-meta-item span { color: var(--white); display: block; margin-bottom: 4px; font-size: 0.8rem; }

/* ── TYPOGRAPHY UTILITIES ───────────────────────────── */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-accent);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--blue-accent);
  flex-shrink: 0;
}
.section-label.light { color: var(--teal); }
.section-label.light::before { background: var(--teal); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 20px;
}
.section-title.light { color: var(--white); }
.section-title em { font-style: italic; color: var(--teal); }

.body-text {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--body-gray);
}
.body-text + .body-text { margin-top: 16px; }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn-primary {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--teal);
  color: var(--navy);
  border: none;
  padding: 16px 32px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s;
  cursor: none;
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-2px); }
.btn-ghost {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(10,22,40,0.25);
  color: var(--navy);
  padding: 16px 32px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s;
  cursor: none;
  background: transparent;
}
.btn-ghost:hover { border-color: var(--blue-accent); color: var(--blue-accent); }
.btn-ghost.light {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
}
.btn-ghost.light:hover { border-color: var(--teal); color: var(--teal); }

/* ── CTA BAND ────────────────────────────────────────── */
.cta-band { background: var(--navy); padding: 96px 0; }
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.cta-inner h2 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.18;
  color: var(--white);
}
.cta-inner h2 em { font-style: italic; color: var(--teal); }
.cta-right { display: flex; flex-direction: column; gap: 20px; }
.cta-right p { font-size: 0.95rem; line-height: 1.75; color: rgba(255,255,255,0.6); }
.cta-right .btn-primary { align-self: flex-start; padding: 18px 36px; }

/* ── TICKER ──────────────────────────────────────────── */
.ticker {
  background: var(--teal);
  overflow: hidden;
  height: 44px;
  display: flex; align-items: center;
}
.ticker-track {
  display: flex; gap: 80px;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  display: flex; align-items: center; gap: 20px;
}
.ticker-item::after { content: '·'; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── REVEAL ANIMATION ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  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; }

/* ── COMMON GRID COMPONENTS ──────────────────────────── */
.ruled-grid {
  display: grid;
  gap: 1px;
  background: var(--border-dark);
  border: 1px solid var(--border-dark);
}
.ruled-card {
  background: var(--white);
  padding: 44px 36px;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}
.ruled-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.ruled-card:hover::after { transform: scaleX(1); }
.ruled-card:hover { background: var(--off-white); }

.ruled-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}
.ruled-card p { font-size: 0.9rem; line-height: 1.72; color: #5a6a7e; }

.card-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(10,22,40,0.07);
  line-height: 1;
  margin-bottom: 20px;
}
.card-arrow {
  margin-top: 24px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-accent);
  display: flex; align-items: center; gap: 8px;
  cursor: none;
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
}
.card-arrow:hover, .ruled-card:hover .card-arrow { gap: 14px; }

/* ── DARK SECTION ────────────────────────────────────── */
.dark-section { background: var(--navy); color: var(--white); }
.dark-section .section-label { color: var(--teal); }
.dark-section .section-label::before { background: var(--teal); }
.dark-section .section-title { color: var(--white); }
.dark-section .body-text { color: rgba(255,255,255,0.6); }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 960px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .container { padding: 0 24px; }
  section { padding: 64px 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .page-hero { padding: 120px 0 60px; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
