:root {
  --bg: #FFF6EC;
  --surface: rgba(255, 255, 255, 0.72);
  --surface2: rgba(255, 255, 255, 0.92);
  --text: #1E1E22;
  --muted: rgba(30, 30, 34, 0.72);
  --border: rgba(30, 30, 34, 0.12);
  --shadow: 0 18px 50px rgba(30, 30, 34, 0.12);
  --shadow2: 0 10px 28px rgba(30, 30, 34, 0.10);
  --orange: #FF8A2A;
  --cyan: #3CCFCF;
  --radius: 22px;
  --radius2: 28px;
  --max: 1120px;
  --card: var(--surface);
}

[data-theme="dark"] {
  --bg: #15161A;
  --surface: rgba(255, 255, 255, 0.06);
  --surface2: rgba(255, 255, 255, 0.09);
  --text: #F4F5F7;
  --muted: rgba(244, 245, 247, 0.72);
  --border: rgba(244, 245, 247, 0.14);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  --shadow2: 0 10px 28px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% 0%, rgba(255, 138, 42, 0.16), transparent 55%),
    radial-gradient(900px 600px at 90% 10%, rgba(60, 207, 207, 0.14), transparent 60%),
    var(--bg);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none
}

img {
  max-width: 100%;
  display: block
}

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

.section {
  padding: 84px 0
}

.section.compact {
  padding: 56px 0
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow2);
  backdrop-filter: blur(8px);
  font-size: 14px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #D6FF2A, #19D47B);
  color: #101114;
  box-shadow: var(--shadow2);
  cursor: pointer;
  font-weight: 700;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow)
}

.btn.primary {
  border-color: rgba(255, 138, 42, 0.35);
  background: linear-gradient(135deg, #D6FF2A, #19D47B);
  color: #101114;
}

[data-theme="dark"] .btn.primary {
  color: #0B0B0D
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--border);
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(255, 246, 236, 0.72), rgba(255, 246, 236, 0.34));
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] header {
  background: linear-gradient(to bottom, rgba(21, 22, 26, 0.72), rgba(21, 22, 26, 0.34));
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 10px;
  flex: 0 0 auto
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: var(--shadow2)
}

.brand .name {
  font-weight: 900;
  letter-spacing: -0.02em
}

.menu {
  display: flex;
  gap: 18px;
  align-items: center
}

.menu a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  font-weight: 700;
}

.menu a.active,
.menu a:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center
}

.iconbtn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow2);
  cursor: pointer;
  display: grid;
  place-items: center;
}


/* Header: prevent brand/logo overlapping menu on small screens */
@media (max-width: 980px) {
  .nav {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px
  }

  .menu {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap
  }

  .menu a {
    white-space: nowrap
  }

  .actions {
    order: 2
  }

  .brand img {
    width: 40px;
    height: 40px
  }
}

.hero {
  padding: 56px 0 32px;
}

.heroGrid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.heroMedia {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius2);
}

.heroMedia img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  max-width: 100%;
}

h1 {
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 18px 0 14px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 55ch
}

.ctaRow {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px
}

.heroCard {
  border-radius: var(--radius2);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.heroCard img {
  height: 420px;
  width: 100%;
  object-fit: cover
}

.heroCard .caption {
  padding: 16px 18px;
  color: var(--muted);
  font-size: 14px
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  overflow: hidden;
}

.card .pad {
  padding: 22px
}

.kicker {
  font-weight: 900;
  color: rgba(255, 138, 42, 0.95);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px
}

h2 {
  font-size: 34px;
  letter-spacing: -0.02em;
  margin: 10px 0 12px
}

p {
  margin: 0 0 14px
}

.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cards3 .card img {
  height: 190px;
  object-fit: cover
}

.cards3 .card h3 {
  margin: 10px 0 8px;
  font-size: 18px
}

.cards3 .card p {
  color: var(--muted);
  font-size: 15px
}

.teaser {
  position: relative;
  border-radius: var(--radius2);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.teaser .bg {
  position: absolute;
  inset: 0;
  background: url('./images/bg-analyze.jpg') center/cover no-repeat;
  filter: saturate(1.1);
}

.teaser .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 246, 236, 0.86), rgba(255, 246, 236, 0.65));
}

[data-theme="dark"] .teaser .bg::after {
  background: linear-gradient(135deg, rgba(21, 22, 26, 0.84), rgba(21, 22, 26, 0.62));
}

