/* ========================================
   CSS Custom Properties
   ======================================== */

:root {
  /* Brand colors */
  --dark: #040314;
  --dark-light: #0c0a1d;
  --primary: #6366f1;
  --primary-hover: #4338ca;

  /* Zinc palette */
  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --white: #ffffff;
}

/* ========================================
   Reset & Base
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--zinc-800);
  line-height: 1.6;
  background: var(--zinc-50);
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  line-height: 1.2;
}

/* ========================================
   Accessibility
   ======================================== */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 500;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ========================================
   Layout
   ======================================== */

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

/* ========================================
   Navigation
   ======================================== */

nav {
  background: var(--dark);
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Instrument Serif", serif;
  font-size: 1.4rem;
  color: var(--white);
  text-decoration: none;
}

.logo span {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  background: var(--dark);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  max-width: 920px;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--primary);
  font-style: italic;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 720px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: var(--white);
  padding: 18px 36px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.hero-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.35);
}

.hero-cta svg {
  transition: transform 0.3s ease;
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

/* ========================================
   Social Proof
   ======================================== */

.social-proof {
  padding: 64px 0;
}

.social-proof .container {
  text-align: center;
}

.social-proof-tagline {
  font-size: 1rem;
  color: var(--zinc-500);
  margin-bottom: 40px;
}

.school-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.school-logo {
  font-family: "Instrument Serif", serif;
  font-size: 1.35rem;
  color: var(--dark);
  opacity: 0.7;
}

@media (max-width: 600px) {
  .school-logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 16px;
  }

  .school-logo {
    font-size: 1.1rem;
  }
}

/* ========================================
   Features Section
   ======================================== */

.features {
  padding: 100px 0;
  background: var(--zinc-50);
}

.features-header {
  text-align: left;
  max-width: 700px;
  margin-bottom: 64px;
}

.features-header h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--dark);
  margin-bottom: 24px;
}

.features-header p {
  font-size: 1.15rem;
  color: var(--zinc-600);
  line-height: 1.8;
}

