/* ===== MATERIAL ICONS ===== */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* Size helpers */
.mi-sm { font-size: 16px; }
.mi-md { font-size: 20px; }
.mi-lg { font-size: 28px; }
.mi-xl { font-size: 36px; }
.mi-2xl { font-size: 48px; }

/* ===== VARIABLES ===== */
:root {
  --brown: #4a2c00;
  --brown-light: #7a4a00;
  --brown-dark: #2d1a00;
  --brown-accent: #c47a00;
  --brown-muted: #8b5e00;
  --white: #ffffff;
  --off-white: #fdf8f3;
  --cream: #f5ead8;
  --text-dark: #1a0a00;
  --text-muted: #6b4c1e;
  --shadow: rgba(74, 44, 0, 0.15);
  --shadow-strong: rgba(74, 44, 0, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--brown); border-radius: 3px; }

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(74, 44, 0, 0.97);
  backdrop-filter: blur(12px);
  padding: 0 2rem;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 20px var(--shadow-strong);
  transition: var(--transition);
}

.navbar.scrolled {
  height: 60px;
  background: rgba(45, 26, 0, 0.98);
}

.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 1.4rem; font-weight: 700;
  color: var(--white);
}

.nav-logo .logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--brown-accent), #e8a000);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(196, 122, 0, 0.4);
  color: var(--white);
}
.nav-logo .logo-icon .material-icons { font-size: 22px; }

.nav-logo .logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-logo span { color: var(--brown-accent); }

.nav-menu {
  display: flex; align-items: center; gap: 0.25rem;
}

.nav-link {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

.nav-link.active::after {
  content: '';
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--brown-accent);
  border-radius: 1px;
}

.nav-cta {
  background: var(--brown-accent);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(196, 122, 0, 0.4);
  transition: var(--transition) !important;
}

.nav-cta:hover {
  background: #e8a000 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196, 122, 0, 0.5) !important;
}

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}

.hamburger span {
  width: 25px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 50%, var(--brown-light) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding-top: 70px;
}

.hero-bg-circles {
  position: absolute; inset: 0; pointer-events: none;
}

.hero-bg-circles .circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  animation: floatCircle 8s ease-in-out infinite;
}

.circle-1 { width: 400px; height: 400px; top: -100px; right: -100px; animation-delay: 0s; }
.circle-2 { width: 250px; height: 250px; bottom: 100px; left: -50px; animation-delay: 2s; }
.circle-3 { width: 150px; height: 150px; top: 40%; right: 20%; animation-delay: 4s; }
.circle-4 { width: 80px; height: 80px; top: 20%; left: 25%; animation-delay: 1s; }

@keyframes floatCircle {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-content {
  max-width: 1200px; width: 100%;
  margin: 0 auto; padding: 4rem 2rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--cream);
  padding: 0.4rem 1rem; border-radius: 20px;
  font-size: 0.85rem; font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  animation: fadeInDown 0.8s ease both;
}

.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease 0.1s both;
}

.hero-title .accent { color: var(--brown-accent); }
.hero-title .line { display: block; }

.hero-desc {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 480px;
  animation: fadeInDown 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeInDown 0.8s ease 0.3s both;
}

.btn-primary {
  background: var(--brown-accent);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  border: none; cursor: pointer;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(196, 122, 0, 0.4);
}

.btn-primary:hover {
  background: #e8a000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 122, 0, 0.5);
}

.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 0.5rem;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.hero-visual {
  animation: fadeInRight 0.8s ease 0.4s both;
}

.hero-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 1.5rem;
  color: var(--white);
  transition: var(--transition);
  cursor: pointer;
}

.hero-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.3);
}

.hero-card.span-2 { grid-column: span 2; }

.hero-card-icon {
  margin-bottom: 0.75rem;
  color: var(--brown-accent);
}
.hero-card-icon .material-icons { font-size: 32px; }

.hero-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.hero-card p { font-size: 0.8rem; opacity: 0.75; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--cream);
  padding: 2rem;
}

.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; text-align: center;
}

.stat-item { padding: 1rem; }

