/* ============================================================
   Swift Pandas — main stylesheet
   This one file controls the look of every page.
   Colors are defined once, right below — change them here
   and the whole site updates.
   Brand palette matches the SwiftPandas logo:
   purple → blue gradient, deep navy, white.
   ============================================================ */

:root {
  --ink: #1e1b4b;          /* main text color (deep navy, from the logo) */
  --ink-soft: #4a4a68;     /* softer text for paragraphs */
  --bg: #ffffff;           /* page background */
  --paper: #f6f6fb;        /* very light lavender for alternating sections */
  --line: #e4e4f0;         /* borders */
  --accent: #6d28d9;       /* purple — links and highlights */
  --accent-dark: #5b21b6;  /* darker purple for hover states */
  --accent-2: #2563eb;     /* blue — the other end of the logo gradient */
  --accent-tint: #f1effc;  /* pale purple for highlights */
  --surface: #ffffff;      /* cards, header, and other panels */
  --band: #1e1b4b;         /* dark navy bands (footer, CTA) — stays dark in both themes */
  --grad: linear-gradient(135deg, #7c3aed, #2563eb);      /* signature gradient */
  --grad-dark: linear-gradient(135deg, #6d28d9, #1d4ed8); /* hover version */
  --max: 1080px;           /* how wide the content gets on big screens */
}

/* ---------- Dark mode palette ---------- */
:root[data-theme="dark"] {
  --ink: #ecebff;          /* light text */
  --ink-soft: #a9a6cf;     /* softer light text */
  --bg: #0d0c1c;           /* page background */
  --paper: #141327;        /* alternating sections */
  --line: #2a2846;         /* borders */
  --accent-tint: #1b1836;  /* pale purple becomes deep purple */
  --surface: #17162c;      /* cards, header, panels */
  --band: #0a0918;         /* bands stay dark */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display font for headings and the wordmark */
h1, h2, h3, h4, .brand, .hero .amount, .price-card .amount {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

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

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

/* ---------- Header & navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.nav-bar { /* left-aligned; toggle pushes right */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand svg, .brand img { width: 40px; height: 40px; flex: none; transition: transform 0.25s ease; }
.brand:hover img { transform: scale(1.08) rotate(-4deg); }
/* In the dark footer, show the emblem as a round badge */
.site-footer .brand img { border-radius: 50%; }

/* Two-tone wordmark, like the logo: "Swift" navy, "Pandas" gradient */
.brand .b1 { color: inherit; }
.brand .b2 {
  background: linear-gradient(90deg, #7c3aed, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-footer .brand .b2 {
  background: linear-gradient(90deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--ink); background: var(--paper); }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.nav-links .nav-cta a {
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  margin-left: 8px;
}
.nav-links .nav-cta a:hover { background: var(--grad-dark); color: #fff; }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  position: relative;
  background: var(--grad);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 6px 16px rgba(109, 40, 217, 0.40);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-toggle:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(109, 40, 217, 0.55); }
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: #ffffff;
  transition: transform 0.3s ease, background 0.2s ease;
}
.nav-toggle .bars { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle .bars::before,
.nav-toggle .bars::after { content: ""; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after  { top: 7px; }
/* Hamburger morphs into an X when the menu is open */
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    gap: 2px;
    box-shadow: 0 12px 24px rgba(30, 27, 75, 0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 1.05rem; }
  .nav-links .nav-cta a { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
              transform 0.2s ease, box-shadow 0.25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #2563eb, #7c3aed);
  background-size: 220% 100%;
  color: #fff;
  transition: background-position 0.5s ease, transform 0.2s ease, box-shadow 0.25s ease, color 0.15s ease;
}
.btn-primary:hover {
  background-position: 100% 0;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(109, 40, 217, 0.35);
}
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-big { padding: 16px 32px; font-size: 1.05rem; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--accent-tint) 0%, var(--bg) 100%);
  padding: 72px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Soft drifting color glows behind the hero */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
}
.hero::before {
  width: 420px; height: 420px;
  background: #a78bfa;
  top: -140px; left: -120px;
  animation: drift-a 14s ease-in-out infinite alternate;
}
.hero::after {
  width: 380px; height: 380px;
  background: #60a5fa;
  bottom: -160px; right: -100px;
  animation: drift-b 16s ease-in-out infinite alternate;
}
.hero .wrap { position: relative; z-index: 1; }
/* Third glow, gently pulsing behind the headline */
.hero .wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: #c084fc;
  filter: blur(90px);
  opacity: 0.22;
  left: 50%; top: 30%;
  transform: translate(-50%, -50%);
  animation: pulse-glow 10s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift-a { to { transform: translate(60px, 40px); } }
@keyframes drift-b { to { transform: translate(-70px, -40px); } }
@keyframes pulse-glow { to { transform: translate(-46%, -54%) scale(1.18); } }
/* Hero content rises in on page load */
.hero .eyebrow, .hero h1, .hero p.lead, .hero .cta-row, .hero .reassure {
  animation: rise 0.7s ease backwards;
}
.hero h1 { animation-delay: 0.08s; }
.hero p.lead { animation-delay: 0.16s; }
.hero .cta-row { animation-delay: 0.24s; }
.hero .reassure { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.hero .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #7c3aed, #2563eb, #7c3aed);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
  animation: grad-slide 5s linear infinite;
}
/* Gradient highlight for key words in headlines (wrap them in <span class="hl">) */
.hl {
  background: linear-gradient(90deg, #7c3aed, #2563eb, #7c3aed);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-slide 5s linear infinite;
}
@keyframes grad-slide { to { background-position: 200% 0; } }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 21ch;
  margin: 0 auto 20px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0 auto 32px;
}
.hero .cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .reassure {
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background: var(--accent-tint);
  padding: 56px 0 48px;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.page-hero p {
  color: var(--ink-soft);
  max-width: 60ch;
  font-size: 1.1rem;
}

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
.section.alt { background: var(--paper); }

.section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
/* Little gradient bar under every section heading */
.section h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--grad);
  margin-top: 10px;
}
.section.centered h2::after { margin-left: auto; margin-right: auto; }
.section .sub {
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 36px;
}
.section.centered { text-align: center; }
.section.centered .sub { margin-left: auto; margin-right: auto; }

/* ---------- Card grids ---------- */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover {
  border-color: #7c3aed;
  box-shadow: 0 12px 28px rgba(109, 40, 217, 0.12);
  transform: translateY(-4px);
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }
.card .card-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad);
  border-radius: 14px;
  margin-bottom: 18px;
  color: #fff;
  box-shadow: 0 8px 18px rgba(109, 40, 217, 0.28);
}
.card .card-icon svg { width: 26px; height: 26px; display: block; }
.card:hover .card-icon { animation: wiggle 0.5s ease; }
@keyframes wiggle {
  25% { transform: rotate(-8deg) scale(1.12); }
  75% { transform: rotate(8deg) scale(1.12); }
}
.card a.card-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Checklists ---------- */

.check-list { list-style: none; }
.check-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  color: var(--ink-soft);
}
.check-list li strong { color: var(--ink); }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Numbered process steps ---------- */

