/* BretonLab.dev — shared styles */
:root {
  --bg: #05080f;
  --bg-2: #08101d;
  --surface: #0c1526;
  --surface-2: #111d33;
  --line: #1c2a44;
  --text: #e9eef6;
  --muted: #8d9ab0;
  --accent: #1e8bff;
  --accent-2: #5cb8ff;
  --accent-glow: rgba(30, 139, 255, 0.35);
  --radius: 14px;
  --max: 1160px;
  --font-head: "Exo 2", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.text-blue { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }
.logo:hover { color: #fff; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo .lab { color: var(--accent); }
.logo .tld { color: #b9c3d3; font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
.nav-links a.btn-primary { color: #fff; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; color: #fff; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 28px var(--accent-glow); }
.btn-primary:hover { background: #3a9bff; color: #fff; transform: translateY(-2px); box-shadow: 0 12px 36px var(--accent-glow); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }
.nav .btn { padding: 10px 18px; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -200px 0 auto;
  height: 600px;
  background: radial-gradient(ellipse at 50% 0%, rgba(30,139,255,0.22), transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.hero-inner .lead { margin: 0 auto 30px; }
.hero-inner .btn-row { justify-content: center; }
.hero-banner {
  position: relative;
  margin-top: 56px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(30,139,255,0.08);
}
.hero-banner img { width: 100%; aspect-ratio: 2000 / 744; object-fit: cover; }

.tagline-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  margin-top: 26px;
  font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
}
.tagline-bar span + span::before { content: "|"; color: var(--accent); margin-right: 28px; }

/* Page hero (inner pages) */
.page-hero { position: relative; padding: 80px 0 50px; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,8,15,0.96) 30%, rgba(5,8,15,0.6)), url("assets/banner.webp") center / cover no-repeat;
  opacity: 0.4;
}
.page-hero .container { position: relative; }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .lead { margin: 0 auto; }

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

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: rgba(30,139,255,0.5); transform: translateY(-3px); }
.card p { color: var(--muted); margin-bottom: 0; }
.card ul { color: var(--muted); padding-left: 18px; margin: 12px 0 0; }
.card li { margin-bottom: 6px; }

.icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(30,139,255,0.1); border: 1px solid rgba(30,139,255,0.3);
  color: var(--accent-2); margin-bottom: 20px;
}
.icon svg { width: 24px; height: 24px; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-head); font-weight: 700; font-size: 2.2rem;
  color: transparent; -webkit-text-stroke: 1px var(--accent);
}
.step p { color: var(--muted); }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split img { border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,0.5); }

/* Code window graphic */
.code-window {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0b1424, #070c16);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(30,139,255,0.12);
  overflow: hidden;
}
.code-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.code-bar i { width: 11px; height: 11px; border-radius: 50%; background: #26344f; }
.code-bar i:first-child { background: var(--accent); }
.code-bar span { margin-left: 10px; font: 500 0.82rem var(--font-body); color: var(--muted); }
.code-window pre {
  margin: 0; padding: 24px 22px 28px;
  font: 0.92rem/1.8 ui-monospace, "Cascadia Code", Consolas, monospace;
  color: #c9d2df; white-space: pre-wrap; word-break: break-word;
}
.code-window .c { color: #5b6a82; }
.code-window .k { color: #5cb8ff; }
.code-window .s { color: #8fd18f; }
.code-window .f { color: #e0c27a; }
.code-window .ok { color: #8fd18f; font-weight: 600; }

.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--muted); }
.checklist li strong { color: var(--text); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(30,139,255,0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235cb8ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid rgba(30,139,255,0.4);
}

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(30,139,255,0.15); position: relative; }
.badge {
  position: absolute; top: -13px; left: 30px;
  background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.price { font-family: var(--font-head); font-size: 2rem; font-weight: 700; margin: 6px 0 4px; }
.price small { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.price-card .checklist { flex: 1; margin-bottom: 26px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Contact */
.contact-card { display: flex; gap: 18px; align-items: flex-start; }
.contact-card .icon { margin: 0; flex: none; }
.contact-card h3 { margin-bottom: 4px; font-size: 1.05rem; }
.contact-card a { font-weight: 600; word-break: break-word; }

/* Contact form */
.contact-form { display: grid; gap: 16px; scroll-margin-top: 96px; }
.contact-form:hover { transform: none; }
.contact-form h3 { margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.contact-form .opt { color: var(--muted); font-weight: 400; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; font-weight: 400; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.contact-form button { justify-self: start; }
.contact-form button:disabled { opacity: 0.6; cursor: wait; transform: none; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.form-status { margin: 0; font-weight: 500; min-height: 1.5em; }
.form-status.ok { color: #8fd18f; }
.form-status.err { color: #ff8a8a; }
@media (max-width: 780px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form button { justify-self: stretch; }
}

/* CTA band */
.cta-band {
  position: relative;
  border-radius: 22px;
  padding: 64px 40px;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(30,139,255,0.35);
  background: radial-gradient(ellipse at 50% 120%, rgba(30,139,255,0.35), transparent 60%), var(--surface);
}
.cta-band .lead { margin: 0 auto 28px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 30px; color: var(--muted); font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { font-family: var(--font-head); color: var(--text); font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"] { box-shadow: none; color: var(--accent-2); }
  .nav-links .btn { margin-top: 16px; width: 100%; border-bottom: 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-banner { margin-top: 40px; border-radius: 14px; }
  .tagline-bar { font-size: 0.68rem; letter-spacing: 0.2em; gap: 8px 14px; }
  .tagline-bar span + span::before { margin-right: 14px; }
  .cta-band { padding: 48px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