.stat-num {
  font-size: 2rem; font-weight: 800;
  color: var(--brown);
  display: block;
}

.stat-label {
  font-size: 0.85rem; color: var(--text-muted);
  font-weight: 500;
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 1200px; margin: 0 auto;
}

.section-alt { background: var(--cream); }
.section-dark {
  background: var(--brown-dark);
  color: var(--white);
}

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-tag {
  display: inline-block;
  background: var(--cream);
  color: var(--brown);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-dark .section-tag {
  background: rgba(255,255,255,0.12);
  color: var(--cream);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--brown-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-dark .section-title { color: var(--white); }

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px; margin: 0 auto;
}

.section-dark .section-desc { color: rgba(255,255,255,0.7); }

/* ===== FEATURE GRID ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(74,44,0,0.08);
  box-shadow: 0 2px 12px var(--shadow);
  transition: var(--transition);
  position: relative; overflow: hidden;
  cursor: pointer;
}

.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brown), var(--brown-accent));
  transform: scaleX(0); transform-origin: left;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px var(--shadow-strong);
  border-color: rgba(74,44,0,0.15);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--cream), #ffe8b5);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
  color: var(--brown);
}
.feature-icon .material-icons { font-size: 26px; }

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--brown), var(--brown-light));
  transform: scale(1.1);
  color: var(--white);
}

.feature-title {
  font-size: 1.15rem; font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.feature-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--brown);
  font-size: 0.875rem; font-weight: 600;
  transition: var(--transition);
}

.feature-link:hover { gap: 0.6rem; color: var(--brown-accent); }

/* ===== APP CARD SPLIT ===== */
.app-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.app-card {
  border-radius: 24px;
  padding: 3rem 2.5rem;
  position: relative; overflow: hidden;
  transition: var(--transition);
}

.app-card:hover { transform: translateY(-4px); }

.app-card.teacher {
  background: linear-gradient(135deg, var(--brown-dark), var(--brown));
  color: var(--white);
}

.app-card.student {
  background: linear-gradient(135deg, var(--brown), var(--brown-light));
  color: var(--white);
}

.app-card-bg {
  position: absolute; top: -30px; right: -30px;
  font-size: 8rem; opacity: 0.08;
  pointer-events: none;
  transition: var(--transition);
}

.app-card:hover .app-card-bg { opacity: 0.12; transform: scale(1.1) rotate(5deg); }

.app-type {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem; font-weight: 600;
  margin-bottom: 1.5rem;
}

.app-card h2 {
  font-size: 1.8rem; font-weight: 800;
  margin-bottom: 0.75rem;
}

.app-card p { opacity: 0.85; margin-bottom: 1.75rem; font-size: 0.95rem; }

.app-features-list {
  display: flex; flex-direction: column; gap: 0.6rem;
  margin-bottom: 2rem;
}

.app-features-list li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.9rem; opacity: 0.9;
}

.app-features-list li::before {
  content: '✓';
  width: 20px; height: 20px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
  flex-shrink: 0;
}

.btn-white {
  background: var(--white);
  color: var(--brown-dark);
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-weight: 700; font-size: 0.95rem;
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ===== PROBLEM-SOLUTION ===== */
.problem-solution-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.ps-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(74,44,0,0.08);
}

.ps-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px var(--shadow-strong);
}

.ps-problem {
  background: var(--cream);
  padding: 1.5rem;
  border-bottom: 1px solid rgba(74,44,0,0.08);
}

.ps-label {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.problem-label { color: #c0392b; }
.solution-label { color: var(--brown); }

.ps-problem h3 { font-size: 1rem; color: var(--text-dark); font-weight: 700; }
.ps-problem p { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem; }

.ps-solution {
  padding: 1.5rem;
}

.ps-solution h4 {
  font-size: 1rem; color: var(--brown-dark); font-weight: 700;
  margin-bottom: 0.5rem;
}

.ps-solution p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }

.ps-tag {
  display: inline-block;
  background: var(--cream);
  color: var(--brown);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem; font-weight: 600;
}

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-num {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--brown), var(--brown-accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.3rem; font-weight: 800;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(74,44,0,0.3);
  position: relative; z-index: 1;
}

.step-icon {
  margin-bottom: 1rem;
  color: var(--brown);
}
.step-icon .material-icons { font-size: 32px; }

.step-item h3 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--brown-dark); margin-bottom: 0.5rem;
}

