/* PineSoft Landing Page — Dark Green Theme */

:root {
  --bg-primary: #1B2A1B;
  --bg-secondary: #1E3320;
  --bg-card: #233A23;
  --bg-card-hover: #2A4A2A;
  --gold: #EDAE49;
  --green: #2E7D32;
  --green-light: #4CAF50;
  --green-dark: #1B5E20;
  --text-primary: #E8E0D0;
  --text-secondary: #A8B5A0;
  --text-muted: #7A8A72;
  --trunk: #776E65;
  --border: rgba(237, 174, 73, 0.12);
  --shadow: rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Utility ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.section-title .pine { color: var(--green); }
.section-title .soft { color: var(--gold); }

/* ===== Header / Nav ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27, 42, 27, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-logo svg {
  width: 36px;
  height: 36px;
}

.nav-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-logo-text .pine { color: var(--green); }
.nav-logo-text .soft { color: var(--gold); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ===== Language Switcher ===== */
.lang-switcher {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  margin-left: 1rem;
}

.lang-switcher a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.lang-switcher a:hover {
  color: var(--gold);
}

.lang-switcher a.active {
  color: var(--bg-primary);
  background: var(--green);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background: radial-gradient(ellipse at center top, rgba(46, 125, 50, 0.1), transparent 70%);
}

.hero-logo {
  width: 160px;
  height: 160px;
  margin: 0 auto 1.5rem;
}

.hero-brand {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero-brand .pine { color: var(--green); }
.hero-brand .soft { color: var(--gold); }

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green);
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

.cta-button:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}

.cta-button svg {
  width: 20px;
  height: 20px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--gold);
}

/* ===== Section Subtitle ===== */
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 550px;
  margin: -1rem auto 0;
}

/* ===== Hub Cards ===== */
.section-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.hub-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(237, 174, 73, 0.25);
}

.hub-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
}

.hub-card-icon svg {
  width: 100%;
  height: 100%;
}

.hub-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.hub-card-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.hub-card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== App Grid ===== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.app-card {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.app-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(237, 174, 73, 0.25);
}

.app-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--shadow);
}

.app-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card-info {
  flex: 1;
  min-width: 0;
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.app-card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.app-card-category {
  color: var(--green-light);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.app-card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

/* ===== Featured Game ===== */
.featured {
  background: var(--bg-secondary);
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
}

.featured-image {
  border-radius: 12px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.featured-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.featured-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.featured-info .category {
  color: var(--green-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.featured-info p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.play-store-badge {
  display: inline-block;
  transition: opacity 0.2s;
}

.play-store-badge:hover {
  opacity: 0.85;
}

.play-store-badge img {
  height: 50px;
}

/* ===== Game Catalog Grid ===== */
.catalog-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.25rem;
}

.game-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}

.game-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(237, 174, 73, 0.25);
}

.game-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin: 0 auto 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
}

.game-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card-name {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.game-card-category {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-published {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--green);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.badge-coming-soon {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--gold);
  color: var(--bg-primary);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

/* ===== About ===== */
.about {
  background: var(--bg-secondary);
}

.about-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
}

.about-features {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

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

.about-feature-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.about-feature-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
}

.about-feature-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 600;
}

.footer-brand .pine { color: var(--green); }
.footer-brand .soft { color: var(--gold); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(27, 42, 27, 0.97);
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
  }

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

  .nav-hamburger {
    display: block;
  }

  .lang-switcher {
    position: absolute;
    top: 100%;
    right: 1.25rem;
    margin-left: 0;
    background: rgba(27, 42, 27, 0.97);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    flex-wrap: wrap;
    max-width: 200px;
    justify-content: center;
  }

  .hero-brand {
    font-size: 2.25rem;
  }

  .hero-tagline {
    font-size: 1.05rem;
  }

  .hero-logo {
    width: 120px;
    height: 120px;
  }

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

  .featured-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
  }

  .game-card {
    padding: 0.75rem;
  }

  .game-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .about-features {
    gap: 1.5rem;
  }

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

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

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

  .game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .game-card-icon {
    width: 56px;
    height: 56px;
  }

  .game-card-name {
    font-size: 0.75rem;
  }

  .catalog-filters {
    gap: 0.35rem;
  }

  .filter-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
  }
}
