/* ==========================================================================
   Eiwaan Digital — Design System
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #07070e;
  --bg-alt: #0a0a16;
  --surface: #0c0c1a;
  --surface-2: #12121f;
  --surface-3: #181829;

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(124, 58, 237, 0.35);

  /* Text */
  --text: #f5f5fa;
  --text-dim: #a6a6c1;
  --muted: #8a8aa8;

  /* Brand */
  --primary: #7c3aed;
  --primary-2: #a78bfa;
  --primary-dim: rgba(124, 58, 237, 0.14);
  --secondary: #60a5fa;
  --secondary-dim: rgba(96, 165, 250, 0.14);
  --accent: #ff6b2b;
  --accent-2: #ff8f5c;
  --accent-dim: rgba(255, 107, 43, 0.16);

  --good: #4ade80;
  --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --gradient-radial: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.18), transparent 60%);

  /* Type */
  --font-en: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, sans-serif;
  --font: var(--font-en);

  /* Shape */
  --radius-pill: 100px;
  --radius-card: 16px;
  --radius-sm: 8px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --speed: 0.5s;

  /* Layout */
  --container: 1180px;
  --nav-h: 84px;

  /* Z-index scale */
  --z-base: 0;
  --z-decor: 10;
  --z-mobile-menu: 90;
  --z-nav: 100;
  --z-skip-link: 1000;
}

[lang="ar"] {
  --font: var(--font-ar);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  scroll-behavior: auto;
  background: var(--bg);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  list-style: none;
}

button,
input,
textarea {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
}

::selection {
  background: var(--primary);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-dim);
  max-width: 640px;
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

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

/* ==========================================================================
   Layout helpers
   ========================================================================== */

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

section {
  position: relative;
  padding: 120px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 64px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: var(--z-base);
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

.glow-radial {
  position: absolute;
  inset: 0;
  background: var(--gradient-radial);
  pointer-events: none;
  z-index: var(--z-base);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
  isolation: isolate;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--bg);
  box-shadow: 0 8px 30px -8px rgba(255, 107, 43, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px rgba(255, 107, 43, 0.7);
}

.btn-ghost {
  border: 1px solid var(--border-2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: var(--primary-2);
  background: var(--primary-dim);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 11px 22px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(7, 7, 14, 0.6);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.nav.nav-hidden {
  transform: translateY(-100%);
}

.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--gradient-brand);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 2px;
}

.lang-switch button {
  padding: 6px 14px;
  min-width: 44px;
  min-height: 40px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.25s var(--ease);
}

.lang-switch button.active {
  background: var(--gradient-brand);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  cursor: pointer;
  touch-action: manipulation;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s var(--ease);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

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

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-dim);
  color: var(--primary-2);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--border-2);
  color: var(--text-dim);
}

/* ==========================================================================
   Stats / numbers
   ========================================================================== */

.stat {
  text-align: center;
}

.stat .num {
  font-family: var(--font-en);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.stat .lbl {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ==========================================================================
   Marquee (trust logos)
   ========================================================================== */

.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

[dir="rtl"] .marquee-track {
  animation-direction: reverse;
}

.marquee-track span {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Forms
   ========================================================================== */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.field label {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}

.field label .req {
  color: var(--accent);
}

.field input,
.field textarea,
.field select {
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--surface);
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
  background: var(--surface-2);
}

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

.field textarea {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
  background: var(--bg-alt);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
}

.footer-col h4 {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 12px;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Reveal animations (driven by JS/GSAP toggling classes)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(36px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18), transparent 70%);
  pointer-events: none;
  z-index: var(--z-decor);
  transform: translate(-50%, -50%);
  will-change: transform;
  display: none;
}

@media (min-width: 901px) {
  .cursor-glow {
    display: block;
  }
}

/* ==========================================================================
   Page hero spacing (accounts for fixed nav)
   ========================================================================== */

.page-hero {
  padding-top: calc(var(--nav-h) + 90px);
  padding-bottom: 80px;
}

/* ==========================================================================
   Liquid cursor (gooey mouse-trail canvas)
   ========================================================================== */

.liquid-cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-decor);
  overflow: hidden;
}

