/* ===== LPDHub — Professional Landing Page ===== */

:root {
  --bg-deep: #070b14;
  --bg-dark: #0c1222;
  --bg-card: #111827;
  --bg-card-hover: #162033;
  --text-main: #f1f5f9;
  --text-muted: #8896ab;
  --text-dim: #4b5c73;
  --accent: #38bdf8;
  --accent-light: #7dd3fc;
  --accent-dim: rgba(56, 189, 248, 0.12);
  --purple: #818cf8;
  --gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --gradient-subtle: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.15) 0%,
    rgba(129, 140, 248, 0.08) 100%
  );
  --border: rgba(148, 163, 184, 0.08);
  --border-hover: rgba(56, 189, 248, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 60px rgba(56, 189, 248, 0.08);
  --container: 1120px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}
code {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-light);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: "Menlo", "Consolas", monospace;
}

/* ===== Beta Banner ===== */
.beta-banner {
  background: linear-gradient(
    90deg,
    rgba(56, 189, 248, 0.08),
    rgba(129, 140, 248, 0.08),
    rgba(56, 189, 248, 0.08)
  );
  color: var(--text-muted);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.01em;
}

.beta-badge {
  display: inline-block;
  background: var(--gradient);
  color: #000;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-right: 0.4rem;
  vertical-align: 1px;
}

/* ===== Header ===== */
header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-main);
  line-height: 1.1;
}
.logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-tagline {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  font-weight: 600;
}

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

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover {
  color: var(--text-main);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #000;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, 0.15);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.25);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius);
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  margin-bottom: 1.5rem;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

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

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}
.section-header p {
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ===== Hero ===== */
#hero {
  position: relative;
  padding: 7rem 0 5rem;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(56, 189, 248, 0.08) 0%,
    rgba(129, 140, 248, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent-light);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
}

.subtitle {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}
.stat {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.stat strong {
  color: var(--text-main);
  font-weight: 800;
}
.stat-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-dim);
}

/* ===== What It Does (Capability Row) ===== */
#what-it-does {
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--border);
}

.capability-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 3rem;
}

.capability {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.capability:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.cap-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  flex-shrink: 0;
}
.cap-icon svg {
  width: 18px;
  height: 18px;
}

.capability span {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

/* ===== Features Grid ===== */
#features {
  padding: 6rem 0;
  background: var(--bg-dark);
}

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

.feature-card {
  background: var(--bg-card);
  padding: 2rem 2rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrap {
  margin-bottom: 1.25rem;
}
.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--gradient-subtle);
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.feature-card p {
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ===== How It Works ===== */
#how-it-works {
  padding: 6rem 0;
}

.steps-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 52px;
  height: 52px;
  background: var(--gradient);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-weight: 800;
  font-size: 1.2rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.2);
}

.step-line {
  position: absolute;
  top: 26px;
  left: calc(50% + 30px);
  width: calc(100% - 60px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  opacity: 0.3;
  z-index: 1;
  right: calc(-50% + 30px);
  left: auto;
  width: calc(100%);
  left: 60%;
}

.step h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.step p {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 220px;
  margin: 0 auto;
}

/* ===== Learning System ===== */
#learning {
  padding: 6rem 0;
  background: var(--bg-dark);
}

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

.learning-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
}
.learning-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: var(--radius) var(--radius) 0 0;
}
.learning-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.learning-card:hover::before {
  opacity: 1;
}

.learning-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--gradient-subtle);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.learning-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.learning-card p {
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Learning Flow */
.learning-flow {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
}

.flow-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  text-align: center;
}

.flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.flow-arrow {
  color: var(--text-dim);
  font-size: 1.1rem;
  font-weight: 700;
}

/* ===== Local AI Explainer ===== */
#local-ai {
  padding: 6rem 0;
  background: var(--bg-dark);
}

.local-ai-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.local-ai-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

.local-ai-text h2 {
  text-align: left;
  margin-bottom: 1rem;
}
.local-ai-text > p {
  font-size: 1rem;
  max-width: 600px;
  line-height: 1.7;
}

.local-ai-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.local-ai-option {
  background: rgba(56, 189, 248, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}
.local-ai-option strong {
  display: block;
  font-size: 1.05rem;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}
.local-ai-option p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.local-ai-tip {
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0 1.5rem;
}
.local-ai-tip strong {
  display: block;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.local-ai-tip p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}
.local-ai-tip em {
  color: var(--accent-light);
  font-style: normal;
  font-weight: 600;
}

.tag {
  display: inline-block;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-light);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: 1px;
}

.local-ai-note {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ===== System Requirements Table ===== */
.sys-req-table {
  background: rgba(56, 189, 248, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  overflow-x: auto;
}

.sys-req-table table {
  min-width: 600px;
}

.sys-req-table tr:hover td {
  background: rgba(56, 189, 248, 0.04);
}

/* ===== FAQ ===== */
#faq {
  padding: 6rem 0;
}

.faq-accordion {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-main);
  padding: 1.25rem 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition);
  font-family: inherit;
}
.faq-trigger:hover {
  color: var(--accent-light);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-dim);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}
