/* ==========================================================
   Unity Hospital — Modern UI System
   Design tokens, components, animations
   ========================================================== */

:root {
  --bg: #05070d;
  --bg-soft: #0b1020;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e6ecff;
  --text-dim: #9aa3be;
  --text-mute: #6b7290;

  --brand: #22d3ee;      /* cyan */
  --brand-2: #a78bfa;    /* violet */
  --brand-3: #34d399;    /* emerald */
  --danger: #fb7185;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 18px;
  --radius-lg: 26px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 10px 30px -10px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,.7);

  --grad-primary: linear-gradient(135deg, #22d3ee 0%, #a78bfa 60%, #f472b6 100%);
  --grad-primary-soft: linear-gradient(135deg, rgba(34,211,238,.25) 0%, rgba(167,139,250,.25) 60%, rgba(244,114,182,.25) 100%);
  --grad-emerald: linear-gradient(135deg, #34d399, #22d3ee);
  --grad-violet: linear-gradient(135deg, #a78bfa, #f472b6);
}

[data-theme="light"] {
  --bg: #f7f8fc;
  --bg-soft: #ffffff;
  --surface: rgba(10, 14, 30, 0.04);
  --surface-2: rgba(10, 14, 30, 0.06);
  --border: rgba(10, 14, 30, 0.08);
  --border-strong: rgba(10, 14, 30, 0.16);
  --text: #0b1220;
  --text-dim: #3c4560;
  --text-mute: #6b7290;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .6em;
  font-weight: 600;
}

p { margin: 0 0 1em; color: var(--text-dim); }

a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--brand); }

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

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 70px 0; }

/* ---------- Ambient background (aurora) ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(1200px 700px at 10% -10%, rgba(34,211,238,.18), transparent 60%),
              radial-gradient(900px 700px at 100% 0%, rgba(167,139,250,.20), transparent 55%),
              radial-gradient(900px 800px at 60% 120%, rgba(244,114,182,.14), transparent 60%),
              var(--bg);
}
.aurora::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: .45;
}
[data-theme="light"] .aurora {
  background: radial-gradient(1200px 700px at 10% -10%, rgba(34,211,238,.28), transparent 60%),
              radial-gradient(900px 700px at 100% 0%, rgba(167,139,250,.28), transparent 55%),
              radial-gradient(900px 800px at 60% 120%, rgba(244,114,182,.18), transparent 60%),
              var(--bg);
}
[data-theme="light"] .aurora::after { opacity: .25; background-image: radial-gradient(rgba(10,14,30,.08) 1px, transparent 1px); }

/* ---------- Header / Navbar ---------- */
.nav {
  position: fixed;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1240px;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px 12px 22px;
  border-radius: 999px;
  background: rgba(11, 16, 32, 0.55);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease), background .3s var(--ease);
}
[data-theme="light"] .nav { background: rgba(255,255,255,.7); }
.nav.is-hidden { transform: translate(-50%, -120%); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--grad-primary);
  color: #04060c;
  font-weight: 700;
  box-shadow: 0 10px 28px -10px rgba(34,211,238,.6);
  position: relative;
}
.brand-mark::before {
  content: "";
  position: absolute; inset: 6px;
  background:
    linear-gradient(#04060c, #04060c) center/3px 60% no-repeat,
    linear-gradient(#04060c, #04060c) center/60% 3px no-repeat;
  border-radius: 4px;
}
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name small { color: var(--text-mute); font-size: 10px; letter-spacing: .22em; margin-top: 3px; text-transform: uppercase; font-weight: 500; }

.nav-links {
  display: flex; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-dim);
  border-radius: 999px;
  font-weight: 500;
  transition: all .25s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.theme-toggle:hover { background: var(--surface-2); transform: rotate(18deg); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }

.nav-burger {
  display: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  align-items: center; justify-content: center;
}
.nav-burger svg { width: 16px; height: 16px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
}

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(5,7,13,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  display: flex; flex-direction: column;
  padding: 100px 32px 40px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
  color: #e6ecff;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: #e6ecff;
}
.mobile-menu a:hover { color: var(--brand); }
.mobile-menu .close {
  position: absolute; top: 22px; right: 22px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: #e6ecff;
  cursor: pointer;
  font-size: 18px;
}
[data-theme="light"] .mobile-menu {
  background: rgba(255,255,255,.96);
  color: #0b1220;
}
[data-theme="light"] .mobile-menu a {
  color: #0b1220;
  border-bottom-color: rgba(10,14,30,.1);
}
[data-theme="light"] .mobile-menu a:hover { color: var(--brand); }
[data-theme="light"] .mobile-menu .close {
  border-color: rgba(10,14,30,.15);
  background: rgba(10,14,30,.05);
  color: #0b1220;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  font-size: 14px; font-weight: 500;
  font-family: inherit;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .3s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--grad-primary);
  color: #04060c;
  font-weight: 600;
  box-shadow: 0 10px 30px -10px rgba(34,211,238,.55);
}
.btn-primary:hover { color: #04060c; transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(167,139,250,.7); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--surface); color: var(--text); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Surfaces / Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-4px);
}
.card-glow {
  position: relative;
}
.card-glow::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-primary);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.card-glow:hover::before { opacity: 1; }

