:root {
  --bg: #0b0d17;
  --panel: rgba(22, 25, 43, 0.68);
  --panel-strong: rgba(25, 29, 48, 0.9);
  --text: #f7f8ff;
  --muted: #aeb4c8;
  --line: rgba(255, 255, 255, 0.11);
  --blue: #50b7fc;
  --purple: #a486fd;
  --orange: #fb976a;
  --danger: #ff6b87;
  --success: #61e1a7;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.light {
  --bg: #f9fbff;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --text: #1a1d2d;
  --muted: #596175;
  --line: rgba(18, 24, 39, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, label, select { cursor: pointer; }
img { max-width: 100%; display: block; }

.site-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(80, 183, 252, 0.18), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(164, 134, 253, 0.2), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(251, 151, 106, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 35%);
}
.site-bg span {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .28;
}
.site-bg span:nth-child(1) { background: var(--blue); top: 12%; left: -12rem; }
.site-bg span:nth-child(2) { background: var(--purple); top: 28%; right: -13rem; }
.site-bg span:nth-child(3) { background: var(--orange); bottom: -14rem; left: 35%; }

.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.section { padding: 62px 0; position: relative; }
.section.slim { padding: 30px 0; }
.section.flush { padding-top: 0; }
.overflow-hidden { overflow: hidden; }
.center { text-align: center; }
.hidden { display: none !important; }

.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 16px; display: flex; justify-content: center; pointer-events: none; }
.nav-shell {
  pointer-events: auto;
  width: min(1120px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: .25s ease;
}
.topbar.scrolled .nav-shell, .nav-shell:hover { background: rgba(13, 16, 30, 0.7); backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 18px 60px -30px rgba(80,183,252,.5); }
.light .topbar.scrolled .nav-shell, .light .nav-shell:hover { background: rgba(255,255,255,.76); }
.brand { display: inline-flex; align-items: center; gap: 9px; padding-left: 8px; font-weight: 800; font-size: 18px; letter-spacing: -0.03em; }
.brand span, h1 span, h2 span, .footer-brand {
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: rgba(255,255,255,.06); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,.05); border-radius: 999px; padding: 9px 12px; }

.btn, .mini-btn, .row-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 20px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--purple) 55%, var(--orange));
  box-shadow: 0 18px 50px -22px rgba(164,134,253,.8);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover, .mini-btn:hover, .row-actions button:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 0 0 1px rgba(164,134,253,.7), 0 0 25px rgba(80,183,252,.35); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-ghost { background: rgba(255,255,255,.06); border: 1px solid var(--line); box-shadow: none; color: var(--text); }