.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Pricing ---------- */

.price-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  align-items: stretch;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(109, 40, 217, 0.12);
}
.price-card.featured {
  border: 2px solid var(--accent);
  position: relative;
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.10);
}
.price-card .badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.price-card .price-tag { margin: 14px 0 4px; }
.price-card .price-tag .from {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.price-card .price-tag .amount {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.price-card .price-tag .period { color: var(--ink-soft); font-size: 1rem; }
.price-card .price-note { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 18px; }
.price-card .check-list { margin-bottom: 24px; }
.price-card .check-list li { font-size: 0.95rem; margin-bottom: 10px; }
.price-card .btn { margin-top: auto; }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  background: var(--surface);
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 44px;
  transition: color 0.15s ease;
}
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  padding: 0 22px 18px;
  color: var(--ink-soft);
}

/* ---------- Testimonials ---------- */

.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.quote-card:hover {
  border-color: #7c3aed;
  box-shadow: 0 12px 28px rgba(109, 40, 217, 0.12);
  transform: translateY(-4px);
}
.quote-card .stars {
  color: #f5b301;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.quote-card .quote {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 22px;
  flex: 1;
}
.quote-card .person { display: flex; align-items: center; gap: 12px; }
.quote-card .avatar {
  width: 42px; height: 42px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.quote-card .person strong { color: var(--ink); font-size: 0.97rem; }
.quote-card .role { color: var(--ink-soft); font-size: 0.88rem; }

/* ---------- Big call-to-action band ---------- */

.cta-band {
  background: var(--band);
  color: #fff;
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Soft color glows in the dark band */
.cta-band::before, .cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
}
.cta-band::before {
  width: 340px; height: 340px;
  background: #8b5cf6;
  top: -120px; left: -80px;
  animation: drift-a 12s ease-in-out infinite alternate;
}
.cta-band::after {
  width: 300px; height: 300px;
  background: #3b82f6;
  bottom: -120px; right: -60px;
  animation: drift-b 15s ease-in-out infinite alternate;
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 10px; }
.cta-band p { color: #b4b3d1; max-width: 50ch; margin: 0 auto 28px; }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 820px;
  margin: 0 auto;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
}
.contact-card .card-icon {
  margin: 0 auto 16px;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad);
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 8px 18px rgba(109, 40, 217, 0.28);
}
.contact-card .card-icon svg { width: 28px; height: 28px; display: block; }
.contact-card h3 { margin-bottom: 6px; }
.contact-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 14px; }

