/* OptiK8s - landing page styles */

:root {
  --bg-dark:    #0e1117;
  --bg-darker:  #080b10;
  --bg-card:    #161b27;
  --bg-card-hover: #1e2535;
  --text-muted: #8b92a8;
  --border:     rgba(255,255,255,.08);
  --info:       #0dcaf0;
  --success:    #198754;
  --warning:    #ffc107;
}

/* ─────────────────────── BASE ─────────────────────── */
* { box-sizing: border-box; }

/* Override Bootstrap's light-theme text-muted for dark backgrounds */
.text-muted { color: var(--text-muted) !important; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: #e8eaf0;
  margin: 0;
}

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: .85em;
  color: var(--info);
}

/* ─────────────────────── NAVBAR ─────────────────────── */
#mainNav {
  background-color: rgba(14, 17, 23, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

#mainNav .navbar-brand {
  font-size: 1.15rem;
  color: #e8eaf0;
  text-decoration: none;
}

#mainNav .nav-link {
  color: var(--text-muted);
  font-size: .92rem;
  transition: color .15s;
}

#mainNav .nav-link:hover { color: #e8eaf0; }

/* ─────────────────────── HERO ─────────────────────── */
.hero-section {
  background: radial-gradient(ellipse at 50% 0%, rgba(13, 202, 240, .12) 0%, transparent 65%),
              var(--bg-dark);
  padding: 110px 0 90px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--info) 0%, #5e9fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.hero-reassurance {
  color: var(--text-muted);
  font-size: .9rem;
  margin: 0;
}

/* ─────────────────────── FREE AUDIT HIGHLIGHT ─────────────────────── */
.free-audit-highlight {
  background: linear-gradient(135deg, rgba(13, 202, 240, .08) 0%, rgba(94, 159, 255, .05) 100%),
              var(--bg-darker);
  border-top: 1px solid rgba(13, 202, 240, .2);
  border-bottom: 1px solid rgba(13, 202, 240, .2);
}

.free-audit-intro {
  font-size: 1.15rem;
  color: #c8cad4;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

.free-audit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block;
  text-align: left;
  max-width: 400px;
}

.free-audit-list li {
  font-size: 1rem;
  padding: .45rem 0;
  color: #c8cad4;
}

.free-audit-highlight .btn {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

/* ─────────────────────── SECTIONS ─────────────────────── */
.section-dark   { background-color: var(--bg-dark); }
.section-darker { background-color: var(--bg-darker); }

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--info);
  margin-bottom: .6rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.01em;
}

/* ─────────────────────── PROBLEM CARDS ─────────────────────── */
.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: border-color .2s, background .2s;
}

.problem-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,.15);
}

.problem-icon {
  font-size: 1.8rem;
  margin-bottom: .85rem;
}

.problem-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

.problem-desc {
  color: var(--text-muted);
  font-size: .875rem;
  line-height: 1.65;
  margin: 0;
}

/* ─────────────────────── SOLUTION CARDS ─────────────────────── */
.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  transition: border-color .2s, box-shadow .2s;
}

.solution-card:hover {
  border-color: rgba(13, 202, 240, .35);
  box-shadow: 0 0 0 1px rgba(13, 202, 240, .15), 0 8px 32px rgba(0,0,0,.4);
}

.solution-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.solution-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .6rem;
}

.solution-desc {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.65;
  margin: 0;
}

/* ─────────────────────── EXAMPLE OUTPUT ─────────────────────── */
.example-card {
  background: var(--bg-card);
  border: 1px solid rgba(13, 202, 240, .25);
  border-radius: 1.25rem;
  padding: 2rem;
}

.example-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.example-service {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--info);
}

.example-badge {
  display: inline-block;
  padding: .3em .85em;
  border-radius: 2em;
  background: rgba(220, 53, 69, .15);
  border: 1px solid rgba(220, 53, 69, .3);
  color: #f87171;
  font-size: .8rem;
  font-weight: 600;
}

.example-body {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.example-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.example-label {
  font-size: .9rem;
  color: var(--text-muted);
}

.example-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: .95rem;
  font-weight: 600;
  color: #e8eaf0;
}

.example-value-low { color: #f87171; }

.example-divider {
  height: 1px;
  background: var(--border);
  margin: .25rem 0;
}

.example-note {
  font-size: .82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-bottom: 0;
}

/* ─────────────────────── SOCIAL PROOF ─────────────────────── */
.social-proof-section {
  background: rgba(13, 202, 240, .05);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.social-proof-text {
  font-size: 1.05rem;
  color: #c8cad4;
  margin: 0;
}

/* ─────────────────────── VIDEO PLACEHOLDER ─────────────────────── */
.video-placeholder {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder-inner { text-align: center; padding: 2rem; }

.video-play-icon {
  font-size: 4rem;
  color: var(--info);
  opacity: .5;
  display: block;
  margin-bottom: .75rem;
}

.video-placeholder-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: .25rem;
}

/* ─────────────────────── FINAL CTA ─────────────────────── */
.final-cta-section {
  background: radial-gradient(ellipse at 50% 100%, rgba(13, 202, 240, .1) 0%, transparent 65%),
              var(--bg-darker);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.final-cta-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

.final-cta-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-reassurance {
  color: var(--text-muted);
  font-size: .88rem;
  margin: 0;
}

/* ─────────────────────── AUDIT FORM ─────────────────────── */
.audit-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2.5rem;
}

.audit-form-card .form-label {
  font-size: .88rem;
  font-weight: 500;
  color: #c8cad4;
}

.audit-form-card .form-control,
.audit-form-card .form-select {
  background-color: var(--bg-darker);
  border-color: var(--border);
  color: #e8eaf0;
  border-radius: .6rem;
  transition: border-color .15s, box-shadow .15s;
}

.audit-form-card .form-control:focus,
.audit-form-card .form-select:focus {
  background-color: var(--bg-darker);
  border-color: var(--info);
  color: #e8eaf0;
  box-shadow: 0 0 0 .2rem rgba(13, 202, 240, .2);
}

.audit-form-card .form-control::placeholder { color: #555b6e; }
.audit-form-card .form-select option        { background: var(--bg-darker); }

.btn-info {
  background-color: var(--info);
  border-color: var(--info);
  color: #000;
}

.btn-info:hover {
  background-color: #31d2f2;
  border-color: #25cff2;
  color: #000;
}

.success-icon { font-size: 3rem; }

/* ─────────────────────── FOOTER ─────────────────────── */
.site-footer {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border);
}

.footer-brand {
  font-size: 1.05rem;
  color: #e8eaf0;
  text-decoration: none;
}

.footer-tagline {
  font-size: .8rem;
  color: var(--text-muted);
  margin: 0;
}

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

.footer-links a:hover { color: #e8eaf0; }

.footer-github-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .88rem;
  transition: color .15s;
}

.footer-github-link:hover { color: #e8eaf0; }

.footer-copy {
  font-size: .78rem;
  color: #555b6e;
  margin: 0;
}

/* ─────────────────────── RESPONSIVE ─────────────────────── */
@media (max-width: 576px) {
  .hero-section { padding: 80px 0 60px; }
  .audit-form-card { padding: 1.5rem; }
  .example-card { padding: 1.5rem; }
}
