/* AIETF Site Styles — builds on design-system.css */

/* ── Navigation ── */
.nav {
  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(--ds-border);
}

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

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: var(--ds-space-lg);
}

.nav-logo {
  font-family: var(--ds-font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--ds-text);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-logo span { color: var(--ds-accent-primary); }

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

.nav-links a {
  font-size: var(--ds-text-sm);
  font-weight: 500;
  color: var(--ds-text-secondary);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--ds-text); }

.nav-cta {
  font-size: var(--ds-text-xs);
  font-weight: 600;
  background: var(--ds-accent-primary);
  color: #000;
  padding: 7px 16px;
  border-radius: var(--ds-radius);
  transition: background 0.15s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.nav-cta:hover { background: var(--ds-accent-primary-light); color: #000; }

/* Mobile nav */
.nav-toggle-input { display: none; }
.nav-hamburger { display: none; cursor: pointer; }
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ds-text-secondary);
  margin: 4px 0;
  transition: 0.2s;
}

/* ── Hero ── */
.hero {
  padding: var(--ds-space-section) 0 var(--ds-space-2xl);
  text-align: center;
}

.hero-problem {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-sm);
  color: var(--ds-text-secondary);
  margin-bottom: var(--ds-space-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto var(--ds-space-md);
}

.hero h1 span { color: var(--ds-accent-primary); }

.hero-sub {
  font-size: var(--ds-text-lg);
  color: var(--ds-text-secondary);
  max-width: 640px;
  margin: 0 auto var(--ds-space-lg);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: var(--ds-space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--ds-space-xl);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ds-font-body);
  font-size: var(--ds-text-sm);
  font-weight: 700;
  color: #000;
  background: var(--ds-accent-primary);
  padding: 12px 24px;
  border-radius: var(--ds-radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

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

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ds-font-body);
  font-size: var(--ds-text-sm);
  font-weight: 500;
  color: var(--ds-text-secondary);
  background: transparent;
  padding: 12px 24px;
  border-radius: var(--ds-radius);
  border: 1px solid var(--ds-border);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost:hover { border-color: var(--ds-text-secondary); color: var(--ds-text); }

.hero-stat-row {
  display: flex;
  gap: var(--ds-space-xl);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }

.hero-stat-num {
  display: block;
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-2xl);
  font-weight: 700;
  color: var(--ds-accent-primary);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: var(--ds-text-sm);
  color: var(--ds-text-secondary);
}

/* ── Sections ── */
.section {
  padding: var(--ds-space-section) 0;
}

.section-label {
  font-family: var(--ds-font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-accent-primary);
  margin-bottom: var(--ds-space-xs);
}

.section-title {
  font-size: var(--ds-text-2xl);
  margin-bottom: var(--ds-space-xs);
}

.section-desc {
  font-size: var(--ds-text-lg);
  color: var(--ds-text-secondary);
  max-width: 700px;
  margin-bottom: var(--ds-space-xl);
}

/* ── Convention Blocks ── */
.convention-list {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-md);
}

.convention-block {
  display: block;
  text-decoration: none;
  padding: var(--ds-space-md) 0;
  border-bottom: 1px solid var(--ds-border);
  transition: border-color 0.15s;
}

.convention-block:last-child { border-bottom: none; }

.convention-block:hover { border-color: var(--ds-accent-primary); }

.convention-heading {
  font-size: var(--ds-text-lg);
  font-weight: 600;
  color: var(--ds-text);
  margin: 0 0 4px;
}

.convention-name {
  display: block;
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-xs);
  color: var(--ds-accent-secondary);
  margin-bottom: var(--ds-space-xs);
}

.convention-version {
  color: var(--ds-text-muted);
}

.convention-desc {
  font-size: var(--ds-text-sm);
  color: var(--ds-text-secondary);
  line-height: 1.6;
  margin: 0;
  max-width: 700px;
}

