:root {
  --bg: #f5f7fb;
  --bg-soft: #edf1f7;
  --panel: rgba(255,255,255,0.92);
  --panel-strong: rgba(255,255,255,0.98);
  --text: #16212f;
  --muted: #5f6d81;
  --line: rgba(18,33,52,0.12);
  --accent: #ff6b2c;
  --accent-2: #0d6efd;
  --shadow: 0 18px 48px rgba(15,23,42,.08);
  --radius: 24px;
  --radius-sm: 18px;
  --container: min(1180px, calc(100vw - 2rem));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,107,44,.08), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, #f2f5fa 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: var(--container); margin: 0 auto; }
.narrow { max-width: 760px; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .9rem; }
.brand img { width: 66px; height: 66px; object-fit: contain; }
.brand strong { display: block; font-size: 1rem; }
.brand small { color: var(--muted); display: block; font-size: .82rem; }
.site-nav { display: flex; align-items: center; gap: 1.2rem; }
.site-nav a { color: var(--muted); font-weight: 600; }
.site-nav a.active, .site-nav a:hover { color: var(--text); }
.nav-toggle { display: none; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: .9rem 1.25rem;
  border: 1px solid var(--line); transition: .2s ease;
  font-weight: 700;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: linear-gradient(135deg, var(--accent), #ff8b2d);
  color: #fff; border-color: transparent;
  box-shadow: 0 12px 30px rgba(255,107,44,.28);
}
.button-secondary { background: #fff; }
.hero-section, .inner-hero { padding: 4.5rem 0 2rem; }
.hero-grid, .two-col-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; }
.hero-copy h1, .inner-hero h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: .98; margin: .5rem 0 1rem; letter-spacing: -.04em; }
.lead { color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.eyebrow {
  display: inline-block; padding: .45rem .8rem; border-radius: 999px;
  background: rgba(13,110,253,.08); border: 1px solid rgba(13,110,253,.14);
  color: var(--accent-2); font-weight: 800; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em;
}
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin: 1.75rem 0; }
.hero-points, .check-list, .footer-list { list-style: none; padding: 0; margin: 0; }
.hero-points li, .check-list li, .check-item {
  padding-left: 1.5rem; position: relative; color: var(--muted); margin: .8rem 0;
}
.hero-points li::before, .check-list li::before, .check-item::before {
  content: '•'; position: absolute; left: 0; color: var(--accent);
}
.glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.88));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-visual { padding: 1rem; }
.hero-main-image {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) - 10px);
}
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: .9rem; }
.hero-stats div, .download-meta {
  background: rgba(245,247,251,.95); border: 1px solid rgba(18,33,52,.08);
  border-radius: var(--radius-sm); padding: 1rem;
}
.hero-stats strong { display: block; margin-bottom: .3rem; }
.hero-stats span, .download-meta span { color: var(--muted); font-size: .9rem; }
.section { padding: 4.5rem 0; }
.section-dark { background: linear-gradient(180deg, #f0f4f9, #eef3f9); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tinted { background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.6)); }
.section-heading { margin-bottom: 2rem; }
.split-heading, .info-grid, .contact-layout, .showcase-grid, .footer-grid, .brand-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.split-heading h2, .section-heading h2, .brand-strip h2, .cta-card h2, .showcase-grid h2, .info-grid h2 { font-size: clamp(2rem, 3.7vw, 3.4rem); line-height: 1.02; margin: .55rem 0 0; letter-spacing: -.03em; }
.split-heading p, .brand-strip p, .info-grid p, .showcase-grid p, .cta-card p { color: var(--muted); line-height: 1.8; }
.feature-pills { display: flex; flex-wrap: wrap; gap: .8rem; align-content: start; }
.feature-pills span, .filter-chip {
  padding: .8rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.9); color: var(--text);
}
.filter-chip { cursor: pointer; }
.filter-chip.is-active { background: rgba(255,107,44,.15); border-color: rgba(255,107,44,.35); }
.service-grid, .download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.service-card, .download-card { padding: 1.5rem; }
.service-card h3, .service-card h2, .download-card h2 { margin-top: 0; font-size: 1.35rem; }
.service-card p, .download-card p { color: var(--muted); line-height: 1.75; }
.service-card a, .download-card a { color: var(--accent-2); font-weight: 700; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
.stacked-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stacked-gallery figure, .gallery-tile, .footer-mini-gallery a { margin: 0; overflow: hidden; border-radius: var(--radius-sm); }
.stacked-gallery img, .gallery-tile img, .footer-mini-gallery img, .mini-gallery-card img {
  width: 100%; height: 100%; object-fit: cover;
}
.stacked-gallery figure { position: relative; min-height: 220px; }
.stacked-gallery figcaption {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  padding: .7rem .9rem; border-radius: 999px; background: rgba(0,0,0,.55); font-size: .9rem;
}
.masonry-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.gallery-tile {
  border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--text); text-align: left; cursor: pointer;
  padding: 0;
}
.gallery-tile img { aspect-ratio: 4 / 3; }
.gallery-tile span, .gallery-tile small { display: block; padding: 0 1rem 1rem; }
.gallery-tile span { font-weight: 700; padding-top: .9rem; }
.gallery-tile small { color: var(--muted); padding-top: 0; }
.mini-gallery-card { padding: 1rem; display: grid; gap: .8rem; }
.mini-gallery-card img { aspect-ratio: 16 / 10; border-radius: 20px; }
.cta-card { padding: 2rem; display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: flex-end; }
.filters-row { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.download-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.quote-form { display: grid; gap: 1rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label span { display: block; margin-bottom: .45rem; font-weight: 700; }
input, textarea, select {
  width: 100%; padding: .95rem 1rem; border-radius: 16px; border: 1px solid var(--line);
  background: #fff; color: var(--text);
}
textarea { resize: vertical; }
.form-card, .contact-info-card, .feature-list-card { padding: 1.5rem; }
.contact-methods { display: grid; gap: .7rem; margin-top: 1.3rem; }
.alert { padding: 1rem 1.1rem; border-radius: 18px; margin-bottom: 1rem; }
.alert.success { background: rgba(48, 197, 109, .15); border: 1px solid rgba(48, 197, 109, .28); }
.alert.error { background: rgba(255, 93, 93, .14); border: 1px solid rgba(255, 93, 93, .24); }
.site-footer { padding: 3rem 0 2rem; border-top: 1px solid var(--line); margin-top: 2rem; background: #fff; }
.site-footer p, .footer-list li { color: var(--muted); line-height: 1.75; }
.footer-badges { display: flex; gap: .8rem; margin-top: 1rem; align-items: center; }
.footer-badges img { max-height: 52px; width: auto; }
.footer-mini-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; margin-top: 2rem; }
.footer-mini-gallery img { aspect-ratio: 1 / 1; }
.footer-bottom { padding-top: 1.5rem; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(5,8,12,.9); padding: 2rem;
}
.lightbox img { max-width: min(90vw, 1200px); max-height: 78vh; border-radius: 22px; }
.lightbox p { margin-top: 1rem; color: #fff; font-weight: 700; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem; width: 52px; height: 52px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: #fff; font-size: 2rem;
}
code { color: var(--accent-2); }
@media (max-width: 1024px) {
  .hero-grid, .two-col-hero, .split-heading, .info-grid, .contact-layout, .showcase-grid, .footer-grid, .brand-strip, .cta-card { grid-template-columns: 1fr; }
  .service-grid, .download-grid, .masonry-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .8rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text);
  }
  .site-nav {
    position: absolute; left: 1rem; right: 1rem; top: calc(100% + .5rem);
    display: none; flex-direction: column; align-items: stretch; padding: 1rem;
    background: rgba(10,12,17,.96); border: 1px solid var(--line); border-radius: 22px;
  }
  .site-nav.open { display: flex; }
  .hero-copy h1, .inner-hero h1 { font-size: clamp(2.3rem, 10vw, 3.4rem); }
  .hero-stats, .field-grid, .check-grid, .service-grid, .download-grid, .masonry-grid, .footer-mini-gallery { grid-template-columns: 1fr; }
  .brand img { width: 54px; height: 54px; }
  .section, .hero-section, .inner-hero { padding: 3rem 0 1.5rem; }
}

.lightbox[hidden] { display: none !important; }
.empty-state { padding: 2rem; text-align: center; }
.site-nav a { position: relative; }
.site-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.35rem; height: 2px; background: var(--accent); border-radius: 999px; }
.gallery-tile:hover, .service-card:hover, .download-card:hover { transform: translateY(-2px); transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 20px 36px rgba(15,23,42,.08); }


