/* 
  NeuroRead Landing Page CSS
  Palette:
  - Background: #FDD79A (soft warm pink/yellow-orange)
  - Primary Highlight: #FF6900 (goofy orange)
  - Card Bg: #FFFFFF / #FFF5EB
  - Text: #313131 (soft dark gray for less harsh contrast)
*/

@font-face {
  font-family: 'OpenDyslexic';
  src: url('assets/fonts/OpenDyslexic.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg-color: #ffdae1; /* Playful soft pink matching the image background */
  --highlight-color: #ff6900;
  --text-main: #32373c; /* Softer than pure black */
  --card-bg: rgba(255, 255, 255, 0.7);
  --max-width: 1200px;
}

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

body {
  font-family: 'OpenDyslexic', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.8;
  font-size: 18px; /* Larger base font for readability */
  overflow-x: hidden;
}

/* Typography Scale */
h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 25px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #ff6900;
}

p {
  margin-bottom: 20px;
  font-size: 1.25rem; /* Larger paragraph text for readability */
  /* Add more letter spacing to help dyslexic readers */
  letter-spacing: 0.05em; 
  /* Shorter line width is better */
  max-width: 800px;
}

.highlight {
  color: var(--highlight-color);
}

.subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
}

/* Layout */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header */
header {
  padding: 30px 0;
}

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

.logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--highlight-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.btn-outline {
  border: 3px solid var(--text-main);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: var(--text-main);
  color: var(--bg-color);
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--highlight-color);
  color: #ffffff;
  border: 3px solid var(--highlight-color);
  box-shadow: 0 4px 15px rgba(255, 105, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 105, 0, 0.4);
}

/* Hero Section */
.hero {
  padding: 60px 0 100px;
}

.hero-split {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-visual img {
  max-width: 100%;
  border-radius: 40px; /* Soft edges */
  animation: float 6s ease-in-out infinite;
  mix-blend-mode: multiply; /* Helps integrate the pink bg of the generated image */
}

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

.badge {
  display: inline-block;
  background-color: rgba(255, 105, 0, 0.15);
  color: var(--highlight-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  margin-top: 15px;
  border: 2px solid var(--highlight-color);
}

/* Impact Section */
.impact {
  background: white;
  padding: 80px 0;
  border-radius: 60px 60px 0 0; /* Soft, friendly curve */
  box-shadow: 0 -10px 40px rgba(0,0,0,0.02);
}

.impact h2 {
  text-align: center;
  margin-bottom: 60px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 30px;
  border: 3px solid #ffdae1;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--highlight-color);
}

/* Footer Section */
footer {
  background: var(--highlight-color);
  color: white;
  padding: 80px 0;
  text-align: center;
}

footer h2 {
  color: white;
}

footer p {
  margin: 0 auto 30px;
  font-size: 1.2rem;
}

footer .btn-primary {
  background: white;
  color: var(--highlight-color);
  border-color: white;
}

footer .btn-primary:hover {
  background: transparent;
  color: white;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero-split {
    flex-direction: column-reverse;
    text-align: center;
    gap: 30px;
  }
  
  h1 {
    font-size: 2.8rem;
  }
  
  p {
    margin: 0 auto 20px auto;
  }

  .hero-visual img {
    max-width: 80%;
  }
}
