/* 
   Lerno - Core CSS 
   Theme: Mobile-first, vibrant, soft glassmorphism, responsive 
*/

:root {
  /* Color Palette */
  --c-cornflower: #6495ED;
  --c-picton: #45B1E8;
  --c-viking: #54BFC9;
  --c-jacksons: #2B336A;

  --c-bg: #FAFCFF;
  --c-bg-light: #F0F5FA;
  --c-text-main: #1A1F36;
  --c-text-muted: #5A6278;
  --c-white: #FFFFFF;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--c-cornflower), var(--c-picton));
  --grad-secondary: linear-gradient(135deg, var(--c-viking), var(--c-picton));
  --grad-dark: linear-gradient(135deg, var(--c-jacksons), #1D234A);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(43, 51, 106, 0.05);
  --shadow-md: 0 12px 24px rgba(43, 51, 106, 0.08);
  --shadow-lg: 0 24px 48px rgba(43, 51, 106, 0.12);
  --shadow-glow: 0 0 24px rgba(100, 149, 237, 0.3);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transitions */
  --trans-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-family: 'Outfit', sans-serif;
}

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

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

body {
  font-family: var(--font-family);
  color: var(--c-text-main);
  background-color: var(--c-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text-main);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  color: var(--c-text-muted);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

section {
  padding: 6rem 0;
  position: relative;
}

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

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

.section-header {
  max-width: 700px;
  margin: 0 auto 4rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans-base);
  border: none;
  font-family: var(--font-family);
  font-size: 1rem;
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--c-white);
  box-shadow: 0 4px 15px rgba(100, 149, 237, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(100, 149, 237, 0.5);
}

.btn-secondary {
  background: var(--c-white);
  color: var(--c-jacksons);
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--c-picton);
  box-shadow: var(--shadow-md);
}

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

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

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 0;
  background: var(--grad-primary);
  backdrop-filter: blur(12px);
  z-index: 100;
  transition: var(--trans-base);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
  background: var(--grad-primary);
}

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

.logo {
  display: flex;
  align-items: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--c-jacksons);
  letter-spacing: -0.05em;
  transition: var(--trans-base);
}

.logo:hover {
  opacity: 0.8;
}

.logo img {
  height: 40px;
  width: auto;
  transform: scale(2.2);
  transform-origin: left center;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a:not(.btn) {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
}

.nav-links a:not(.btn):hover {
  color: var(--c-white);
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-picton);
  transition: var(--trans-base);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--c-white);
  border-radius: 3px;
  transition: var(--trans-base);
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
}

.shape-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: rgba(100, 149, 237, 0.15);
}

.shape-2 {
  bottom: -20%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: rgba(84, 191, 201, 0.15);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(100, 149, 237, 0.1);
  color: var(--c-picton);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(100, 149, 237, 0.2);
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(26, 31, 54, 0.1);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-size: 1.5rem;
  color: var(--c-jacksons);
  line-height: 1.2;
}

