/* =================================================================
   Ghaemi Tools — styles.css
   Premium, dark-mode-first design system.
   Palette: deep navy / charcoal + electric blue, cyan, subtle purple.
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand gradient (mirrors the logo: purple -> blue -> cyan) */
  --grad: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 48%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, .18), rgba(34, 211, 238, .18));

  --blue: #3b82f6;
  --cyan: #22d3ee;
  --purple: #8b5cf6;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 1180px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .25);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .55);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .65);

  --ease: cubic-bezier(.4, .14, .3, 1);
}

/* Dark theme (default) */
[data-theme="dark"] {
  --bg: #070b14;
  --bg-2: #0b1120;
  --surface: #111a2e;
  --surface-2: #16213a;
  --card: rgba(255, 255, 255, .035);
  --card-hover: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #e9eef8;
  --muted: #93a3c0;
  --muted-2: #6b7a99;
  --field: rgba(255, 255, 255, .04);
  color-scheme: dark;
}

/* Light theme */
[data-theme="light"] {
  --bg: #eef2f9;
  --bg-2: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f1f5fb;
  --card: #ffffff;
  --card-hover: #ffffff;
  --border: rgba(15, 23, 42, .10);
  --border-strong: rgba(15, 23, 42, .18);
  --text: #0d1424;
  --muted: #4a5772;
  --muted-2: #6b7794;
  --field: #f4f7fc;
  color-scheme: light;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient background wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 600px at 12% -8%, rgba(139, 92, 246, .16), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(34, 211, 238, .12), transparent 55%),
    radial-gradient(800px 600px at 50% 120%, rgba(59, 130, 246, .10), transparent 60%);
  pointer-events: none;
}

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

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

h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }

.container { width: min(var(--maxw), 92%); margin-inline: auto; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--surface); color: var(--text);
  padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* Icons inherit stroke styling */
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 12px 22px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: var(--pad);
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, opacity .2s;
  white-space: nowrap;
  font-family: inherit;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(59, 130, 246, .7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(59, 130, 246, .8); }

.btn--ghost {
  background: var(--card);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: var(--card-hover); transform: translateY(-2px); border-color: var(--blue); }

.btn--sm { --pad: 8px 14px; font-size: .85rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s var(--ease);
}
.icon-btn:hover { background: var(--card-hover); border-color: var(--border-strong); }
.icon-btn:active { transform: scale(.94); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg-2) 72%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 18px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.brand__logo img { width: 40px; height: 40px; border-radius: 10px; }
.brand__text { font-size: 1.18rem; font-weight: 700; letter-spacing: -.02em; }
.brand__accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 2px; }

.nav__links { display: flex; gap: 26px; margin-left: 14px; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: .95rem; position: relative; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width .25s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Theme toggle icon swap */
.icon-sun { display: none; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 56px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% 0 auto 0; height: 480px; z-index: 0;
  background: radial-gradient(600px 280px at 50% 0%, rgba(59, 130, 246, .25), transparent 70%);
  filter: blur(8px);
}
.hero__inner { position: relative; z-index: 1; text-align: center; max-width: 820px; margin-inline: auto; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border-strong);
  color: var(--muted); font-size: .82rem; font-weight: 500;
  backdrop-filter: blur(6px);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

.hero__title { font-size: clamp(2.2rem, 5.5vw, 3.7rem); font-weight: 800; margin: 22px 0 0; }
.hero__sub { color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); margin: 18px auto 0; max-width: 660px; }

.search {
  position: relative; display: flex; align-items: center;
  margin: 30px auto 0; max-width: 620px;
}
.search__icon { position: absolute; left: 18px; color: var(--muted); }
.search__input {
  width: 100%;
  padding: 16px 52px 16px 50px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 1rem; font-family: inherit;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.search__input::placeholder { color: var(--muted-2); }
.search__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59, 130, 246, .18), var(--shadow); }
.search__kbd {
  position: absolute; right: 14px;
  border: 1px solid var(--border-strong); border-radius: 7px;
  padding: 2px 9px; font-size: .8rem; color: var(--muted); background: var(--card);
}