.step-item p { font-size: 0.875rem; color: var(--text-muted); }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--brown-dark), var(--brown));
  padding: 5rem 2rem;
  text-align: center;
  position: relative; overflow: hidden;
}

.cta-bg {
  position: absolute; inset: 0; pointer-events: none;
}

.cta-bg::before, .cta-bg::after {
  content: '';
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.cta-bg::before { width: 500px; height: 500px; top: -200px; right: -100px; }
.cta-bg::after { width: 300px; height: 300px; bottom: -100px; left: -50px; }

.cta-inner {
  max-width: 700px; margin: 0 auto; position: relative; z-index: 1;
}

.cta-inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800; color: var(--white);
  margin-bottom: 1rem;
}

.cta-inner p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 2rem; }

.cta-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* ===== PAGE HERO (sub-pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--brown-dark), var(--brown));
  padding: 8rem 2rem 4rem;
  text-align: center;
  position: relative; overflow: hidden;
}

.page-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}

.page-hero-bg::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  top: -200px; right: -150px;
}

.page-hero-inner {
  max-width: 800px; margin: 0 auto; position: relative; z-index: 1;
}

.page-hero .section-tag { background: rgba(255,255,255,0.15); color: var(--cream); }

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; color: var(--white);
  margin-bottom: 1rem; line-height: 1.2;
}

.page-hero p {
  font-size: 1.1rem; color: rgba(255,255,255,0.8);
  max-width: 600px; margin: 0 auto;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--cream);
  padding: 0.75rem 2rem;
}

.breadcrumb-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem;
}

.breadcrumb a { color: var(--brown); }
.breadcrumb a:hover { color: var(--brown-accent); }
.breadcrumb span { color: var(--text-muted); }

/* ===== DETAIL FEATURE ===== */
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}

.detail-grid.reverse { direction: rtl; }
.detail-grid.reverse > * { direction: ltr; }

.detail-content {}

.detail-tag {
  display: inline-block;
  background: var(--cream);
  color: var(--brown);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.detail-content h2 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 800; color: var(--brown-dark);
  margin-bottom: 1rem; line-height: 1.2;
}

.detail-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.detail-features {
  display: flex; flex-direction: column; gap: 0.75rem;
}

.detail-feature {
  display: flex; align-items: flex-start; gap: 0.75rem;
}

.detail-feature-icon {
  width: 36px; height: 36px;
  background: var(--cream);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--brown);
}
.detail-feature-icon .material-icons { font-size: 18px; }

.detail-feature:hover .detail-feature-icon {
  background: var(--brown);
  color: var(--white);
}

.detail-feature-text h4 {
  font-size: 0.9rem; font-weight: 700;
  color: var(--brown-dark); margin-bottom: 0.15rem;
}

.detail-feature-text p { font-size: 0.825rem; color: var(--text-muted); }

.detail-visual {
  background: linear-gradient(135deg, var(--cream), #ffe8b5);
  border-radius: 24px;
  padding: 3rem;
  min-height: 350px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 30px var(--shadow);
}

.mock-screen {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  overflow: hidden;
}

.mock-header {
  background: var(--brown);
  padding: 0.75rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}

.mock-header-title {
  color: var(--white); font-size: 0.85rem; font-weight: 600;
}

.mock-dots { display: flex; gap: 4px; }
.mock-dot { width: 8px; height: 8px; border-radius: 50%; }
.mock-dot:nth-child(1) { background: #ff5f57; }
.mock-dot:nth-child(2) { background: #febc2e; }
.mock-dot:nth-child(3) { background: #28c840; }

.mock-body { padding: 1rem; }

.mock-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  background: var(--off-white);
  transition: var(--transition);
}

.mock-row:hover { background: var(--cream); }

.mock-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brown), var(--brown-accent));
  flex-shrink: 0;
}

