/* ========================================
   Ashgrove Technical Academy — style.css
   Terminal Slate palette, retro/vintage tech
   ======================================== */

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

html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  background-color: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Courier New', monospace;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.font-mono {
  font-family: 'Space Mono', 'Courier New', Courier, monospace;
}

a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #f8fafc;
}

/* ---------- Utility ---------- */
.container-inner {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ---------- Header / Navbar ---------- */
.site-header {
  background-color: #0f172a;
  border-bottom: 1px solid #1e293b;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.site-header .nav-link {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: #f8fafc;
  border-bottom-color: #475569;
}

/* ---------- Mobile Menu Overlay ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: #020617;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #cbd5e1;
}

.mobile-menu a:hover {
  color: #f8fafc;
}

/* ---------- Hamburger ---------- */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #f8fafc;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0f172a;
  position: relative;
  padding-top: 4rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(71, 85, 105, 0.04) 2px,
      rgba(71, 85, 105, 0.04) 4px
    );
  pointer-events: none;
}

.code-snippet {
  background-color: #020617;
  border: 1px solid #1e293b;
  border-radius: 0;
  overflow: hidden;
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 36rem;
  width: 100%;
}

.code-snippet .code-header {
  background-color: #1e293b;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.code-snippet .code-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #334155;
}

.code-snippet .code-body {
  padding: 1rem 1.25rem;
  color: #94a3b8;
}

.code-snippet .code-body .prompt {
  color: #475569;
}

.code-snippet .code-body .cmd {
  color: #f8fafc;
}

.code-snippet .code-body .output {
  color: #64748b;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.scroll-indicator .arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #475569, transparent);
}

/* ---------- Section Heading Bar ---------- */
.section-bar {
  background-color: #1e293b;
  padding: 1rem 0;
}

.section-bar h2 {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #94a3b8;
}

/* ---------- Stats ---------- */
.stat-card {
  text-align: center;
}

.stat-card .stat-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.75rem;
  color: #475569;
}

.stat-card .stat-number {
  font-family: 'Space Grotesk', monospace;
  font-size: 2.25rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1;
}

.stat-card .stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-top: 0.35rem;
}

/* ---------- Number Badge Cards ---------- */
.number-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background-color: #1e293b;
  border: 1px solid #334155;
  padding: 1.5rem;
}

.number-card .badge-num {
  font-family: 'Space Grotesk', monospace;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: #334155;
  flex-shrink: 0;
  min-width: 3rem;
}

.number-card h3 {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.number-card p {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* ---------- Comparison Table ---------- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison-table thead th {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  padding: 1rem 1.25rem;
  text-align: left;
  background-color: #020617;
  color: #94a3b8;
  border-bottom: 2px solid #334155;
}

.comparison-table tbody td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #1e293b;
  color: #cbd5e1;
  vertical-align: top;
}

.comparison-table tbody tr:nth-child(even) {
  background-color: rgba(30, 41, 59, 0.4);
}

.comparison-table tbody td:first-child {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table tbody td:nth-child(2) {
  color: #f8fafc;
  font-weight: 600;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background-color: #1e293b;
  border: 1px solid #334155;
  padding: 1.75rem;
}

.testimonial-card .metric {
  font-family: 'Space Grotesk', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.75rem;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-card .attribution {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background-color: #020617;
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border-bottom: 1px solid #1e293b;
}

.faq-item:first-child {
  border-top: 1px solid #1e293b;
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.faq-trigger .faq-q {
  font-family: 'Space Grotesk', monospace;
  font-size: 1rem;
  color: #e2e8f0;
  flex: 1;
  padding-right: 1rem;
}

.faq-trigger .faq-icon {
  font-family: 'Space Mono', monospace;
  font-size: 1.25rem;
  color: #475569;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  line-height: 1;
}

.faq-item.open .faq-trigger .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer-inner {
  padding: 0 0 1.25rem 0;
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.65;
}

/* ---------- Forms ---------- */
.form-group label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #020617;
  border: 1px solid #334155;
  color: #f8fafc;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #475569;
  box-shadow: 0 0 0 2px rgba(71, 85, 105, 0.25);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #ef4444;
}

.form-group .error-msg {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: #ef4444;
  margin-top: 0.3rem;
  display: none;
}

.form-group .error-msg.visible {
  display: block;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  text-align: center;
}

.btn-primary {
  background-color: #475569;
  color: #f8fafc;
}

.btn-primary:hover {
  background-color: #64748b;
  color: #f8fafc;
}

.btn-outline {
  background-color: transparent;
  color: #94a3b8;
  border: 1px solid #475569;
}

.btn-outline:hover {
  background-color: #1e293b;
  color: #f8fafc;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: #020617;
  border-top: 1px solid #1e293b;
}

.site-footer a {
  color: #64748b;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: #f8fafc;
}

.footer-heading {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #475569;
  margin-bottom: 1rem;
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #020617;
  border-top: 1px solid #1e293b;
  z-index: 100;
  padding: 1.25rem;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .code-snippet {
    font-size: 0.75rem;
  }

  .stat-card .stat-number {
    font-size: 1.75rem;
  }

  .number-card {
    flex-direction: column;
  }

  .number-card .badge-num {
    font-size: 2.25rem;
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 0.65rem 0.75rem;
  }
}

/* ---------- Legal Pages ---------- */
.legal-content {
  max-width: 48rem;
  margin: 0 auto;
}

.legal-content h1 {
  font-family: 'Space Grotesk', monospace;
  font-size: 2rem;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.legal-content h2 {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #1e293b;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  list-style: none;
  padding-left: 1.5rem;
}

.legal-content ul li::before {
  content: '>';
  font-family: 'Space Mono', monospace;
  color: #475569;
  margin-right: 0.5rem;
  margin-left: -1.5rem;
}

.legal-content a {
  color: #94a3b8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: #f8fafc;
}

/* ---------- Thanks Page ---------- */
.thanks-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
