/* ============================================================
   CREATICAL Studio — style.css
   Editorial dark theme · violet & cyan accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500;1,9..144,600&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --bg: #0A0A0F;
  --bg-2: #12121A;
  --bg-3: #1A1A26;
  --text: #F5F5F7;
  --text-2: #A5A5B3;
  --text-3: #6B6B7E;
  --accent: #9F42FF;
  --accent-2: #61F9FF;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Type */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 96px;
  --space-2xl: 160px;

  /* Layout */
  --container: 1200px;
  --content: 720px;
  --nav-h: 72px;
}

/* ---------- Base ---------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient gradient — top-right radial violet */
body::before {
  content: '';
  position: fixed;
  top: -300px;
  right: -300px;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(159, 66, 255, 0.22) 0%, rgba(159, 66, 255, 0.06) 35%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

/* Ambient gradient — bottom-left cyan whisper */
body::after {
  content: '';
  position: fixed;
  bottom: -400px;
  left: -300px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(97, 249, 255, 0.08) 0%, rgba(97, 249, 255, 0.02) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(30px);
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

main, nav, footer { position: relative; z-index: 2; }

/* ---------- Typography utilities ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  vertical-align: middle;
  margin: 0 6px 2px;
  box-shadow: 0 0 12px var(--accent-2);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}

em {
  font-style: italic;
  font-feature-settings: 'ss01';
}

p { color: var(--text-2); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: var(--space-2xl) 0;
  position: relative;
}

section + section { border-top: 1px solid var(--border); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand em {
  font-style: italic;
  color: var(--accent-2);
  font-weight: 400;
}

.brand-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  margin-right: 4px;
  position: relative;
  top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  font-size: 14px;
  color: var(--text-2);
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.02);
}

.nav-cta:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: rgba(97, 249, 255, 0.04);
}

.nav-cta::after {
  content: '→';
  font-size: 14px;
  transition: transform 0.25s ease;
}

.nav-cta:hover::after { transform: translateX(2px); }

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--space-2xl) - 24px);
  padding-bottom: var(--space-2xl);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.hero .eyebrow {
  animation: rise 0.9s 0.05s both cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero h1 {
  font-size: clamp(48px, 8.5vw, 124px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.035em;
  max-width: 17ch;
  margin-top: 28px;
  animation: rise 0.9s 0.15s both cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero h1 em {
  color: var(--accent-2);
  font-weight: 400;
  font-style: italic;
}

.hero-lead {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 56ch;
  margin-top: 40px;
  animation: rise 0.9s 0.3s both cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: var(--space-lg);
  padding-top: 40px;
  border-top: 1px solid var(--border);
  animation: rise 0.9s 0.5s both cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-meta-item .eyebrow {
  display: block;
  margin-bottom: 10px;
}

.hero-meta-item .value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text);
}

.hero-meta-item .value em {
  color: var(--accent);
  font-style: italic;
}

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: end;
  margin-bottom: var(--space-xl);
}

.section-head .eyebrow { align-self: start; }

.section-head h2 {
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.section-head h2 em {
  color: var(--accent-2);
  font-style: italic;
}

.section-head .section-lead {
  font-size: 17px;
  color: var(--text-2);
  max-width: 52ch;
  margin-top: 24px;
}

/* ---------- Studio features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.feature {
  background: var(--bg);
  padding: 48px;
  position: relative;
  transition: background 0.3s ease;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(159, 66, 255, 0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature:hover { background: var(--bg-2); }
.feature:hover::before { opacity: 1; }

.feature-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 28px;
}

.feature h3 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.1;
}

.feature h3 em {
  font-style: italic;
  color: var(--text);
}

.feature p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 38ch;
}

/* ---------- Method ---------- */
.method {
  background: var(--bg-2);
}

.method-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}

.method-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  transition: padding-left 0.3s ease;
}

.method-step:hover { padding-left: 24px; }

