/* ============================================================
   Bloxpan — vanilla CSS, dark premium UI
   Lightweight, variable-driven, no frameworks
   ============================================================ */

:root {
  /* Color system */
  --bg: #0a0a0c;
  --bg-elev: #121217;
  --bg-card: #16161d;
  --bg-card-hover: #1c1c25;
  --border: #26262f;
  --border-strong: #34343f;

  --text: #f3f3f7;
  --text-muted: #a6a6b3;
  --text-dim: #75758a;

  --accent: #00c9a7;
  --accent-2: #00e676;
  --accent-glow: rgba(0, 201, 167, 0.4);
  --accent-contrast: #ffffff;
  --good: #34d399;

  /* Type */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing & shape */
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --gap: 1.25rem;

  --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00a88a);
  color: var(--accent-contrast);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  height: 40px;
  width: auto;
}

.footer-brand .brand-logo {
  height: 36px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-menu a:hover {
  color: var(--text);
  background: var(--bg-card-hover);
}

.nav-cta {
  background: var(--accent);
  color: var(--accent-contrast) !important;
  font-weight: 600;
  box-shadow: 0 4px 18px var(--accent-glow);
}

.nav-cta:hover {
  background: #00b394;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Sections ---------- */
section {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(800px 400px at 50% -10%, rgba(0, 201, 167, 0.18), transparent 70%),
    radial-gradient(600px 300px at 80% 10%, rgba(0, 212, 255, 0.1), transparent 70%);
}

.hero-inner {
  max-width: 800px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  margin-bottom: 1.2rem;
  background: linear-gradient(180deg, #ffffff, #c9c9d6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.hero-meta {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ---------- Features ---------- */
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(0, 201, 167, 0.12);
  border: 1px solid rgba(0, 201, 167, 0.25);
}

.card h3 {
  font-size: 1.15rem;
}

.card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.96rem;
}

/* ---------- Comparison ---------- */
.comparison {
  background: var(--bg-elev);
  border-block: 1px solid var(--border);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.96rem;
}

.compare-table thead th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: var(--bg-elev);
}

.compare-table tbody th {
  font-weight: 500;
  color: var(--text);
}

.compare-table td {
  color: var(--text-muted);
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: 0;
}

.col-highlight {
  color: var(--text) !important;
  font-weight: 600;
  background: rgba(0, 201, 167, 0.08);
}

td.col-highlight {
  color: var(--good) !important;
}

.compare-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.15s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: var(--bg-card-hover);
}

.faq-answer {
  padding: 0 1.3rem 1.2rem;
  color: var(--text-muted);
}

.faq-answer p {
  margin: 0;
}

.faq-answer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer a:hover {
  color: var(--accent-2);
}

.faq-disclaimer {
  max-width: 760px;
  margin: 2rem auto 0;
  padding: 1rem 1.2rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  line-height: 1.55;
}

/* ---------- Guide / SEO article ---------- */
.guide {
  background: var(--bg-elev);
  border-block: 1px solid var(--border);
}

.seo-article-shell {
  max-width: 720px;
  margin-inline: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.seo-article-intro {
  margin: 0;
  padding: 1.5rem 1.75rem;
  font-size: 0.97rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 201, 167, 0.04);
}

.seo-article-intro a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seo-article-intro a:hover {
  color: var(--accent-2);
}

.seo-article {
  padding: 2rem 1.75rem 2.5rem;
}

.seo-article h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.seo-article h2:first-child {
  margin-top: 0;
}

.seo-article h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.seo-article p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.97rem;
}

.seo-article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seo-article a:hover {
  color: var(--accent-2);
}

.seo-article ul,
.seo-article ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.97rem;
}

.seo-article li {
  margin-bottom: 0.5rem;
}

.seo-article li strong {
  color: var(--text);
}

.seo-article li a {
  color: var(--accent);
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
}

.cta-inner {
  max-width: 640px;
  background: linear-gradient(135deg, rgba(0, 201, 167, 0.14), rgba(0, 230, 118, 0.08));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow);
}

.cta-inner h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.cta-inner p {
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding-top: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 320px;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.footer-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);

    /* hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu a {
    padding: 0.75rem 0.9rem;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.4rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .seo-article {
    padding: 1.5rem 1.25rem 2rem;
  }

  .seo-article-intro {
    padding: 1.25rem 1.25rem;
    font-size: 0.92rem;
  }
}
