/* Star51 Solo — Landing Page Styles */

/* ── Design Tokens ── */
:root {
  --brand-orange: #ff5b19;
  --brand-orange-hover: #e04e12;
  --charcoal: #161616;
  --cream: #f5f2ea;
  --mint: #aecacd;
  --white: #ffffff;
  --gray-100: #f8f8f8;
  --gray-200: #e8e8e8;
  --gray-400: #999;
  --gray-600: #666;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-pill: 50px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --transition: 0.2s ease;
}

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

html {
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--brand-orange-hover);
}

/* ── Container ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  height: 64px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--charcoal);
  text-decoration: none;
}

.navbar-brand:hover {
  color: var(--charcoal);
}

.navbar-brand img {
  height: 32px;
  width: auto;
}

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

.navbar-links a {
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.navbar-links a:hover {
  color: var(--charcoal);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  background: transparent;
  transition: all var(--transition);
}

.lang-toggle:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--charcoal);
}

.menu-toggle i {
  font-size: 1.5rem;
}

/* ── Hero ── */
.hero {
  padding: 140px 0 56px;
  text-align: center;
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero h1 span {
  color: var(--brand-orange);
}

.hero .subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--gray-600);
  font-weight: 400;
  margin-bottom: 20px;
}

.hero .description {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--cream);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255, 91, 25, 0.3);
}

.btn-primary:hover {
  background: var(--brand-orange-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 91, 25, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* ── Section ── */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--cream);
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Section Overrides ── */
#features.section { padding-top: 64px; }
#screenshot.section { padding-bottom: 64px; }
#download.section { padding-bottom: 48px; }

.coming-soon-section {
  padding: 40px 0;
  text-align: center;
}

.coming-soon-section .section-subtitle {
  font-style: italic;
}

.coming-soon-section .badge {
  margin-top: 8px;
  border-color: rgba(255, 91, 25, 0.35);
  color: var(--charcoal);
  padding: 8px 20px;
}

.coming-soon-section .badge i {
  color: var(--brand-orange);
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 28px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

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

.feature-card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--brand-orange);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ── Carousel ── */
.carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 48px;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0;
}

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

.carousel-slide {
  flex: 0 0 270px;
  cursor: pointer;
  text-align: center;
  transition: transform var(--transition);
}

.carousel-slide:hover {
  transform: translateY(-4px);
}

.carousel-slide img {
  width: 270px;
  height: 180px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition);
}

.carousel-slide:hover img {
  border-color: var(--brand-orange);
}

.carousel-caption {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.carousel-arrow:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.carousel-prev { left: 0; }
.carousel-next { right: 0; }

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-top: 12px;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  transition: color var(--transition);
}

.lightbox-close:hover {
  color: var(--white);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition);
}

.lightbox-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ── Download Section ── */
.download-section {
  text-align: center;
}

.requirements {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.requirements .req-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--gray-600);
  font-weight: 500;
}

.download-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Support Cards ── */
.support-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}

.support-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.support-section > p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.support-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.support-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--charcoal);
  transition: all var(--transition);
  min-width: 220px;
}

.support-card:hover {
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--charcoal);
}

.support-card .support-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.support-card .support-icon.kofi {
  background: #fff0eb;
  color: #ff5b19;
}

.support-card .support-icon.paypal {
  background: #eaf0fb;
  color: #003087;
}

.support-card .support-text {
  text-align: left;
}

.support-card .support-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.support-card .support-text span {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ── Footer ── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--gray-200);
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

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

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-ecosystem {
  width: 100%;
  text-align: center;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

.footer-ecosystem strong {
  color: rgba(255, 255, 255, 0.8);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .carousel { padding: 0 40px; }
  .carousel-slide { flex: 0 0 220px; }
  .carousel-slide img { width: 220px; height: 147px; }
  .lightbox-arrow { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .navbar-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }

  .navbar-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 112px 0 48px;
  }

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

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .support-cards {
    flex-direction: column;
    align-items: center;
  }

  .support-card {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-actions,
  .download-actions {
    flex-direction: column;
  }
}
