/* ============================================
   SoloLLM — Design System
   Matches stephenthorn.com aesthetic
   Dark-mode · Techy · Clean · App teal
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* --- Custom Properties --- */
:root {
  --color-bg: #060a12;
  --color-bg-surface: #080d16;
  --color-bg-surface-hover: #0d1829;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;
  --color-accent: #00e5c8;
  --color-accent-hover: #1fffd8;
  --color-accent-glow: rgba(0, 229, 200, 0.15);
  --color-border: #1e293b;
  --color-border-accent: rgba(0, 229, 200, 0.2);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', 'Fira Code', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  --leading-tight: 1.2;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --max-width: 1200px;
  --header-height: 4rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-height); }

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-accent-hover); }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--color-accent); color: var(--color-bg); }

h1, h2, h3, h4, h5, h6 {
  line-height: var(--leading-tight);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

@media (min-width: 768px) {
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
  h3 { font-size: var(--text-3xl); }
}

p { color: var(--color-text-muted); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

.section {
  padding-block: var(--space-16);
}
.section--lg {
  padding-block: var(--space-20);
}
@media (min-width: 768px) {
  .section { padding-block: var(--space-20); }
  .section--lg { padding-block: var(--space-24); }
}

.section--surface {
  background: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* --- Section Labels (mono, green, glowing) --- */
.section-label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--space-3);
  text-shadow: 0 0 8px rgba(0, 229, 200, 0.5);
}

.section-title { margin-bottom: var(--space-4); }
.section-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 50ch;
  margin-bottom: var(--space-8);
}

.glow-text { text-shadow: 0 0 12px rgba(0, 229, 200, 0.6); }

/* --- Grid --- */
.grid-2 { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }

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

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-accent);
  font-weight: 700;
  font-size: var(--text-base);
  letter-spacing: -0.02em;
  text-shadow: 0 0 12px rgba(0, 229, 200, 0.4);
}
.brand:hover { color: var(--color-accent-hover); }

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 229, 200, 0.2);
  display: inline-flex;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav-links a {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a.active {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: calc(var(--space-2) - 2px);
}

.nav-actions { display: flex; align-items: center; gap: var(--space-3); }

.mobile-nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  font-size: var(--text-lg);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
  font-weight: 800;
  box-shadow: 0 0 20px rgba(0, 229, 200, 0.45), 0 0 60px rgba(0, 229, 200, 0.1);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-bg);
  box-shadow: 0 0 28px rgba(0, 229, 200, 0.6), 0 0 80px rgba(0, 229, 200, 0.15);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border-accent);
  color: var(--color-accent);
  text-shadow: 0 0 8px rgba(0, 229, 200, 0.3);
}
.btn-outline:hover {
  border-color: rgba(0, 229, 200, 0.6);
  color: var(--color-accent);
}
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* --- Tags / Badges --- */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-accent-glow);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-accent);
}

.badge-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* --- Status Badge (pulsing green dot) --- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(0, 229, 200, 0.06);
  border: 1px solid rgba(0, 229, 200, 0.15);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 6px rgba(0, 229, 200, 0.8);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(0, 229, 200, 0.8); }
  50% { opacity: 0.6; box-shadow: 0 0 12px rgba(0, 229, 200, 0.4); }
}
.status-text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 90svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: var(--space-16);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.hero-title {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: var(--leading-tight);
}
.hero-title-accent {
  color: var(--color-accent);
  text-shadow: 0 0 12px rgba(0, 229, 200, 0.6);
}
.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}
.hero-urgency {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-accent);
  opacity: 0.85;
  letter-spacing: 0.01em;
}
.hero-ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* Hero screenshot */
.hero-phone {
  width: min(100%, 340px);
  justify-self: end;
}
.hero-phone img {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 229, 200, 0.15);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 229, 200, 0.08);
}