.teaser .content {
  position: relative;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.steps {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 700
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 12px;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quote {
  padding: 18px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
  color: var(--muted);
  font-weight: 650;
}

.quote span {
  color: var(--text)
}

footer {
  padding: 38px 0 28px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.footGrid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

.small {
  color: var(--muted);
  font-size: 14px
}

.footLinks a {
  display: block;
  padding: 6px 0;
  color: var(--muted)
}

.footLinks a:hover {
  color: var(--text)
}

.philo {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.philo .stamp {
  display: flex;
  align-items: center;
  gap: 10px
}

.philo img {
  width: 46px;
  height: 34px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border)
}

.pageHero {
  padding: 40px 0 20px;
}

.pageTitle {
  font-size: 44px;
  letter-spacing: -0.03em;
  margin: 12px 0 10px;
  line-height: 1.05
}

.sub {
  color: var(--muted);
  max-width: 70ch
}

.analyzeGrid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}

.panel {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
}

.panel h3 {
  margin: 0 0 10px
}

.meter {
  height: 10px;
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.20);
  overflow: hidden;
  border: 1px solid var(--border)
}

.meter>div {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(255, 138, 42, 1), rgba(60, 207, 207, 1));
  border-radius: 999px
}

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px
}

.selectRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px
}

select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
}

.resultWrap {
  display: grid;
  gap: 12px;
}

.resultTop {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.resultTop img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.08)
}

.notice {
  font-size: 14px;
  color: var(--muted);
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(127, 127, 127, 0.08);
}

.pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(127, 127, 127, 0.08);
  color: var(--muted);
  font-weight: 800;
}

.copyBox {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(127, 127, 127, 0.06);
  padding: 14px;
  color: var(--muted);
}

.copyBox strong {
  color: var(--text)
}

@media (max-width: 980px) {

  .heroGrid,
  .grid2,
  .analyzeGrid {
    grid-template-columns: 1fr
  }

  .heroCard img {
    height: 340px
  }

  .heroMedia img {
    aspect-ratio: 16/9;
    max-height: 400px;
  }

  .cards3 {
    grid-template-columns: 1fr
  }

  .quotes {
    grid-template-columns: 1fr
  }

  .footGrid {
    grid-template-columns: 1fr
  }

  .menu {
    display: none
  }
}

@media (max-width: 640px) {
  .heroMedia img {
    aspect-ratio: 4/3;
    max-height: 300px;
  }
}


/* ===== Additions (Renato requests) ===== */
.authBar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .03);
  border-radius: 14px;
}

.authBar .btn {
  white-space: nowrap
}

.heroTitleTop {
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted)
}

.heroCatspeak {
  font-size: 44px;
  line-height: 1.05;
  margin: 8px 0 10px
}

.heroDef {
  max-width: 60ch;
  color: var(--muted);
  font-size: 16px
}

.pricingGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

@media (max-width: 860px) {
  .pricingGrid {
    grid-template-columns: 1fr
  }
}

.priceCard {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 18px;
  overflow: hidden
}

.priceCard img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center
}

.priceCard .pad {
  padding: 16px
}

.priceCard .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--muted);
  font-size: 12px
}

.priceCard h3 {
  margin: 10px 0 6px
}

.priceCard p {
  margin: 0 0 12px;
  color: var(--muted)
}

.videoFrame {
  width: min(480px, 100%);
  aspect-ratio: 12 / 7;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background: #000;
}

.videoFrame video {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.splitTextVideo {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: start
}

@media (max-width: 980px) {
  .splitTextVideo {
    grid-template-columns: 1fr
  }
}

.pagePhrase {
  padding: 26px 0 0
}

.quoteCard {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .03);
  padding: 18px
}

.quote {
  font-size: 16px;
  color: var(--text);
  line-height: 1.45
}

.modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999
}

.modal {
  width: min(520px, calc(100% - 24px));
  border-radius: 18px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .45);
  overflow: hidden
}

.modal header {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.modal .content {
  padding: 16px
}

.formRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

@media (max-width: 520px) {
  .formRow {
    grid-template-columns: 1fr
  }
}

.input,
select,
textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .03);
  color: var(--text)
}

/* WhatsApp Style Chat */
.chatFab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998
}

.chatFab button {
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: grid;
  place-items: center;
}

.chatFab button::before {
  content: "💬";
  font-size: 24px;
}

.chatWindow {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: min(360px, calc(100% - 40px));
  height: 500px;
  display: none;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  z-index: 9999;
  background: #E5DDD5;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: none;
}

.chatWindow header {
  padding: 10px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #075E54;
  color: white;
}

.chatWindow header .chatTitle {
  font-weight: bold;
  flex: 1;
  font-size: 16px;
}