.mock-info { flex: 1; }
.mock-name { font-weight: 600; color: var(--text-dark); font-size: 0.8rem; }
.mock-sub { font-size: 0.7rem; color: var(--text-muted); }

.mock-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-size: 0.7rem; font-weight: 600;
}

.badge-green { background: #dcfce7; color: #166534; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-brown { background: var(--cream); color: var(--brown); }

/* ===== TAGS ROW ===== */
.tags-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  background: var(--cream);
  color: var(--brown);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem; font-weight: 600;
}

/* ===== FOOTER ===== */
footer {
  background: var(--brown-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1200px; margin: 0 auto;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2.5rem;
}

.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand .nav-logo .logo-img { height: 34px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; max-width: 260px; }

.footer-col h4 {
  color: var(--white); font-size: 0.9rem; font-weight: 700;
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap; gap: 0.5rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1; transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .app-split { gap: 1.5rem; }
  .app-card { padding: 2.5rem 2rem; }
  .detail-grid { gap: 3rem; }
  .feature-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-menu { display: none; position: fixed; top: 70px; left: 0; right: 0; background: rgba(45, 26, 0, 0.98); flex-direction: column; padding: 1rem 1.5rem 1.5rem; gap: 0.25rem; box-shadow: 0 8px 24px var(--shadow-strong); border-top: 1px solid rgba(255,255,255,0.08); }
  .nav-menu.open { display: flex; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-content { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 1.25rem; }
  .hero-visual { order: 1; }
  .hero-cards { grid-template-columns: 1fr 1fr; }
  .hero-desc { font-size: 1rem; }

  /* Stats */
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 0; }

  /* App cards */
  .app-split { grid-template-columns: 1fr; gap: 1.5rem; }
  .app-card { padding: 2rem 1.5rem; border-radius: 18px; }
  .app-card h2 { font-size: 1.5rem; }

  /* Feature grid */
  .feature-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
  .feature-card { padding: 1.5rem; }

  /* Detail sections */
  .detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .detail-grid.reverse { direction: ltr; }
  .detail-visual { padding: 1.75rem; }
  .detail-content h2 { font-size: 1.5rem; }

  /* Problem-solution */
  .problem-solution-grid { grid-template-columns: 1fr; }
  .ps-card { border-radius: 16px; }

  /* Steps */
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  /* Section */
  .section { padding: 3.5rem 1.25rem; }
  .section-title { font-size: 1.8rem; }

  /* CTA */
  .cta-inner h2 { font-size: 1.8rem; }
  .cta-actions { flex-direction: column; align-items: center; gap: 0.75rem; }
  .cta-actions .btn-primary,
  .cta-actions .btn-signup,
  .cta-actions .btn-secondary { width: 100%; max-width: 320px; justify-content: center; }

  /* Page hero */
  .page-hero-inner h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
  /* 8rem top was sized for the desktop navbar alone — far too tall on phones */
  .page-hero { padding: 5.5rem 1.25rem 2.5rem; }
  .page-hero p { font-size: 0.95rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  /* Hero */
  .hero-content { padding: 2.5rem 1rem; }
  .hero-cards { grid-template-columns: 1fr; }
  .hero-card.span-2 { grid-column: span 1; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-signup,
  .hero-actions .btn-secondary { width: 100%; justify-content: center; }

  /* Stats */
  .stats-inner { grid-template-columns: 1fr 1fr; }

  /* App cards */
  .app-card { padding: 1.75rem 1.25rem; }
  .app-card h2 { font-size: 1.35rem; }

  /* Feature cards */
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 1.25rem; }

  /* Detail */
  .detail-visual { padding: 1.25rem; }
  .detail-feature { flex-direction: column; gap: 0.5rem; }

  /* Steps */
  .steps-grid { grid-template-columns: 1fr; }

  /* Section padding */
  .section { padding: 2.5rem 1rem; }
  .section-header { margin-bottom: 2rem; }

  /* Contact grid */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form-wrap { padding: 1.5rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer { padding: 3rem 1rem 1.5rem; }
}

/* ===== MOBILE MENU OVERLAY ===== */
.nav-overlay {
  display: none;
  position: fixed; inset: 0; top: 70px;
  background: rgba(0,0,0,0.4);
  z-index: 998;
}

.nav-overlay.open { display: block; }

/* ===== SIGNUP CTA SYSTEM ===== */

/* --- Top announcement bar --- */
.promo-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
  background: linear-gradient(90deg, var(--brown-accent), #e8a000, var(--brown-accent));
  color: var(--white);
  min-height: 42px;
  display: flex; align-items: center; justify-content: center; gap: 0.85rem;
  /* equal left/right padding keeps the content optically centred; the close
     button sits inside the right gutter */
  padding: 0 2.75rem;
  font-size: 0.9rem; font-weight: 600;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 2px 10px rgba(196, 122, 0, 0.35);
}

.promo-bar-text { display: inline-flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; justify-content: center; text-align: center; }
.promo-bar-text .material-icons { font-size: 18px; flex-shrink: 0; }
.promo-bar-sub { font-weight: 500; opacity: 0.9; }

.promo-bar-btn {
  background: var(--white);
  color: var(--brown) !important;
  padding: 0.3rem 0.95rem;
  border-radius: 20px;
  font-size: 0.82rem; font-weight: 700;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.3rem;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.promo-bar-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.25); }

.promo-bar-close {
  /* anchored to .promo-bar (which is the positioned ancestor), not the viewport */
  position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--white); opacity: 0.75;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  padding: 0; border-radius: 50%;
  transition: var(--transition);
}
.promo-bar-close:hover { opacity: 1; background: rgba(255,255,255,0.2); }
.promo-bar-close .material-icons { font-size: 18px; }

/* Push the fixed navbar + page below the promo bar.
   --promo-h is measured and set by main.js; 42px is the pre-JS fallback. */
body.has-promo .navbar { top: var(--promo-h, 42px); }
body.has-promo { padding-top: var(--promo-h, 42px); }

/* --- Navbar signup button --- */
.nav-cta .material-icons { font-size: 16px; vertical-align: -3px; margin-right: 2px; }

/* --- Primary signup block (injected into cta-section) --- */
.signup-cta {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 22px;
  padding: 2.75rem 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
  text-align: center;
}

.signup-cta-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(196, 122, 0, 0.25);
  border: 1px solid rgba(255, 200, 100, 0.4);
  color: #ffd68a;
  padding: 0.35rem 0.95rem;
  border-radius: 20px;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.signup-cta-badge .material-icons { font-size: 15px; }

.signup-cta h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--white);
  margin-bottom: 0.85rem; line-height: 1.2;
}
.signup-cta h2 .accent { color: #ffc247; }

.signup-cta p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 520px; margin: 0 auto 1.75rem;
}

