/* Callbreak Elite - Theme from callbreak_web (midnight blue + royal gold) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Callbreak Elite design tokens */
  --deep-midnight-blue: #0B4423;
  --royal-gold: #FFD700;
  --off-white-cloud: #F0F4EF;
  --spade-gold: #D4AF37;
  --dark-midnight-blue: #062915;
  --site-header-height: 56px;

  /* Background (match callbreak_web) */
  --bg-gradient: radial-gradient(1.2em at 50% 50%, var(--dark-midnight-blue), var(--deep-midnight-blue));
  --menu-bg-url: url('/assets/svg/app_backgrounds/screen_bg/bg1.svg');

  --primary-color: var(--deep-midnight-blue);
  --secondary-color: var(--dark-midnight-blue);
  --accent-color: var(--royal-gold);
  --text-color: var(--off-white-cloud);
  --text-light: rgba(240, 244, 239, 0.85);
  --bg-color: var(--deep-midnight-blue);
  --bg-light: var(--dark-midnight-blue);
  --border-color: rgba(255, 215, 0, 0.3);
  --card-shadow: 0 4px 14px rgba(255, 215, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 6px 20px rgba(255, 215, 0, 0.35), 0 3px 10px rgba(0, 0, 0, 0.4);
}

html {
  /* Prevent hash navigation targets hiding under sticky header */
  scroll-padding-top: calc(var(--site-header-height) + 12px);
}

:is(h1, h2, h3, h4)[id] {
  scroll-margin-top: calc(var(--site-header-height) + 12px);
}

body {
  font-family: "Roboto Condensed", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--deep-midnight-blue);
  background-image: var(--menu-bg-url), var(--bg-gradient);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  min-height: 100vh;
}

/* Use Comic Neue for the "game" vibe on key text */
h1, h2, h3, h4,
.brand-mark {
  font-family: "Comic Neue", "Roboto Condensed", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Header / Navigation (v2) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: var(--card-shadow);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border-color);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--site-header-height);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--royal-gold);
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  font-size: 16px;
  line-height: 1;
}

.brand-mark {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 1.1rem;
  background: linear-gradient(180deg, #ffe88a 0%, var(--royal-gold) 45%, #d4af37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-elite {
  opacity: 0.95;
}

.brand:hover {
  background: rgba(255, 215, 0, 0.08);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: var(--off-white-cloud);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nav-link:hover {
  background: rgba(255, 215, 0, 0.10);
  color: var(--royal-gold);
}

.nav-link.is-active,
.nav-link[aria-current="page"] {
  background: rgba(255, 215, 0, 0.18);
  border-color: rgba(255, 215, 0, 0.45);
  color: var(--royal-gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  color: var(--deep-midnight-blue);
  background: var(--royal-gold);
  transition: transform 0.15s, filter 0.2s;
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--off-white-cloud);
  border-color: rgba(240, 244, 239, 0.25);
}

.btn-outline:hover {
  border-color: rgba(255, 215, 0, 0.55);
}

.icon-btn {
  height: 40px;
  width: 40px;
  border-radius: 10px;
  border: 1px solid rgba(240, 244, 239, 0.25);
  background: transparent;
  color: var(--off-white-cloud);
  cursor: pointer;
}

.nav-toggle {
  display: none;
}

/* Hamburger icon -> X */
.hamburger {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
  border-radius: 2px;
  transition: transform 0.25s ease;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
}
.hamburger::before {
  top: -6px;
}
.hamburger::after {
  top: 6px;
}

.site-header.menu-open .hamburger {
  transform: rotate(-45deg);
}
.site-header.menu-open .hamburger::before {
  top: 0;
  transform: rotate(-90deg);
}
.site-header.menu-open .hamburger::after {
  top: 0;
  opacity: 0;
}

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  top: var(--site-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
}

.mobile-menu-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-link-block {
  display: flex;
  width: 100%;
  justify-content: flex-start;
}

.mobile-links {
  display: grid;
  gap: 0.5rem;
}

.mobile-cta {
  margin-top: auto;
  display: grid;
  gap: 0.5rem;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: radial-gradient(ellipse at 50% 50%, var(--dark-midnight-blue) 0%, var(--deep-midnight-blue) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 3rem;
  box-shadow: var(--card-shadow);
}

.hero .hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero .hero-logo img {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  box-shadow: var(--card-shadow);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--royal-gold);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Download Buttons */
.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.download-btn {
  display: inline-block;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

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

.download-btn img {
  height: 60px;
  width: auto;
  display: block;
}

/* Screenshot Gallery */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.screenshot-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border-color);
}

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

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background: var(--dark-midnight-blue);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-card h3 {
  color: var(--royal-gold);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-card p {
  color: var(--text-light);
}

/* Content Sections */
.content-section {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--dark-midnight-blue);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.content-section h1 {
  color: var(--royal-gold);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.content-section h2 {
  color: var(--royal-gold);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.content-section h3 {
  color: var(--spade-gold);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.content-section h4 {
  color: var(--spade-gold);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.content-section p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-light);
}

.content-section ul,
.content-section ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.content-section li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
  color: var(--text-light);
}

.content-section a {
  color: var(--royal-gold);
}

.content-section address {
  color: var(--text-light);
  font-style: normal;
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  color: var(--off-white-cloud);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--royal-gold);
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero .hero-logo img {
    width: 96px;
    height: 96px;
  }

  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .download-btn img {
    height: 50px;
  }

  .screenshot-gallery {
    grid-template-columns: 1fr;
  }

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

  main {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--royal-gold);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  header,
  footer,
  .download-buttons {
    display: none;
  }

  body {
    background: white;
  }

  .content-section {
    background: white;
    color: black;
  }
}