/* Bento Grid Layout */
.features-bento {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

.features-bento .feature-card:first-child {
  grid-row: span 2;
}

/* Base Feature Card */
.feature-card {
  padding: 32px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}

.feature-card h3 {
  font-family: "Instrument Serif", serif;
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.feature-card > p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.feature-card-content {
  margin-bottom: auto;
}

.feature-card-visual {
  margin-top: auto;
}

/* Dark Card Variant */
.feature-card--dark {
  background: linear-gradient(145deg, var(--dark) 0%, var(--dark-light) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card--dark h3 {
  color: var(--white);
}

.feature-card--dark p {
  color: rgba(255, 255, 255, 0.7);
}

/* Light Card Variant */
.feature-card--light {
  background: var(--white);
  border: 1px solid var(--zinc-200);
}

.feature-card--light h3 {
  color: var(--dark);
}

.feature-card--light p {
  color: var(--zinc-600);
}

/* Credit Badges (Dark Card Visual) */
.credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 10px;
  margin-right: 8px;
}

.credit-badge--accepted {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.credit-badge--accepted svg {
  color: #4ade80;
}

.credit-badge--rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.credit-badge--rejected svg {
  color: #f87171;
}

/* Progress Bars (Light Card Visual) */
.progress-item {
  margin-bottom: 14px;
}

.progress-item:last-child {
  margin-bottom: 0;
}

.progress-label {
  display: block;
  font-size: 0.8rem;
  color: var(--zinc-500);
  margin-bottom: 6px;
}

.progress-bar {
  height: 8px;
  background: var(--zinc-100);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
}

/* Savings Display (Light Card Visual) */
.savings-display {
  background: var(--zinc-50);
  border: 1px solid var(--zinc-200);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.savings-label {
  display: block;
  font-size: 0.8rem;
  color: var(--zinc-500);
  margin-bottom: 4px;
}

.savings-amount {
  font-family: "Instrument Serif", serif;
  font-size: 2.25rem;
  color: var(--primary);
}

/* Reviewer Badge (Light Card Visual) */
.reviewer-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--zinc-50);
  border: 1px solid var(--zinc-200);
  border-radius: 12px;
  padding: 16px;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  border: 1px solid var(--zinc-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.reviewer-info {
  display: flex;
  flex-direction: column;
}

.reviewer-title {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
}

.reviewer-note {
  font-size: 0.8rem;
  color: var(--zinc-500);
}

/* Turnaround Display (Light Card Visual) */
.turnaround-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--zinc-50);
  border: 1px solid var(--zinc-200);
  border-radius: 12px;
  padding: 20px;
}

.turnaround-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.turnaround-time {
  font-family: "Instrument Serif", serif;
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 500;
}

.turnaround-label {
  font-size: 0.8rem;
  color: var(--zinc-500);
}

.turnaround-arrow {
  color: var(--zinc-300);
}

/* ========================================
   Testimonials
   ======================================== */

.testimonials {
  background: var(--dark);
  padding: 100px 0;
  position: relative;
}

.testimonials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(99, 102, 241, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.testimonials .container {
  position: relative;
  z-index: 1;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 60px;
}

.testimonials-header h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: var(--dark-light);
  padding: 36px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.testimonial-card .quote {
  font-size: 2.5rem;
  color: var(--primary);
  font-family: "Instrument Serif", serif;
  line-height: 1;
  margin-bottom: 16px;
}

.testimonial-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-author {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
}

/* ========================================
   Pricing
   ======================================== */

.pricing {
  padding: 100px 0;
  background: var(--zinc-100);
}

.pricing .container {
  max-width: 640px;
}

.pricing-card {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.pricing-card-decoration {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.15) 0%,
    rgba(99, 102, 241, 0.05) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.pricing-card-header {
  margin-bottom: 32px;
}

.pricing-card-header h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--dark);
  margin-bottom: 12px;
}

.pricing-card-header p {
  color: var(--zinc-500);
  font-size: 1rem;
  line-height: 1.6;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
}

.pricing-amount .price {
  font-family: "Instrument Serif", serif;
  font-size: 3.5rem;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.pricing-amount .price-label {
  font-size: 1.1rem;
  color: var(--zinc-400);
}

.pricing-divider {
  height: 1px;
  background: var(--zinc-200);
  margin-bottom: 32px;
}

.pricing-card h3 {
  font-size: 0.875rem;
  color: var(--dark);
  margin-bottom: 20px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  color: var(--zinc-700);
  font-size: 1rem;
}

.pricing-features li svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

.pricing-card-footer {
  padding-top: 24px;
  border-top: 1px solid var(--zinc-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.guarantee {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.guarantee svg {
  flex-shrink: 0;
  color: var(--zinc-400);
}

.guarantee span {
  font-size: 0.875rem;
  color: var(--zinc-500);
  line-height: 1.4;
}

.pricing-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.pricing-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.pricing-cta svg {
  transition: transform 0.3s ease;
}

.pricing-cta:hover svg {
  transform: translateX(4px);
}

/* ========================================
   Final CTA
   ======================================== */

.final-cta {
  padding: 80px 0 100px;
  background: var(--white);
}

.final-cta-card {
  background: var(--primary);
  border-radius: 24px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.final-cta-image {
  flex: 0 0 40%;
  display: flex;
  align-items: flex-end;
  max-height: 38rem;
}

.final-cta-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom;
}

.final-cta-content {
  flex: 1;
  padding: 64px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.final-cta h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  max-width: 520px;
  color: var(--white);
  margin-bottom: 16px;
}

.final-cta-content > p {
  font-size: 1.05rem;
  max-width: 580px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--primary);
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

.cta-button:hover {
  background: var(--zinc-100);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-button svg {
  transition: transform 0.3s ease;
}

.cta-button:hover svg {
  transform: translateX(4px);
}

.cta-subtext {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .final-cta-card {
    flex-direction: column;
  }

  .final-cta-image {
    flex: none;
    height: 240px;
  }

  .final-cta-content {
    padding: 48px 32px;
    text-align: center;
    align-items: center;
  }
}

/* ========================================
   Footer
   ======================================== */

footer {
  background: var(--white);
  padding: 64px 0 0;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--zinc-200);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-family: "Instrument Serif", serif;
  font-size: 1.25rem;
  color: var(--dark);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo span {
  color: var(--primary);
}

.footer-brand p {
  color: var(--zinc-500);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column h4 {
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.footer-column a {
  color: var(--zinc-500);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.footer-bottom p {
  color: var(--zinc-400);
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--zinc-400);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    gap: 40px;
  }

  .footer-brand {
    max-width: 100%;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 48px;
  }

  .footer-column {
    align-items: center;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}
.animate-delay-2 {
  animation-delay: 0.2s;
}
.animate-delay-3 {
  animation-delay: 0.3s;
}
.animate-delay-4 {
  animation-delay: 0.4s;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 1024px) {
  .features-bento {
    grid-template-columns: 1fr 1fr;
  }

  .features-bento .feature-card:first-child {
    grid-row: span 1;
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .features-bento {
    grid-template-columns: 1fr;
  }

  .features-bento .feature-card:first-child {
    grid-column: span 1;
  }

  .features-header {
    text-align: center;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .pricing-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .guarantee {
    justify-content: center;
    text-align: center;
  }

  .pricing-cta {
    justify-content: center;
    width: 100%;
  }

  .hero {
    padding: 140px 0 80px;
  }
}
