/* ==========================================================================
   toolworldonline.com — Aurora design system
   Dark-first AI/tech theme with full light mode. Single stylesheet, CSS vars.
   --------------------------------------------------------------------------
   Sections: 1.Tokens  2.Reset  3.Base  4.Typography  5.Layout/Container
   6.Buttons  7.Cards/Glass  8.Header/Nav  9.Hero  10.Tool grid
   11.Pricing  12.Forms/Auth  13.Profile/Dashboard  14.Ads  15.Footer
   16.Animation  17.Utilities  18.Responsive
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand gradient - GREEN THEME */
  --brand-1: #16a34a;      /* green-600 */
  --brand-2: #22c55e;      /* green-500 */
  --brand-3: #4ade80;      /* green-400 */
  --grad-brand: linear-gradient(135deg, #16a34a 0%, #22c55e 55%, #4ade80 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(22,163,74,.16), rgba(74,222,128,.16));

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .35s;

  /* Layout */
  --container: 1200px;
  --nav-h: 68px;
  --space: clamp(16px, 4vw, 32px);

  /* Status */
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
}

/* Dark (default) */
:root,
[data-theme="dark"] {
  --bg: #0b1020;
  --bg-elev: #11172e;
  --bg-elev-2: #151a30;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #eef1f8;
  --text-soft: #b8c0d4;
  --text-muted: #8b93a7;
  --glow: rgba(34, 197, 94, .35);
  --glass-blur: 14px;
  color-scheme: dark;
}

/* Light */
[data-theme="light"] {
  --bg: #f7f8fc;
  --bg-elev: #ffffff;
  --bg-elev-2: #ffffff;
  --surface: rgba(17, 23, 46, .025);
  --surface-2: rgba(17, 23, 46, .045);
  --border: rgba(17, 23, 46, .1);
  --border-strong: rgba(17, 23, 46, .18);
  --text: #0d1226;
  --text-soft: #3b4257;
  --text-muted: #6b7280;
  --glow: rgba(22, 163, 74, .22);
  --glass-blur: 10px;
  color-scheme: light;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 3. Base ---------- */
body {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

/* Ambient background glow (fixed, behind everything) - GREEN */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(22, 163, 74, .18), transparent 60%),
    radial-gradient(800px 500px at 88% 8%, rgba(74, 222, 128, .14), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(34, 197, 94, .1), transparent 60%);
}
[data-theme="light"] body::before { opacity: .55; }

::selection { background: rgba(34, 197, 94, .35); color: #fff; }

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }

/* ---------- 4. Typography ---------- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: var(--fw-bold); letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.75rem); font-weight: var(--fw-black); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
p { color: var(--text-soft); }
a.link { color: var(--brand-2); font-weight: var(--fw-medium); }
a.link:hover { text-decoration: underline; }
.text-muted { color: var(--text-muted); }
.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- 5. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space); }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: var(--fw-semibold); letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-2);
  padding: 6px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--grad-brand-soft);
}

/* ---------- 6. Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--r-pill);
  font-weight: var(--fw-semibold); font-size: .95rem; line-height: 1;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--border-strong);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap; user-select: none;
}
.btn:hover { transform: translateY(-2px); border-color: var(--brand-2); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary {
  --btn-bg: var(--grad-brand);
  --btn-fg: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px -8px var(--glow);
}
.btn-primary:hover { box-shadow: 0 14px 32px -8px var(--glow); }

.btn-ghost { --btn-bg: transparent; border-color: var(--border); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

/* ---------- 7. Cards / glass ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.glass {
  background: rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
[data-theme="light"] .glass { background: rgba(255, 255, 255, .7); }

/* ---------- 8. Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space);
       display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: var(--fw-black); font-size: 1.1rem; letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--grad-brand);
  display: grid; place-items: center;
  font-weight: var(--fw-black); color: #fff; font-size: 1.05rem;
  box-shadow: 0 6px 18px -6px var(--glow);
}
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: 12px; }
.nav-links a {
  padding: 9px 14px; border-radius: var(--r-pill);
  color: var(--text-soft); font-weight: var(--fw-medium); font-size: .92rem;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-links .mobile-auth { display: none; }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-soft); transition: all var(--dur) var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--brand-2); transform: rotate(15deg); }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Mobile menu button */
.menu-toggle { display: none; width: 38px; height: 38px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  align-items: center; justify-content: center; }

/* User chip (logged in) */
.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); font-weight: var(--fw-medium); font-size: .9rem;
  transition: border-color var(--dur) var(--ease);
}
.user-chip:hover { border-color: var(--brand-2); }
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--grad-brand); color: #fff; font-weight: var(--fw-bold);
  display: grid; place-items: center; font-size: .8rem;
}
.badge-admin {
  background: var(--grad-brand); color: #fff; font-size: .65rem; font-weight: var(--fw-bold);
  padding: 2px 7px; border-radius: var(--r-pill); letter-spacing: .04em;
}

