/* shared.css — EduCore AI Design System */

/* ---- Base ---- */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --card: #ffffff;
  --border: #e2e8f0;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --brand: #6366f1;
  --brand-light: #4f46e5;
  --purple: #a78bfa;
  --cyan: #0ea5e9;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 999px;
}

/* ---- Gradients ---- */
.grad-text {
  background: linear-gradient(135deg, #818cf8, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grad-text-warm {
  background: linear-gradient(135deg, #f59e0b, #f97316, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grad-text-green {
  background: linear-gradient(135deg, #34d399, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Nav ---- */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(11, 17, 32, 0.85);
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo span {
  font-size: 18px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

.btn-nav-cta {
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
  text-decoration: none;
}

.btn-nav-cta:hover {
  opacity: .85;
}

/* ---- Cards ---- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}

.card:hover {
  border-color: rgba(99, 102, 241, .5);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px -12px rgba(99, 102, 241, .25);
}

.card-glow:hover {
  box-shadow: 0 0 40px rgba(99, 102, 241, .2);
}

/* ---- Reveal Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal.delay-1 {
  transition-delay: .1s;
}

.reveal.delay-2 {
  transition-delay: .2s;
}

.reveal.delay-3 {
  transition-delay: .3s;
}

.reveal.delay-4 {
  transition-delay: .4s;
}

.reveal.delay-5 {
  transition-delay: .5s;
}

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid;
}

.badge-brand {
  background: rgba(99, 102, 241, .1);
  border-color: rgba(99, 102, 241, .3);
  color: var(--brand-light);
}

.badge-green {
  background: rgba(52, 211, 153, .08);
  border-color: rgba(52, 211, 153, .3);
  color: var(--green);
}

.badge-amber {
  background: rgba(251, 191, 36, .08);
  border-color: rgba(251, 191, 36, .3);
  color: var(--amber);
}

.badge-red {
  background: rgba(248, 113, 113, .08);
  border-color: rgba(248, 113, 113, .3);
  color: var(--red);
}

.badge-cyan {
  background: rgba(34, 211, 238, .08);
  border-color: rgba(34, 211, 238, .3);
  color: var(--cyan);
}

/* ---- Section ---- */
.section {
  padding: 96px 0;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto;
}

/* ---- Blob ---- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .1;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-18px)
  }
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  color: white;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(99, 102, 241, .35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, .5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(99, 102, 241, .4);
  color: var(--brand-light);
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: border-color .2s, background .2s;
}

.btn-outline:hover {
  border-color: var(--brand);
  background: rgba(99, 102, 241, .08);
}

/* ---- Hero tag ---- */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, .1);
  border: 1px solid rgba(99, 102, 241, .25);
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-light);
  margin-bottom: 28px;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

/* ---- Page Hero ---- */
.page-hero {
  padding: 25px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -5%, rgba(99, 102, 241, .2), transparent);
  pointer-events: none;
}

/* ---- Feature Full Row ---- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse>* {
  direction: ltr;
}

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

/* ---- Tag pill ---- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}

.tag-brand {
  background: rgba(99, 102, 241, .15);
  color: var(--brand-light);
}

.tag-green {
  background: rgba(52, 211, 153, .12);
  color: var(--green);
}

.tag-amber {
  background: rgba(251, 191, 36, .12);
  color: var(--amber);
}

/* ---- Metrics strip ---- */
.metric-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.metric-chip {
  background: rgba(30, 45, 69, .8);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
}

.metric-chip .val {
  font-size: 28px;
  font-weight: 900;
}

.metric-chip .lbl {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand), transparent);
}

.tl-item {
  position: relative;
  margin-bottom: 32px;
}

.tl-dot {
  position: absolute;
  left: -30px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--purple));
  border: 3px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-item h4 {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 6px;
}

.tl-item p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ---- Quote ---- */
.quote-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, .1), rgba(167, 139, 250, .05));
  border: 1px solid rgba(99, 102, 241, .25);
  border-radius: 20px;
  padding: 32px;
  position: relative;
}

.quote-card::before {
  content: '"';
  position: absolute;
  top: 12px;
  left: 24px;
  font-size: 64px;
  color: rgba(99, 102, 241, .25);
  font-family: serif;
  line-height: 1;
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  color: #64748b;
  font-size: 14px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .section {
    padding: 64px 0;
  }
}