/* =========================================================
   EduLulu — Landing Page Styles
   Brand palette: Purple Dream #6C5CE7, Teal Grow #00CEC9,
   Sunny Spark #FDCB6E, Warm Coral #E17055, Deep Slate #2D3436
   Fonts: Poppins (headings), Nunito (body)
   ========================================================= */

/* --- CSS Variables --- */
:root {
  --primary: #6C5CE7;
  --primary-dark: #5A4BD1;
  --primary-light: #a29bfe;
  --secondary: #00CEC9;
  --secondary-dark: #00b5b0;
  --accent: #FDCB6E;
  --coral: #E17055;
  --bg: #F8F9FA;
  --bg-white: #FFFFFF;
  --text: #2D3436;
  --text-light: #636e72;
  --text-muted: #b2bec3;
  --border: #dfe6e9;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 4px 20px rgba(108, 92, 231, 0.10);
  --shadow-lg: 0 12px 40px rgba(108, 92, 231, 0.15);
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.25s ease;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 48px;
  text-align: center;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  background: var(--bg);
  color: var(--primary-dark);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius);
}

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-logo img {
  height: 36px;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --- Language Selector --- */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 8px 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn:hover {
  background: var(--border);
}

.lang-btn .flag {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--transition);
  z-index: 100;
  min-width: 150px;
  overflow: hidden;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  text-align: left;
}

.lang-option:hover {
  background: var(--bg);
}

.lang-option.active {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.06);
}

.lang-option .flag {
  font-size: 1.2rem;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(160deg, #f0edff 0%, #e8fcfb 40%, #fff8e7 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 206, 201, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-logo {
  height: 44px;
  width: auto;
  margin-bottom: 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
}

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

.hero-visual-inner {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-visual-inner::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--bg);
  opacity: 0.08;
}

.hero-icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 40px;
  position: relative;
  z-index: 1;
}

.hero-icon-item {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: #fff;
}

.hero-icon-item .icon {
  font-size: 2rem;
  margin-bottom: 6px;
}

.hero-icon-item .label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  opacity: 0.9;
}

/* --- Hero Responsive --- */
@media (max-width: 900px) {
  .hero {
    padding: 120px 0 60px;
  }
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero-logo {
    margin: 0 auto 24px;
  }
  .hero-visual-inner {
    max-width: 320px;
  }
  .hero-icon-grid {
    gap: 16px;
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 0 40px;
  }
  .hero-icon-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px;
  }
  .hero-icon-item {
    padding: 14px 10px;
  }
  .hero-icon-item .icon {
    font-size: 1.5rem;
  }
}

/* =========================================================
   FORMS
   ========================================================= */
.hero-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
}

.hero-form .form-row {
  display: flex;
  gap: 10px;
}

.hero-form input,
.hero-form select {
  flex: 1;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.hero-form input:focus,
.hero-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

.hero-form input::placeholder {
  color: var(--text-muted);
}

.hero-form .form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-light);
  cursor: pointer;
}

.hero-form .form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  flex: 0 0 auto;
  cursor: pointer;
}

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

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 600px) {
  .hero-form .form-row {
    flex-direction: column;
  }
  .hero-form {
    max-width: 100%;
  }
}

/* =========================================================
   BENEFITS
   ========================================================= */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.benefit-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.benefit-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
}

.benefit-icon.purple {
  background: rgba(108, 92, 231, 0.1);
}

.benefit-icon.teal {
  background: rgba(0, 206, 201, 0.1);
}

.benefit-icon.yellow {
  background: rgba(253, 203, 110, 0.2);
}

.benefit-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.benefit-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .benefit-card {
    padding: 28px 20px;
  }
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how-bg {
  background: var(--bg-white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

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

.step-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 8px;
}

.step-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

.step-connector {
  display: none;
}

@media (min-width: 769px) {
  .step-card {
    position: relative;
  }
  .step-card:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: var(--secondary);
    opacity: 0.4;
  }
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .step-card {
    padding: 28px 20px;
  }
  .step-card:not(:last-child) {
    border-bottom: 1px solid var(--border);
  }
}

/* =========================================================
   DUAL CTA
   ========================================================= */
.dual-cta {
  padding: 80px 0;
  background: linear-gradient(160deg, var(--bg) 0%, #f0edff 100%);
}

.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.dual-card {
  border-radius: var(--radius);
  padding: 48px 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.dual-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.dual-card.family {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.dual-card.organizer {
  background: linear-gradient(135deg, var(--secondary) 0%, #00b5b0 100%);
}

.dual-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.dual-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.dual-card-desc {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 380px;
}

.dual-card .btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .dual-grid {
    grid-template-columns: 1fr;
  }
  .dual-card {
    padding: 36px 24px;
  }
}

/* =========================================================
   FORMS SECTION
   ========================================================= */
.form-section {
  padding: 80px 0;
}

.form-section .container {
  max-width: 720px;
}

.form-container {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow);
}

.form-container .section-title {
  margin-bottom: 8px;
}

.form-container .section-subtitle {
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

.form-group .radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-group .radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

.form-group .radio-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23636e72' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-group .form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-container .btn {
  width: 100%;
  margin-top: 8px;
}

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 16px 28px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: #00b894;
}

.toast.error {
  background: var(--coral);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 0 32px;
}

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

.footer-brand img {
  height: 32px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.7;
  max-width: 300px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: #fff;
}

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   RESPONSIVE HELPERS
   ========================================================= */
@media (max-width: 480px) {
  .section {
    padding: 48px 0;
  }
  .header-logo img {
    height: 28px;
  }
  .form-container {
    padding: 28px 20px;
  }
  .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
  }
  .lang-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

/* --- Skip link for accessibility --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