.chatWindow header button.chatClose {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.chatMessages {
  padding: 16px;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-image: url("https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png");
  /* WhatsApp Doodle */
  background-color: #E5DDD5;
}

.bubble {
  max-width: 80%;
  padding: 6px 10px;
  border-radius: 7.5px;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.bubble.me {
  align-self: flex-end;
  background: #dcf8c6;
  color: #000;
  border-top-right-radius: 0;
}

.bubble.ai {
  align-self: flex-start;
  background: #fff;
  color: #000;
  border-top-left-radius: 0;
}

/* Timestamp & Checkmark mockup */
.bubble .meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 2px;
}

.chatCta {
  align-self: center;
  background: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  color: #075E54;
  font-weight: bold;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  margin: 4px 0;
  cursor: pointer;
  border: 1px solid #f0f0f0;
}

.chatInput {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  background: #f0f0f0;
}

.chatInput input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 24px;
  border: none;
  outline: none;
  font-size: 15px;
}

.chatInput button {
  background: #075E54;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}


/* --- Cat-Speak unified footer --- */
.catspeak-footer {
  margin-top: 60px;
  padding: 28px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .catspeak-footer {
  border-top-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

.catspeak-footer .footer-inner {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.catspeak-footer .footer-left {
  min-width: 240px;
  flex: 1;
}

.catspeak-footer .footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  flex: 2;
  min-width: 260px;
}

.catspeak-footer .footer-links a {
  font-size: 14px;
  opacity: 0.9;
  text-decoration: none;
}

.catspeak-footer .footer-links a:hover {
  text-decoration: underline;
}

.catspeak-footer .footer-brand {
  display: flex;
  gap: 10px;
  align-items: center;
}

.catspeak-footer .footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.catspeak-footer .footer-tagline {
  font-size: 14px;
  opacity: 0.92;
}

.catspeak-footer .footer-contact {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.9;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.catspeak-footer .dot {
  opacity: 0.55
}

.catspeak-footer .footer-right {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.catspeak-footer .footer-madeby {
  font-size: 14px;
  opacity: 0.92;
  display: flex;
  gap: 8px;
  align-items: center;
}

.catspeak-footer a.synaptechia {
  display: flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
}

.catspeak-footer .synaptechia-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
}

.catspeak-footer .footer-year {
  font-size: 13px;
  opacity: 0.8;
}

/* --- Pulse CTA (Essai gratuit) --- */
@keyframes catspeakPulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }

  50% {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  }

  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
}

.btn.cta-pulse {
  animation: catspeakPulse 1.6s ease-in-out infinite;
}


.heroGreen {
  color: #1f9d55;
  font-weight: 700;
}

/* --- Analyze uploads --- */
.uploadBox {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .uploadBox {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.18);
}

.uploadTitle {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 6px;
}

.uploadSub {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 12px;
}

.uploadFields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.uploadField {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .uploadField {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
}

.uploadField input {
  max-width: 52%;
}

.fileList .fileItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  margin-top: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.50);
  font-size: 13px;
}

[data-theme="dark"] .fileList .fileItem {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.20);
}

.fileItem button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}


/* v2.1 tweaks */
header .container {
  padding-left: 12px;
  padding-right: 12px;
}


/* nav spacing fix */
.menu {
  margin-left: 12px
}

/* ===== MOBILE MENU HAMBURGER ===== */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  justify-content: center;
  align-items: center;
  z-index: 50;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotateZ(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotateZ(-45deg) translate(7px, -7px);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  z-index: 40;
  width: 100%;
  padding: 12px;
  box-shadow: var(--shadow2);
}

.mobile-nav.active {
  display: flex !important;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--muted);
  transition: color .2s ease, background .2s ease;
  text-decoration: none;
  display: block;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, .08);
}

@media (max-width: 980px) {
  .menu {
    display: none !important;
  }

  .menu-toggle {
    display: flex;
  }
}

/* ===== FOCUS STATES (Accessibility) ===== */
.btn:focus-visible,
.btn:focus {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.input:focus-visible,
.input:focus,
select:focus-visible,
select:focus,
textarea:focus-visible,
textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-color: var(--cyan);
}

a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== IMPROVED INPUT CONTRAST (Dark Mode) ===== */
[data-theme="dark"] .input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
}

[data-theme="dark"] .input:hover,
[data-theme="dark"] select:hover,
[data-theme="dark"] textarea:hover {
  border-color: rgba(255, 255, 255, .20);
  background: rgba(255, 255, 255, .09);
}

[data-theme="dark"] .input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  border-color: var(--cyan);
  background: rgba(255, 255, 255, .12);
}