/* ==========================================================================
   Gatebreak Technologies Ltd — global stylesheet
   Dark, circuit-board tech tone matching the brand logo (near-black / green)
   ========================================================================== */

:root {
  /* Brand palette — sampled from the Gatebreak logo */
  --color-bg: #0E1B12;
  --color-bg-alt: #12211A;
  --color-surface: #16261C;
  --color-surface-2: #1C2E22;
  --color-border: #24392C;
  --color-border-strong: #35543F;

  --color-green: #47BF65;
  --color-green-bright: #4ED26C;
  --color-green-dim: #163A24;

  --color-text: #F1F7F3;
  --color-mint: #B5D7C6;
  --color-text-muted: #7F9689;

  /* Status */
  --color-success: #4ED26C;
  --color-error: #FF8A8A;

  /* Type */
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container-w: 1160px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--color-green-bright); text-decoration: none; }
a:hover { color: var(--color-green); }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 3.4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--color-mint); }

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-green-bright);
  background: var(--color-green-dim);
  border: 1px solid var(--color-border-strong);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.lede {
  font-size: 1.15rem;
  color: var(--color-mint);
  max-width: 640px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--color-green-bright);
  color: var(--color-bg);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-green); color: var(--color-bg); }

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-green-bright);
  border-color: var(--color-border-strong);
}
.btn-secondary:hover { border-color: var(--color-green); background: var(--color-surface-2); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
}

.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 27, 18, 0.9);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav > a {
  color: var(--color-mint);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 2px;
}
.main-nav > a:hover, .main-nav > a.active { color: var(--color-green-bright); }

.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: " \25BE"; font-size: 0.7em; color: var(--color-text-muted); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 190px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(4px);
  transition: all 0.15s ease;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-mint);
  font-weight: 500;
  font-size: 0.92rem;
}
.dropdown-menu a:hover { background: var(--color-surface-2); color: var(--color-green-bright); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  padding: 6px 10px;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(ellipse 900px 420px at 20% -10%, rgba(71, 191, 101, 0.16), transparent 60%),
    var(--color-bg);
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--color-border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-art {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}

.page-hero {
  padding: 64px 0 48px;
  background:
    radial-gradient(ellipse 900px 380px at 20% -10%, rgba(71, 191, 101, 0.14), transparent 60%),
    var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.page-hero .lede { max-width: 720px; }

/* ===== Sections ===== */
section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===== Grids & Cards ===== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.card-link { display: block; height: 100%; }
.card-link:hover .card, a.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-green-dim);
  border: 1px solid var(--color-border-strong);
  color: var(--color-green-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.product-card h3 { margin-bottom: 8px; }
.product-card .tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-green-bright);
}
.card-cta {
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-green-bright);
}

.stat-row { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 32px; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--color-green-bright); }
.stat-label { font-size: 0.88rem; color: var(--color-text-muted); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--color-mint);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-green-dim);
  box-shadow: inset 0 0 0 2px var(--color-green);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--color-green-bright);
  border-bottom: 2px solid var(--color-green-bright);
  transform: rotate(-45deg);
}

.quote-block {
  border-left: 3px solid var(--color-green);
  padding-left: 20px;
  font-size: 1.05rem;
  color: var(--color-mint);
  font-style: italic;
}

.cta-band {
  background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-bright) 100%);
  color: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}
.cta-band h2 { color: var(--color-bg); }
.cta-band p { color: rgba(14, 27, 18, 0.78); max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: var(--color-bg); color: var(--color-green-bright); }
.cta-band .btn-primary:hover { background: var(--color-surface); color: var(--color-green-bright); }

/* ===== Table ===== */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.94rem;
  color: var(--color-mint);
}
.spec-table th { color: var(--color-text-muted); font-weight: 600; width: 40%; }

/* ===== Forms ===== */
.form-grid { display: grid; gap: 18px; max-width: 620px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-mint);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-surface);
}
input::placeholder, textarea::placeholder { color: var(--color-text-muted); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(71, 191, 101, 0.25);
}
textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--color-text-muted); margin-top: -6px; }

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: rgba(78, 210, 108, 0.12); color: var(--color-success); border: 1px solid rgba(78, 210, 108, 0.35); }
.form-status.error { background: rgba(255, 138, 138, 0.12); color: var(--color-error); border: 1px solid rgba(255, 138, 138, 0.35); }

.contact-side {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.contact-side h3 { margin-bottom: 6px; }
.contact-side .meta-row { margin-bottom: 18px; }
.contact-side .meta-row .label { font-size: 0.8rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.contact-side .meta-row a, .contact-side .meta-row div:not(.label) { color: var(--color-mint); }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  padding: 48px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand { font-weight: 800; color: var(--color-text); margin-bottom: 6px; }
.footer-tag { color: var(--color-text-muted); font-size: 0.9rem; max-width: 320px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); margin-bottom: 12px; }
.footer-col a { display: block; color: var(--color-mint); font-size: 0.92rem; margin-bottom: 9px; }
.footer-col a:hover { color: var(--color-green-bright); }
.footer-meta {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 4px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 12px 0; border-bottom: 1px solid var(--color-border); }
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    display: none;
    padding: 0 0 0 12px;
  }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .nav-toggle { display: inline-flex; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  section { padding: 52px 0; }
  .footer-inner { flex-direction: column; }
}
