/* PowerCore by Ketzal — visual system from ketzalunmanned.com */
:root {
  --bg: #050505;
  --bg-elevated: #0a0a0a;
  --surface: #0a0a0a;
  --border: #1f1f23;
  --border-hover: #006865;
  --text: #ededed;
  --muted: #9f9fa8;
  --muted-2: #c5c5c9;
  --teal: #006865;
  --teal-hover: #00524f;
  --green: #1a9a7a;
  --gold: #d4a82a;
  --gold-light: #e8c84a;
  --red: #c41e1e;
  --red-bright: #e03a3a;
  --input-bg: #0a0a0a;
  --placeholder: #6f6f78;
  --radius: 1rem;
  --radius-full: 999px;
  --max: 80rem;
  /* Same stack as live ketzalunmanned.com */
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

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

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

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--green);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Navbar —— */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  color: var(--text);
  line-height: 1;
}

.logo-home {
  color: inherit;
  text-decoration: none;
}

.logo-home:hover {
  color: var(--text);
}

/*
  Same treatment as ketzalunmanned.com header logo:
  text-2xl font-semibold tracking-tight + system-ui stack
*/
.logo-text {
  font-family: var(--font);
  font-size: 1.5rem; /* text-2xl */
  font-weight: 600;
  letter-spacing: -0.025em; /* tracking-tight */
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}

/* Gold lightning bolt — same visual height as the capital “C” in PowerCore */
.logo-bolt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.3rem;
  color: var(--gold);
  /* Match .logo-text (1.5rem) so the bolt reads at capital-letter scale */
  font-size: 1.5rem;
  line-height: 1;
  vertical-align: -0.08em;
  transition: color 0.15s ease;
}

.logo-home:hover .logo-bolt {
  color: var(--gold-light);
}

.logo-bolt i {
  font-size: 1em;
  line-height: 1;
}

/* Inline bolt next to PowerCore in headings/body labels */
.logo-bolt-inline {
  font-size: 1em;
  margin-left: 0.12em;
  margin-right: 0.05em;
  vertical-align: -0.05em;
}

.logo-bolt svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentColor;
}

.logo-by {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted-2);
  white-space: nowrap;
}

.logo-ketzal {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.15s ease;
}

.logo-ketzal:hover {
  color: var(--gold-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-link {
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--teal);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Ketzal “Engage” nav button — muted outline, not solid teal */
.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text) !important;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-nav:hover {
  background: var(--border);
  color: #fff !important;
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.35rem;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.875rem;
  font-weight: 500;
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu:not([hidden]) {
  display: flex;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--teal);
  color: #fff !important;
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
  color: #fff !important;
}

.btn-outline {
  background: transparent;
  color: #fff !important;
  border-color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #000 !important;
}

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

.btn-ghost:hover {
  background: var(--border);
  color: #fff !important;
}

.btn-block {
  width: 100%;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 56dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 3rem 0 3.5rem;
  background:
    linear-gradient(rgba(5, 5, 5, 0.82), rgba(5, 5, 5, 0.92)),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 104, 101, 0.22), transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 104, 101, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 104, 101, 0.1) 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 64rem);
  margin-inline: auto;
  text-align: center;
}

.eyebrow,
.section-label {
  color: var(--teal);
  font-size: 0.875rem; /* text-sm */
  font-weight: 500;
  letter-spacing: 0.1875rem; /* tracking-[3px] like Ketzal */
  text-transform: uppercase;
}

.hero h1 {
  margin: 0.75rem 0 1.25rem;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
}

.hero-lead {
  margin: 0 auto 2rem;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted-2);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* —— Sections —— */
.section {
  padding: 4rem 0;
}

.section-tight {
  padding-top: 2rem;
}

.section-label {
  margin-bottom: 0.75rem;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 3.5vw, 2.1rem); /* matches Ketzal .section-header */
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.section-title.tight {
  margin-bottom: 0.75rem;
}

