@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #FFFDF8;
  --fg: #2C1F0E;
  --muted: #9E8D78;
  
  --accent: #FF7B00;
  --accent-gradient: linear-gradient(135deg, #FF9A44, #FF6A00);
  --accent-lo: #FFF0E0;
  
  --pill-bg: #FDF5EC;
  --border: #EDE0CC;
  
  --green: #3DAA6B;
  --green-lo: #E8F7EE;
  
  --red: #E85555;
  --red-lo: #FEEEEE;
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

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

.btn-primary:hover {
  background: var(--accent-gradient);
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--pill-bg);
  border-color: var(--muted);
}

/* Header */
.header {
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: rgba(255, 253, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(237, 224, 204, 0.5);
}

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

.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.brand-logo-header {
  height: 34px;
}

.brand-logo-footer {
  height: 30px;
}

.brand-icon {
  background: var(--accent-gradient);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-weight: 500;
  font-size: 15px;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s;
}

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

/* Hero Section */
.hero {
  padding: 40px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 680px;
  margin: 0 auto;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Hero Blob */
.hero-blob {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: var(--accent-gradient);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  opacity: 0.1;
  z-index: 0;
  animation: morph 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes morph {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
  67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
  100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

/* Sections */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  text-align: center;
}

.section-subtitle {
  font-size: 15px;
  color: var(--muted);
  text-align: center;
  max-width: 500px;
  margin: 0 auto 32px;
}

/* Cards (Features, Pricing) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--pill-bg);
  border-radius: 8px;
  padding: 16px;
  border: none;
  transition: all 0.3s;
}

.card:hover {
  box-shadow: none;
  border-color: var(--muted);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--pill-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-desc {
  color: var(--muted);
  font-size: 15px;
}

/* Pricing Card */
.pricing-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card.popular {
  background: #FFFFFF;
  box-shadow: 0 10px 40px rgba(255, 123, 0, 0.08);
}

.popular-badge {
  position: absolute;
  top: 16px;
  right: -32px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 32px;
  transform: rotate(45deg);
}

.pricing-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  margin: 16px 0;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}

.pricing-features {
  text-align: left;
  margin: 16px 0 24px 0;
}

.pricing-features li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--fg);
}

.pricing-features li svg {
  color: var(--green);
}

/* Downloads Section (Premium CTA) */
.download-btn-premium {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--fg);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  min-width: 160px;
}

.download-btn-premium:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: none;
}

.download-btn-premium.is-disabled,
.download-btn-premium[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.download-btn-premium.is-disabled:hover,
.download-btn-premium[aria-disabled="true"]:hover {
  background: var(--fg);
  transform: none;
}

/* Footer */
.footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 40px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  padding: 8px;
}

.header-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title { font-size: 38px; }
  .section-title { font-size: 28px; }

  .brand-logo-header {
    height: 28px;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .header-menu {
    display: none; /* hidden by default on mobile */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 253, 248, 0.98);
    backdrop-filter: blur(12px);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    align-items: flex-start;
    gap: 24px;
  }
  
  .header-menu.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
  
  .header-actions {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 16px;
  }
  
  .lang-switcher {
    border-right: none !important;
    padding-right: 0 !important;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hero { padding: 28px 0 44px; }
  .hero-title { font-size: 32px; letter-spacing: -1px; }
  .hero-subtitle { font-size: 14px; }
  .hero-blob { width: 280px; height: 280px; opacity: 0.07; top: -5%; right: -20%; }

  /* CTA buttons stack full-width */
  .hero .flex.gap-4 {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0 4px;
    margin-bottom: 24px !important;
  }
  .hero .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    justify-content: center;
    border-radius: 10px;
  }
  .hero-image { padding: 0 !important; }

  .section { padding: 40px 0; }
  .section-title { font-size: 24px; }
  .section-subtitle { font-size: 14px; }

  /* download buttons stack */
  .download-btn-premium {
    width: 100%;
    justify-content: flex-start;
  }

  /* footer stack */
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

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

  .card {
    border-radius: 10px !important;
    margin: 0;
    border-left: revert;
    border-right: revert;
  }

  .pricing-card { padding: 20px 16px; }

  /* download buttons section */
  #download .container > div[style] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #download h2 { font-size: 26px !important; }
}