.hero__cta { display: flex; gap: 14px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

.hero__stats {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  list-style: none; padding: 0; margin: 44px 0 0;
}
.hero__stats li {
  display: flex; flex-direction: column; align-items: center;
  min-width: 120px; padding: 16px 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.hero__stats strong { font-size: 1.55rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__stats span { color: var(--muted); font-size: .82rem; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section__head { text-align: center; margin-bottom: 28px; }
.section__title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; }
.section__desc { color: var(--muted); margin-top: 10px; }

/* ---------- Category chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); font-weight: 600; font-size: .9rem;
  cursor: pointer; font-family: inherit;
  transition: color .2s, border-color .2s, background .2s, transform .15s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.chip .chip__count { font-size: .78rem; color: var(--muted-2); }
.chip[aria-selected="true"] {
  color: #fff; border-color: transparent;
  background: var(--grad);
  box-shadow: 0 8px 22px -10px rgba(59, 130, 246, .8);
}
.chip[aria-selected="true"] .chip__count { color: rgba(255, 255, 255, .85); }

/* ---------- Tools grid ---------- */
.tools__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.tools__count { color: var(--muted); font-size: .9rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s, background .22s;
}
.card::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit;
  background: var(--grad); opacity: 0; transition: opacity .25s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.card:hover { transform: translateY(-5px); background: var(--card-hover); box-shadow: var(--shadow); }
.card:hover::before { opacity: .9; }

.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card__icon {
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  color: var(--cyan);
}
.card__icon svg { width: 24px; height: 24px; }

.badge {
  font-size: .7rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
}
.badge--live { color: #6ee7b7; background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .3); }
.badge--soon { color: #fcd34d; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .3); }

.card__title { font-size: 1.12rem; font-weight: 700; margin-top: 16px; }
.card__desc { color: var(--muted); font-size: .92rem; margin: 8px 0 18px; flex: 1; }
.card__cat { color: var(--muted-2); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

.card__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  color: var(--text); font-weight: 600; font-size: .9rem; cursor: pointer;
  font-family: inherit; width: 100%;
  transition: background .2s, border-color .2s, gap .2s;
}
.card__btn:hover { background: var(--grad); border-color: transparent; color: #fff; gap: 12px; }
.card__btn svg { width: 16px; height: 16px; }

.empty { text-align: center; padding: 56px 0; }
.empty__icon { font-size: 2.4rem; }
.empty h3 { margin: 12px 0 6px; }
.empty p { color: var(--muted); margin: 0 0 20px; }

/* ---------- CTA card ---------- */
.section--cta .cta-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 24px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(139, 92, 246, .14), rgba(34, 211, 238, .10)), var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.cta-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.cta-card p { color: var(--muted); margin: 12px 0 22px; max-width: 520px; }

.cta-card__art { position: relative; height: 180px; }
.orbit { position: absolute; inset: 0; display: grid; place-items: center; }
.orbit span {
  position: absolute; border-radius: 50%; border: 1px solid var(--border-strong);
  animation: spin 14s linear infinite;
}
.orbit span:nth-child(1) { width: 90px; height: 90px; }
.orbit span:nth-child(2) { width: 150px; height: 150px; animation-duration: 22s; animation-direction: reverse; }
.orbit span:nth-child(3) { width: 210px; height: 210px; animation-duration: 30s; }
.orbit::after {
  content: ""; width: 56px; height: 56px; border-radius: 16px; background: var(--grad);
  box-shadow: 0 0 40px rgba(59, 130, 246, .6);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.about__item { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.about__item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.about__item p { color: var(--muted); margin: 0; font-size: .94rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 48px 0 26px; background: var(--bg-2); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; }
.footer__brand p { color: var(--muted); margin: 14px 0 0; font-size: .92rem; }
.footer__links h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin-bottom: 14px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: var(--muted); font-size: .94rem; width: fit-content; transition: color .2s; }
.footer__links a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border);
  color: var(--muted-2); font-size: .85rem;
}
.footer__bottom a {
  font-weight: 600;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity .2s;
}
.footer__bottom a:hover { opacity: .8; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 18px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(3, 6, 14, .68); backdrop-filter: blur(6px); animation: fade .2s var(--ease); }
.modal__dialog {
  position: relative; z-index: 1;
  width: min(640px, 100%); max-height: 90vh; display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: pop .26s var(--ease);
  overflow: hidden;
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.modal__heading { display: flex; align-items: center; gap: 14px; }
.modal__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--cyan); }
.modal__icon svg { width: 24px; height: 24px; }
.modal__title { font-size: 1.2rem; font-weight: 700; }
.modal__subtitle { color: var(--muted); font-size: .86rem; margin: 2px 0 0; }
.modal__body { padding: 22px; overflow-y: auto; }

/* ---------- Tool UI primitives (used inside modals) ---------- */
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.field__row { display: flex; gap: 12px; flex-wrap: wrap; }
.field__row > .field { flex: 1; min-width: 120px; margin-bottom: 0; }

.input, .select, .textarea {
  width: 100%; padding: 12px 14px; font-size: .95rem; font-family: inherit;
  background: var(--field); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, .18); }
.mono { font-family: "SF Mono", "Cascadia Code", Consolas, "Roboto Mono", monospace; }

.select {
  appearance: none;
  /* Solid (not translucent) so the native option popup renders dark, not OS-white */
  background-color: var(--surface-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2393a3c0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.select:hover { border-color: var(--border-strong); }

/* Style the native dropdown option list to match the dark theme (honored by
   Chromium/Firefox on Windows). Each option gets a solid themed background so
   the popup no longer falls back to a washed-out white OS menu. */
.select option,
.select optgroup {
  background-color: var(--surface-2);
  color: var(--text);
  padding: 8px 10px;
}
.select option:checked { font-weight: 600; color: var(--text); }
.select option:disabled { color: var(--muted-2); }

.range { width: 100%; accent-color: var(--blue); }
.checkbox-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--blue); }
.checkbox-row label { color: var(--text); font-size: .92rem; }

.tool-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.result {
  margin-top: 18px; padding: 16px; border-radius: var(--radius-sm);
  background: var(--field); border: 1px solid var(--border);
}
.result__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); margin-bottom: 6px; }
.result__big { font-size: 1.9rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { padding: 14px; border-radius: var(--radius-sm); background: var(--field); border: 1px solid var(--border); }
.stat b { display: block; font-size: 1.3rem; font-weight: 800; }
.stat span { color: var(--muted); font-size: .82rem; }

.note { font-size: .82rem; color: var(--muted-2); margin-top: 12px; }
.error-text { color: #fca5a5; font-size: .88rem; margin-top: 8px; min-height: 1em; }
.ok-text { color: #6ee7b7; }

/* Color picker fields (clear swatch + hex value, kept off the white preview) */
.color-field {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px;
  background: var(--field);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
.color-field input[type="color"] {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  width: 32px; height: 32px; padding: 0; margin: 0; flex: none;
  border: none; background: none; cursor: pointer; border-radius: 8px;
}
.color-field input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-field input[type="color"]::-webkit-color-swatch { border: 1px solid var(--border-strong); border-radius: 8px; }
.color-field input[type="color"]::-moz-color-swatch { border: 1px solid var(--border-strong); border-radius: 8px; }
.color-field__hex { font-family: "SF Mono", "Cascadia Code", Consolas, "Roboto Mono", monospace; font-size: .9rem; color: var(--text); letter-spacing: .02em; }
.color-field.is-disabled { opacity: .45; }
.color-field.is-disabled input[type="color"] { cursor: not-allowed; }

.qr-canvas-wrap { display: grid; place-items: center; margin-top: 16px; padding: 18px; background: #fff; border-radius: var(--radius-sm); }
/* Checkerboard so a transparent background is obvious in the preview */
.qr-canvas-wrap.is-transparent {
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #c8cfdb 25%, transparent 25%),
    linear-gradient(-45deg, #c8cfdb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #c8cfdb 75%),
    linear-gradient(-45deg, transparent 75%, #c8cfdb 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}
canvas { max-width: 100%; }

.soon { text-align: center; padding: 16px 6px; }
.soon__emoji { font-size: 2.6rem; }
.soon h3 { margin: 10px 0 6px; }
.soon p { color: var(--muted); margin: 0 auto 20px; max-width: 360px; }

.kbd-hint { font-size: .8rem; color: var(--muted-2); }
.converter-eq { text-align: center; color: var(--muted); font-weight: 700; padding: 6px 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  z-index: 1100;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 12px 18px; font-size: .9rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0; transition: opacity .25s, transform .25s var(--ease);
  display: flex; align-items: center; gap: 8px;
}
.toast[hidden] { display: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast::before { content: "✓"; color: #6ee7b7; font-weight: 800; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .section--cta .cta-card { grid-template-columns: 1fr; }
  .cta-card__art { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav__cta { display: none; }
  .hero { padding: 56px 0 36px; }
  .hero__stats li { min-width: calc(50% - 14px); }
  .footer__inner { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .modal__body { padding: 18px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto; }
}
