@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --primary: #7170E5;
  --secondary: #f7f700;
  --black: #000000;
  --white: #ffffff;
  
  /* Text and BG variables */
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --bg-main: #fafafa;
  --bg-card: #ffffff;
  --bg-footer: #f3f4f6;
  --border-color: #e5e7eb;
  
  /* Accents & LPS Tints */
  --tint-learn: #eaf8ff;
  --tint-practice: #fae8e8;
  --tint-scale: #f4e9f8;
  --tint-verify: #ebf9f3;
  
  --accent-orange: #ea3c07;
  --accent-green: #00af45;
  --accent-purple: #a000ea;
  
  /* Layout */
  --container-width: 1280px;
  --header-height: 80px;
  
  /* Shadows & Radius */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-premium: 0 20px 40px -15px rgba(113, 112, 229, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Raleway', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Alert Banner */
.alert-banner {
  background-color: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  animation: slideDown 0.5s ease-out;
}

.alert-banner a {
  text-decoration: underline;
  color: var(--secondary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.alert-banner a:hover {
  opacity: 0.9;
}

/* Header & Navigation */
.site-header {
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 48px;
  width: auto;
}

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

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.cta-header-btn {
  background-color: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cta-header-btn:hover {
  background-color: var(--black);
  transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--black);
  border-radius: 3px;
  transition: var(--transition);
}

/* Grid & Layout Utilities */
.section {
  padding: 100px 0;
  position: relative;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Brush Stroke Highlight Simulation */
.brush-highlight {
  position: relative;
  display: inline-block;
  color: var(--primary);
  z-index: 1;
}

.brush-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--primary) 0%, #d946ef 100%);
  opacity: 0.25;
  border-radius: 4px;
  z-index: -1;
  transform: skewX(-15deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--black);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-dark {
  background-color: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Hero Section / Redirection */
.hero-aurora-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(113, 112, 229, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(247, 247, 0, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 50% 50%, rgba(113, 112, 229, 0.04) 0%, transparent 60%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 24px;
  letter-spacing: -0.025em;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}

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

.countdown-box {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.countdown-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(113, 112, 229, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glass-card-overlay {
  position: absolute;
  bottom: 20px;
  right: -20px;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  max-width: 320px;
  animation: float 6s ease-in-out infinite;
}

.glass-card-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.glass-card-logo-wrap .spark {
  width: 24px;
  height: 24px;
  background-color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}

.glass-card-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero-main-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

/* Features Grid (Redirect Home Info) */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card.f-1 .feature-icon-wrapper { background-color: var(--tint-learn); color: var(--primary); }
.feature-card.f-2 .feature-icon-wrapper { background-color: var(--tint-practice); color: var(--accent-orange); }
.feature-card.f-3 .feature-icon-wrapper { background-color: var(--tint-scale); color: var(--accent-purple); }
.feature-card.f-4 .feature-icon-wrapper { background-color: var(--tint-verify); color: var(--accent-green); }

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

.feature-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feature-link:hover {
  gap: 10px;
}

/* About Page Styles */
.about-hero {
  padding-bottom: 60px;
  text-align: center;
}

.about-hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
}

.about-hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

.chapters-timeline {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: relative;
}

.chapters-timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--border-color);
  z-index: 1;
}

.chapter-node {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-left: 80px;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.chapter-node:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-premium);
}

.chapter-badge {
  position: absolute;
  left: -80px;
  top: 40px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  z-index: 2;
  box-shadow: var(--shadow-md);
  border: 6px solid var(--bg-main);
  transition: var(--transition);
}

.chapter-node:hover .chapter-badge {
  background-color: var(--black);
}

.chapter-node h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chapter-node p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.chapter-node p:last-child {
  margin-bottom: 0;
}

.quote-box {
  background-color: var(--bg-main);
  border-left: 4px solid var(--primary);
  padding: 24px;
  margin-bottom: 30px;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* GRC Redirection (Apply Page) */
.grc-redirection-wrap {
  min-height: calc(100vh - var(--header-height) - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: radial-gradient(circle at center, rgba(113, 112, 229, 0.06) 0%, transparent 70%);
}

.grc-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  max-width: 600px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-premium);
}

.grc-icon-animate {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px auto;
  background-color: var(--tint-verify);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  border: 1px solid rgba(62, 194, 108, 0.2);
  position: relative;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--accent-green);
  animation: pulse 2s infinite ease-out;
  opacity: 0.5;
}

.grc-card h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.grc-card p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.countdown-number {
  font-size: 3rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--primary);
  margin-bottom: 24px;
  display: block;
}

/* Footer styling */
.site-footer {
  background-color: var(--bg-footer);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-col p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.social-icon:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-item a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-link-item a:hover {
  color: var(--primary);
  padding-left: 4px;
}

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

.contact-item {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-item svg {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

/* Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-description {
    margin: 0 auto 30px auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .chapters-timeline::before {
    left: 16px;
  }
  
  .chapter-node {
    margin-left: 50px;
    padding: 30px;
  }
  
  .chapter-badge {
    left: -50px;
    width: 50px;
    height: 50px;
    font-size: 1rem;
    top: 30px;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 70px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transition: var(--transition);
    border-top: 1px solid var(--border-color);
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  .nav-menu li {
    width: 100%;
    text-align: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
}
