/* AminiA Build — page produit (HUD futuriste) */
:root {
  --bg: #05080f;
  --bg-2: #080e1a;
  --panel: rgba(13, 22, 38, 0.72);
  --line: rgba(103, 232, 249, 0.16);
  --line-soft: rgba(148, 163, 184, 0.12);
  --cyan: #67e8f9;
  --green: #50ffa0;
  --text: #e8f0f8;
  --muted: #8fa3b8;
  --mono: 'SFMono-Regular', 'Menlo', 'Consolas', 'Liberation Mono', monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background:
    radial-gradient(1100px 700px at 50% -15%, rgba(103, 232, 249, 0.10), transparent 62%),
    radial-gradient(800px 620px at 88% 12%, rgba(80, 255, 160, 0.07), transparent 58%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Canvas HUD */
#hud {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Lignes de balayage */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.028) 0px,
    rgba(255, 255, 255, 0.028) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: screen;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 8, 15, 0.62);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  font-size: 24px;
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(103, 232, 249, 0.7);
}

.brand-text {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-text b {
  font-weight: 700;
  color: var(--cyan);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--green); }
  50% { opacity: 0.35; box-shadow: 0 0 2px var(--green); }
}

main {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 32px) 0;
}

/* Hero */
.hero { text-align: center; padding-bottom: clamp(36px, 6vw, 64px); }

.eyebrow {
  font-family: var(--mono);
  font-size: clamp(10px, 1.4vw, 12px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}

.title {
  font-size: clamp(28px, 6.4vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.title .hl {
  background: linear-gradient(100deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(103, 232, 249, 0.35));
}

.lede {
  max-width: 620px;
  margin: 0 auto 30px;
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 300;
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.btn-main {
  color: #03131a;
  background: linear-gradient(100deg, var(--cyan), var(--green));
  box-shadow: 0 10px 30px rgba(103, 232, 249, 0.22);
}

.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(103, 232, 249, 0.34);
}

.btn-arrow { transition: transform 0.2s ease; }
.btn-main:hover .btn-arrow { transform: translateX(3px); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(13, 22, 38, 0.6);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(103, 232, 249, 0.08);
}

/* Panneau terminal */
.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: clamp(40px, 7vw, 72px);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 8, 15, 0.55);
}

.tl { width: 10px; height: 10px; border-radius: 50%; }
.tl-r { background: #ff5f57; }
.tl-y { background: #febc2e; }
.tl-g { background: #28c840; }

.panel-title {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.term {
  margin: 0;
  padding: clamp(14px, 3vw, 22px);
  font-family: var(--mono);
  font-size: clamp(11px, 1.5vw, 13.5px);
  line-height: 1.85;
  color: #cfe3f2;
  min-height: 320px;
  max-height: 460px;
  overflow-y: auto;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  scrollbar-width: thin;
}

.term .c-cmd { color: var(--cyan); }
.term .c-ok { color: var(--green); }
.term .c-dim { color: #64748b; }
.term .c-warn { color: #febc2e; }
.term .c-out { color: #b9cfe0; }

.caret {
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--cyan);
  animation: caret-blink 1s steps(1) infinite;
}

@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Grille de cartes */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(12px, 2vw, 18px);
  margin-bottom: clamp(36px, 6vw, 60px);
}

.card {
  position: relative;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(13, 22, 38, 0.72), rgba(8, 14, 26, 0.6));
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.card:hover::before { opacity: 1; }

.card-ico {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 9px;
  font-size: 16px;
  color: var(--cyan);
  background: rgba(103, 232, 249, 0.09);
  border: 1px solid var(--line);
}

.card h2 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 12px;
  margin-bottom: clamp(40px, 7vw, 72px);
}

.stat {
  text-align: center;
  padding: clamp(16px, 3vw, 22px) 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(8, 14, 26, 0.55);
}

.stat b {
  display: block;
  font-family: var(--mono);
  font-size: clamp(24px, 4.4vw, 34px);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.1;
  text-shadow: 0 0 22px rgba(103, 232, 249, 0.45);
}

.stat span {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-soft);
  padding: 26px clamp(16px, 4vw, 40px) calc(26px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.footer .muted { opacity: 0.6; margin-top: 3px; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .topbar { padding: 11px 14px; }
  .brand-text { font-size: 12.5px; letter-spacing: 0.08em; }
  .status span:last-child { display: none; }
  .title { line-height: 1.16; }
  .lede { font-size: 14px; }
  .btn { width: 100%; justify-content: center; min-height: 46px; }
  .term { min-height: 260px; max-height: 60vh; }
}

/* Mobile en paysage */
@media (max-height: 520px) and (orientation: landscape) {
  .term { min-height: 200px; max-height: 50vh; }
  main { padding-top: 24px; }
}

/* Confort tactile */
@media (hover: none) {
  .card:hover { transform: none; }
  .btn-main:hover { transform: none; }
  .btn:active { transform: scale(0.985); }
}

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status .dot,
  .caret { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