.section-sub {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 36rem;
  font-size: 1.05rem;
}

/* —— Cards —— */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem; /* rounded-2xl-ish */
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* —— Product —— */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 0.5rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.25rem;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  border-radius: 0.75rem;
  background: #f5f5f5;
  display: block;
}

.buybox {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.75rem 1.75rem 1.5rem;
}

.buybox:hover {
  border-color: var(--border-hover);
}

.sku {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.sku strong {
  color: var(--teal);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
  margin-left: 0.35rem;
}

.buybox h3 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.buybox-desc {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.quick-specs {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.quick-specs li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.7rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.quick-specs span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.quick-specs strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.25rem;
}

.price-label {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.price {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

.lead-time {
  margin: 0.35rem 0 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.trust-list i {
  color: var(--teal);
  margin-top: 0.2rem;
  width: 1rem;
}

/* —— Highlight cards —— */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.highlight-grid .card {
  padding: 1.35rem 1.25rem;
}

.highlight-grid .card:hover {
  transform: translateY(-2px);
}

.h-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.highlight-grid strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.highlight-grid p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

/* —— Spec panel —— */
.spec-panel {
  padding: 1.25rem 1.25rem 1.5rem;
}

.spec-panel:hover {
  border-color: var(--border);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.tab {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  color: var(--muted);
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.8rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.925rem;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table th {
  width: 38%;
  font-weight: 600;
  color: #fff;
}

.spec-table td {
  color: var(--muted);
}

.spec-table td strong {
  color: var(--text);
}

.spec-note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* —— Division banner —— */
.division-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 2rem;
}

.division-banner:hover {
  transform: none;
  border-color: var(--border-hover);
}

.division-banner p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.division-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Caution —— */
.caution-box {
  padding: 1.5rem 1.75rem;
  border-color: rgba(196, 30, 30, 0.35);
}

.caution-box:hover {
  border-color: rgba(196, 30, 30, 0.5);
}

.caution-box h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-bright);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.caution-box ul {
  margin: 0;
  padding-left: 1.15rem;
}

.caution-box li {
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.925rem;
}

.caution-box li:last-child {
  margin-bottom: 0;
}

/* —— Contact —— */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-copy .section-sub,
.contact-copy > p {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 28rem;
}

.contact-cards {
  display: grid;
  gap: 0.75rem;
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  color: inherit;
}

.contact-pill:hover {
  border-color: var(--border-hover);
  color: inherit;
}

.contact-pill i {
  color: var(--teal);
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
}

.contact-pill strong {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-pill span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.quote-form {
  padding: 1.75rem;
}

.quote-form:hover {
  border-color: var(--border);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-row label {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--muted-2);
}

.form-input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--input-bg);
  color: var(--text);
}

.form-input::placeholder {
  color: var(--placeholder);
}

.form-input:focus {
  outline: none;
  border-color: var(--teal);
}

.form-status {
  margin: 0.85rem 0 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-status.ok {
  color: var(--teal);
}

.form-status.err {
  color: var(--red-bright);
}

/* —— Footer — Ketzal-style centered —— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2.5rem;
  background: var(--bg);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand {
  justify-content: center;
  margin-bottom: 0.35rem;
}

.footer-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 28rem;
}

.footer-motto {
  margin: 0.15rem 0 0;
  color: #6f6f78;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-copy {
  margin: 0.35rem 0 0;
  color: #6f6f78;
  font-size: 0.875rem;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .product-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }

  .nav-actions .btn,
  .nav-actions .btn-nav {
    display: none;
  }

  .menu-btn {
    display: block;
  }
}

@media (max-width: 560px) {
  .quick-specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .form-row.two-col {
    grid-template-columns: 1fr;
  }

  .hero-ctas .btn,
  .cta-row .btn {
    flex: 1 1 100%;
  }

  .division-banner {
    padding: 1.5rem;
  }

  .hero {
    min-height: auto;
    padding: 2.5rem 0 3rem;
  }
}