.liquid-cursor canvas {
  width: 100%;
  height: 100%;
  display: block;
  filter: url(#liquid-cursor-filter);
}

.cursor-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 18px;
}

.cursor-hint::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

@media (hover: none), (pointer: coarse) {
  .cursor-hint {
    display: none;
  }
}

/* ==========================================================================
   Expanding portfolio showcase (click/tap a panel to expand it)
   ========================================================================== */

.expand-gallery {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  height: 420px;
  gap: 12px;
}

.expand-gallery .option {
  position: relative;
  overflow: hidden;
  min-width: 64px;
  flex-grow: 1;
  border-radius: 20px;
  background: var(--option-bg, var(--gradient-brand));
  background-size: auto 120%;
  background-position: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: flex-grow 0.6s cubic-bezier(0.05, 0.61, 0.41, 0.95), border-radius 0.6s cubic-bezier(0.05, 0.61, 0.41, 0.95), background-size 0.6s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}

.expand-gallery .option.active {
  flex-grow: 10000;
  border-radius: 28px;
  background-size: auto 100%;
}

.expand-gallery .option .shadow {
  position: absolute;
  inset: 0;
  transition: box-shadow 0.6s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}

.expand-gallery .option:not(.active) .shadow {
  box-shadow: inset 0 -100px 40px -60px rgba(0, 0, 0, 0.75);
}

.expand-gallery .option.active .shadow {
  box-shadow: inset 0 -160px 100px -80px rgba(0, 0, 0, 0.75);
}

.expand-gallery .option .label {
  display: flex;
  align-items: center;
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 44px;
  overflow: hidden;
}

.expand-gallery .option .icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
}

.expand-gallery .option .icon svg {
  width: 20px;
  height: 20px;
}

.expand-gallery .option .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-inline-start: 12px;
  color: #fff;
  white-space: nowrap;
}

.expand-gallery .option .info > div {
  position: relative;
  left: 14px;
  opacity: 0;
  transition: left 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95), opacity 0.4s ease-out;
}

.expand-gallery .option.active .info > div {
  left: 0;
  opacity: 1;
}

.expand-gallery .option .info .main {
  font-weight: 700;
  font-size: 1.05rem;
}

.expand-gallery .option .info .sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  transition-delay: 0.08s;
}

@media (max-width: 720px) {
  .expand-gallery {
    height: 360px;
  }
  .expand-gallery .option:nth-child(4) {
    display: none;
  }
}

@media (max-width: 560px) {
  .expand-gallery {
    height: 320px;
  }
  .expand-gallery .option:nth-child(3) {
    display: none;
  }
}