.glass {
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ---------- Headings utility ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-3);
  box-shadow: 0 0 0 4px rgba(52,211,153,.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
  50% { box-shadow: 0 0 0 8px rgba(52,211,153,.06); }
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  margin-bottom: 18px;
  max-width: 780px;
}
.section-title .grad {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 60px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 18px 0 22px;
}
.hero h1 .grad {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.hero-sub {
  font-size: 1.1rem;
  max-width: 560px;
  color: var(--text-dim);
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(140deg, rgba(34,211,238,.15), rgba(167,139,250,.15));
}
.hero-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5,7,13,.75) 100%);
}

.floating-card {
  position: absolute;
  padding: 16px 18px;
  background: rgba(11,16,32,.78);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.floating-card.tl { top: 24px; left: -24px; }
.floating-card.br { bottom: 32px; right: -24px; animation-delay: -3s; }
[data-theme="light"] .floating-card { background: rgba(255,255,255,.9); }

/* Hero stats strip */
.hero-stats {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 760px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.hero-stat { text-align: left; padding: 0 24px; border-right: 1px solid var(--border); }
.hero-stat:last-child { border-right: 0; }
.hero-stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat .label { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--text-mute); }

/* ---------- Bento grid for specialties ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(190px, auto);
  gap: 18px;
}
.bento > * {
  grid-column: span 1;
  grid-row: span 1;
}
.bento .b-feature {
  grid-column: span 2;
  grid-row: span 2;
}
.bento .b-full { grid-column: span 4; }

/* Even 3-col variant (e.g. about page) */
.bento.bento-even {
  grid-template-columns: repeat(3, 1fr);
}
.bento.bento-even > * {
  grid-column: span 1;
  grid-row: span 1;
}

@media (max-width: 960px) {
  .bento, .bento.bento-even { grid-template-columns: repeat(2, 1fr); }
  .bento > *, .bento.bento-even > * { grid-column: span 1; grid-row: span 1; }
  .bento .b-feature { grid-column: span 2; grid-row: span 1; }
  .bento .b-full { grid-column: span 2; }
}
@media (max-width: 520px) {
  .bento, .bento.bento-even { grid-template-columns: 1fr; }
  .bento .b-feature, .bento .b-full { grid-column: span 1; }
}

.spec-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all .4s var(--ease);
  min-height: 190px;
}
.spec-card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.spec-card .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad-primary-soft);
  color: var(--brand);
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
[data-theme="light"] .spec-card .ico,
[data-theme="light"] .info-card .ico {
  background: linear-gradient(135deg, #0891b2, #7c3aed);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px -6px rgba(124,58,237,.5);
}
.spec-card .ico svg { width: 22px; height: 22px; }
.spec-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.spec-card p { font-size: 14px; color: var(--text-dim); margin: 0; }
.spec-card::after {
  content: "";
  position: absolute;
  inset: auto auto -50% -50%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(34,211,238,.18), transparent 60%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.spec-card:hover::after { opacity: 1; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 960px) { .pricing-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.pricing-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.pricing-card.featured {
  background: linear-gradient(160deg, rgba(34,211,238,.12), rgba(167,139,250,.12));
  border-color: rgba(34,211,238,.35);
}
.pricing-card.featured::before {
  content: "Most Popular";
  position: absolute; top: 16px; right: 16px;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: var(--grad-primary); color: #04060c; font-weight: 600;
}
.pricing-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.pricing-card .tag { font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .15em; }
.pricing-card .price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem; font-weight: 600;
  margin: 24px 0 4px;
  letter-spacing: -0.02em;
}
.pricing-card .price small { font-size: 1rem; color: var(--text-mute); font-weight: 400; }
.pricing-card ul { list-style: none; padding: 20px 0 0; margin: 0; border-top: 1px solid var(--border); }
.pricing-card li {
  padding: 8px 0; font-size: 14px; color: var(--text-dim);
  display: flex; align-items: center; gap: 10px;
}
.pricing-card li::before {
  content: "";
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--grad-emerald);
  display: inline-flex; flex: none;
  box-shadow: 0 0 0 3px rgba(52,211,153,.15);
}

/* ---------- Doctors ---------- */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 960px) { .doctor-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .doctor-grid { grid-template-columns: 1fr; } }
.doctor-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all .4s var(--ease);
}
.doctor-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.doctor-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  background: linear-gradient(140deg, rgba(34,211,238,.18), rgba(167,139,250,.18));
}
.doctor-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
  filter: saturate(1.02);
}
.doctor-card:hover .doctor-img img { transform: scale(1.06); }
.doctor-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5,7,13,.85) 100%);
}
.doctor-info {
  padding: 18px 20px 22px;
}
.doctor-info h4 { font-size: 1.05rem; margin: 0 0 4px; }
.doctor-info .specialty { font-size: 12px; color: var(--brand); text-transform: uppercase; letter-spacing: .15em; font-weight: 500; }
.doctor-info .degree { font-size: 13px; color: var(--text-mute); margin-top: 6px; }
.doctor-socials {
  position: absolute; top: 14px; right: 14px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateX(8px);
  transition: all .3s var(--ease);
}
.doctor-card:hover .doctor-socials { opacity: 1; transform: translateX(0); }
.doctor-socials a {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1);
  color: #fff;
  backdrop-filter: blur(10px);
}
.doctor-socials a:hover { background: var(--brand); color: #04060c; }
.doctor-socials svg { width: 14px; height: 14px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}
@media (max-width: 960px) { .gallery-grid { grid-template-columns: repeat(2,1fr); } }
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .4s var(--ease);
  filter: saturate(1.05);
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item .caption {
  position: absolute; inset: auto 0 0 0;
  padding: 32px 18px 16px;
  background: linear-gradient(0deg, rgba(5,7,13,.9), transparent);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  transform: translateY(20px);
  opacity: 0;
  transition: all .4s var(--ease);
}
.gallery-item:hover .caption { opacity: 1; transform: translateY(0); }
.gi-tall { grid-row: span 2; }
.gi-wide { grid-column: span 2; }
@media (max-width: 960px) { .gi-wide { grid-column: span 2; } .gi-tall { grid-row: span 1; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(5,7,13,.92);
  backdrop-filter: blur(20px);
  z-index: 300;
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; animation: fadeIn .3s var(--ease); }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 16px; box-shadow: var(--shadow-lg); }
.lightbox .close-lb {
  position: absolute; top: 26px; right: 26px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff;
  border: none; cursor: pointer;
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
@media (max-width: 960px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all .4s var(--ease);
}
.blog-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.blog-card .img {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.blog-card .img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.blog-card:hover .img img { transform: scale(1.06); }
.blog-card .meta { padding: 8px 0; font-size: 12px; color: var(--text-mute); display: flex; gap: 16px; text-transform: uppercase; letter-spacing: .14em; }
.blog-card .body { padding: 22px; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-card p { font-size: 14px; color: var(--text-dim); }
.blog-card .read { font-size: 13px; font-weight: 500; color: var(--brand); display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; position: relative; }
.form-group label {
  display: block;
  font-size: 12px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--text-mute);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: all .25s var(--ease);
}
.form-control:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface-2);
  box-shadow: 0 0 0 4px rgba(34,211,238,.12);
}
.form-control::placeholder { color: var(--text-mute); }
textarea.form-control { min-height: 140px; resize: vertical; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa3be' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.checkbox-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-dim);
  cursor: pointer;
}
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--brand); }

