/* AEGIS Identity Fabric – Landing styles */
/* Simple, clean, blue-based, not HCLTech style */

:root {
  --bg-dark: #050816;
  --bg-alt: #0b1220;
  --bg-light: #f5f7fb;
  --primary: #2563eb;
  --primary-soft: #60a5fa;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-dark: #111827;
  --border-soft: #1f2933;
  --card-bg: #0f172a;
  --card-bg-light: #ffffff;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-dark);
}

body {
  line-height: 1.6;
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 22, 0.96);
  border-bottom: 1px solid rgba(31, 41, 51, 0.85);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--primary-soft);
}

.logo-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: var(--text-main);
  border-bottom-color: var(--primary-soft);
}

/* Hero */

.hero {
  background: radial-gradient(circle at top left, #1d4ed8 0, #020617 55%, #000000 100%);
  padding: 4.5rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 3vw, 3rem);
  margin: 0 0 0.75rem;
}

.hero-subtitle {
  color: var(--text-main);
  max-width: 32rem;
  margin-bottom: 1.4rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.hero-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-ascii {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1rem 1.2rem;
  overflow-x: auto;
}

.hero-ascii pre {
  margin: 0;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  color: #e5e7eb;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.08s ease;
  cursor: pointer;
}

.btn.primary {
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary-soft);
}

.btn.primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

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

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.7);
}

/* Sections */

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 46rem;
}

/* Grid */

.grid {
  display: grid;
  gap: 1.8rem;
  margin-top: 2rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Cards */

.card {
  border-radius: 0.9rem;
  padding: 1.2rem 1.3rem;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
}

.section-alt .card {
  background: #020617;
  border-color: #111827;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card ul {
  padding-left: 1.1rem;
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Code block */

.code-block {
  background: #020617;
  padding: 0.9rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  overflow-x: auto;
}

/* Roadmap */

.roadmap {
  margin-top: 2rem;
  border-left: 2px solid rgba(148, 163, 184, 0.4);
  padding-left: 1.5rem;
}

.roadmap-item {
  position: relative;
  padding-bottom: 1.4rem;
  margin-bottom: 0.6rem;
}

.roadmap-item::before {
  content: "";
  position: absolute;
  left: -1.82rem;
  top: 0.25rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
}

.roadmap-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.roadmap-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Downloads */

.download-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1.8rem;
}

.download-list li {
  margin-bottom: 0.9rem;
  font-size: 0.92rem;
}

.download-list a {
  color: var(--primary-soft);
  text-decoration: none;
}

.download-list a:hover {
  text-decoration: underline;
}

.muted {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Contact */

.contact-card {
  background: #020617;
  border-color: #111827;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(31, 41, 51, 0.8);
  background: #020617;
  padding: 1.2rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: space-between;
}

/* Responsive */

@media (max-width: 800px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav {
    flex-wrap: wrap;
    row-gap: 0.3rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================
   Ecosystem Enhancements (ARGOS / DAEDALUS)
   Integrated patch to improve readability and anchors.
   ========================================================= */

/* Make anchor jumps land nicely with sticky header */
section[id] { scroll-margin-top: 88px; }

/* Improve lead readability slightly */
.lead { line-height: 1.55; }

/* Ensure code blocks used inside <pre class="code-block"> behave nicely */
pre.code-block {
  white-space: pre;
  overflow-x: auto;
  line-height: 1.45;
}

/* Links inside cards: subtle, consistent */
.card a {
  color: var(--primary-soft);
  text-decoration: none;
  font-weight: 600;
}
.card a:hover {
  text-decoration: underline;
}

/* Tighten lists in ARGOS/DAEDALUS sections */
#argos ul, #daedalus ul {
  margin: 0.5rem 0 0;
}
#argos li, #daedalus li {
  margin: 0.35rem 0;
}

/* Ecosystem cards align nicely */
#ecosystem .card { height: 100%; }


/* Architecture diagram */
.diagram-panel{
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:14px;

  padding:45px 40px;
  margin:50px auto;

  max-width:1100px;
  text-align:center;
}

.diagram-label{
  display:block;
  font-size:12px;
  font-weight:600;
  letter-spacing:0.08em;
  color:#2563eb;

  margin-bottom:20px;
}

.architecture-diagram{
  display:flex;
  justify-content:center;
}

.architecture-diagram img{
  width:100%;
  max-width:900px;
  height:auto;
}

.figure-caption{
  margin-top:18px;
  font-size:0.9rem;
  color:#6b7280;
}
.diagram-card{
  max-width: 1100px;
  margin: 28px auto;
  padding: 22px;
}

.diagram-card img.diagram{
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 980px;
  height: auto;
  border-radius: 12px;
}

.diagram-card .diagram-label{
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  text-align: center;
}

.diagram-card .figure-caption{
  margin-top: 14px;
  text-align: center;
  font-size: .9rem;
}
.diagram-card img.diagram{
  margin: 10px auto 20px auto;
}
.control-plane-summary{
  margin-top:20px;
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  font-size:14px;
}

.cp-arrow{
  color:#94a3b8;     /* gris claro visible en fondo oscuro */
  font-weight:700;
  font-size:18px;
  margin:0 6px;
}
.control-plane-summary{
  margin-top:24px;
  display:flex;
  justify-content:center;
  gap:34px;
  flex-wrap:wrap;
}
.cp-node{
  background:#ffffff;
  color:#1f2937 !important;   /* fuerza texto oscuro */
  border:1px solid #d1d5db;

  padding:8px 16px;
  border-radius:10px;
  font-weight:600;

  display:inline-block;
  position:relative;
}

.cp-node:not(:last-child)::after{
  content:"→";
  position:absolute;
  right:-22px;
  top:50%;
  transform:translateY(-50%);
  color:#94a3b8;
  font-size:18px;
}
.argos-diagram{
  text-align:center;
  margin:40px auto;
}

.argos-diagram img{
  max-width:700px;
  width:100%;
}