.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: .75rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.9); color: var(--text);
  font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.theme-toggle:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(15,23,42,.1); }
.retro-scene { display: none; }

html[data-theme="retro"] {
  --bg: #090312;
  --bg-soft: #150923;
  --panel: rgba(14, 7, 28, 0.86);
  --panel-strong: rgba(20, 10, 38, 0.96);
  --text: #f7ecff;
  --muted: #d3b7ef;
  --line: rgba(255, 0, 153, 0.22);
  --accent: #ff2cab;
  --accent-2: #27f1ff;
  --shadow: 0 20px 50px rgba(0,0,0,.4);
}
html[data-theme="retro"] body {
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 120, 0, .22), transparent 26%),
    radial-gradient(circle at 15% 20%, rgba(255, 44, 171, .14), transparent 24%),
    radial-gradient(circle at 85% 15%, rgba(39, 241, 255, .12), transparent 20%),
    linear-gradient(180deg, #090312 0%, #140522 48%, #090312 100%);
  color: var(--text);
}
html[data-theme="retro"] .retro-scene {
  display: block; position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
html[data-theme="retro"] .site-shell { position: relative; z-index: 1; }
html[data-theme="retro"] .retro-sun {
  position: absolute; left: 50%; top: 86px; transform: translateX(-50%);
  width: min(44vw, 540px); height: min(44vw, 540px); border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,216,84,.95), rgba(255,80,160,.9) 65%, rgba(255,44,171,.55));
  box-shadow: 0 0 90px rgba(255, 83, 164, .28);
  opacity: .92;
  filter: saturate(1.15);
}
html[data-theme="retro"] .retro-sun::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-linear-gradient(180deg, transparent 0 16px, rgba(12,2,25,.5) 16px 20px);
}
html[data-theme="retro"] .retro-grid {
  position: absolute; inset: auto -8% -8% -8%; height: 62vh;
  background:
    linear-gradient(rgba(39,241,255,.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39,241,255,.22) 1px, transparent 1px);
  background-size: 100% 58px, 58px 100%;
  transform: perspective(520px) rotateX(77deg);
  transform-origin: bottom center;
  opacity: .65;
}
html[data-theme="retro"] .site-header {
  background: rgba(9, 3, 18, .72); border-bottom-color: rgba(39,241,255,.2);
  box-shadow: 0 12px 36px rgba(0,0,0,.22);
}
html[data-theme="retro"] .brand small,
html[data-theme="retro"] .site-nav a,
html[data-theme="retro"] .lead,
html[data-theme="retro"] .hero-points li,
html[data-theme="retro"] .split-heading p,
html[data-theme="retro"] .brand-strip p,
html[data-theme="retro"] .info-grid p,
html[data-theme="retro"] .showcase-grid p,
html[data-theme="retro"] .cta-card p,
html[data-theme="retro"] .service-card p,
html[data-theme="retro"] .download-card p,
html[data-theme="retro"] .site-footer p,
html[data-theme="retro"] .footer-list li,
html[data-theme="retro"] .hero-stats span,
html[data-theme="retro"] .download-meta span,
html[data-theme="retro"] input,
html[data-theme="retro"] textarea,
html[data-theme="retro"] select { color: var(--muted); }
html[data-theme="retro"] .site-nav a.active,
html[data-theme="retro"] .site-nav a:hover,
html[data-theme="retro"] .service-card a,
html[data-theme="retro"] .download-card a { color: var(--accent-2); }
html[data-theme="retro"] .site-nav a.active::after { background: var(--accent-2); box-shadow: 0 0 12px rgba(39,241,255,.9); }
html[data-theme="retro"] .eyebrow,
html[data-theme="retro"] .feature-pills span,
html[data-theme="retro"] .filter-chip,
html[data-theme="retro"] .theme-toggle,
html[data-theme="retro"] .hero-stats div,
html[data-theme="retro"] .download-meta,
html[data-theme="retro"] input,
html[data-theme="retro"] textarea,
html[data-theme="retro"] select {
  background: rgba(14, 7, 28, .8); border-color: rgba(39,241,255,.22);
}
html[data-theme="retro"] .theme-toggle {
  color: var(--accent-2); text-shadow: 0 0 8px rgba(39,241,255,.35);
  box-shadow: inset 0 0 0 1px rgba(39,241,255,.12), 0 0 18px rgba(39,241,255,.08);
}
html[data-theme="retro"] .theme-toggle.is-retro {
  background: linear-gradient(135deg, rgba(255,44,171,.18), rgba(39,241,255,.16));
  color: #fff; border-color: rgba(255,44,171,.35);
  box-shadow: 0 0 0 1px rgba(255,44,171,.24), 0 0 24px rgba(255,44,171,.18), 0 0 32px rgba(39,241,255,.14);
}
html[data-theme="retro"] .button-primary {
  background: linear-gradient(135deg, #ff2cab, #ff7a18 70%, #ffd84e);
  box-shadow: 0 0 28px rgba(255,44,171,.34), 0 0 42px rgba(255,122,24,.2);
}
html[data-theme="retro"] .button-secondary {
  background: rgba(14, 7, 28, .82); border-color: rgba(39,241,255,.24); color: var(--accent-2);
}
html[data-theme="retro"] .glass-card,
html[data-theme="retro"] .service-card,
html[data-theme="retro"] .download-card,
html[data-theme="retro"] .gallery-tile,
html[data-theme="retro"] .form-card,
html[data-theme="retro"] .contact-info-card,
html[data-theme="retro"] .feature-list-card,
html[data-theme="retro"] .cta-card {
  background: linear-gradient(180deg, rgba(18,9,34,.9), rgba(11,5,23,.88));
  border-color: rgba(255,44,171,.18);
  box-shadow: 0 0 0 1px rgba(39,241,255,.08), 0 18px 36px rgba(0,0,0,.34);
}
html[data-theme="retro"] .hero-copy h1,
html[data-theme="retro"] .inner-hero h1,
html[data-theme="retro"] .split-heading h2,
html[data-theme="retro"] .section-heading h2,
html[data-theme="retro"] .brand-strip h2,
html[data-theme="retro"] .cta-card h2,
html[data-theme="retro"] .showcase-grid h2,
html[data-theme="retro"] .info-grid h2 {
  text-shadow: 0 0 16px rgba(255,44,171,.24), 0 0 26px rgba(39,241,255,.14);
}
html[data-theme="retro"] .hero-main-image,
html[data-theme="retro"] .stacked-gallery figure,
html[data-theme="retro"] .gallery-tile,
html[data-theme="retro"] .footer-mini-gallery a {
  box-shadow: 0 0 0 1px rgba(39,241,255,.1), 0 0 30px rgba(39,241,255,.06);
}
html[data-theme="retro"] .stacked-gallery figcaption {
  background: linear-gradient(90deg, rgba(255,44,171,.72), rgba(39,241,255,.45));
  color: white;
}
html[data-theme="retro"] .section-dark,
html[data-theme="retro"] .section-tinted,
html[data-theme="retro"] .site-footer {
  background: transparent;
  border-color: rgba(39,241,255,.14);
}
html[data-theme="retro"] .footer-badges img { filter: saturate(1.05) contrast(1.05); }
html[data-theme="retro"] .gallery-tile:hover,
html[data-theme="retro"] .service-card:hover,
html[data-theme="retro"] .download-card:hover,
html[data-theme="retro"] .theme-toggle:hover {
  box-shadow: 0 0 0 1px rgba(39,241,255,.14), 0 0 30px rgba(39,241,255,.12), 0 18px 36px rgba(0,0,0,.28);
}
html[data-theme="retro"] .nav-toggle {
  background: rgba(14,7,28,.76); border-color: rgba(39,241,255,.22); color: var(--accent-2);
}
html[data-theme="retro"] .site-nav.open {
  background: rgba(8,3,18,.96); border-color: rgba(39,241,255,.2);
}
@media (max-width: 760px) {
  .theme-toggle { min-height: 44px; }
  html[data-theme="retro"] .retro-sun { width: 72vw; height: 72vw; top: 112px; }
  html[data-theme="retro"] .retro-grid { height: 48vh; }
}
