/* ==========================================================================
   LUMO — Design System & Stylesheet
   Color Palette & Typography based on Hostinger reference
   100% Mobile Responsive & Fluid Architecture
   ========================================================================== */

:root {
  /* Brand Core Colors */
  --ink: #0a0a0a;
  --paper: #ffffff;
  --paper-soft: #f8f9fa;
  --paper-card: #ffffff;
  --line: #e9ecef;
  --line-dark: #222222;
  --muted: #6c757d;
  --muted-light: #9ad1d4;
  --muted-dark: #495057;

  /* Accent Colors */
  --red: #d9312e;
  --red-hover: #b82522;
  --gold: #f0b429;

  /* CEFR Level Colors */
  --a1: #34c759;
  --a2: #007aff;
  --b1: #00b8b0;
  --b2: #af52de;
  --c1: #ff9f0a;
  --c2: #a6272c;

  /* Layout & Utility Variables */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 32px -8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.14);
  --shadow-glow: 0 0 35px rgba(217, 49, 46, 0.15);

  --font-heading: 'Archivo Black', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container-width: 1140px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* Typography Utility Classes */
.wordmark {
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--red);
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.6; }
  100% { transform: scale(0.95); opacity: 1; }
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.1;
  color: var(--ink);
}

/* Buttons & Badges */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), opacity var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-appstore img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-cta-desktop img {
  height: 38px;
}

.btn-appstore:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

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

.btn-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 8px 12px;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.btn-secondary-link:hover {
  color: var(--red);
}

/* German Flag Accent Strip */
.flag-bar {
  display: flex;
  width: 100%;
  height: 5px;
}
.flag-bar span { flex: 1; }
.flag-bar .black { background: var(--ink); }
.flag-bar .red { background: var(--red); }
.flag-bar .gold { background: var(--gold); }

/* Navigation Bar */
header.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background var(--transition-fast);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
}

.brand-logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-dark);
}

.nav-links a:hover {
  color: var(--red);
}

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--ink);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile Dropdown Nav */
.mobile-nav-overlay {
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  height: calc(100vh - 76px);
  background: var(--paper);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  gap: 24px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.mobile-nav-overlay.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-overlay a {
  font-size: 18px;
  font-weight: 700;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

/* Hero Section */
.hero-section {
  padding: 72px 0 88px;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

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

.hero-title {
  font-size: clamp(38px, 5.2vw, 62px);
  letter-spacing: -0.02em;
  margin: 20px 0 20px;
  line-height: 1.05;
}

.hero-title span.highlight {
  color: var(--red);
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted-dark);
  margin-bottom: 32px;
  line-height: 1.5;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* Dynamic Stats Strip in Hero */
.stats-badge-bar {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--ink);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background-color: var(--line);
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--a1);
  background: rgba(52, 199, 89, 0.08);
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.pulse-green {
  width: 6px;
  height: 6px;
  background-color: var(--a1);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7);
  animation: pulse-green-anim 1.6s infinite;
}

@keyframes pulse-green-anim {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(52, 199, 89, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(52, 199, 89, 0);
  }
}

/* Mockup Display Component without CSS frame */
.phone-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.clean-mockup-img {
  width: 280px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Floating feature badges around phone mockup */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  font-size: 13px;
  font-weight: 700;
  animation: float 4s ease-in-out infinite;
}

.floating-badge.fb-1 {
  top: 12%;
  left: -20px;
  animation-delay: 0s;
}

.floating-badge.fb-2 {
  bottom: 18%;
  right: -20px;
  animation-delay: 2s;
}

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

/* CEFR Level Bar Signature Section */
.level-strip {
  padding: 36px 0;
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.level-strip-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.level-strip-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-dark);
  white-space: nowrap;
}

.level-track {
  flex: 1;
  min-width: 240px;
  display: flex;
  gap: 8px;
}

.level-seg {
  flex: 1;
  height: 10px;
  border-radius: 6px;
  transition: transform var(--transition-fast);
}