@media (max-width: 420px) {
  .expand-gallery .option:not(.active) {
    min-width: 48px;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .nav-links,
  .lang-switch {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  section {
    padding: 80px 0;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-mobile-menu);
  background: var(--bg);
  display: none;
  flex-direction: column;
  padding: calc(var(--nav-h) + 20px) 32px 40px;
  gap: 8px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 1.3rem;
  font-weight: 600;
}

.mobile-menu .lang-switch {
  display: flex;
  margin-top: 24px;
  align-self: flex-start;
}

/* ==========================================================================
   Accessibility: skip link, focus-visible, reduced motion
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--z-skip-link);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.9rem;
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.expand-gallery .option:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 3px;
}

.lang-switch button:focus-visible {
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .marquee-track {
    animation: none !important;
  }

  .cursor-glow,
  .liquid-cursor {
    display: none !important;
  }
}

/* ==========================================================================
   Lead capture (audit modal + inline widget)
   ========================================================================== */

.lc-trigger {
  cursor: pointer;
}

.lc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 5, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lc-overlay.open {
  display: flex;
}

body.lc-lock {
  overflow: hidden;
}

.lc-modal {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px 40px;
  animation: lc-pop 0.35s var(--ease);
}

@keyframes lc-pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lc-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  color: var(--text-dim);
  font-size: 1.3rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.25s var(--ease);
}

.lc-close:hover {
  color: var(--text);
  border-color: var(--primary-2);
  background: var(--primary-dim);
}

.lc-widget {
  width: 100%;
}

.lc-head h3 {
  margin-bottom: 12px;
}

.lc-sub {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 480px;
}

.lc-progress {
  display: flex;
  gap: 8px;
  margin: 28px 0 32px;
}

.lc-progress[hidden] {
  display: none;
}

.lc-dot {
  height: 4px;
  flex: 1;
  border-radius: var(--radius-pill);
  background: var(--border-2);
  transition: background 0.3s var(--ease);
}

.lc-dot.active,
.lc-dot.done {
  background: var(--gradient-brand);
}

.lc-step {
  display: none;
}

.lc-step.active {
  display: block;
  animation: lc-step-in 0.35s var(--ease);
}

@keyframes lc-step-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

[dir="rtl"] .lc-step.active {
  animation-name: lc-step-in-rtl;
}

@keyframes lc-step-in-rtl {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.lc-label {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.lc-input {
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--surface);
  font-size: 1rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.lc-input:focus {
  border-color: var(--primary);
  background: var(--surface-2);
}

.lc-input:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
}

.lc-hint {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  min-height: 1.2em;
}

.lc-hint.error {
  color: var(--accent-2);
}

.lc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lc-pill {
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.25s var(--ease);
}

.lc-pill:hover {
  border-color: var(--primary-2);
  background: var(--primary-dim);
  transform: translateY(-2px);
}

.lc-pill.selected {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
}

.lc-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}

.lc-actions .lc-next,
.lc-actions .lc-submit {
  margin-inline-start: auto;
}

.lc-success {
  text-align: center;
  padding: 24px 0;
}

.lc-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 1.8rem;
  display: grid;
  place-items: center;
}

.lc-success p {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.lc-inline-section .card {
  padding: 56px 48px;
}

@media (max-width: 600px) {
  .lc-modal {
    padding: 36px 22px;
  }

  .lc-inline-section .card {
    padding: 40px 22px;
  }

  .lc-actions {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   Auth (signup / login)
   ========================================================================== */

.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
  background: var(--gradient-radial);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 48px 40px;
}

.auth-card h1 {
  font-size: 1.9rem;
  margin: 10px 0 12px;
}

.auth-sub {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.auth-form input {
  margin-top: 8px;
}

.auth-actions {
  margin-top: 28px;
}

.auth-actions .btn {
  width: 100%;
}

.auth-switch {
  margin-top: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.auth-switch a {
  color: var(--primary-2);
  font-weight: 600;
}

.auth-success {
  text-align: center;
}

.auth-success .lc-success-icon {
  margin: 0 auto 16px;
}

.auth-success p {
  color: var(--text-dim);
  margin-bottom: 24px;
}

/* ==========================================================================
   Dashboard
   ========================================================================== */

.dashboard-main {
  padding: calc(var(--nav-h) + 48px) 0 80px;
  min-height: 100vh;
  background: var(--gradient-radial);
}

.dash-user-email {
  color: var(--text-dim);
  font-size: 0.88rem;
}

.dash-header {
  margin-bottom: 32px;
}

.dash-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 10px 0 10px;
}

.dash-sub {
  color: var(--text-dim);
}

.add-site-card {
  margin-bottom: 40px;
}

.add-site-card h3 {
  margin-bottom: 20px;
}

.add-site-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.sites-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-dim);
}

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

.site-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.site-card-head h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.site-url {
  color: var(--secondary);
  font-size: 0.82rem;
  word-break: break-all;
}

.site-scores {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 24px;
}

.score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.score-ring {
  --score: 0;
  --ring-color: var(--primary);
  position: relative;
  width: 68px;
  height: 68px;
}

.score-ring .ring-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) calc(var(--score) * 3.6deg), var(--surface-3) 0deg);
  transition: background 0.5s var(--ease);
}

.score-ring .ring-inner {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
}

.score-label {
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.02em;
}

.site-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.site-checks li {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.check-ok {
  color: var(--good);
}

.check-warn {
  color: var(--accent-2);
}

.check-bad {
  color: var(--accent-2);
}

.site-audit-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 700px) {
  .add-site-fields {
    grid-template-columns: 1fr;
  }

  .site-scores {
    flex-wrap: wrap;
  }
}
