/*
Theme Name: opnf.sh
Theme URI: https://opnf.sh
Author: opnForum
Author URI: https://opnforum.com
Description: Terminal-inspired product site for opnf.sh Linux engineering courses.
Version: 1.0
License: Proprietary
Text Domain: opnfsh
*/

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

:root {
  --bg: #0a0a0a;
  --bg-card: #131313;
  --bg-card-hover: #1a1a1a;
  --border: #222;
  --border-hover: #333;
  --text: #d4d4d4;
  --text-dim: #888;
  --text-muted: #555;
  --accent: #ff6b1a;
  --accent-hover: #ff8a47;
  --green: #22c55e;
  --blue: #3b82f6;
  --red: #ef4444;
  --white: #e8e8e8;
  --radius: 6px;
  --radius-lg: 10px;
  --max-w: 1120px;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Menlo', monospace;
  --font-heading: 'IBM Plex Sans', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

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

::selection { background: var(--accent); color: #fff; }

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--white);
  font-weight: 600;
  line-height: 1.2;
}
h1 { font-size: 42px; letter-spacing: -0.02em; }
h2 { font-size: 28px; letter-spacing: -0.01em; }
h3 { font-size: 18px; }
h4 { font-size: 15px; }

p { margin-bottom: 16px; max-width: 680px; }
p:last-child { margin-bottom: 0; }

code, .mono {
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ── Layout ────────────────────────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.section:last-child { border-bottom: none; }

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0;
}
.header-logo .hl-b { color: var(--red); }
.header-logo .hl-a { color: var(--blue); }
.header-logo .hl-s { color: var(--green); }
.header-logo .hl-h { color: var(--white); }
.header-logo .hl-file { color: var(--text-dim); margin: 0 4px; }
.header-logo .hl-opnf { color: var(--white); }
.header-logo .hl-dot { color: var(--accent); }
.header-logo .hl-sh { color: var(--accent); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.header-nav a:hover { color: var(--white); }
.header-nav a.nav-data:hover { color: var(--green); }
.header-nav a.nav-devops:hover { color: var(--blue); }
.header-nav a.nav-security:hover { color: var(--red); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }
  .nav-toggle { display: block; }
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 24px;
}
.hero-logo .bash {
  font-size: 24px;
  display: block;
  margin-bottom: 4px;
}
.hero-logo .filename {
  font-size: 72px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-logo .hl-quote { color: var(--text-dim); }

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-dim);
  margin: 16px auto 0;
}
.hero-tagline .hash { color: var(--accent); }

.hero-sub {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 32px auto 0;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
}
.hero-stat-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-echo {
  font-family: var(--font-mono);
  font-size: 14px;
  margin-top: 48px;
  text-align: left;
  display: inline-block;
}
.hero-echo .line {
  display: block;
  padding: 2px 0;
}
.hero-echo .ln { color: var(--text-muted); margin-right: 8px; }
.hero-echo .cmd { color: var(--text-dim); }

@media (max-width: 600px) {
  .hero { padding: 64px 0 56px; }
  .hero-logo .filename { font-size: 48px; }
  .hero-logo .bash { font-size: 18px; }
  .hero-stats { gap: 24px; }
  .hero-stat-num { font-size: 24px; }
}

/* ── Track Cards ───────────────────────────────────────── */
.track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.track-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.track-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.track-card[data-track="data"] { border-top: 2px solid var(--green); }
.track-card[data-track="devops"] { border-top: 2px solid var(--blue); }
.track-card[data-track="security"] { border-top: 2px solid var(--red); }

.track-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.track-card[data-track="data"] .track-label { color: var(--green); }
.track-card[data-track="devops"] .track-label { color: var(--blue); }
.track-card[data-track="security"] .track-label { color: var(--red); }

.track-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.track-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.track-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.track-cta {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text);
  text-align: center;
  transition: all 0.15s;
}
.track-card[data-track="data"] .track-cta:hover { border-color: var(--green); color: var(--green); }
.track-card[data-track="devops"] .track-cta:hover { border-color: var(--blue); color: var(--blue); }
.track-card[data-track="security"] .track-cta:hover { border-color: var(--red); color: var(--red); }

@media (max-width: 768px) {
  .track-grid { grid-template-columns: 1fr; }
}

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-secondary {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ── Pricing ───────────────────────────────────────────── */
.price-free-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  margin-bottom: 20px;
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
  margin: 8px 0;
}
.price-amount .currency { font-size: 18px; color: var(--text-dim); vertical-align: super; }
.price-amount sup { font-size: 18px; }

.price-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.price-list {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}
.price-list li {
  font-size: 13px;
  color: var(--text-dim);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}
.price-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 12px;
}

.price-btn {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text);
  text-align: center;
  transition: all 0.15s;
  margin-top: auto;
}

.bundle-card {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  margin-top: 20px;
  position: relative;
}
.bundle-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
}

.bundle-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bundle-track-card {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid;
}
.bundle-track-card.data { border-color: rgba(34,197,94,0.2); background: rgba(34,197,94,0.03); }
.bundle-track-card.devops { border-color: rgba(59,130,246,0.2); background: rgba(59,130,246,0.03); }
.bundle-track-card.security { border-color: rgba(239,68,68,0.2); background: rgba(239,68,68,0.03); }

@media (max-width: 768px) {
  .price-grid { grid-template-columns: 1fr; }
  .bundle-tracks { grid-template-columns: 1fr; }
  .price-free-bar { flex-direction: column; text-align: center; }
}

/* ── Commitments ───────────────────────────────────────── */
.commitments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
  margin-top: 32px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.commitment-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.commitment-text {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: none;
}

@media (max-width: 600px) {
  .commitments { grid-template-columns: 1fr; }
}

/* ── FAQ ───────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}
.faq-q:hover { color: var(--accent); }
.faq-chevron {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.faq-item.open .faq-chevron { transform: rotate(90deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner {
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 680px;
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ── Page Templates ────────────────────────────────────── */
.page-content {
  padding: 80px 0;
}
.page-content h1 {
  margin-bottom: 32px;
}
.page-content p {
  color: var(--text-dim);
  line-height: 1.8;
}

/* ── Utility ───────────────────────────────────────────── */
.text-green { color: var(--green); }
.text-blue { color: var(--blue); }
.text-red { color: var(--red); }
.text-accent { color: var(--accent); }
.text-dim { color: var(--text-dim); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