/* ---------- Auth cards ---------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (max-width: 960px) { .auth-wrap { grid-template-columns: 1fr; } }
.auth-side {
  position: relative;
  overflow: hidden;
  padding: 80px 60px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, rgba(34,211,238,.2), rgba(167,139,250,.2), rgba(244,114,182,.14));
  border-right: 1px solid var(--border);
}
.auth-side::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(500px 400px at 30% 30%, rgba(34,211,238,.3), transparent 60%),
    radial-gradient(500px 400px at 80% 80%, rgba(167,139,250,.3), transparent 60%);
  opacity: .6;
}
.auth-side > * { position: relative; z-index: 1; }
.auth-side h2 { font-size: 2.2rem; }
.auth-form-wrap {
  display: grid; place-items: center;
  padding: 60px 40px;
}
.auth-form { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: 2rem; margin-bottom: 8px; }
.auth-form .muted { color: var(--text-mute); font-size: 14px; margin-bottom: 32px; }
@media (max-width: 960px) { .auth-side { display: none; } }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
}
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card {
  display: flex; gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 14px;
  transition: all .3s var(--ease);
}
.info-card:hover { background: var(--surface-2); border-color: var(--border-strong); }
.info-card .ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad-primary-soft);
  color: var(--brand);
  flex: none;
}
.info-card h4 { margin: 0 0 4px; font-size: .95rem; }
.info-card p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .testi-grid { grid-template-columns: 1fr; } }
.testi {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.testi .stars { color: #fbbf24; margin-bottom: 14px; letter-spacing: 2px; }
.testi p { font-size: 15px; color: var(--text); line-height: 1.6; }
.testi .who {
  display: flex; gap: 12px; align-items: center;
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--border);
}
.testi .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad-primary);
  display: grid; place-items: center;
  font-weight: 600; color: #04060c; font-size: 14px;
}
.testi .who-text { line-height: 1.3; }
.testi .who-text strong { display: block; font-size: 14px; }
.testi .who-text small { color: var(--text-mute); font-size: 12px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  padding: 70px 60px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(34,211,238,.2), rgba(167,139,250,.25), rgba(244,114,182,.15));
  border: 1px solid var(--border-strong);
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: -50%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(34,211,238,.15) 25%, transparent 50%, rgba(167,139,250,.15) 75%, transparent 100%);
  animation: spin 20s linear infinite;
  z-index: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
@media (max-width: 600px) { .cta-banner { padding: 50px 24px; } }

/* ---------- Footer ---------- */
.footer {
  padding: 80px 0 30px;
  border-top: 1px solid var(--border);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .16em; color: var(--text-mute); margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 14px; color: var(--text-dim); }