.btn-signup {
  background: linear-gradient(135deg, #e8a000, var(--brown-accent));
  color: var(--white);
  padding: 1.05rem 2.75rem;
  border-radius: 14px;
  font-weight: 800; font-size: 1.1rem;
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.6rem;
  box-shadow: 0 8px 26px rgba(232, 160, 0, 0.5);
  transition: var(--transition);
  animation: signupPulse 2.8s ease-in-out infinite;
}

.btn-signup:hover {
  background: linear-gradient(135deg, #ffb414, #d68600);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 34px rgba(232, 160, 0, 0.65);
  animation-play-state: paused;
}

@keyframes signupPulse {
  0%, 100% { box-shadow: 0 8px 26px rgba(232, 160, 0, 0.5); }
  50%      { box-shadow: 0 8px 26px rgba(232, 160, 0, 0.5), 0 0 0 12px rgba(232, 160, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-signup { animation: none; }
}

/* Trust row under the signup button */
.signup-trust {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem; font-weight: 500;
}
.signup-trust span { display: inline-flex; align-items: center; gap: 0.35rem; }
.signup-trust .material-icons { font-size: 17px; color: #7fd18f; flex-shrink: 0; }

/* Hero variant: the hero copy is left-aligned, so this row is too */
.hero-trust { justify-content: flex-start; margin-top: 1.25rem; }

/* --- Inline banner for mid-page placement on light sections --- */
.signup-inline {
  max-width: 900px; margin: 3rem auto 0;
  background: linear-gradient(135deg, var(--brown), var(--brown-dark));
  border-radius: 20px;
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: 0 14px 40px var(--shadow);
}
.signup-inline h3 {
  color: var(--white); font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem;
}
.signup-inline p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }

/* --- Footer signup row --- */
.footer-cta {
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 1.4rem 0;
  margin-bottom: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 1rem;
  text-align: center;
  font-size: 0.9rem; font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.footer-cta .btn-signup {
  padding: 0.7rem 1.6rem; font-size: 0.95rem;
  animation: none;
}
/* the row already has its own top border */
.footer-cta + .footer-bottom { border-top: none; padding-top: 1rem; }

@media (max-width: 768px) {
  /* Single centred column so the text and the button stay on the same axis
     instead of drifting apart once the row wraps. */
  .promo-bar {
    min-height: 52px;
    flex-direction: column; gap: 0.35rem;
    padding: 0.5rem 2.5rem;
    font-size: 0.8rem;
  }
  .promo-bar-sub { display: none; }
  .promo-bar-btn { font-size: 0.75rem; padding: 0.28rem 0.85rem; }
  .promo-bar-close { top: 0.5rem; transform: none; }

  /* offsets come from the measured --promo-h (fallback covers the 2-row bar) */
  body.has-promo { padding-top: var(--promo-h, 76px); }
  body.has-promo .navbar { top: var(--promo-h, 76px); }
  /* .nav-menu top is set from JS (promo height + navbar height) */

  .signup-cta { padding: 2rem 1.25rem; border-radius: 18px; }
  .signup-cta h2 { font-size: 1.5rem; }
  .signup-cta p { font-size: 0.98rem; }
  .btn-signup { width: 100%; max-width: 340px; justify-content: center; padding: 0.95rem 1.5rem; font-size: 1rem; }

  /* Stack the trust items and left-align them as a block, centred as a group —
     ragged centred wrapping is what looked misaligned. */
  .signup-trust {
    flex-direction: column; align-items: flex-start;
    gap: 0.45rem;
    width: fit-content; margin-left: auto; margin-right: auto;
    font-size: 0.85rem;
  }
  /* hero row hugs the left edge, in line with the hero copy above it */
  .hero-trust { margin-left: 0; margin-right: 0; }

  .signup-inline { padding: 1.75rem 1.25rem; margin-top: 2rem; }
  .signup-inline h3 { font-size: 1.25rem; }

  /* --- Horizontal overflow guards (features.html etc.) --- */

  /* Tab row: fit-content + 4 buttons overflows a phone. Let it scroll on its
     own axis instead of pushing the whole page wide. */
  .features-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .features-tabs::-webkit-scrollbar { display: none; }
  .tab-btn { padding: 0.55rem 1rem; font-size: 0.82rem; white-space: nowrap; flex-shrink: 0; }

  /* Comparison table: shrink padding and let the long feature names wrap so it
     fits the viewport rather than needing sideways scrolling. */
  .section-inner table { width: 100%; table-layout: fixed; }
  .section-inner table th,
  .section-inner table td {
    padding: 0.7rem 0.5rem !important;
    font-size: 0.78rem !important;
    word-break: break-word;
  }
  /* give the label column the room, keep the two check columns narrow */
  .section-inner table th:first-child,
  .section-inner table td:first-child { width: 52%; text-align: left; }

  /* Nothing may exceed the viewport width */
  .section-inner, .page-hero-inner { max-width: 100%; }
  .section { overflow-x: hidden; }

  /* Footer CTA: stack the sentence above the button and centre both */
  .footer-cta { flex-direction: column; gap: 0.85rem; padding: 1.2rem 0; }
  .footer-cta .btn-signup { width: auto; max-width: none; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* Very narrow phones */
@media (max-width: 380px) {
  .promo-bar { font-size: 0.74rem; padding-left: 2.25rem; padding-right: 2.25rem; }
  .promo-bar-btn { font-size: 0.72rem; }
  .signup-cta h2 { font-size: 1.35rem; }
  .btn-signup { font-size: 0.92rem; padding: 0.9rem 1rem; }
}