.stat-item span {
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

.hero-visual {
  position: relative;
}

.image-wrapper {
  position: relative;
  z-index: 1;
}

.hero-image {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: float 6s ease-in-out infinite;
}

.float-1 {
  top: 10%;
  left: -10%;
}

.float-2 {
  bottom: 15%;
  right: -5%;
  animation-delay: 2s;
}

.floating-card .icon {
  font-size: 1.5rem;
  background: var(--c-bg-light);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.floating-card h4 {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.floating-card p {
  font-size: 0.75rem;
  margin: 0;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
  opacity: 0;
  transition: opacity 1s ease-out;
}

.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Problem Section */
.card {
  background: var(--c-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--trans-base);
  border: 1px solid rgba(26, 31, 54, 0.03);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(100, 149, 237, 0.2);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 1rem;
  background: var(--c-bg-light);
  border-radius: var(--radius-md);
  color: var(--c-picton);
}

/* Solution Section */
.solution-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.subtitle {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  color: var(--c-jacksons);
  font-weight: 500;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-list li {
  display: flex;
  gap: 1.5rem;
}

.feature-icon {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: var(--grad-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.glass-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-lg);
}

.rounded-img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.overlay-stats {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  background: var(--c-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  font-weight: 600;
  color: var(--c-jacksons);
}

/* Timeline */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  height: 100%;
  width: 2px;
  background: rgba(100, 149, 237, 0.2);
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

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

.timeline-dot {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: var(--c-white);
  border: 3px solid var(--c-picton);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--c-jacksons);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 10px var(--c-bg-light);
}

.timeline-content {
  background: var(--c-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  width: 100%;
  border: 1px solid rgba(26, 31, 54, 0.03);
  transition: var(--trans-base);
}

.timeline-item:hover .timeline-content {
  transform: translateX(10px);
  border-color: rgba(100, 149, 237, 0.2);
  box-shadow: var(--shadow-md);
}

/* Bento grid */
.features-section {
  background: #fff;
  position: relative;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 1.5rem;
}

.bento-box {
  background: var(--c-bg-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--trans-base);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.bento-box:hover {
  background: var(--c-white);
  border-color: var(--c-viking);
  box-shadow: var(--shadow-glow);
  transform: translateY(-5px);
}

.bento-large {
  grid-column: span 2;
  background: var(--grad-primary);
  color: white;
}

.bento-large p,
.bento-large h3 {
  color: white;
}

.bento-large:hover {
  background: var(--grad-primary);
  border-color: transparent;
  box-shadow: 0 15px 30px rgba(100, 149, 237, 0.4);
}

.bento-icon {
  font-size: 2rem;
  margin-bottom: auto;
  padding-bottom: 2rem;
}

/* Programs section */
.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
  border: 2px solid transparent;
}

.pricing-card.popular {
  border-color: var(--c-picton);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.pricing-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(26, 31, 54, 0.05);
  margin-bottom: 1.5rem;
}

.grade-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(100, 149, 237, 0.1);
  color: var(--c-picton);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pricing-body {
  flex-grow: 1;
}

.check-list {
  margin-top: 1.5rem;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--c-text-muted);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-picton);
  font-weight: bold;
}

.pricing-footer {
  margin-top: 2rem;
  text-align: center;
}

.pricing-footer .btn {
  width: 100%;
}

/* Testimonials */
.testimonial-section {
  background: var(--c-white);
}

.testimonial-container {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--c-bg-light);
  padding: 3rem;
  border-radius: var(--radius-lg);
  position: relative;
  text-align: center;
}

.quote-icon {
  font-size: 4rem;
  color: rgba(100, 149, 237, 0.2);
  line-height: 1;
  font-family: serif;
  margin-bottom: -1rem;
}

.testimonial-text {
  font-size: 1.25rem;
  color: var(--c-jacksons);
  font-weight: 500;
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.avatar {
  width: 50px;
  height: 50px;
  background: var(--grad-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

/* CTA Section */
.cta-section {
  background: var(--grad-dark);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section h2,
.cta-section p {
  color: white;
  position: relative;
  z-index: 2;
}

.cta-section p {
  opacity: 0.9;
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

.cta-shapes .shape-3 {
  width: 300px;
  height: 300px;
  background: rgba(100, 149, 237, 0.3);
  top: -100px;
  left: -100px;
}

.cta-shapes .shape-4 {
  width: 400px;
  height: 400px;
  background: rgba(84, 191, 201, 0.2);
  bottom: -150px;
  right: -150px;
}

.cta-form-container {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-form input {
  padding: 1rem 1.5rem;
  border-radius: 100px;
  border: none;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.cta-form input:focus {
  box-shadow: 0 0 0 3px rgba(100, 149, 237, 0.5);
}

.cta-form .btn {
  width: 100%;
}

/* Footer */
.footer {
  background: var(--grad-dark);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1.5rem;
  max-width: 300px;
}

.footer h4 {
  color: var(--c-white);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer a:hover {
  color: var(--c-picton);
}

.footer-contact li {
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-jacksons);
  font-weight: 600;
  font-size: 0.875rem;
}

.social-links a:hover {
  background: var(--c-picton);
  color: white;
}

/* Media Queries */
@media (max-width: 992px) {

  .hero-container,
  .solution-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 8rem;
    text-align: center;
  }

  .hero p {
    margin: 0 auto 2.5rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .floating-card {
    display: none;
  }

  .solution-visual {
    order: -1;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--c-jacksons);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
  }

  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-cta {
    flex-direction: column;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-large {
    grid-column: span 1;
  }

  .pricing-card.popular {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}