:root {
  --bg: #0e1116;
  --bg-alt: #151a21;
  --surface: #1b212a;
  --surface-2: #222a35;
  --border: #2c3542;
  --text: #e6e9ee;
  --muted: #9aa4b2;
  --accent: #f37b3f;
  --accent-2: #ffb347;
  --green: #5fd38d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --max: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

[hidden] { display: none !important; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 17, 22, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.3px; }
.brand-tagline { font-size: 0.78rem; color: var(--accent); font-style: italic; }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav li { position: relative; }

.main-nav a,
.sub-toggle {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.main-nav a:hover,
.sub-toggle:hover { background: var(--surface); text-decoration: none; }

.main-nav a.active,
.sub-toggle.active { color: var(--accent); }

.sub-toggle::after {
  content: "";
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}

.sub-menu {
  list-style: none;
  margin: 0;
  padding: 6px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu,
.has-sub.open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.sub-menu a { white-space: normal; }
.ext { font-size: 0.8em; color: var(--muted); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 10px 20px 16px;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; }
  .sub-toggle { width: 100%; text-align: left; }
  .sub-menu {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0 14px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .has-sub:hover > .sub-menu,
  .has-sub:focus-within > .sub-menu { display: none; }
  .has-sub.open > .sub-menu { display: block; }
}

/* Hero / page heads */
.hero,
.page-head {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(243, 123, 63, 0.22), transparent 60%),
    radial-gradient(700px 350px at 0% 120%, rgba(95, 211, 141, 0.12), transparent 60%),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.hero { padding: 80px 0 64px; }
.page-head { padding: 48px 0 36px; margin-bottom: 36px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 600;
}

h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.2; }
h2, h3 { line-height: 1.3; }

.lead { max-width: 760px; color: var(--muted); font-size: 1.1rem; margin: 18px 0 28px; }

.quote {
  margin: 0;
  max-width: 760px;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote p { margin: 0 0 6px; font-style: italic; }
.quote cite { color: var(--muted); font-style: normal; font-size: 0.9rem; }

.section-title {
  margin: 56px 0 20px;
  font-size: 1.45rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::before {
  content: "";
  width: 6px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(var(--accent), var(--accent-2));
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); text-decoration: none; }

.card-media { height: 170px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-media.light { background: #fff; padding: 20px; }
.card-media.light img { max-height: 130px; width: auto; }
.card-media.dark { background: #000; }
.card-media.dark img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }

.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card-body p { margin: 0 0 16px; color: var(--muted); font-size: 0.95rem; flex: 1; }
.card-link { color: var(--accent); font-weight: 600; font-size: 0.95rem; }

/* News */
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.news li {
  padding: 14px 18px 14px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
}
.news li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(95, 211, 141, 0.15);
}

.banner-strip {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  overflow-x: auto;
}
.banner-strip img { margin: 0 auto; }

/* Eye Pro / Solar */
.wide-banner { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }

.intro { max-width: 860px; margin: 28px 0; color: var(--muted); font-size: 1.05rem; }
.intro p { margin: 0 0 14px; }

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

.info-box,
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.info-box h3,
.feature h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--accent-2); }
.info-box p,
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 40px;
}
.split-body h2 { margin-top: 0; }
.split-body p { color: var(--muted); }
.split-media img { border-radius: 10px; }
.split-media.light-bg { background: #fff; border-radius: var(--radius); padding: 30px; display: flex; justify-content: center; }

#eye-pro .split { grid-template-columns: 1.2fr 1fr; }

@media (max-width: 820px) {
  .split,
  #eye-pro .split { grid-template-columns: 1fr; }
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #ff8f57; }

.note {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 179, 71, 0.08);
  border: 1px solid rgba(255, 179, 71, 0.3);
  color: var(--accent-2) !important;
  font-size: 0.92rem;
}

.awards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 26px;
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
}
.awards img { max-height: 100px; width: auto; }
.awards a { transition: transform 0.2s ease; }
.awards a:hover { transform: scale(1.06); }

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

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin: 40px 0 0; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 5px 0 5px 28px; color: var(--muted); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }

.zoomable {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.zoomable:hover { transform: translateY(-3px); border-color: var(--accent); }
.zoomable img { width: 100%; border-radius: 0; }

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 95vw;
  max-height: 92vh;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }
.lightbox img { max-width: 95vw; max-height: 92vh; border-radius: 8px; }
.lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* Footer */
.site-footer {
  margin-top: 72px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
