/* ==========================================================================
   EduGrade AI — shared site theme
   Used by every page. Keep index.html and the inner pages visually in sync.
   ========================================================================== */

:root {
  --navy: #05092b;
  --navy-deep: #082760;
  --navy-card: #163060;
  --blue-box: #0b80ef;
  --blue: #0861ed;
  --cyan: #09d0f2;
  --grad-btn: linear-gradient(90deg, #0861ed 0%, #09d0f2 100%);
  --grad-icon: linear-gradient(180deg, #0964ed 0%, #0ad5f3 100%);
  --grad-ring: linear-gradient(to bottom, #086AEE, #09CCF2);
  --grad-hero: linear-gradient(180deg, #082760 0%, rgba(8, 39, 96, 0.34) 100%);
  --body-text: #737373;
  --menu-text: #383838;
  --active: #027af1;
  --muted-bg: #f5f8fc;
  --border: #e2e6ef;
  --font-head: 'Manrope', Helvetica, Arial, sans-serif;
  --font-body: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
  --font-num: 'Outfit', Helvetica, Arial, sans-serif;
  --maxw: 1290px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); color: var(--body-text);
  line-height: 1.7; background: #fff; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.1; font-weight: 600; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: 90%; max-width: var(--maxw); margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: 18px; color: #fff !important; padding: 13px 29px;
  border-radius: 5px; background-image: var(--grad-btn);
  transition: filter 0.3s ease, transform 0.3s ease; border: none; cursor: pointer;
}
.btn:hover { filter: brightness(120%); transform: translateY(-2px); }
.btn--ghost { background-image: none; background: transparent; border: 2px solid rgba(255, 255, 255, 0.6); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); filter: none; }
.btn--ghost-dark { background-image: none; background: transparent; border: 2px solid rgba(8, 39, 96, 0.25); color: var(--navy-deep) !important; }
.btn--ghost-dark:hover { background: rgba(8, 39, 96, 0.06); filter: none; }
.btn--navy { background-image: none; background: var(--navy-deep); border-radius: 4px; font-size: 16px; padding: 10px 24px; }
.btn--navy:hover { background: #0a316f; filter: none; }
.btn--sm { font-size: 15px; padding: 11px 22px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 999; background: #fff;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.1);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.logo img { max-height: 46px; width: auto; }
nav.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 26px; }
nav.main-nav a { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--menu-text); transition: color 0.3s ease; }
nav.main-nav a:hover, nav.main-nav a.is-active { color: var(--active); }
.header-ctas { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 26px; color: var(--active); }

/* Page hero (inner pages) */
.page-hero {
  background: var(--grad-hero), var(--navy-deep);
  background-blend-mode: normal;
  padding: 50px 0 64px; text-align: center;
}
.page-hero .eyebrow {
  display: inline-block; color: #bcd6ff; font-family: var(--font-head); font-weight: 700;
  font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 16px;
}
.page-hero h1 { color: #fff; font-size: 48px; max-width: 760px; margin: 0 auto 18px; }
.page-hero p { color: rgba(255, 255, 255, 0.85); font-family: var(--font-head); font-size: 18px; line-height: 1.7; max-width: 680px; margin: 0 auto; }
.page-hero .hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 30px; }

/* Sections */
.section { padding: 90px 0; }
.section--tight { padding: 60px 0; }
.section--muted { background: var(--muted-bg); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.section-head h2 { font-size: 44px; margin-bottom: 14px; }
.section-head p { font-size: 18px; line-height: 1.8; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Cards */
.card {
  background: #fff; border-radius: 8px; padding: 34px 30px;
  box-shadow: 0 5px 40px rgba(8, 39, 96, 0.08); text-align: left;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(8, 39, 96, 0.14); }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card .role { color: var(--active); font-family: var(--font-head); font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.card p { font-size: 16px; line-height: 1.75; }

.feature-card { background: #fff; border-radius: 5px; padding: 30px 15px 28px; box-shadow: 0 5px 60px rgba(0, 0, 0, 0.08); text-align: center; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(8, 39, 96, 0.14); }
.icon-badge {
  width: 72px; height: 72px; margin: 0 auto 20px; background-image: var(--grad-icon);
  border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px;
}
.feature-card h3 { font-size: 20px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.feature-card p { font-size: 15px; }

/* Numbered steps (reused on How It Works) */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .steps--4 { grid-template-columns: repeat(2, 1fr); } }
.step { position: relative; background: var(--navy-card); border-radius: 5px; padding: 37px 40px 40px; }
.step-num {
  position: absolute; top: 28px; right: 34px; width: 54px; height: 54px; border-radius: 50%;
  background: var(--grad-ring); padding: 2px;
}
.step-num span {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  border-radius: 50%; background: var(--navy-card); font-family: var(--font-num); font-weight: 600; font-size: 20px; color: #fff;
}
.step h3 { font-family: var(--font-head); font-size: 21px; color: #fff; line-height: 1.2; margin: 54px 0 8px; }
.step p { color: rgba(255, 255, 255, 0.7); font-family: var(--font-head); font-size: 16px; line-height: 1.8; }

/* CTA band (bright blue box) */
.cta-box {
  background: var(--blue-box); border-radius: 8px; padding: 60px 50px; text-align: center;
}
.cta-box h2 { color: #fff; font-size: 34px; margin-bottom: 14px; }
.cta-box p { color: rgba(255, 255, 255, 0.9); font-family: var(--font-head); font-size: 17px; max-width: 640px; margin: 0 auto 28px; }
.cta-box .hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* Forms */
.form-card { background: #fff; border-radius: 8px; box-shadow: 0 5px 40px rgba(8, 39, 96, 0.08); padding: 44px; max-width: 720px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--menu-text); margin-bottom: 7px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 15px; border: 1px solid var(--border); border-radius: 6px;
  font-family: var(--font-body); font-size: 15px; color: var(--navy); background: #fbfcfe;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8, 97, 237, 0.15); background: #fff;
}
.form-success {
  margin-top: 18px; padding: 15px 18px; border-radius: 6px; background: rgba(9, 208, 106, 0.1);
  border: 1px solid rgba(9, 208, 106, 0.35); color: #0a7a3f; font-family: var(--font-head); font-size: 15px;
}
.form-success.hidden { display: none; }

/* Pricing card */
.pricing-card { background: #fff; border-radius: 8px; box-shadow: 0 5px 40px rgba(8, 39, 96, 0.08); padding: 40px; max-width: 480px; margin: 0 auto; text-align: left; }
.pricing-card h3 { font-size: 22px; margin-bottom: 16px; }
.pricing-card ul { list-style: none; }
.pricing-card li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: 16px; }
.pricing-card li::before {
  content: '\2713'; position: absolute; left: 0; top: 0; color: var(--blue);
  font-family: var(--font-head); font-weight: 700;
}

.note-pill {
  display: inline-block; background: var(--muted-bg); border: 1px solid var(--border);
  color: var(--menu-text); font-family: var(--font-head); font-weight: 600; font-size: 14px;
  padding: 10px 22px; border-radius: 999px;
}

/* Footer */
footer { background: #082761; color: #fff; }
.footer-top { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { max-height: 38px; width: auto; }
.footer-brand span { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: #fff; }
.footer-grid p { color: rgba(255, 255, 255, 0.65); font-size: 15px; max-width: 320px; }
.footer-col h4 { font-family: var(--font-head); font-size: 15px; color: #fff; margin-bottom: 16px; letter-spacing: 0.03em; text-transform: uppercase; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-family: var(--font-head); font-size: 15px; color: rgba(255, 255, 255, 0.72); transition: color 0.25s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 22px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom p { font-family: var(--font-head); font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.footer-legal { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal a { font-family: var(--font-head); font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.footer-legal a:hover { color: #fff; }

/* Scroll reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.16, 0.84, 0.44, 1), transform 0.7s cubic-bezier(0.16, 0.84, 0.44, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1.is-visible { transition-delay: 0.1s; }
.reveal-delay-2.is-visible { transition-delay: 0.2s; }
.reveal-delay-3.is-visible { transition-delay: 0.3s; }
.reveal-delay-4.is-visible { transition-delay: 0.4s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp 0.8s ease both; }
.fade-up.delay-1 { animation-delay: 0.15s; }
.fade-up.delay-2 { animation-delay: 0.3s; }
.fade-up.delay-3 { animation-delay: 0.45s; }

/* Responsive */
@media (max-width: 980px) {
  nav.main-nav { display: none; }
  nav.main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); padding: 10px 0; max-height: calc(100vh - 70px); overflow-y: auto; }
  nav.main-nav.open ul { flex-direction: column; gap: 0; }
  nav.main-nav.open a { display: block; padding: 12px 5%; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
  .menu-toggle { display: block; }
  .header-inner { position: relative; }
  .header-ctas .btn--sm { padding: 9px 14px; font-size: 14px; }
  .page-hero h1 { font-size: 36px; }
  .section-head h2 { font-size: 34px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid p { max-width: none; }
}
@media (max-width: 560px) {
  .page-hero { padding: 40px 0 46px; }
  .page-hero h1 { font-size: 28px; }
  .section { padding: 60px 0; }
  .header-inner { flex-wrap: wrap; }
  .section-head h2 { font-size: 26px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-box { padding: 44px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