.btn.light { background: #fff; color: #0b0d17; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); }
.ui-icon, .theme-icon, .check-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-moon { display: none; }
.light .theme-sun { display: none; }
.light .theme-moon { display: block; }
.theme-icon { width: 20px; height: 20px; object-fit: contain; }

.hero { padding-top: 112px; padding-bottom: 56px; overflow: hidden; }
.pill, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.eyebrow { border: 0; background: transparent; padding: 0; color: var(--blue); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(44px, 8vw, 82px); line-height: 1.03; letter-spacing: -0.04em; margin-bottom: 24px; }
h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.035em; margin: 8px 0 16px; }
h3 { letter-spacing: -0.02em; }
.lead, .page-hero p, .section-heading p, .cta p { max-width: 720px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero .lead, .section-heading.center p { margin-inline: auto; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 13px; }
.stat-glass, .glass-panel, .glow-card, .testimonial, .contact-info article, .person, .info-band, .admin-panel, .admin-cards article {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
}
.stat-glass {
  margin: 42px auto 0;
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 28px;
}
.stat-glass article { padding: 24px 14px; border-radius: 18px; background: rgba(255,255,255,.035); }
.stat-glass strong, .band strong { display: block; font-size: clamp(30px, 5vw, 48px); color: transparent; background: linear-gradient(90deg, var(--blue), var(--purple), var(--orange)); -webkit-background-clip: text; background-clip: text; }
.stat-glass span, .band span { color: var(--muted); font-size: 13px; }

.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading.compact { margin-bottom: 24px; }
.card-grid { display: grid; gap: 18px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.glow-card, .quiet-card, .testimonial { border-radius: 22px; padding: 22px; min-height: 100%; }
.glow-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(164,134,253,.08), 0 26px 70px -48px rgba(80,183,252,.7);
}
.glow-card::before, .quiet-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  transition: opacity .25s ease;
}
.glow-card:hover::before, .quiet-card:hover::before { opacity: .8; }
.glow-card.tall { display: flex; flex-direction: column; }
.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, rgba(80,183,252,.22), rgba(164,134,253,.22));
  border: 1px solid var(--line);
  color: var(--blue);
}
.service-icon img { width: 26px; height: 26px; object-fit: contain; }
.glow-card p, .quiet-card p, .testimonial span, .footer p, .footer span, .modal-copy, .install-note { color: var(--muted); line-height: 1.65; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags span, .job-tags span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.05);
  font-size: 12px;
}
.text-link { display: inline-flex; margin-top: auto; padding-top: 24px; color: var(--blue); font-weight: 700; background: transparent; border: 0; }
.quiet-card { position: relative; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.band, .info-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px; border-radius: 24px; background: linear-gradient(135deg, rgba(80,183,252,.1), rgba(164,134,253,.08), rgba(251,151,106,.08)); }
.info-band { grid-template-columns: repeat(3, 1fr); }
.info-band article { display: grid; gap: 8px; min-width: 0; }
.info-band strong { font-size: 15px; }
.info-band span { color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.marquee { width: 100%; overflow: hidden; margin: 10px 0; padding-inline: 16px; }
.marquee div { display: flex; flex-wrap: wrap; justify-content: center; width: auto; gap: 10px; animation: none; }
.marquee.reverse div { animation: none; }
.marquee span { border: 1px solid var(--line); background: rgba(255,255,255,.05); border-radius: 999px; padding: 10px 16px; color: var(--muted); white-space: nowrap; }
.testimonial .stars { color: var(--orange); letter-spacing: .12em; margin-bottom: 18px; }
.testimonial strong { display: block; margin-top: 18px; }
.cta { text-align: center; border: 1px solid var(--line); border-radius: 28px; padding: 42px; background: linear-gradient(135deg, rgba(80,183,252,.15), rgba(164,134,253,.13), rgba(251,151,106,.12)); }
.cta p { margin-inline: auto; }
.cta .btn { margin: 18px 6px 0; }
.page-hero { padding-top: 116px; padding-bottom: 44px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.check-grid span { display: flex; align-items: center; gap: 8px; color: var(--text); min-width: 0; }
.check-grid img { width: 16px; height: 16px; object-fit: contain; flex: 0 0 auto; }
.check-icon { width: 17px; height: 17px; flex: 0 0 auto; color: var(--blue); stroke-width: 2.5; }
.process { margin: 0; padding: 28px; border-radius: 26px; list-style: none; }
.process li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.process li:last-child { border-bottom: 0; }
.process b { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--purple)); color: white; flex: 0 0 auto; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.person { display: flex; gap: 14px; align-items: center; padding: 20px; border-radius: 20px; }
.person b { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, var(--blue), var(--purple), var(--orange)); }
.person span { color: var(--muted); font-size: 14px; }

