/* Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@400;600;700;800&display=swap');

/* CSS Variables for Brand Colors & Typography */
:root {
  --color-navy: #0A294F;
  --color-teal: #1E9E9D;
  --color-teal-hover: #178281;
  --color-amber: #F59E0B;
  --color-coral: #DC5B4A;
  --color-white: #FFFFFF;
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-600: #4B5563;
  --color-gray-900: #111827;

  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(10, 41, 79, 0.08), 0 2px 4px -1px rgba(10, 41, 79, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(10, 41, 79, 0.1), 0 4px 6px -2px rgba(10, 41, 79, 0.05);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-white);
  color: var(--color-gray-900);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-gray-100);
  z-index: 100;
  transition: var(--transition-smooth);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

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

.brand-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-img {
  width: 40px;
  height: 40px;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--color-navy);
}

.brand-powered {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-teal);
  letter-spacing: 0.2px;
}

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

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--color-gray-600);
  font-size: 15px;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--color-navy);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  font-size: 15px;
}

.btn-primary {
  background-color: var(--color-teal);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(30, 158, 157, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-teal-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30, 158, 157, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}

.btn-outline:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: radial-gradient(circle at 90% 10%, rgba(30, 158, 157, 0.05) 0%, rgba(10, 41, 79, 0.02) 60%, transparent 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 64px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 54px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-navy);
  margin-bottom: 24px;
}

.hero-content h1 span {
  color: var(--color-teal);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-gray-600);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-600);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-teal);
}

/* Interactive SVG Logo in Hero Right */
.hero-visual {
  display: flex;
  justify-content: center;
}

.animated-logo-box {
  position: relative;
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gray-100);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Micro animations for Logo */
.animated-logo-box svg {
  width: 100%;
  height: 100%;
}

.animated-logo-box::after {
  content: '';
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 158, 157, 0.1) 0%, transparent 70%);
  z-index: -1;
  animation: pulseGlow 4s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.9; }
}

/* Features Section */
.features {
  padding: 100px 0;
  background-color: var(--color-gray-50);
  border-top: 1px solid var(--color-gray-100);
  border-bottom: 1px solid var(--color-gray-100);
}

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

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--color-gray-600);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.feature-card {
  background-color: var(--color-white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-100);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 158, 157, 0.2);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: rgba(30, 158, 157, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
  color: var(--color-teal);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-gray-600);
  font-size: 15px;
}

/* How It Works Section */
.how-it-works {
  padding: 100px 0;
  background-color: var(--color-white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.step-card {
  text-align: center;
  padding: 40px 24px;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-teal);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 10px rgba(30, 158, 157, 0.2);
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.step-card p {
  color: var(--color-gray-600);
  font-size: 15px;
}

/* Focus Mode Preview */
.focus-preview {
  padding: 100px 0;
  background-color: var(--color-gray-50);
  border-top: 1px solid var(--color-gray-100);
  border-bottom: 1px solid var(--color-gray-100);
}

.preview-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 64px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: var(--color-teal);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.preview-text h2 {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 20px;
  line-height: 1.2;
}

.preview-text p {
  color: var(--color-gray-600);
  margin-bottom: 24px;
}

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

.preview-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  color: var(--color-gray-600);
  font-size: 15px;
}

.preview-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-teal);
  font-weight: bold;
}

/* Simulated CBT Browser Window */
.preview-graphic {
  perspective: 1000px;
}

.cbt-window {
  background-color: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
  font-size: 14px;
  transform: rotateY(-3deg) rotateX(1deg);
  transition: var(--transition-smooth);
}

.cbt-window:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.cbt-header {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cbt-title {
  font-weight: 700;
  font-family: var(--font-heading);
}

.cbt-timer {
  background-color: var(--color-coral);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
}

.cbt-body {
  display: grid;
  grid-template-columns: 100px 1fr;
  height: 260px;
}

.cbt-sidebar {
  background-color: var(--color-gray-100);
  border-right: 1px solid var(--color-gray-200);
  padding: 16px 8px;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.nav-dot {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.nav-dot.done {
  background-color: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
}

.nav-dot.current {
  border: 2px solid var(--color-navy);
  font-weight: 800;
}

.nav-dot.flagged {
  background-color: var(--color-amber);
  color: var(--color-navy);
  border-color: var(--color-amber);
}

.cbt-content-pane {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cbt-passage-header {
  font-weight: 700;
  color: var(--color-gray-600);
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cbt-question-text {
  font-weight: 600;
  color: var(--color-navy);
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 16px;
}

.cbt-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cbt-option {
  padding: 10px 14px;
  background-color: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.cbt-option.selected {
  background-color: rgba(30, 158, 157, 0.05);
  border-color: var(--color-teal);
  color: var(--color-teal-hover);
  font-weight: 700;
}

/* Subjects Section */
.subjects {
  padding: 100px 0;
  background-color: var(--color-white);
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.subject-card {
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--color-gray-100);
  background-color: var(--color-gray-50);
  transition: var(--transition-smooth);
}

.subject-card:hover {
  transform: translateY(-2px);
  border-color: rgba(30, 158, 157, 0.15);
  box-shadow: var(--shadow-md);
}

.subject-icon {
  font-size: 32px;
  margin-bottom: 20px;
}

.subject-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.subject-card p {
  color: var(--color-gray-600);
  font-size: 14px;
}

/* FAQs Section */
.faqs {
  padding: 100px 0;
  background-color: var(--color-gray-50);
  border-top: 1px solid var(--color-gray-100);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.faq-item h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--color-gray-600);
  font-size: 15px;
}

/* Responsive adjustment for preview grid */
@media (max-width: 991px) {
  .preview-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* Call to Action Section */
.cta-banner {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--color-navy) 0%, #051426 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 158, 157, 0.15) 0%, transparent 60%);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 40px;
}

.cta-content .btn-primary {
  padding: 16px 36px;
  font-size: 16px;
}

/* Footer */
footer {
  background-color: var(--color-gray-900);
  color: var(--color-gray-50);
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.copyright {
  font-size: 14px;
  color: var(--color-gray-600);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--color-gray-600);
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--color-white);
}

/* Responsive Rules */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-subtitle {
    margin: 0 auto 36px;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-badges {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 42px;
  }
  nav {
    height: 70px;
  }
  .nav-links {
    display: none; /* simple stack for now */
  }
  .cta-content h2 {
    font-size: 32px;
  }
}
