/* ============================================================
   NICOLAS CLAW — Landing Page
   Design: Dark / Cyber / Précis
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #0a0a0f;
  --bg-card:     #10101a;
  --bg-dark:     #07070e;
  --border:      rgba(255,255,255,0.07);
  --border-glow: rgba(99,102,241,0.4);

  --text:        #e8e8f0;
  --text-muted:  #6b6b85;
  --text-dim:    #3d3d55;

  --accent:      #6366f1;          /* indigo */
  --accent-glow: rgba(99,102,241,0.15);
  --accent2:     #a78bfa;          /* violet clair */
  --green:       #34d399;
  --red:         #f87171;
  --yellow:      #fbbf24;

  --font-sans:  'Space Grotesk', system-ui, sans-serif;
  --font-mono:  'Space Mono', 'Courier New', monospace;

  --radius:     8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { font-style: italic; }
strong { font-weight: 600; }
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(99,102,241,0.12);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  color: var(--accent2);
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-glow); border-radius: 3px; }

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 780px;
}

/* ══════════════════════════════════════════════════════════════
   HEADER / NAV
══════════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.logo-icon { font-size: 1.2rem; }
.logo-text { color: var(--text); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  gap: 60px;
  max-width: 1120px;
  margin: 0 auto;
}

/* Background grid */
.hero-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  animation: scanmove 8s linear infinite;
  opacity: 0.4;
}
@keyframes scanmove {
  0%   { background-position: 0 0; }
  100% { background-position: 0 100vh; }
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 28px;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 440px;
}

.hero-wallet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  margin-bottom: 36px;
  font-size: 0.82rem;
}
.wallet-label {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.wallet-addr {
  color: var(--accent2);
  font-size: 0.82rem;
}
.wallet-chain {
  background: rgba(52,211,153,0.12);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(99,102,241,0.35);
}
.btn-primary:hover {
  background: #7577f3;
  box-shadow: 0 0 30px rgba(99,102,241,0.5);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-glow);
  background: var(--accent-glow);
}

/* ── Terminal ───────────────────────────────────────────────── */
.hero-terminal {
  position: relative;
  z-index: 1;
  flex: 0 0 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(99,102,241,0.08), 0 40px 80px rgba(0,0,0,0.5);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
}
.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: #a0a0c0;
  min-height: 280px;
  max-height: 360px;
  overflow-y: auto;
}
.terminal-body .t-time  { color: var(--text-muted); }
.terminal-body .t-ok    { color: var(--green); }
.terminal-body .t-warn  { color: var(--yellow); }
.terminal-body .t-info  { color: var(--accent2); }
.terminal-body .t-cmd   { color: var(--text); }
.terminal-body .t-dim   { color: var(--text-dim); }
.cursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--accent2);
  vertical-align: middle;
  animation: cursor-blink 1s step-end infinite;
}
@keyframes cursor-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ══════════════════════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════════════════════ */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-dark);
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 48px;
}
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ══════════════════════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════════════════════ */
.section {
  padding: 96px 0;
}
.section-dark {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-title em {
  color: var(--accent2);
  font-style: normal;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   QUI EST NICOLAS
══════════════════════════════════════════════════════════════ */
.nicolas-split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}
.nicolas-text .lead {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.75;
}
.nicolas-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.75;
}

.nicolas-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 100px;
}
.card-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.identity-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.identity-row:last-child { border-bottom: none; }
.identity-key {
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 0.82rem;
}
.identity-val {
  text-align: right;
  color: var(--text);
}
.muted { color: var(--text-muted); }
.accent-text { color: var(--accent2); }
.tag-chain {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(52,211,153,0.1);
  color: var(--green);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
}

/* ══════════════════════════════════════════════════════════════
   ARCHITECTURE
══════════════════════════════════════════════════════════════ */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.arch-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}
.arch-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.arch-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.arch-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Model hierarchy */
.model-hierarchy {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.model-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.model-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.model-tier {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.tier-free  { border-color: rgba(52,211,153,0.2);  background: rgba(52,211,153,0.04); }
.tier-mid   { border-color: rgba(99,102,241,0.3);  background: rgba(99,102,241,0.05); }
.tier-heavy { border-color: rgba(251,191,36,0.25); background: rgba(251,191,36,0.04); }

.tier-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tier-free  .tier-badge { color: var(--green); }
.tier-mid   .tier-badge { color: var(--accent2); }
.tier-heavy .tier-badge { color: var(--yellow); }

.tier-model {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.tier-use {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
   REVENUS
══════════════════════════════════════════════════════════════ */
.revenue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.revenue-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, transform 0.2s;
}
.revenue-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.revenue-card.tier-1 { border-top: 2px solid var(--accent); }
.revenue-card.tier-2 { border-top: 2px solid var(--text-dim); }
.revenue-tier {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.revenue-card.tier-1 .revenue-tier { color: var(--accent); }
.revenue-icon { font-size: 1.6rem; }
.revenue-card h3 {
  font-size: 1rem;
  font-weight: 600;
}
.revenue-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.revenue-target {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.revenue-target.accent-text { color: var(--green); }

/* ══════════════════════════════════════════════════════════════
   RÈGLES DE SURVIE
══════════════════════════════════════════════════════════════ */
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.rule {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.rule:last-child { border-bottom: none; }
.rule:hover { background: rgba(99,102,241,0.04); }
.rule-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 3px;
  min-width: 28px;
}
.rule-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.rule-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════
   MANIFESTE
══════════════════════════════════════════════════════════════ */
.manifeste-section {
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.08) 0%, transparent 70%);
}
.manifeste-quote {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding: 20px 28px;
  margin: 32px 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.manifeste-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 18px;
}
.manifeste-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52,211,153,0.4); }
  50%      { opacity: 0.8; box-shadow: 0 0 0 6px rgba(52,211,153,0); }
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
  padding: 56px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .logo-text {
  font-size: 1rem;
  font-weight: 700;
  display: inline-block;
  margin-left: 6px;
}
.footer-tagline {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.footer-links {
  display: flex;
  gap: 64px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-chain strong { color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero { flex-direction: column; padding-top: 100px; }
  .hero-terminal { flex: none; width: 100%; max-width: 560px; }
  .arch-grid { grid-template-columns: repeat(2, 1fr); }
  .nicolas-split { grid-template-columns: 1fr; }
  .nicolas-card { position: static; }
  .model-tiers { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { align-items: flex-start; }
  .hero-title { font-size: 3.2rem; }
  .stats-bar { gap: 0; }
  .stat { padding: 12px 24px; }
  .stat-divider { display: none; }
  .arch-grid { grid-template-columns: 1fr 1fr; }
  .revenue-grid { grid-template-columns: 1fr; }
  .model-tiers { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-links { gap: 32px; }
  .hero-wallet { flex-wrap: wrap; }
  .rule { gap: 16px; padding: 20px 20px; }
}

@media (max-width: 480px) {
  .arch-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.6rem; }
  .section { padding: 64px 0; }
  .hero-ctas { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
