:root {
  color-scheme: dark;
  --bg: #050608;
  --panel: #0e1117;
  --panel-2: #151922;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: #aab3c2;
  --red: #ff3158;
  --green: #5cff85;
  --blue: #31b7ff;
  --yellow: #ffd84d;
  --cyan: #43f7dc;
  --purple: #a46cff;
  --radius: 8px;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 49, 88, 0.13), transparent 28rem),
    radial-gradient(circle at 93% 8%, rgba(49, 183, 255, 0.12), transparent 30rem),
    linear-gradient(180deg, #050608 0%, #090b10 48%, #050608 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 8, 0.82);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.utility {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.utility a { color: var(--text); font-weight: 700; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 5px;
}
.brand strong { display: block; font-size: 1rem; }
.brand span { display: block; color: var(--muted); font-size: 0.78rem; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.navlinks a {
  color: var(--muted);
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.92rem;
}
.navlinks a.active,
.navlinks a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--red), var(--blue) 52%, var(--green));
  color: #050608;
  font-weight: 800;
  cursor: pointer;
}
.btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.hero {
  min-height: 640px;
  display: grid;
  align-items: center;
  padding: 78px 0 34px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 34px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.8rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--green), var(--blue));
}
h1 {
  margin: 16px 0;
  max-width: 900px;
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}
h2 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}
h3 { margin: 0 0 8px; font-size: 1.12rem; }
p { color: var(--muted); margin: 0 0 16px; }
.lead {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 720px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-card {
  position: relative;
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--panel);
}
.hero-card img, .photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5, 6, 8, 0.82));
}
.stat-strip {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 6, 8, 0.72);
  padding: 12px;
}
.stat strong { display: block; font-size: 1.22rem; }
.stat span { color: var(--muted); font-size: 0.78rem; }
section { padding: 72px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 26px;
}
.section-head p { max-width: 610px; }
.grid { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  padding: 20px;
}
.card.accent { border-color: rgba(67, 247, 220, 0.35); }
.card a { color: var(--cyan); font-weight: 800; }
.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(255, 49, 88, 0.24), rgba(49, 183, 255, 0.22), rgba(92, 255, 133, 0.2));
}
.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 30px;
  align-items: center;
}
.photo-band {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}
.list li {
  padding: 12px 12px 12px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  position: relative;
}
.list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}
.form {
  display: grid;
  gap: 12px;
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
label { color: var(--muted); font-size: 0.9rem; font-weight: 700; }
input, select, textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 12px 13px;
}
textarea { min-height: 126px; resize: vertical; }
.stock-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.stock-sheet-wrap {
  width: 100%;
  max-height: 620px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}
.stock-sheet {
  width: 100%;
  min-width: 1280px;
  border-collapse: collapse;
}
.stock-sheet th,
.stock-sheet td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  text-align: left;
  vertical-align: middle;
}
.stock-sheet th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #121720;
  color: var(--text);
  font-size: 0.78rem;
  padding: 10px;
  white-space: nowrap;
}
.stock-sheet input {
  min-width: 118px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 10px;
  color: var(--text);
}
.stock-sheet input:focus {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
  background: rgba(67, 247, 220, 0.08);
}
.stock-actions {
  min-width: 92px;
  padding: 6px !important;
}
.stock-actions .btn {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.78rem;
}
.notice {
  display: none;
  border: 1px solid rgba(92, 255, 133, 0.35);
  border-radius: var(--radius);
  background: rgba(92, 255, 133, 0.08);
  color: var(--text);
  padding: 14px;
}
.notice.show { display: block; }
.footer {
  border-top: 1px solid var(--line);
  background: #030405;
  padding: 44px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}
.footer a { color: var(--muted); display: block; margin: 6px 0; }
.chat-launch {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--blue), var(--green));
  color: #050608;
  font-weight: 900;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.chat {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 30;
  width: min(380px, calc(100% - 36px));
  max-height: min(620px, calc(100vh - 118px));
  display: none;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b0e13;
  box-shadow: var(--shadow);
}
.chat.open { display: grid; }
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.chat-log { padding: 14px; overflow: auto; display: grid; gap: 10px; }
.msg { padding: 10px 12px; border-radius: 8px; background: var(--panel-2); color: var(--muted); }
.msg.user { background: rgba(49, 183, 255, 0.16); color: var(--text); margin-left: 26px; }
.chat form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat input { margin: 0; }
.chat button { min-width: 52px; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav { min-height: 68px; }
  .navlinks {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 116px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #090b10;
    box-shadow: var(--shadow);
  }
  .navlinks.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: auto; padding-top: 44px; }
  .hero-grid, .split, .two, .footer-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-card { min-height: 390px; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 22px, 1160px); }
  .utility { display: grid; }
  .brand { min-width: 0; }
  .brand img { width: 46px; height: 46px; }
  .navlinks { top: 126px; grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.25rem, 15vw, 4rem); }
  section { padding: 48px 0; }
  .cards, .list, .form-row, .stat-strip { grid-template-columns: 1fr; }
  .hero-card { min-height: 520px; }
  .stat-strip { left: 12px; right: 12px; }
  .actions .btn { width: 100%; }
}