.faq-content p {
  padding-bottom: 1.25rem;
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ===== Download Section ===== */
#download {
  padding: 4rem 0 6rem;
}

.download-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4.5rem 2.5rem;
  text-align: center;
}
.download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

/* ===== Beta signup form ===== */
.beta-signup {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem auto 0;
  max-width: 460px;
}

.beta-email {
  flex: 1;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

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

.beta-email:focus {
  border-color: var(--accent);
}

.beta-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  transition: color 0.3s;
}

.download-card h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  margin-bottom: 1rem;
}

.download-sub {
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.version-note {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ===== Footer ===== */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-brand .logo {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}
.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 1.75rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ===== Footer Social ===== */
.footer-social {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.social-link:hover {
  color: var(--accent);
}
.social-link svg {
  flex-shrink: 0;
}

/* ===== Supported Languages ===== */
#languages {
  padding: 5rem 0;
}

.languages-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 3rem;
}

.lang-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 120px;
  transition: all var(--transition);
}
.lang-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.lang-logo {
  flex-shrink: 0;
}

.lang-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-main);
  text-align: center;
}

.languages-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ===== LM Studio Download Link ===== */
.lm-studio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-light);
  transition: all var(--transition);
}
.lm-studio-link:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.lm-studio-logo {
  flex-shrink: 0;
}

/* ===== MCP icon override ===== */
.feature-icon--mcp {
  background: transparent;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .learning-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .step-line {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(7, 11, 20, 0.97);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-cta {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }

  #hero {
    padding: 4.5rem 0 3.5rem;
  }
  .hero-pill {
    font-size: 0.75rem;
  }
  .subtitle {
    font-size: 1rem;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .capability-row {
    gap: 0.75rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-flow {
    grid-template-columns: 1fr 1fr;
  }
  .step-line {
    display: none;
  }

  .learning-grid {
    grid-template-columns: 1fr;
  }
  .flow-steps {
    flex-direction: column;
    gap: 0.5rem;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
  .learning-flow {
    padding: 1.5rem;
  }

  .local-ai-options {
    grid-template-columns: 1fr;
  }
  .local-ai-card {
    padding: 2rem 1.5rem;
  }
  .sys-req-table {
    padding: 1rem;
  }
  .sys-req-table table {
    font-size: 0.82rem;
  }

  .lang-card {
    min-width: 100px;
    padding: 1rem 1.25rem;
  }

  .footer-social {
    flex-direction: column;
    gap: 0.75rem;
  }

  .download-card {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .steps-flow {
    grid-template-columns: 1fr;
  }
  .capability {
    padding: 0.5rem 0.8rem;
    font-size: 0.82rem;
  }
  .feature-card {
    padding: 1.5rem;
  }
  .lang-card {
    min-width: 90px;
    padding: 0.75rem 1rem;
  }
  .lang-logo {
    width: 36px;
    height: 36px;
  }
}
/* ===== Hero App Preview ===== */
.hero-preview {
  margin-top: 3rem;
  perspective: 900px;
}

.app-frame {
  border-radius: 12px;
  overflow: hidden;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 720px;
  margin: 0 auto;
}

.app-titlebar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  background: #161b22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.app-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f57;
}
.dot-yellow {
  background: #febc2e;
}
.dot-green {
  background: #28c840;
}

.app-title {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
}

.app-body {
  display: flex;
  min-height: 260px;
}

.app-sidebar {
  width: 110px;
  background: #0d1117;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.75rem 0;
  flex-shrink: 0;
}

.app-sidebar-item {
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  cursor: default;
}

.app-sidebar-item.active {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
  border-left: 2px solid var(--accent);
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  gap: 0.5rem;
}

.app-tabs {
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.5rem;
}

.app-tab {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  color: var(--text-dim);
  cursor: default;
}

.app-tab.active {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
}

.app-chat {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.chat-bubble {
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.5;
  max-width: 90%;
}

.chat-bubble.user {
  background: rgba(56, 189, 248, 0.1);
  color: var(--text-main);
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.chat-bubble.ai {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-sub);
  border-bottom-left-radius: 3px;
}

.chat-bubble .ai-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.chat-bubble code {
  background: rgba(56, 189, 248, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.app-diff {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.72rem;
}

.diff-header {
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  font-size: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.diff-line {
  padding: 0.15rem 0.75rem;
  line-height: 1.6;
}

.diff-remove {
  background: rgba(248, 81, 73, 0.1);
  color: #f85149;
}

.diff-add {
  background: rgba(63, 185, 80, 0.1);
  color: #3fb950;
}

.app-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.btn-approve,
.btn-reject {
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: default;
}

.btn-approve {
  background: rgba(63, 185, 80, 0.15);
  color: #3fb950;
}

.btn-reject {
  background: rgba(248, 81, 73, 0.1);
  color: #f85149;
}

/* ===== Responsive: hero preview + beta signup ===== */
@media (max-width: 768px) {
  .app-sidebar {
    display: none;
  }
  .app-frame {
    max-width: 100%;
  }
  .beta-signup {
    flex-direction: column;
  }
  .beta-signup .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .app-body {
    min-height: 200px;
  }
  .chat-bubble {
    max-width: 100%;
  }
}
