/* OakflowAI - Agent Vocal IA - styles (charte v1.0) */

:root {
  --bg:      #0a0f0d;
  --bg2:     #0f1613;
  --bg3:     #141f1a;
  --card:    #121a17;
  --border:  rgba(0,229,176,0.14);
  --soft:    rgba(255,255,255,0.06);
  --text:    #e6f4ef;
  --dim:     rgba(230,244,239,0.6);
  --faint:   rgba(230,244,239,0.32);
  --accent:  #00e5b0;
  --accent2: #00c49a;
  --purple:  #7c3aff;
  --glow1:   rgba(110,60,220,0.18);
  --warn:    #ffb454;
  --danger:  #ff5a5a;

  --maxw: 1280px;
  --pad: 48px;
  --radius: 2px;
  --font: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle grid background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section { padding: 100px 0; }

/* Typography */
h1, h2, h3 { margin: 0 0 16px; font-weight: 500; }
h1 { font-size: clamp(36px, 7vw, 72px); font-weight: 300; letter-spacing: -2px; line-height: 1.05; }
h2 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 400; letter-spacing: -1.2px; }
h3 { font-size: 28px; font-weight: 500; letter-spacing: -0.5px; }
p { margin: 0 0 16px; max-width: 65ch; }

.dim { color: var(--dim); }
.faint { color: var(--faint); }
.gradient {
  background: linear-gradient(90deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Mono label */
.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--faint);
}

/* KPI */
.kpi {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.kpi.warn { color: var(--warn); }

/* Buttons */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius);
  padding: 14px 22px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent2); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: rgba(0,229,176,0.08); }

/* Tag */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  border: 1px solid var(--border);
  background: rgba(0,229,176,0.05);
  border-radius: var(--radius);
  padding: 4px 10px;
}

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--soft);
  padding: 28px;
  border-radius: var(--radius);
}
.card:hover { border-color: var(--border); }

/* Live dot */
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Section variants + shared bits */
.section.alt { background: var(--bg2); }
.section .label { display: inline-block; margin-bottom: 12px; }
.section h2 { margin-bottom: 40px; }
.small { font-size: 13px; }
.warn-text { color: var(--warn); }

/* Header */
.site-header { border-bottom: 1px solid var(--soft); position: sticky; top: 0; background: rgba(10,15,13,0.85); backdrop-filter: blur(8px); z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.wordmark { font-family: var(--mono); font-weight: 700; letter-spacing: -0.5px; font-size: 18px; }
.wordmark-ai { color: var(--accent); }
.logo-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-cube { height: 46px; width: auto; display: block; }
.logo-text { font-family: var(--mono); font-weight: 700; font-size: 18px; letter-spacing: 0.5px; color: var(--text); }
.callout { margin-top: 24px; border-color: var(--border); }
.callout h3 { color: var(--accent); margin-bottom: 8px; }
.callout p { max-width: none; margin: 0; }

/* Hero */
.hero { background: var(--bg2); padding-top: 120px; padding-bottom: 120px; }
.hero .tag { margin-bottom: 20px; }
.live-line { display: flex; align-items: center; gap: 8px; margin: 16px 0; }
.hero h1 { margin: 8px 0 24px; }
.lead { font-size: 20px; max-width: 50ch; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* Nodes */
.node { background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 24px; }
.node-num { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: 2px; }
.node h3 { font-size: 20px; margin: 12px 0 8px; }
.node p { margin: 0; font-size: 14px; }

/* Cards lists */
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--dim); }
.card ul li { margin-bottom: 6px; }
.card .tag { margin-bottom: 4px; }
.card h3 { margin-bottom: 8px; }

/* Demo section */
.demo-section { text-align: center; }
.demo-section .label { justify-content: center; }
.demo-section h2 { margin-bottom: 16px; }
.demo-section p { margin-left: auto; margin-right: auto; }
.demo-section .btn-primary { margin-top: 24px; }

/* Pricing */
.pricing-card { max-width: 760px; }
.price-line { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--soft); }
.price-line > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.price-line .kpi { font-size: clamp(22px, 5vw, 32px); white-space: nowrap; }
.price-line .small { line-height: 1.3; }
ul.check { list-style: none; padding: 0; margin: 0 0 24px; }
ul.check li { padding-left: 24px; position: relative; margin-bottom: 10px; color: var(--dim); }
ul.check li::before { content: "+"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); font-weight: 700; }
.pricing-card .btn-primary { margin-bottom: 12px; }

/* Proof */
.proof { text-align: center; }
.proof .kpi { font-size: clamp(36px, 6vw, 48px); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--soft); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 18px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--accent); font-family: var(--mono); }
.faq details[open] summary::before { content: "- "; }
.faq details p { margin: 12px 0 0; }

/* CTA final */
.cta-final { text-align: center; }
.cta-final .btn-row { justify-content: center; }
.compliance { margin-top: 32px; }

/* Footer */
.site-footer { border-top: 1px solid var(--soft); padding: 48px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--dim); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: var(--accent); }

/* Demo modal */
.demo-modal {
  position: relative;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 32px;
  max-width: 440px;
  width: calc(100% - 32px);
}
.demo-modal::backdrop { background: rgba(0,0,0,0.72); backdrop-filter: blur(2px); }
.demo-modal h3 { font-size: 24px; margin-bottom: 12px; }
.modal-close { position: absolute; top: 8px; right: 14px; background: none; border: none; color: var(--dim); font-size: 26px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--text); }
.ai-notice {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--warn);
  border: 1px solid rgba(255,180,84,0.3);
  background: rgba(255,180,84,0.06);
  padding: 8px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}
#demo-form label { display: block; font-size: 12px; color: var(--dim); margin-bottom: 14px; }
#demo-form input[type=text], #demo-form input[type=email], #demo-form select {
  width: 100%; margin-top: 5px; padding: 11px 12px;
  background: var(--bg); border: 1px solid var(--soft); border-radius: 2px;
  color: var(--text); font-family: var(--font); font-size: 15px;
}
#demo-form input:focus, #demo-form select:focus { outline: none; border-color: var(--accent); }
#demo-form .consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--dim); }
#demo-form .consent input { margin-top: 3px; flex-shrink: 0; }
#demo-form .consent a { color: var(--accent); }
#demo-form .btn-primary { width: 100%; margin-top: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: var(--danger); font-size: 13px; margin: 4px 0 0; }
.call-state { text-align: center; padding: 8px 0; }
.call-state .btn-primary { margin-top: 16px; display: inline-block; }

/* Legal pages */
.legal { padding: 64px 0; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: 40px; margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--dim); font-size: 15px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }
.legal .back { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.legal .todo { color: var(--warn); font-family: var(--mono); font-size: 13px; }

/* Responsive (multi-device) */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --pad: 24px; }
  h1 { letter-spacing: -1px; }
  .section { padding: 64px 0; }
  .hero { padding-top: 72px; padding-bottom: 72px; }
  .lead { font-size: 18px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .price-line { gap: 16px; }
}
@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 20px; align-items: flex-start; }
  .btn-row { width: 100%; }
  .btn-row .btn-primary, .btn-row .btn-secondary { flex: 1; text-align: center; }
  .price-line { flex-direction: column; gap: 16px; }
}
@media (max-width: 420px) {
  .logo-cube { height: 38px; }
  .logo-text { font-size: 15px; }
  .header-inner .btn-ghost { padding: 10px 14px; font-size: 11px; }
}
@media (max-width: 380px) {
  :root { --pad: 16px; }
}
