@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap');

:root {
  --bg:      #0A0A0A;
  --bg1:     #111111;
  --bg2:     #161616;
  --bg3:     #1E1E1E;
  --txt:     #FFFFFF;
  --txt2:    #AAAAAA;
  --txt3:    #555555;
  --red:     #FFD100;
  --red-h:   #E6BC00;
  --on-acc:  #000000;
  --border:  #1E1E1E;
  --borderl: #2D2D2D;
  --radius:  2px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Onest', system-ui, sans-serif;
  background: var(--bg);
  color: var(--txt);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Reset visited links ── */
a { color: inherit; text-decoration: none; }
a:visited { color: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg1); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── Nav ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 60px;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  width: 100%;
  display: flex; align-items: center; gap: 0;
}
.nav-logo {
  font-size: 17px; font-weight: 800; letter-spacing: -0.3px;
  color: var(--txt); text-decoration: none; margin-right: 40px; flex-shrink: 0;
  display: flex; align-items: center; gap: 9px;
}
.logo-text { white-space: nowrap; }
.logo-text em { color: var(--red); font-style: normal; }
.nav-logo-img {
  width: 28px; height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 0; flex: 1;
  list-style: none;
}
.nav-links li { position: relative; }
.nav-links a {
  display: block; padding: 0 14px; height: 60px; line-height: 60px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.2px;
  color: var(--txt2); text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--txt); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 0; left: 14px; right: 14px;
  height: 2px; background: var(--red);
}
/* yellow glow on active */
.nav-links a.active { color: var(--red); }
.nav-cta {
  margin-left: auto; flex-shrink: 0;
}
.nav-cta a {
  display: inline-block;
  padding: 9px 20px;
  background: var(--red);
  color: var(--on-acc) !important;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.15s;
}
.nav-cta a:hover { background: var(--red-h); }

/* dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { padding-right: 20px; }
.nav-dropdown > a::before {
  content: '▾';
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 10px; color: var(--txt3);
}
.dropdown-menu {
  display: none;
  position: absolute; top: 60px; left: 0;
  min-width: 210px;
  background: #111;
  border: 1px solid #222;
  border-top: 2px solid var(--red);
  z-index: 200;
  padding: 6px 0;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  height: auto; line-height: 1;
  padding: 11px 18px;
  font-size: 12px; font-weight: 500; color: var(--txt2);
  display: block; letter-spacing: 0.2px;
  border-bottom: none;
}
.dropdown-menu a:hover { color: var(--red); background: #161616; }
.dropdown-menu a.active::after { display: none; }
.dropdown-menu .dm-section {
  padding: 8px 18px 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: #444; pointer-events: none;
  display: block;
}
.dropdown-menu .dm-sep {
  height: 1px; background: #1e1e1e; margin: 4px 0;
}

/* ── Hamburger (mobile) ── */
.nav-burger {
  display: none; margin-left: auto;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px; background: var(--txt2);
  transition: 0.2s;
}
.mobile-menu {
  display: none;
  position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99; overflow-y: auto;
  padding: 20px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 14px 0;
  font-size: 16px; font-weight: 500; color: var(--txt2);
  text-decoration: none; border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--txt); }

/* ── Layout ── */
.page-body { padding-top: 60px; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ── Typography ── */
.label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--red);
}
h1, .h1 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -1px; color: var(--txt);
}
h2, .h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.5px; color: var(--txt);
}
h3, .h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700; color: var(--txt);
}
p { color: var(--txt2); }

/* ── Hero ── */
.hero {
  min-height: 580px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 80px 0 72px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,209,0,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(255,209,0,0.04) 0%, transparent 50%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 380px; height: 380px;
  background-image: url('/assets/img/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right bottom;
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
}
.hero-label { margin-bottom: 20px; }
.hero h1 { max-width: 800px; margin-bottom: 24px; }
.hero-sub { font-size: 17px; color: var(--txt2); max-width: 560px; margin-bottom: 40px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-block; text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; cursor: pointer; border: none;
  transition: all 0.15s; white-space: nowrap;
  font-family: inherit;
}
.btn-red {
  background: var(--red); color: var(--on-acc);
  padding: 14px 28px;
}
.btn-red:hover { background: var(--red-h); }
.btn-outline {
  background: transparent; color: var(--txt);
  border: 1px solid var(--borderl);
  padding: 13px 27px;
}
.btn-outline:hover { border-color: var(--txt2); }
.btn-ghost {
  background: transparent; color: var(--txt2);
  padding: 13px 0;
}
.btn-ghost:hover { color: var(--txt); }

/* ── Sections ── */
.section { padding: 96px 0; border-bottom: 1px solid var(--border); }
.section-sm { padding: 64px 0; border-bottom: 1px solid var(--border); }
.section-header { margin-bottom: 56px; }
.section-header .label { margin-bottom: 14px; }

/* ── Stat row ── */
.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0;
  border: 1px solid var(--border);
}
.stat-item {
  padding: 32px 28px; border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 42px; font-weight: 900; color: var(--txt);
  letter-spacing: -1px; line-height: 1;
}
.stat-num span { color: var(--red); }
.stat-lbl { font-size: 12px; color: var(--txt3); margin-top: 8px; letter-spacing: 0.5px; }

