/* ==========================================================================
   MyAutonomous — landing page (Tron aesthetic)
   Black bg, cyan/magenta neon, JetBrains Mono, thin lines, subtle grid.
   ========================================================================== */

:root {
  --bg: #02060a;
  --bg-2: #04101a;
  --fg: #d6e9f0;
  --fg-dim: #6b8090;
  --border: #0f2a3a;
  --cyan: #00e5ff;
  --cyan-soft: #00b8d4;
  --magenta: #ff2bd4;
  --magenta-soft: #c01ea0;
  --warning: #ffb300;
  --grid-line: rgba(0, 229, 255, 0.06);
  --glow-cyan: 0 0 8px rgba(0, 229, 255, 0.6), 0 0 24px rgba(0, 229, 255, 0.25);
  --glow-magenta: 0 0 8px rgba(255, 43, 212, 0.5), 0 0 24px rgba(255, 43, 212, 0.2);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  color: var(--fg);
  font-family: "JetBrains Mono", "Fira Code", "Menlo", ui-monospace, monospace;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtil halo radial cyan/magenta dans le coin haut */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% -10%, rgba(0, 229, 255, 0.12), transparent 50%),
    radial-gradient(ellipse at 10% 110%, rgba(255, 43, 212, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-shadow: var(--glow-cyan); }

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin-bottom: 1.5rem; }
h3 { font-size: 18px; margin-bottom: 0.75rem; color: var(--cyan); text-shadow: var(--glow-cyan); }
h4 { font-size: 14px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }

p { margin: 0 0 1rem 0; color: var(--fg); }
p.muted { color: var(--fg-dim); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ----- Header ----------------------------------------------------------- */
header.site {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  background: rgba(2, 6, 10, 0.7);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .container { display: flex; align-items: center; justify-content: space-between; }
header.site .brand {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}
header.site .brand .pre { color: var(--fg-dim); margin-right: 0.5rem; }
header.site nav { display: flex; gap: 24px; font-size: 13px; }
header.site nav a { color: var(--fg-dim); }
header.site nav a:hover { color: var(--fg); text-shadow: var(--glow-cyan); }

/* ----- Hero ------------------------------------------------------------- */
section.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border);
}
.hero .tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-shadow: var(--glow-cyan);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.1), var(--glow-cyan);
}
.hero h1 .accent { color: var(--cyan); text-shadow: var(--glow-cyan); }
.hero .subtitle {
  margin-top: 24px;
  font-size: 18px;
  color: var(--fg-dim);
  max-width: 680px;
}
.hero .ctas { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
  text-shadow: var(--glow-cyan);
}
.btn:hover {
  background: rgba(0, 229, 255, 0.08);
  box-shadow: var(--glow-cyan);
}
.btn.primary {
  background: var(--cyan);
  color: var(--bg);
  text-shadow: none;
  box-shadow: var(--glow-cyan);
}
.btn.primary:hover {
  background: #6df3ff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.8), 0 0 32px rgba(0, 229, 255, 0.4);
}
.btn.ghost { border-color: var(--fg-dim); color: var(--fg-dim); text-shadow: none; }
.btn.ghost:hover { color: var(--fg); border-color: var(--fg); box-shadow: none; background: rgba(255, 255, 255, 0.04); }

/* ----- Generic section -------------------------------------------------- */
section { padding: 64px 0; border-bottom: 1px solid var(--border); }
section .lead {
  font-size: 16px;
  color: var(--fg-dim);
  max-width: 720px;
  margin-bottom: 48px;
}

/* ----- Cards (problème, pourquoi) -------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  border: 1px solid var(--border);
  background: var(--bg-2);
  padding: 24px;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid transparent;
  pointer-events: none;
}
.card:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.card .icon { font-size: 22px; margin-bottom: 12px; color: var(--cyan); }
.card.magenta:hover { border-color: var(--magenta); box-shadow: var(--glow-magenta); }
.card.magenta .icon { color: var(--magenta); }
.card p { font-size: 14px; }

/* ----- Schema "comment ça marche" -------------------------------------- */
.schema-wrap { display: flex; justify-content: center; padding: 24px 0; }
.schema { max-width: 100%; height: auto; }

.schema text { font-family: inherit; font-size: 11px; fill: var(--fg); }
.schema .agent-box {
  fill: var(--bg-2);
  stroke: var(--cyan);
  stroke-width: 1;
  filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.3));
}
.schema .agent-label { fill: var(--cyan); font-size: 12px; text-anchor: middle; }
.schema .agent-desc { fill: var(--fg-dim); font-size: 9px; text-anchor: middle; }
.schema .orch-box {
  fill: var(--bg-2);
  stroke: var(--magenta);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 6px rgba(255, 43, 212, 0.4));
}
.schema .orch-label { fill: var(--magenta); font-size: 13px; text-anchor: middle; font-weight: 500; }
.schema .flow-line {
  stroke: var(--cyan);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  fill: none;
  opacity: 0.6;
  animation: flow 8s linear infinite;
}
.schema .data-line {
  stroke: var(--magenta);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  fill: none;
  opacity: 0.5;
  animation: flow 6s linear infinite reverse;
}
@keyframes flow { to { stroke-dashoffset: -100; } }

/* ----- Pricing ---------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.price-card {
  border: 1px solid var(--border);
  background: var(--bg-2);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.price-card .name { color: var(--cyan); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 12px; }
.price-card .price { font-size: 32px; color: var(--fg); margin-bottom: 24px; letter-spacing: -0.02em; }
.price-card .price small { font-size: 14px; color: var(--fg-dim); }
.price-card ul { list-style: none; padding: 0; margin: 0 0 32px 0; flex: 1; }
.price-card li { padding: 8px 0; font-size: 13px; color: var(--fg-dim); border-bottom: 1px solid var(--border); }
.price-card li::before { content: "▸ "; color: var(--cyan); }

/* ----- Bruno ------------------------------------------------------------ */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
  align-items: start;
}
.founder .quote {
  border-left: 2px solid var(--cyan);
  padding: 8px 0 8px 24px;
  font-size: 16px;
  color: var(--fg);
}
.founder .quote .signature { display: block; margin-top: 16px; color: var(--fg-dim); font-size: 13px; }
.founder .stat { padding: 16px 0; }
.founder .stat .num { font-size: 28px; color: var(--cyan); text-shadow: var(--glow-cyan); }
.founder .stat .label { font-size: 12px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.1em; }

/* ----- CTA final -------------------------------------------------------- */
.cta-final {
  text-align: center;
  padding: 96px 0;
}
.cta-final h2 { margin-bottom: 24px; }
.cta-final .ctas { justify-content: center; margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ----- Footer ----------------------------------------------------------- */
footer.site {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--fg-dim);
  background: rgba(2, 6, 10, 0.5);
}
footer.site .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }

/* ----- Responsive ------------------------------------------------------- */
@media (max-width: 768px) {
  body { background-size: 32px 32px; font-size: 14px; }
  section { padding: 48px 0; }
  .hero { padding: 56px 0 48px; }
  .founder { grid-template-columns: 1fr; }
  header.site nav { display: none; }
}

/* Scan line effect très subtle (Tron homage) */
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(100vh); } }
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.15), transparent);
  animation: scan 12s linear infinite;
  pointer-events: none;
  z-index: 2;
  opacity: 0.5;
}
