/* AIME Intelligence — Operator-Grade Stylesheet */

/* ========== RESET & VARIABLES ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #050505;
  --bg-elevated: #0d1117;
  --bg-card: #111821;
  --text: #c9d1d9;
  --text-muted: #8b949e;
  --text-dim: #6e7681;
  --accent: #00FF41;
  --accent-hover: #00cc34;
  --accent-subtle: rgba(0, 255, 65, 0.08);
  --accent-glow: rgba(0, 255, 65, 0.15);
  --border: #1a1f2a;
  --border-light: #2a3040;
  --red: #ff4444;
  --amber: #ffaa00;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1140px;
  --max-width-narrow: 760px;
}

/* ========== BASE ========== */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

a:hover {
  color: var(--accent-hover);
}

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

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.mono {
  font-family: var(--font-mono);
}

.text-dim {
  color: var(--text-dim);
}

.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.label-dim {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ========== LAYOUT ========== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

section + section {
  border-top: 1px solid var(--border);
}

/* ========== NAVIGATION ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-logo:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 0.5rem 1.25rem;
  background: transparent;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: #000 !important;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-cta {
    display: inline-block;
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* ========== HERO ========== */
.hero {
  padding: 10rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.hero .label {
  margin-bottom: 1.5rem;
  display: block;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-mono);
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #000;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========== CARDS ========== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2rem;
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: var(--accent);
}

.card-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.card h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9375rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  margin-top: 1rem;
}

.card-link:hover {
  color: var(--accent-hover);
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ========== STATS ========== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}

.stat-box {
  padding: 1.5rem;
  border-left: 2px solid var(--accent);
  background: var(--bg-elevated);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ========== SERVICE TIERS ========== */
.tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2.5rem;
  transition: border-color 0.2s ease;
}

.tier:hover {
  border-color: var(--accent);
}

.tier-price {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.tier-timeline {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.tier h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.tier ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.tier ul li {
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.tier ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

/* ========== CASE STUDY PAGES ========== */
.case-hero {
  padding: 8rem 0 3rem;
}

.case-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.case-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.case-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.case-meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.case-section {
  padding: 3rem 0;
}

.case-section h2 {
  font-size: 1.375rem;
  margin-bottom: 1rem;
  color: #fff;
}

.case-section + .case-section {
  border-top: 1px solid var(--border);
}

/* Case study image header */
.case-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 2rem;
}

/* ========== STEPS / PROCESS ========== */
.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 3.5rem;
  padding-bottom: 2.5rem;
  border-left: 1px solid var(--border);
  margin-left: 1rem;
}

.step:last-child {
  padding-bottom: 0;
  border-left: none;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -1rem;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9375rem;
}

/* ========== URGENCY / AVAILABILITY ========== */
.availability-banner {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.availability-banner .banner-text {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text);
}

.availability-banner .banner-text strong {
  color: var(--accent);
}

.availability-banner .banner-countdown {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.countdown-timer {
  display: inline-flex;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
}

.countdown-unit {
  text-align: center;
}

.countdown-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.countdown-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ========== FORMS ========== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.375rem;
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-subtle);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236e7681' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-select option {
  background: var(--bg-elevated);
  color: var(--text);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-success {
  display: none;
  padding: 2rem;
  background: var(--accent-subtle);
  border: 1px solid var(--accent);
  border-radius: 2px;
  text-align: center;
}

.form-success h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ========== FOOTER ========== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  font-size: 0.875rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.footer-brand strong {
  color: var(--accent);
  display: block;
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-links a {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.8125rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========== TRUST BAR ========== */
.trust-bar {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

/* ========== GUARANTEE ========== */
.guarantee {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  padding: 2.5rem;
  margin: 3rem 0;
}

.guarantee h3 {
  margin-bottom: 0.75rem;
}

/* ========== CODE BLOCK / TERMINAL ========== */
.code-block {
  background: #000;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.7;
}

.code-block .prompt {
  color: var(--text-dim);
  user-select: none;
}

.code-block .comment {
  color: var(--text-dim);
}

/* ========== SECTION HEADER ========== */
.section-header {
  margin-bottom: 3rem;
}

.section-header .label {
  margin-bottom: 0.75rem;
  display: block;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  max-width: 600px;
  font-size: 1.0625rem;
}

/* ========== BACK LINK ========== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.back-link:hover {
  color: var(--accent);
}

/* ========== TABLE ========== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.data-table tr:hover td {
  background: var(--bg-elevated);
}

/* ========== CALLOUT ========== */
.callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.callout-amber {
  border-left-color: var(--amber);
}

.callout-red {
  border-left-color: var(--red);
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ========== DIVIDER ========== */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ========== BADGE ========== */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 2px;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.badge-dim {
  border-color: var(--border-light);
  color: var(--text-dim);
}

/* ========== CAPABILITY BRIEF (PRINT) ========== */
.brief-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

@media print {
  body {
    background: #fff;
    color: #111;
    font-size: 11pt;
  }

  .site-header, .site-footer, .nav-toggle, .btn-group, .availability-banner {
    display: none !important;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  h1, h2, h3, h4 { color: #111; }
  p { color: #333; }
  a { color: #111; text-decoration: underline; }

  .card, .tier, .stat-box, .guarantee, .callout {
    border: 1px solid #ccc;
    background: #f9f9f9;
    break-inside: avoid;
  }

  .stat-value { color: #111; }
  .card-label, .case-label, .stat-label, .label { color: #555; }

  .brief-page {
    padding: 0;
    max-width: 100%;
  }

  .brief-page .brief-header {
    border-bottom: 2px solid #111;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
  }

  .brief-page h1 {
    font-size: 18pt;
  }

  .brief-page h2 {
    font-size: 13pt;
    margin-top: 1.5rem;
  }
}

/* ========== UTILITIES ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }
