/* Aegis Core website shared styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #2457e6;
  --brand-dark: #1d46bb;
  --text: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --panel: #f8fafc;
  --bg: #ffffff;
  --ok: #0f766e;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 10px; }

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 0 1rem;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.logo {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text);
}
.logo span { color: var(--brand); }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: #111827;
  border-radius: 2px;
  position: relative;
}
.nav-toggle-label span::before { top: -7px; position: absolute; }
.nav-toggle-label span::after { top: 7px; position: absolute; }

.site-nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
.site-nav a {
  font-size: 0.95rem;
  color: #4b5563;
  font-weight: 600;
}
.site-nav a.active,
.site-nav a:hover {
  color: var(--brand);
  text-decoration: none;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-body { padding: 2rem 0 4rem; }

.hero {
  text-align: center;
  padding: 3.2rem 0 2.4rem;
}
.hero-kicker {
  display: inline-block;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 0.65rem;
}
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 0.8rem;
}
.hero h1 span { color: var(--brand); }
.hero p {
  max-width: 760px;
  margin: 0 auto 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-block;
  border-radius: 10px;
  padding: 0.72rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.cta-btn-primary {
  background: var(--brand);
  color: #fff;
}
.cta-btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.cta-btn-secondary {
  background: #fff;
  color: var(--brand);
  border-color: var(--brand);
}
.cta-btn-secondary:hover { text-decoration: none; background: #f0f5ff; }

h2.section-title {
  text-align: center;
  font-size: 1.5rem;
  margin: 1.6rem 0 1rem;
  letter-spacing: -0.2px;
}

.intro-box {
  background: #eef3ff;
  border-left: 4px solid var(--brand);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.1rem;
  margin: 1rem 0 1.5rem;
  color: #1e3a8a;
}
.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0.4rem 0 1.6rem;
}
.status-item {
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fbff;
  padding: 0.65rem 0.7rem;
}
.status-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: #1d4ed8;
  font-weight: 700;
}
.status-value {
  display: block;
  font-size: 0.9rem;
  color: #1f2937;
  font-weight: 700;
}

.features-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0 2rem;
}
.architecture-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0 2rem;
}
.arch-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 1rem;
}
.arch-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.arch-card p {
  font-size: 0.9rem;
  color: var(--muted);
}
.arch-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: #1e3a8a;
  margin-bottom: 0.35rem;
}
.feature-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 1.1rem 1rem;
}
.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--muted);
}

.step-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: #fff;
}
.step-card .num {
  min-width: 28px;
  min-height: 28px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.split {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin: 1.3rem 0 2rem;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1rem;
  background: var(--panel);
}
.panel h3 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}
.panel p, .panel li {
  color: var(--muted);
  font-size: 0.93rem;
}
.panel ul {
  margin-left: 1.2rem;
}

.pricing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0 2rem;
}
.pricing-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pricing-switch {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
}
.switch-btn {
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #1e3a8a;
  border-radius: 999px;
  padding: 0.38rem 0.82rem;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}
.switch-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.switch-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-left: 0.35rem;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 1rem;
}
.price-card h3 {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #eef2ff;
}
.price-card h3 { margin-bottom: 0.2rem; }
.price-card .price {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.price-card .period {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4b5563;
}
.billing-compare {
  font-size: 0.82rem;
  color: #6b7280;
  min-height: 1.35rem;
  margin-bottom: 0.45rem;
}
.billing-compare .cross {
  text-decoration: line-through;
  color: #9ca3af;
}
.billing-compare .save {
  color: #1d4ed8;
  font-weight: 700;
}
.price-card ul { margin-left: 1.2rem; }
.price-card li { color: var(--muted); font-size: 0.92rem; }
.price-highlight {
  border-color: #c7d2fe;
  box-shadow: 0 8px 18px rgba(36, 87, 230, 0.08);
}

.code-wrap {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  overflow: hidden;
  margin: 1rem 0 1.4rem;
  background: #111827;
}
.code-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1f2937;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0.7rem;
}
.code-label {
  color: #d1d5db;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.copy-btn {
  border: 1px solid #4b5563;
  border-radius: 8px;
  background: #374151;
  color: #f9fafb;
  padding: 0.24rem 0.55rem;
  font-size: 0.77rem;
  font-weight: 700;
  cursor: pointer;
}
.copy-btn:hover { background: #4b5563; }
pre {
  margin: 0;
  overflow-x: auto;
  padding: 0.9rem;
}
code {
  color: #e5e7eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.55;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
  background: #fff;
}
.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.faq-item p {
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 0 1rem;
  background: #fbfcff;
}
.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.8rem 0 2.2rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.footer-links a {
  color: #4b5563;
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--brand); }
.footer-copy {
  color: #6b7280;
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .architecture-grid { grid-template-columns: 1fr 1fr; }
  .status-strip { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-toggle-label { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.9rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    z-index: 20;
  }
  .header-inner { position: relative; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .hero { padding-top: 2.2rem; }
  .hero h1 { font-size: 1.9rem; }
  .split { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .architecture-grid { grid-template-columns: 1fr; }
  .status-strip { grid-template-columns: 1fr; }
  .pricing-grid-4 { grid-template-columns: 1fr; }
}