.level-seg:hover {
  transform: scaleY(1.3);
}

.level-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.level-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.level-pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Problem & Solution Cards Section */
.section-padding {
  padding: 96px 0;
}

.section-head {
  max-width: 600px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head.text-left {
  text-align: left;
  margin-left: 0;
}

.kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 17px;
  color: var(--muted-dark);
}

.problem-solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ps-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.ps-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(10, 10, 10, 0.15);
}

.ps-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 24px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
}

.ps-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.ps-card p {
  color: var(--muted-dark);
  font-size: 15px;
  line-height: 1.6;
}

/* Features Grid Section */
.features-section {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted-dark);
}

/* Word Card Showcase (Interactive Card Component) */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.interactive-word-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.pos-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-dark);
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.article-pill {
  font-size: 13px;
  font-weight: 800;
  color: white;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.article-pill.die { background-color: var(--red); }
.article-pill.der { background-color: var(--a2); }
.article-pill.das { background-color: var(--a1); }

.word-heading {
  font-size: 38px;
  margin-bottom: 4px;
}

.word-ipa {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.word-translation {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.example-box {
  border-left: 3px solid var(--a2);
  padding-left: 16px;
  margin-bottom: 16px;
}

.example-de {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.example-en {
  font-size: 14px;
  color: var(--muted-dark);
  margin-top: 2px;
}

.check-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(217, 49, 46, 0.1);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: 800;
}

/* App Screen Gallery Carousel */
.gallery-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.carousel-container {
  position: relative;
  margin-top: 40px;
  padding: 20px 0 40px;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 20px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.gallery-card {
  flex: 0 0 250px;
  scroll-snap-align: center;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  transition: transform var(--transition-fast);
}

.gallery-card:hover {
  transform: translateY(-6px);
}

.gallery-card img {
  width: 100%;
  border-radius: 0;
  display: block;
  filter: none;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.nav-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Bottom CTA Banner */
.cta-section {
  padding: 108px 0;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
}

.cta-box {
  max-width: 720px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 18px;
}

.cta-desc {
  font-size: 18px;
  color: var(--muted-dark);
  margin-bottom: 36px;
}

/* Footer Section */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 36px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .brand-logo {
  color: var(--paper);
  margin-bottom: 16px;
}

.footer-brand p {
  color: #a1a1aa;
  font-size: 14px;
  line-height: 1.6;
}

.footer-group h4 {
  color: var(--paper);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  color: #a1a1aa;
  font-size: 14px;
}

.footer-links-list a:hover {
  color: var(--paper);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  transition: background var(--transition-fast);
}

.social-icon:hover {
  background: var(--red);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  font-size: 13px;
  color: #71717a;
}

/* Legal Pages Styling */
.legal-page-header {
  padding: 60px 0 40px;
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto 80px;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.legal-content h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.legal-content h2 {
  font-size: 22px;
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.last-updated {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Responsive Media Queries (Mobile First & Adaptive Breakpoints) */

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 56px;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

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

  .stats-badge-bar {
    justify-content: center;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .problem-solution-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta-desktop {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

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

  .level-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .level-track {
    width: 100%;
  }

  .floating-badge {
    display: none;
  }

  .stats-badge-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
    width: 100%;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .stat-item {
    align-items: center;
    text-align: center;
    padding: 6px 0;
  }

  .stat-number {
    font-size: 28px;
    letter-spacing: -0.02em;
  }

  .stat-label {
    font-size: 11px;
    margin-top: 2px;
  }

  .stat-divider {
    display: none;
  }

  .live-badge {
    grid-column: span 2;
    justify-content: center;
    padding: 8px 14px;
    font-size: 12px;
    border-radius: var(--radius-md);
  }

  .btn-appstore img {
    height: 46px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 34px;
  }

  .phone-frame {
    width: 250px;
    border-radius: 38px;
  }

  .interactive-word-card {
    padding: 24px;
  }

  .word-heading {
    font-size: 30px;
  }
}
