/* Palette (dark theme):
--bg: #0d0f14 (page background)
--card: #151923 (cards, headers)
--text: #e6e9ef (primary text)
--muted: #a6aabc (secondary text)
--accent: #47d4a0 (primary accent - accessible on dark)
--accent-2: #7aa7ff (secondary accent)
--link: #8fd7ff (links)
--border: #242b39 (borders, dividers)
--shadow: rgba(0,0,0,0.5) (shadows)
Contrast aims to meet 4.5:1 for body text on dark backgrounds. [web:1][web:5][web:17]
*/

:root {
  --bg: #0d0f14;
  --card: #151923;
  --text: #e6e9ef;
  --muted: #a6aabc;
  --accent: #47d4a0;
  --accent-2: #7aa7ff;
  --link: #8fd7ff;
  --border: #242b39;
  --shadow: rgba(0,0,0,0.5);
}

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

html { color-scheme: dark; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: var(--link); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

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

.container { width: min(1200px, 90%); margin: 0 auto; }

.section { padding: 48px 0; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -999px; top: -999px;
}
.skip-link:focus {
  left: 16px; top: 16px; z-index: 1000;
  background: var(--accent-2); color: #000; padding: 8px 12px; border-radius: 8px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,15,20,0.8);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; color: var(--accent); }
.brand-name { font-weight: 700; letter-spacing: 0.2px; }

.main-nav ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
.main-nav a {
  display: inline-block; padding: 8px 10px; border-radius: 10px;
}
.main-nav a[aria-current="page"] {
  background: var(--card); border: 1px solid var(--border);
}

/* Hero */
.hero { border-bottom: 1px solid var(--border); }
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 24px;
}
.hero h1 {
  font-size: clamp(1.8rem, 3vw, 3rem); /* fluid type using clamp [web:6][web:9][web:15] */
  line-height: 1.2;
  margin: 0 0 12px 0;
}
.hero p { margin: 0 0 16px 0; color: var(--muted); }
.hero-media img {
  border-radius: 16px; border: 1px solid var(--border);
  box-shadow: 0 10px 30px var(--shadow);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  will-change: transform;
}
.btn:focus { outline: 2px dashed var(--accent-2); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #00150e; border-color: transparent; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px var(--shadow); }
.btn-secondary { background: var(--card); color: var(--text); }
.btn-secondary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px var(--shadow); }
.btn-link { color: var(--accent-2); border-color: transparent; padding-left: 0; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* layout rule */
  gap: 28px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px var(--shadow);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 44px var(--shadow); }
.card img {
  aspect-ratio: 4 / 3; /* maintain layout stability [web:1][web:5] */
  object-fit: cover;
  width: 100%;
  border-bottom: 1px solid var(--border);
}
.card-body { padding: 16px; }
.card .price { color: var(--accent); font-weight: 700; }

/* Text-only cards */
.text-only .card { padding: 18px; }
.text-only h3 { margin-top: 0; margin-bottom: 6px; }
.text-only p { margin: 0; color: var(--muted); }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
table.pricing { width: 100%; border-collapse: collapse; min-width: 640px; }
table.pricing th, table.pricing td { padding: 12px 14px; text-align: left; }
table.pricing thead { background: #0f131b; }
table.pricing tr { border-bottom: 1px solid var(--border); }

/* Product pages */
.price-lg { font-size: 1.5rem; color: var(--accent); font-weight: 700; }
.specs { padding-left: 1.2rem; }
.specs li { margin: 6px 0; }
.product-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.notice {
  background: #0f131b; border: 1px solid var(--border);
  padding: 10px 12px; border-radius: 12px; color: var(--muted);
}

/* Forms */
.contact-form { max-width: 720px; }
.form-row { display: grid; gap: 8px; margin-bottom: 14px; }
input, textarea {
  background: #0f131b; color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px;
}
input:focus, textarea:focus { outline: 2px dashed var(--accent-2); outline-offset: 2px; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.small { font-size: 0.9rem; }
.muted { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.footer-inner nav { display: flex; gap: 12px; }

/* CTA section */
.section.cta { text-align: center; }
.section.cta p { color: var(--muted); }

/* Media queries */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}
@media (max-width: 600px) {
  .header-inner { gap: 12px; }
  .main-nav ul { gap: 8px; flex-wrap: wrap; }
  .footer-inner { flex-direction: column; gap: 8px; }
}

/* Notes:
- High contrast palette helps meet WCAG contrast ratios on dark backgrounds. [web:1][web:5][web:17]
- clamp() enables fluid, bounded typography without extra queries. [web:6][web:9][web:15]
*/