/* ── Cards ── */
.card-grid { display: grid; gap: 1px; background: var(--border); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg1); padding: 40px 36px;
  position: relative; overflow: hidden;
  transition: background 0.2s;
}
.card:hover { background: var(--bg2); }
.card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: transparent; transition: background 0.2s;
}
.card:hover::before { background: var(--red); }
.card-icon {
  width: 44px; height: 44px; border: 1px solid var(--borderl);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; font-size: 18px;
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 14px; color: var(--txt3); line-height: 1.65; }
.card-tag {
  display: inline-block; margin-top: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--red);
  text-decoration: none;
}
.card-tag:hover { color: var(--txt); }

/* ── Product card (for homepage) ── */
.product-card {
  background: var(--bg1); padding: 48px 40px;
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  text-decoration: none; color: inherit;
  transition: background 0.2s;
}
.product-card:hover { background: var(--bg2); }
.product-card:nth-child(even) { background: var(--bg); }
.product-card:nth-child(even):hover { background: var(--bg2); }
.product-num {
  font-size: 80px; font-weight: 900; color: var(--border);
  line-height: 1; letter-spacing: -3px; margin-bottom: -10px;
  font-variant-numeric: tabular-nums;
}
.product-card h3 { font-size: 22px; margin-bottom: 12px; }
.product-card p { font-size: 14px; color: var(--txt3); line-height: 1.65; }
.product-arrow { font-size: 20px; color: var(--txt3); transition: transform 0.2s, color 0.2s; }
.product-card:hover .product-arrow { transform: translateX(6px); color: var(--red); }

/* ── Table ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: 14px 16px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--txt3); border-bottom: 1px solid var(--borderl);
}
.data-table td {
  padding: 14px 16px; font-size: 14px; color: var(--txt2);
  border-bottom: 1px solid var(--border);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg2); color: var(--txt); }
.td-red { color: var(--red); font-weight: 700; }
.td-bold { color: var(--txt); font-weight: 600; }

/* ── CTA Banner ── */
.cta-banner {
  padding: 80px 0;
  background: var(--bg1);
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { font-size: 16px; margin-bottom: 36px; }
.cta-banner .btn-red { font-size: 14px; padding: 16px 36px; }

/* ── Accordion / FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 22px 0; font-family: inherit; font-size: 16px; font-weight: 600;
  color: var(--txt); display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq-q:hover { color: var(--txt2); }
.faq-icon { font-size: 20px; color: var(--txt3); transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--red); }
.faq-a { display: none; padding: 0 0 20px; color: var(--txt3); font-size: 15px; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ── Tag / Badge ── */
.tag {
  display: inline-block; padding: 4px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  border: 1px solid var(--borderl); color: var(--txt3);
}
.tag-red { border-color: var(--red); color: var(--red); }

/* ── Two column ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.two-col-3-2 { display: grid; grid-template-columns: 3fr 2fr; gap: 80px; align-items: start; }

/* ── List ── */
.check-list { list-style: none; }
.check-list li {
  padding: 10px 0; font-size: 15px; color: var(--txt2);
  border-bottom: 1px solid var(--border);
  display: flex; gap: 12px; align-items: baseline;
}
.check-list li::before { content: '—'; color: var(--red); font-weight: 700; flex-shrink: 0; }

/* ── Footer ── */
footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-size: 18px; font-weight: 800; color: var(--txt); margin-bottom: 12px; }
.footer-logo span { color: var(--red); }
.footer-desc { font-size: 13px; color: var(--txt3); line-height: 1.65; margin-bottom: 24px; }
.footer-contacts a {
  display: block; font-size: 13px; color: var(--txt2);
  text-decoration: none; margin-bottom: 6px;
}
.footer-contacts a:hover { color: var(--txt); }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--txt3); margin-bottom: 16px; }
.footer-col a, .footer-col > a {
  display: block; font-size: 13px; color: var(--txt3) !important;
  text-decoration: none; margin-bottom: 10px; transition: color 0.15s;
}
.footer-col a:hover { color: var(--txt) !important; }
.footer-col a:visited { color: var(--txt3) !important; }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--txt3); }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-card { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .hero { padding: 60px 0 56px; }
  .section { padding: 64px 0; }
  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
  .two-col, .two-col-3-2 { grid-template-columns: 1fr; gap: 40px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 10px 10px; }
}