/* ---------- 9. Hero ---------- */
.hero { position: relative; padding-top: clamp(60px, 9vw, 110px); padding-bottom: clamp(40px, 7vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { letter-spacing: -.03em; }
.hero h1 span { display: block; }
.hero .lead { margin-top: 20px; font-size: 1.15rem; max-width: 540px; color: var(--text-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; color: var(--text-muted); font-size: .88rem; }
.hero-trust .item { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--ok); }

/* Floating tool cards visual */
.hero-visual { position: relative; min-height: 360px; }
.float-card {
  position: absolute; padding: 14px 18px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
  animation: float 6s ease-in-out infinite;
}
.float-card .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--grad-brand-soft);
  display: grid; place-items: center; color: var(--brand-2); }
.float-card .lbl { font-size: .82rem; font-weight: var(--fw-semibold); }
.float-card:nth-child(1) { top: 6%; left: 4%; animation-delay: 0s; }
.float-card:nth-child(2) { top: 28%; right: 2%; animation-delay: -2s; }
.float-card:nth-child(3) { bottom: 22%; left: 14%; animation-delay: -4s; }
.float-card:nth-child(4) { bottom: 4%; right: 18%; animation-delay: -1s; }

/* Logo strip */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(20px, 4vw, 48px); opacity: .7; margin-top: 8px; }
.logo-strip span { font-weight: var(--fw-bold); color: var(--text-muted); font-size: 1rem; letter-spacing: .03em; }

/* ---------- 10. Tool grid ---------- */
.tool-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.tool-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  overflow: hidden;
}
.tool-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: var(--grad-brand-soft); opacity: 0; transition: opacity var(--dur) var(--ease);
}
.tool-card:hover { transform: translateY(-4px); border-color: var(--brand-2);
  box-shadow: 0 24px 50px -24px var(--glow); }
.tool-card:hover::after { opacity: 1; }
.tool-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--grad-brand-soft); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--brand-2); position: relative; z-index: 1;
}
.tool-card h3 { font-size: 1.12rem; position: relative; z-index: 1; }
.tool-card p { font-size: .92rem; color: var(--text-muted); position: relative; z-index: 1; flex: 1; }
.tool-tag {
  display: inline-block; font-size: .72rem; font-weight: var(--fw-semibold);
  padding: 3px 10px; border-radius: var(--r-pill); background: var(--surface-2);
  color: var(--text-soft); border: 1px solid var(--border); position: relative; z-index: 1; width: fit-content;
}
.tool-card .tool-foot { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.tool-uses {
  font-size: .78rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px;
}
.tool-uses.low { color: var(--warn); }
.tool-uses.empty { color: var(--danger); }

/* ---------- 11. Pricing ---------- */
.pricing-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column; padding: 30px 26px;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.price-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.price-card.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-elev), var(--bg-elev)) padding-box,
    var(--grad-brand) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 60px -30px var(--glow);
}
.price-card .ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad-brand); color: #fff; font-size: .72rem; font-weight: var(--fw-bold);
  padding: 5px 14px; border-radius: var(--r-pill); letter-spacing: .04em;
}
.price-name { font-size: 1.1rem; font-weight: var(--fw-bold); }
.price-amt { display: flex; align-items: baseline; gap: 4px; margin: 12px 0 4px; }
.price-amt .amt { font-size: 2.6rem; font-weight: var(--fw-black); letter-spacing: -.03em; }
.price-amt .per { color: var(--text-muted); font-size: .9rem; }
.price-desc { font-size: .9rem; color: var(--text-muted); min-height: 40px; }
.price-feats { margin: 20px 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-feats li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--text-soft); }
.price-feats svg { color: var(--ok); flex-shrink: 0; margin-top: 3px; }

/* ---------- 12. Forms / Auth ---------- */
.auth-wrap { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding: clamp(24px, 6vw, 60px) var(--space); }
.auth-card { width: 100%; max-width: 440px; padding: clamp(28px, 5vw, 40px); }
.auth-card h1 { font-size: 1.7rem; }
.auth-card .sub { color: var(--text-muted); margin-top: 6px; margin-bottom: 26px; font-size: .95rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: var(--fw-medium); margin-bottom: 7px; color: var(--text-soft); }
.input, .textarea, .select {
  width: 100%; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); font-size: .95rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}
.field-error { color: var(--danger); font-size: .8rem; margin-top: 6px; display: none; }
.field.has-error .input { border-color: var(--danger); }
.field.has-error .field-error { display: block; }