/* ---------- Comparison table (used on service pages) ---------- */

.compare-wrap { overflow-x: auto; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.95rem;
}
table.compare th, table.compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
table.compare th { background: var(--paper); font-size: 0.9rem; }
table.compare tr:last-child td { border-bottom: none; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--band);
  color: #b4b3d1;
  padding: 48px 0 32px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 2fr 1fr 1fr;
  margin-bottom: 32px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b4b3d1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Scroll-in animation (classes added by script.js) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Visitors who turn off animations in their device settings
   get an instant, motion-free site. */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero::before, .hero::after, .hero .wrap::before,
  .cta-band::before, .cta-band::after,
  .hero .eyebrow, .hl, .card:hover .card-icon,
  .hero h1, .hero p.lead, .hero .cta-row, .hero .reassure { animation: none; }
  .card:hover, .price-card:hover, .btn-primary:hover, .brand:hover img { transform: none; }
}

/* ============================================================
   Extra motion: custom cursor, scroll progress, floating icons.
   All automatically disabled on touch devices and for visitors
   who prefer reduced motion.
   ============================================================ */

/* Thin gradient progress bar at the very top of the page */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--grad);
  z-index: 9998;
  transition: width 0.08s linear;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

/* Custom cursor (desktop only; the elements are added by script.js) */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot { width: 8px; height: 8px; background: var(--accent); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 2px solid rgba(124, 58, 237, 0.55);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.cursor-ring.hover {
  width: 54px; height: 54px;
  background: rgba(124, 58, 237, 0.10);
  border-color: rgba(37, 99, 235, 0.65);
}
/* Hide the native cursor only while our custom one is active */
body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor summary { cursor: none; }

/* Gently floating service icons */
@keyframes icon-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.card .card-icon { animation: icon-float 3.6s ease-in-out infinite; }
.card:nth-child(2) .card-icon { animation-delay: 0.4s; }
.card:nth-child(3) .card-icon { animation-delay: 0.8s; }
.card:nth-child(4) .card-icon { animation-delay: 1.2s; }
.card:hover .card-icon { animation: wiggle 0.5s ease; }

/* Sliding gradient underline on nav links */
.nav-links li:not(.nav-cta) a { position: relative; }
.nav-links li:not(.nav-cta) a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px;
  height: 2px; border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links li:not(.nav-cta) a:hover::after { transform: scaleX(1); }

/* Touch devices: never show the custom cursor */
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}
/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress, .cursor-dot, .cursor-ring { display: none !important; }
  .card .card-icon { animation: none; }
}

/* ============================================================
   Light / dark mode toggle button (in the header)
   ============================================================ */
.theme-toggle {
  margin-left: auto;              /* pushes the toggle + menu to the right */
  width: 42px; height: 42px;
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.theme-toggle svg { width: 20px; height: 20px; display: block; }
/* Moon shows in light mode (tap to go dark); sun shows in dark mode (tap to go light) */
.theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }

/* Dark-mode niceties */
:root[data-theme="dark"] .hero::before,
:root[data-theme="dark"] .hero::after { opacity: 0.26; }
:root[data-theme="dark"] .card:hover { box-shadow: 0 12px 28px rgba(0,0,0,0.45); }