.footer ul a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 28px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--text-mute);
}
.socials { display: flex; gap: 8px; }
.socials a {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim);
}
.socials a:hover { background: var(--grad-primary); color: #04060c; border-color: transparent; }
.socials svg { width: 14px; height: 14px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  padding: 180px 0 60px;
  position: relative;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.page-hero h1 .grad {
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero p { color: var(--text-dim); max-width: 620px; margin: 0 auto; }

.breadcrumb {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-mute);
  text-transform: uppercase; letter-spacing: .16em;
  margin-bottom: 22px;
}
.breadcrumb span { color: var(--brand); }

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; } }
.about-img {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--border);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }

.values {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 960px) { .values { grid-template-columns: repeat(2,1fr); } }
.value {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  transition: all .3s var(--ease);
}
.value:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.value .n { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 2rem; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.value strong { display: block; margin-top: 6px; }

/* ---------- Prose (privacy/terms) ---------- */
.prose {
  max-width: 820px;
  margin: 0 auto;
  font-size: 15px;
}
.prose h2 { font-size: 1.4rem; margin-top: 40px; margin-bottom: 12px; }
.prose h3 { font-size: 1.1rem; margin-top: 28px; }
.prose p { color: var(--text-dim); }
.prose ul { color: var(--text-dim); padding-left: 18px; }
.prose li { margin-bottom: 8px; }

/* ---------- Utilities ---------- */
.text-grad { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-dim { color: var(--text-dim); }
.text-mute { color: var(--text-mute); }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-6 { margin-top: 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.text-center { text-align: center; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ---------- Cursor effect (optional) ---------- */
.cursor-glow {
  position: fixed;
  width: 400px; height: 400px;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.14), transparent 60%);
  transform: translate(-50%, -50%);
  transition: opacity .3s;
  mix-blend-mode: screen;
}
@media (max-width: 960px) { .cursor-glow { display: none; } }