.password-wrap { position: relative; }
.password-wrap .toggle-pw { position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); padding: 6px; }
.password-strength { height: 4px; border-radius: 999px; background: var(--surface-2); margin-top: 8px; overflow: hidden; }
.password-strength span { display: block; height: 100%; width: 0; transition: width var(--dur) var(--ease), background var(--dur) var(--ease); }

.form-msg { padding: 12px 14px; border-radius: var(--r-md); font-size: .88rem; margin-bottom: 18px; display: none; }
.form-msg.show { display: block; }
.form-msg.error { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.35); color: #fca5a5; }
.form-msg.success { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); color: #86efac; }
[data-theme="light"] .form-msg.error { color: #b91c1c; }
[data-theme="light"] .form-msg.success { color: #15803d; }

.auth-alt { text-align: center; margin-top: 20px; font-size: .9rem; color: var(--text-muted); }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; color: var(--text-soft); margin-bottom: 18px; }
.checkbox-row input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand-2); }

/* ---------- 13. Profile / Dashboard ---------- */
.stats-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat-card { padding: 20px; }
.stat-card .num { font-size: 2rem; font-weight: var(--fw-black); background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card .lbl { color: var(--text-muted); font-size: .85rem; margin-top: 4px; }
.plan-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: var(--r-pill);
  background: var(--grad-brand-soft); border: 1px solid var(--border); font-weight: var(--fw-semibold); font-size: .85rem; }

.usage-table th, .usage-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: .9rem; }
.usage-table th { color: var(--text-muted); font-weight: var(--fw-medium); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--grad-brand); border-radius: 999px; transition: width .6s var(--ease); }

/* ---------- 14. Ads ---------- */
.ad-slot { margin: clamp(24px, 4vw, 40px) 0; min-height: 100px; display: grid; place-items: center;
  border: 1px dashed var(--border); border-radius: var(--r-md); color: var(--text-muted);
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; background: var(--surface); }
.ad-slot:has(ins) { border-style: solid; }
body.no-ads .ad-slot { display: none; }

/* ---------- 15. Footer ---------- */
.site-footer { margin-top: clamp(48px, 8vw, 96px); border-top: 1px solid var(--border); background: var(--bg-elev); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr repeat(3, 1fr); padding-block: clamp(40px, 6vw, 64px); }
.footer-brand p { margin-top: 14px; font-size: .9rem; max-width: 320px; }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; color: var(--text-soft); font-size: .92rem; transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--brand-2); }
.footer-bottom { border-top: 1px solid var(--border); padding-block: 22px; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px; color: var(--text-muted); font-size: .85rem; }

/* ---------- 16. Animation ---------- */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes pulse-glow { 0%,100% { box-shadow: 0 0 0 0 var(--glow); } 50% { box-shadow: 0 0 0 8px transparent; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-text { opacity: .7; }

.shimmer-text {
  background: linear-gradient(90deg, var(--text) 25%, var(--brand-2) 50%, var(--text) 75%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; animation: shimmer 3s linear infinite;
}

/* ---------- 17. Utilities ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; }
.justify-between { justify-content: space-between; } .gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.hidden { display: none !important; }
.rounded { border-radius: var(--r-md); }
.tag { display: inline-block; font-size: .75rem; font-weight: var(--fw-semibold); padding: 3px 10px;
  border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(5, 8, 20, .7);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: none; place-items: center; padding: 20px; }
.modal-backdrop.open { display: grid; animation: fadeUp .25s var(--ease); }
.modal { width: 100%; max-width: 440px; padding: 30px; }
.modal h3 { margin-bottom: 8px; }
.modal p { color: var(--text-soft); margin-bottom: 20px; }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden; background: var(--surface); }
.faq-q { width: 100%; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center;
  font-weight: var(--fw-semibold); color: var(--text); text-align: left; gap: 16px; }
.faq-q .chev { transition: transform var(--dur) var(--ease); color: var(--brand-2); flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); color: var(--text-soft); }
.faq-a-inner { padding: 0 20px 18px; }

/* Toast */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast { padding: 14px 18px; border-radius: var(--r-md); background: var(--bg-elev-2); border: 1px solid var(--border-strong);
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.5); display: flex; gap: 12px; align-items: flex-start;
  animation: fadeUp .3s var(--ease); font-size: .9rem; }
.toast.success { border-left: 3px solid var(--ok); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--brand-2); }

/* ---------- 18. Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-actions .desktop-only { display: none; }
  .menu-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--space) 20px;
    background: var(--bg-elev); border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-links a { padding: 14px 16px; border-radius: var(--r-md); }
  .nav.open .nav-links .mobile-auth {
    display: flex; flex-direction: column; gap: 6px;
    margin-top: 12px; padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .float-card { animation: none; }
}