/* ============================================
   CoreCommand — Global Styles
   ============================================ */

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

/* --- CSS Variables --- */
:root {
  --bg: #0A0A0A;
  --surface: #111111;
  --surface-2: #1A1A1A;
  --primary: #6B7C3F;
  --primary-bright: #8A9E52;
  --text: #FFFFFF;
  --text-secondary: #A0A0A0;
  --border: #222222;
  --success: #4CAF50;
  --alert: #FF6B35;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { color: var(--text-secondary); line-height: 1.8; }

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-bright);
  margin-bottom: 1rem;
  display: inline-block;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 6rem 0;
  position: relative;
}
.section--lg { padding: 8rem 0; }

/* Section divider gradient line */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 20%, var(--primary) 50%, var(--border) 80%, transparent 100%);
  border: none;
  margin: 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.nav__logo span { color: var(--primary); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav__links a:hover,
.nav__links a.active { color: var(--text); }

/* Mobile nav */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: var(--surface);
    padding: 5rem 2rem 2rem;
    gap: 1.25rem;
    border-left: 1px solid var(--border);
    transition: right var(--transition);
    align-items: flex-start;
  }
  .nav__links.open { right: 0; }
  .nav__links a { font-size: 1rem; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--primary-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(107, 124, 63, 0.3);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary-bright);
}
.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}
.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}
.btn--nav {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  border-radius: 6px;
}

/* --- Hero --- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(107, 124, 63, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero__content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero__content h1 { margin-bottom: 1.5rem; }
.hero__content h1 em {
  font-style: normal;
  color: var(--primary-bright);
}
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero--left .hero__content {
  text-align: left;
  margin: 0;
}
.hero--left .hero__subtitle { margin: 0 0 2.5rem; }
.hero--left .hero__actions { justify-content: flex-start; }

/* --- Stats Bar --- */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stats-bar__item {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.stats-bar__item:last-child { border-right: none; }
.stats-bar__icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}
.stats-bar__label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
@media (max-width: 768px) {
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .stats-bar__item:nth-child(2) { border-right: none; }
  .stats-bar__item { border-bottom: 1px solid var(--border); }
}

/* --- Card Grids --- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* --- Feature Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: rgba(107, 124, 63, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.card__icon {
  width: 48px;
  height: 48px;
  background: rgba(107, 124, 63, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--primary-bright);
}
.card__title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.card__text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.card--highlight {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(107, 124, 63, 0.08) 0%, var(--surface) 100%);
}

/* Audience cards */
.audience-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all var(--transition);
}
.audience-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.audience-card__tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-bright);
  margin-bottom: 1rem;
}
.audience-card h3 { margin-bottom: 1rem; }

/* --- Pricing Cards --- */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.pricing-card:hover {
  border-color: rgba(107, 124, 63, 0.3);
  transform: translateY(-4px);
}
.pricing-card--featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(107, 124, 63, 0.06) 0%, var(--surface) 40%);
  position: relative;
}
.pricing-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
}
.pricing-card__tier {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-bright);
  margin-bottom: 0.5rem;
}
.pricing-card__price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.pricing-card__price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}
.pricing-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.pricing-card__features {
  flex: 1;
  margin-bottom: 2rem;
}
.pricing-card__features li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}
.pricing-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-bright);
  font-weight: 700;
}

/* --- FAQ --- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--surface);
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: rgba(107, 124, 63, 0.3); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-display);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--primary-bright);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
}
.faq-answer__inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(107, 124, 63, 0.05) 50%, var(--bg) 100%);
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* --- Feature Deep Dive --- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-block:last-of-type { border-bottom: none; }
.feature-block:nth-child(even) { direction: rtl; }
.feature-block:nth-child(even) > * { direction: ltr; }
.feature-block__content h2 { margin-bottom: 1rem; }
.feature-block__content p { margin-bottom: 1rem; }
.feature-block__visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.feature-list {
  margin-top: 1rem;
}
.feature-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-bright);
}
@media (max-width: 768px) {
  .feature-block { grid-template-columns: 1fr; gap: 2rem; }
  .feature-block:nth-child(even) { direction: ltr; }
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* --- Footer --- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.footer__links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--primary-bright); }
.footer__bottom {
  font-size: 0.75rem;
  color: #555;
  margin-top: 0.5rem;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-bright); transform: translateY(-2px); }

/* --- Checklist --- */
.checklist { margin-top: 1.5rem; }
.checklist li {
  padding: 0.6rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(34, 34, 34, 0.5);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-bright);
  font-weight: 700;
}

/* --- Text Content Sections --- */
.content-section { max-width: 800px; }
.content-section h2 { margin-bottom: 1rem; }
.content-section p { margin-bottom: 1rem; }
.content-section p:last-child { margin-bottom: 0; }

/* Add-on table */
.addon-table {
  width: 100%;
  margin-top: 2rem;
  border-collapse: collapse;
}
.addon-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.addon-table td:first-child { color: var(--text); font-weight: 500; }
.addon-table td:last-child { text-align: right; color: var(--primary-bright); font-weight: 600; }

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero animation */
.hero__content { animation: fadeUp 0.8s ease forwards; }
.hero__actions { animation: fadeUp 0.8s 0.2s ease both; }

/* Utility */
.text-center { text-align: center; }
.text-primary { color: var(--primary-bright); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }
.max-w-lg { max-width: 700px; margin-left: auto; margin-right: auto; }