.method-roman {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 56px;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.method-step h3 {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.method-step h3 em {
  font-style: italic;
  color: var(--accent-2);
}

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.plan {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 36px 44px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.plan:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.plan.featured {
  background: linear-gradient(180deg, rgba(159, 66, 255, 0.05) 0%, var(--bg-2) 60%);
  border-color: rgba(159, 66, 255, 0.4);
}

.plan.featured::before {
  content: 'Recommandé';
  position: absolute;
  top: -11px;
  left: 36px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.plan-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}

.plan-period {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 4px;
}

.plan-price .currency { font-size: 32px; vertical-align: top; line-height: 1.4; color: var(--text-2); margin-right: 4px; }
.plan-price .per { font-family: var(--font-body); font-size: 14px; color: var(--text-3); font-weight: 300; }

.plan-features {
  list-style: none;
  margin: 36px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
}

.plan-features li {
  font-size: 14px;
  color: var(--text-2);
  padding: 10px 0 10px 22px;
  position: relative;
  line-height: 1.5;
}

.plan-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-size: 13px;
}

/* ---------- CTA section ---------- */
.cta-final {
  text-align: center;
  padding: var(--space-2xl) 0;
  background: radial-gradient(ellipse at center, rgba(159, 66, 255, 0.08) 0%, transparent 60%);
}

.cta-final .eyebrow { margin-bottom: 32px; display: inline-block; }

.cta-final h2 {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  max-width: 14ch;
  margin: 0 auto 48px;
}

.cta-final h2 em {
  color: var(--accent-2);
  font-style: italic;
}

.btn-large {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 36px;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.3s ease;
}

.btn-large:hover {
  background: var(--accent-2);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn-large::after {
  content: '→';
  font-size: 18px;
  transition: transform 0.3s ease;
}

.btn-large:hover::after { transform: translateX(3px); }

.cta-sub {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 48px;
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand-block {
  max-width: 36ch;
}

.footer-brand-block p {
  font-size: 14px;
  color: var(--text-3);
  margin-top: 16px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent-2); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- Legal pages ---------- */
.legal {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.legal .container { max-width: var(--content); }

.legal-head {
  margin-bottom: 72px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.legal-head .eyebrow { display: block; margin-bottom: 20px; }

.legal-head h1 {
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.legal-head h1 em {
  color: var(--accent-2);
  font-style: italic;
}

.legal-meta {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

.legal-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--text);
  margin: 64px 0 20px;
  line-height: 1.15;
  scroll-margin-top: 100px;
}

.legal-content h2 .num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  font-weight: 500;
  color: var(--text);
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}

.legal-content p { margin-bottom: 18px; }

.legal-content ul, .legal-content ol {
  margin: 0 0 22px 22px;
}

.legal-content li { margin-bottom: 10px; }

.legal-content a {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-color: rgba(97, 249, 255, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.legal-content a:hover { text-decoration-color: var(--accent-2); }

.legal-content strong { color: var(--text); font-weight: 500; }

.legal-content blockquote {
  margin: 28px 0;
  padding: 24px 28px;
  background: var(--bg-2);
  border-left: 2px solid var(--accent);
  border-radius: 2px;
  font-size: 15px;
  color: var(--text-2);
}

.legal-content blockquote strong { color: var(--accent-2); font-weight: 500; }

.legal-toc {
  margin-bottom: 64px;
  padding: 28px 32px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.legal-toc-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-3);
  margin-bottom: 16px;
}

.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 32px;
}

.legal-toc li {
  margin-bottom: 8px;
  font-size: 14px;
  break-inside: avoid;
}

.legal-toc a {
  color: var(--text-2);
  display: flex;
  gap: 10px;
  text-decoration: none;
}

.legal-toc a:hover { color: var(--accent-2); }

.legal-toc .toc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  min-width: 18px;
}

/* ---------- Animations ---------- */
@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc ol { columns: 1; }
}

@media (max-width: 768px) {
  :root {
    --space-2xl: 96px;
    --space-xl: 64px;
  }

  .container { padding: 0 20px; }

  .nav-links { display: none; }

  .hero-meta { grid-template-columns: 1fr; gap: 24px; }

  .method-step {
    grid-template-columns: 50px 1fr;
    gap: 20px;
    padding: 36px 0;
  }

  .method-roman { font-size: 36px; }
  .method-step h3 { font-size: 22px; }

  .feature { padding: 32px 28px; }
  .feature h3 { font-size: 22px; }

  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
}

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Selection ---------- */
::selection {
  background: var(--accent);
  color: #fff;
}
