/* Import Google Fonts - matching React version */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700;800&family=Fira+Code:wght@400&display=swap');

/* CSS Variables - Exact match from React index.css */
:root {
  /* Calm Academic Palette - Soft Blues & Greens */
  --background: 210 20% 99%;
  --foreground: 215 25% 27%;
  
  /* Primary: Trustworthy Deep Blue */
  --primary: 215 50% 23%;
  --primary-foreground: 210 40% 98%;
  
  /* Secondary: Soft Sage Green */
  --secondary: 150 20% 92%;
  --secondary-foreground: 150 40% 20%;
  
  /* Accent: Energetic but muted teal/blue for CTAs */
  --accent: 195 60% 85%;
  --accent-foreground: 195 70% 20%;
  
  --muted: 210 20% 96%;
  --muted-foreground: 215 16% 47%;
  
  --destructive: 0 65% 55%;
  --destructive-foreground: 210 40% 98%;
  
  --border: 214 20% 90%;
  --input: 214 20% 90%;
  --ring: 215 50% 23%;
  
  --radius: 0.75rem;

  /* Custom Font Variables */
  --font-display: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::selection {
  background-color: hsla(var(--primary), 0.2);
  color: hsl(var(--primary));
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: hsl(var(--primary));
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Utility Classes */
.min-h-screen {
  min-height: 100vh;
}

.bg-background {
  background-color: hsl(var(--background));
}

.font-sans {
  font-family: var(--font-sans);
}

.font-display {
  font-family: var(--font-display);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn-sm {
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  height: 2.5rem;
}

.btn-lg {
  padding: 1rem 3rem;
  font-size: 1.25rem;
  height: 4rem;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: hsl(215, 60%, 35%);
  box-shadow: 0 20px 25px -5px hsla(var(--primary), 0.3);
  transform: translateY(-1px);
}

.btn-primary:active {
  background-color: hsl(215, 60%, 30%);
  transform: translateY(0);
  box-shadow: 0 10px 15px -5px hsla(var(--primary), 0.2);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-full {
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 5rem;
  overflow: hidden;
  background: linear-gradient(to bottom, hsl(210, 40%, 98%), white);
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: 4rem;
    padding-bottom: 8rem;
  }
}

.hero-bg-blur {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -10;
  width: 600px;
  height: 600px;
  background-color: hsla(var(--primary), 0.05);
  border-radius: 50%;
  filter: blur(100px);
  transform: translate(33%, -33%);
}

.hero-content {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: hsl(var(--primary));
  font-weight: 700;
  letter-spacing: -0.025em;
  background-color: hsla(var(--primary), 0.1);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
}

.hero-badge span {
  font-size: 0.875rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  font-family: var(--font-display);
  line-height: 1.1;
  margin-bottom: 2rem;
  color: hsl(var(--primary));
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.gradient-text {
  background: linear-gradient(to right, hsl(var(--primary)), hsl(215, 70%, 40%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.hero-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border-radius: 1rem;
  background-color: white;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.info-card.span-2 {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .info-card.span-2 {
    grid-column: span 1;
  }
}

.info-card svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}

.info-card span {
  font-size: 0.875rem;
  font-weight: 700;
}

/* Problem Section */
.problem-section {
  padding: 6rem 0;
  background-color: white;
}

.problem-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.problem-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background-color: rgba(254, 226, 226, 0.5);
  border: 1px solid rgb(254, 202, 202);
}

.problem-item svg {
  width: 1.5rem;
  height: 1.5rem;
  color: rgb(239, 68, 68);
  flex-shrink: 0;
}

.problem-item p {
  font-weight: 500;
  color: rgb(30, 41, 59);
}

.problem-conclusion {
  margin-top: 2rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: hsl(var(--primary));
}

.testimonial-container {
  position: relative;
}

.brain-bg {
  aspect-ratio: 1;
  background-color: rgb(241, 245, 249);
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.brain-bg svg {
  width: 12rem;
  height: 12rem;
  color: hsla(var(--primary), 0.2);
}

.testimonial-card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-content {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid white;
  max-width: 20rem;
  text-align: center;
}

.testimonial-content p:first-child {
  color: rgb(30, 41, 59);
  font-weight: 700;
  font-style: italic;
}

.testimonial-content p:last-child {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 1rem;
}

/* Promises Section */
.promises-section {
  padding: 6rem 0;
  background-color: hsl(210, 40%, 98%);
}

.promises-header {
  max-width: 48rem;
  margin: 0 auto 4rem;
  text-align: center;
}

.promises-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .promises-header h2 {
    font-size: 2.25rem;
  }
}

.promises-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .promises-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .promises-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.promise-card {
  display: flex;
  gap: 0.75rem;
  padding: 1.5rem;
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid rgb(241, 245, 249);
}

.promise-card svg {
  width: 1.5rem;
  height: 1.5rem;
  color: rgb(34, 197, 94);
  flex-shrink: 0;
}

.promise-card p {
  font-weight: 500;
  color: rgb(51, 65, 85);
}

/* Registration Section */
.registration-section {
  padding: 6rem 0;
  background-color: white;
  scroll-margin-top: 5rem;
}

.registration-container {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background-color: white;
}

@media (min-width: 768px) {
  .registration-container {
    padding: 3rem;
  }
}

.registration-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.registration-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.registration-header p {
  color: hsl(var(--muted-foreground));
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

.form-input,
.form-select {
  height: 3rem;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--input));
  background-color: white;
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsla(var(--ring), 0.1);
}

.form-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.form-select {
  cursor: pointer;
}

.form-submit {
  height: 3.5rem;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.form-note {
  text-align: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 1rem;
}

/* Messages */
.messages {
  position: fixed;
  top: 6rem;
  right: 1rem;
  z-index: 100;
  max-width: 400px;
}

.message {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-left: 4px solid;
  animation: slideInRight 0.3s ease-out;
}

.message.success {
  border-left-color: rgb(34, 197, 94);
}

.message.error {
  border-left-color: rgb(239, 68, 68);
}

.message-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.message-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* SVG Icons */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}

/* Responsive utilities */
.hidden-mobile {
  display: none;
}

@media (min-width: 1024px) {
  .hidden-mobile {
    display: block;
  }
}

.hidden-desktop {
  display: block;
}

@media (min-width: 1024px) {
  .hidden-desktop {
    display: none;
  }
}