.job-toolbar { border-radius: 24px; padding: 14px; display: grid; gap: 12px; }
.search-field span { position: absolute; left: -999px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}
textarea { min-height: 132px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: rgba(164,134,253,.72); box-shadow: 0 0 0 3px rgba(164,134,253,.12); }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-row button, .tabs button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 13px;
}
.filter-row button.active, .tabs button.active { color: white; background: linear-gradient(135deg, var(--blue), var(--purple)); border-color: transparent; }
.job-card { border: 1px solid var(--line); background: var(--panel); border-radius: 22px; padding: 24px; }
.job-card[hidden] { display: none; }
.job-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.job-tags .hot { color: var(--orange); border-color: rgba(251,151,106,.38); background: rgba(251,151,106,.08); }
.job-card dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0 0; }
.job-card dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.job-card dd { margin: 2px 0 0; font-size: 13px; }
.empty-state { border: 1px dashed var(--line); border-radius: 20px; padding: 40px; text-align: center; color: var(--muted); }
.modal { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.72); backdrop-filter: blur(10px); padding: 24px; overflow-y: auto; }
.modal.open { display: grid; place-items: center; }
.modal-panel { position: relative; width: min(760px, 100%); background: var(--panel-strong); border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: 0 30px 100px rgba(0,0,0,.38); }
.modal-close { position: absolute; right: 18px; top: 18px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text); font-size: 22px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.info-grid article { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: rgba(255,255,255,.045); }
.info-grid span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; align-items: start; }
.contact-info { display: grid; gap: 14px; }
.contact-info article { border-radius: 20px; padding: 20px; }
.contact-info span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.contact-panel { border-radius: 28px; padding: 10px; }
.tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 6px; background: rgba(0,0,0,.12); border-radius: 20px; }
.tabs button { border-radius: 16px; min-height: 46px; }
.form-stack { padding: 22px 10px 4px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .wide, .wide { grid-column: 1 / -1; }
.file-field { display: grid; gap: 8px; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; padding: 13px 14px; }
.file-field input { padding: 0; border: 0; background: transparent; margin-top: 6px; }
.install-note { margin: 14px 10px; }
.flash { position: relative; z-index: 60; width: min(760px, calc(100% - 32px)); margin: 92px auto -60px; border-radius: 16px; padding: 14px 16px; border: 1px solid var(--line); background: var(--panel-strong); }
.flash.success { border-color: rgba(97,225,167,.42); color: var(--success); }
.flash.error { border-color: rgba(255,107,135,.42); color: var(--danger); }

.footer { margin-top: 62px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding: 44px 0; }
.footer-brand { font-size: 22px; font-weight: 800; }
.footer section { display: flex; flex-direction: column; gap: 9px; }
.footer h3 { margin: 0 0 8px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.social-links { display: flex; flex-direction: row; flex-wrap: wrap; gap: 9px; margin-top: 8px; }
.social-links a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.05); color: var(--text); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.social-links a:hover { border-color: rgba(80,183,252,.55); box-shadow: 0 0 18px rgba(80,183,252,.24); transform: translateY(-1px); }
.social-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }

.admin-body { background: var(--bg); }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); padding: 32px; border-radius: 28px; display: grid; gap: 14px; }
.login-card img { border-radius: 16px; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 24px; border-right: 1px solid var(--line); background: rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 8px; }
.admin-brand { font-size: 24px; font-weight: 800; margin-bottom: 20px; }
.admin-sidebar a { padding: 12px 14px; border-radius: 14px; color: var(--muted); }
.admin-sidebar a.active, .admin-sidebar a:hover { color: var(--text); background: rgba(255,255,255,.07); }
.admin-main { padding: 32px; }
.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 22px 0; }
.admin-cards article { border-radius: 20px; padding: 22px; }
.admin-cards span { display: block; color: var(--muted); }
.admin-cards strong { font-size: 34px; }
.admin-grid.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.admin-panel { border-radius: 22px; padding: 22px; margin-bottom: 18px; overflow: auto; }
.admin-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
details.admin-row { display: block; }
.admin-row:last-child { border-bottom: 0; }
.admin-row span, .admin-row a { display: inline-block; color: var(--muted); margin-right: 10px; font-size: 13px; }
.row-actions { display: flex; gap: 8px; align-items: center; }
.row-actions form { margin: 0; }
.mini-btn, .row-actions button, .admin-row button { min-height: 34px; padding: 0 12px; font-size: 12px; }
.admin-inline { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
code { border: 1px solid var(--line); border-radius: 8px; padding: 2px 6px; background: rgba(255,255,255,.06); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel-strong);
    backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-actions .btn { display: none; }
  .card-grid.three, .card-grid.four, .team-grid, .footer-grid, .admin-cards, .admin-grid.two { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .stat-glass, .band, .info-band { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1120px); }
  .section { padding: 46px 0; }
  .hero, .page-hero { padding-top: 104px; }
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .card-grid.two, .card-grid.three, .card-grid.four, .team-grid, .footer-grid, .admin-cards, .stat-glass, .band, .info-band, .form-grid, .info-grid, .job-card dl, .check-grid { grid-template-columns: 1fr; }
  .cta { padding: 30px 18px; }
  .footer-bottom, .admin-row { flex-direction: column; align-items: flex-start; }
  .modal { padding: 12px; }
  .modal-panel { padding: 22px 16px; border-radius: 22px; }
  .admin-main { padding: 18px; }
}

@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; }
}