/* ── Dependency Graph ── */
.dep-graph {
  background: var(--ds-code-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  padding: var(--ds-space-md) var(--ds-space-lg);
  font-family: var(--ds-font-mono);
  font-size: 13px;
  line-height: 1.8;
  overflow-x: auto;
  white-space: pre;
  color: var(--ds-text-secondary);
  margin-top: var(--ds-space-lg);
}

.dep-graph .root { color: var(--ds-accent-primary); font-weight: 600; }
.dep-graph .node { color: var(--ds-accent-secondary-light); }
.dep-graph .branch { color: var(--ds-text-muted); }

/* ── Quick Start ── */
.quickstart-block {
  background: var(--ds-code-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  padding: 24px;
  font-family: var(--ds-font-mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  max-width: var(--ds-doc-width);
  white-space: pre;
}

.quickstart-block .comment { color: #4a4a4a; }
.quickstart-block .cmd { color: var(--ds-accent-secondary-light); }
.quickstart-block .prompt { color: var(--ds-accent-primary); user-select: none; }
.quickstart-block .output { color: var(--ds-text-secondary); }

/* ── Personas ── */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--ds-space-md);
}

.persona-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  padding: var(--ds-space-md);
  text-decoration: none;
  display: block;
  transition: border-color 0.15s, transform 0.15s;
}

.persona-card:hover {
  border-color: var(--ds-accent-primary);
  transform: translateY(-2px);
}

.persona-card-role {
  font-size: var(--ds-text-base);
  font-weight: 600;
  color: var(--ds-text);
  margin-bottom: var(--ds-space-xs);
}

.persona-card-desc {
  font-size: var(--ds-text-sm);
  color: var(--ds-text-secondary);
  line-height: 1.5;
  margin-bottom: var(--ds-space-sm);
}

.persona-card-knows {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-xs);
  color: var(--ds-text-muted);
}

/* ── Tool Integration ── */
.tool-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--ds-border);
  margin-bottom: var(--ds-space-md);
}

.tool-tab {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-sm);
  font-weight: 500;
  color: var(--ds-text-muted);
  background: none;
  border: none;
  padding: var(--ds-space-sm) var(--ds-space-md);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.tool-tab:hover { color: var(--ds-text-secondary); }
.tool-tab.active {
  color: var(--ds-accent-primary);
  border-bottom-color: var(--ds-accent-primary);
}

.tool-panel { display: none; }
.tool-panel.active { display: block; }

.tool-code {
  background: var(--ds-code-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  padding: 20px;
  font-family: var(--ds-font-mono);
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
  color: #ccc;
}

.tool-code .comment { color: #4a4a4a; }
.tool-code .cmd { color: var(--ds-accent-secondary-light); }
.tool-code .file { color: var(--ds-accent-primary); }

.tool-desc {
  font-size: var(--ds-text-sm);
  color: var(--ds-text-secondary);
  margin-bottom: var(--ds-space-sm);
  line-height: 1.6;
}

/* ── How It Works ── */
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--ds-space-md);
  counter-reset: step;
}

.how-step {
  counter-increment: step;
  position: relative;
  padding: var(--ds-space-md);
  padding-top: var(--ds-space-xl);
}

.how-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-2xl);
  font-weight: 700;
  color: var(--ds-accent-primary);
  opacity: 0.3;
  position: absolute;
  top: 0;
  left: var(--ds-space-md);
}

.how-step-title {
  font-size: var(--ds-text-base);
  font-weight: 600;
  color: var(--ds-text);
  margin-bottom: var(--ds-space-xs);
}

.how-step-desc {
  font-size: var(--ds-text-sm);
  color: var(--ds-text-secondary);
  line-height: 1.6;
}

/* ── Callout ── */
.callout {
  border-left: 4px solid var(--ds-accent-secondary);
  background: var(--ds-surface);
  border-radius: 0 var(--ds-radius) var(--ds-radius) 0;
  padding: var(--ds-space-md);
  font-size: var(--ds-text-sm);
  color: var(--ds-text-secondary);
  line-height: 1.6;
  margin: var(--ds-space-lg) 0;
}

.callout-label {
  display: block;
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-accent-secondary);
  margin-bottom: 6px;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--ds-border);
  padding: 36px 0;
  margin-top: var(--ds-space-section);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--ds-space-sm);
}

.footer-brand {
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-sm);
  color: var(--ds-text-secondary);
}

.footer-brand span { color: var(--ds-accent-primary); }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--ds-text-secondary);
  transition: color 0.15s;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }

  .nav-toggle-input:checked ~ .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    padding: var(--ds-space-sm) var(--ds-gutter);
    border-bottom: 1px solid var(--ds-border);
  }

  .hero { padding: var(--ds-space-xl) 0 var(--ds-space-lg); }
  .section { padding: var(--ds-space-xl) 0; }
  .section-title { font-size: var(--ds-text-xl); }
  .convention-heading { font-size: var(--ds-text-base); }
  .hero-stat-row { gap: var(--ds-space-lg); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: var(--ds-text-base); }
  .persona-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
}