/* --- Terminal Block --- */
.terminal {
  background: rgba(6, 10, 18, 0.9);
  border: 1px solid rgba(0, 229, 200, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.terminal-bar {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(0, 229, 200, 0.08);
  padding: var(--space-3) var(--space-4);
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot--red { background: #ff5f57; }
.terminal-dot--yellow { background: #febc2e; }
.terminal-dot--green { background: #00b8a0; }
.terminal-body {
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.terminal-body p { margin: 0; color: var(--color-text); }
.t-prompt { color: rgba(0, 229, 200, 0.45); margin-right: var(--space-2); }
.t-cmd { color: var(--color-text-muted); }
.t-row { display: flex; gap: var(--space-3); align-items: baseline; }
.t-key { min-width: 80px; font-weight: 600; flex-shrink: 0; }
.t-key--models { color: #60a5fa; }
.t-key--tools { color: #f59e0b; }
.t-key--privacy { color: #a78bfa; }
.t-key--price { color: var(--color-accent); }
.t-val { color: var(--color-text); word-break: break-word; }
.t-available { color: var(--color-accent); text-shadow: 0 0 8px rgba(0, 229, 200, 0.5); }
.t-cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* --- Cards --- */
.card {
  padding: var(--space-6);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}
.card:hover {
  border-color: var(--color-border-accent);
  box-shadow: 0 0 20px rgba(0, 229, 200, 0.06);
}
.card-icon {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-glow);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-md);
}
.card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}
.card-link {
  display: inline-block;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
}

/* --- Quote Cards (testimonials) --- */
.quote-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.quote-card__quote {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  margin: 0 0 var(--space-4);
  font-style: italic;
}
.quote-card__author {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  margin: 0;
}

/* --- FAQ --- */
.faq { display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-base);
}
.faq-item[open] { border-color: var(--color-border-accent); }
.faq-item summary {
  padding: var(--space-5) var(--space-6);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--color-accent);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 65ch;
}

/* --- Screenshot gallery --- */
.screenshot-gallery img {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 229, 200, 0.12);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* --- Table --- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
}
table { width: 100%; border-collapse: collapse; min-width: 36rem; }
th, td { padding: var(--space-4) var(--space-5); text-align: left; border-bottom: 1px solid var(--color-border); }
th { color: var(--color-text); font-size: var(--text-sm); font-weight: 600; }
td { color: var(--color-text-muted); font-size: var(--text-sm); }
.table-yes { color: var(--color-accent); font-weight: 600; }
.table-no { color: #ff6b6b; }
.table-maybe { color: #fbbf24; }

/* --- CTA Section --- */
.cta-section {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-surface);
  padding-block: var(--space-16);
}
@media (min-width: 768px) { .cta-section { padding-block: var(--space-20); } }
.cta-inner { display: flex; flex-direction: column; align-items: flex-start; }
.cta-inner h2 { margin-bottom: var(--space-4); }
.cta-inner p { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 50ch; margin-bottom: var(--space-8); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.cta-trust { font-size: var(--text-sm); color: var(--color-text-dim); margin-top: var(--space-4); }

/* --- Footer --- */
.site-footer {
  background: var(--color-bg);
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}
@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    gap: var(--space-12);
    align-items: center;
  }
}
.footer-brand a {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--color-accent);
  text-shadow: 0 0 12px rgba(0, 229, 200, 0.4);
  letter-spacing: 0.05em;
}
.footer-brand a:hover { color: var(--color-accent-hover); }
.footer-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-5);
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.footer-nav::-webkit-scrollbar { display: none; }
.footer-nav a {
  color: var(--color-text-dim);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.footer-nav a:hover { color: var(--color-text-muted); }
.footer-status { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
@media (min-width: 768px) { .footer-status { align-items: flex-end; } }
.footer-copy {
  color: var(--color-text-dim);
  font-size: var(--text-xs);
  margin: 0;
}

/* --- Page Shell --- */
.page-shell { padding-top: var(--space-4); }
.page-hero {
  padding-block: var(--space-12);
}
@media (min-width: 768px) {
  .page-hero { padding-block: var(--space-16); }
}

/* --- Responsive Mobile --- */
@media (max-width: 820px) {
  .mobile-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(6, 10, 18, 0.95);
    backdrop-filter: blur(20px);
    padding: var(--space-4) var(--space-6);
    flex-direction: column;
    gap: var(--space-1);
  }
  .nav-links.is-open { display: flex; }
  .nav-actions .btn-outline { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-phone { justify-self: start; max-width: 280px; }
  .hero { min-height: auto; padding-block: var(--space-12); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- Focus --- */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
