/* T3 Gemstone — site styles (obsidian & silver) */

:root {
  --bg: #0b0c0d;
  --bg-alt: #101214;
  --surface: #14161a;
  --line: #24272b;
  --line-strong: #33373d;
  --ink: #eceef0;
  --ink-soft: #a6acb3;
  --ink-faint: #757c84;
  --silver: #b8c0c8;
  --silver-bright: #e6ebf0;
  --silver-deep: #7d868f;
  --silver-ink: #0d0f11;
  --max: 1120px;
  --radius: 10px;
  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--silver); color: var(--silver-ink); }

a { color: var(--silver); text-decoration: none; }
a:hover { color: var(--silver-bright); text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 { font-weight: 600; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  background: rgba(11, 12, 13, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand img {
  display: block;
  height: 34px;
  width: auto;
  transition: opacity 0.15s ease;
}
.brand:hover img { opacity: 0.8; }
.site-footer .brand img { height: 28px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.site-nav a:hover { color: var(--silver-bright); background: rgba(184, 192, 200, 0.08); text-decoration: none; }
.site-nav a.active { color: var(--silver-bright); }

.site-nav .nav-cta {
  color: var(--silver-ink);
  background: linear-gradient(180deg, var(--silver-bright), var(--silver));
  margin-left: 8px;
  padding: 8px 16px;
  font-weight: 600;
}
.site-nav .nav-cta:hover {
  color: var(--silver-ink);
  background: linear-gradient(180deg, #f4f7fa, var(--silver-bright));
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  padding: 7px 10px;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  padding: 88px 0 96px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 72% 42%, rgba(190, 200, 212, 0.11), transparent 70%),
    radial-gradient(ellipse 45% 40% at 12% 85%, rgba(190, 200, 212, 0.05), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 208, 216, 0.45), transparent);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: 2.7rem;
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.hero h1 .gilded {
  font-style: normal;
  background: linear-gradient(115deg, var(--silver-deep) 0%, #ffffff 45%, var(--silver) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .kicker {
  color: var(--silver);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 14px;
}

.hero p.lead {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 46ch;
  margin: 0 0 30px;
}

.hero-board {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  justify-self: center;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 60px rgba(190, 200, 212, 0.10));
}

/* ---------- Buttons ---------- */

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--silver-bright), var(--silver));
  color: var(--silver-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 8px 24px rgba(184, 192, 200, 0.15);
}
.btn-primary:hover { background: linear-gradient(180deg, #f4f7fa, var(--silver-bright)); color: var(--silver-ink); }

.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--silver); color: var(--silver-bright); }

.btn-outline { border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--silver); color: var(--silver-bright); }

/* ---------- Sections ---------- */

section { padding: 80px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head h2 {
  font-size: 1.8rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.section-head p { color: var(--ink-soft); margin: 0; }

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover { border-color: var(--silver-deep); transform: translateY(-3px); }

.feature .num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--silver-bright);
  letter-spacing: -0.01em;
}

.feature h3 { font-size: 1rem; margin: 8px 0 8px; }
.feature p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ---------- Product ---------- */

.product-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 40px;
}

.product-card .board-figure {
  background: radial-gradient(ellipse 80% 70% at 50% 40%, rgba(190, 200, 212, 0.07), transparent 75%), var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  min-height: 240px;
}

.product-card h3 { font-size: 1.45rem; margin: 0 0 4px; font-weight: 700; }
.product-card .subtitle { color: var(--silver); font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em; margin: 0 0 16px; }
.product-card > div > p { color: var(--ink-soft); }

.spec-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.spec-list li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}

.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--silver-bright), var(--silver-deep));
}

/* ---------- Spec table ---------- */

.spec-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

table.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--surface);
}

.spec-table th, .spec-table td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

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

.spec-table th {
  width: 220px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--silver);
  background: var(--bg-alt);
  white-space: nowrap;
}

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

/* ---------- Software cards ---------- */

.sw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sw-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.sw-card:hover { border-color: var(--silver-deep); transform: translateY(-3px); }

.sw-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.sw-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 16px; flex: 1; }
.sw-card .more { font-size: 0.9rem; font-weight: 600; }

/* ---------- Community ---------- */

.community {
  text-align: center;
}
.community .section-head { margin-left: auto; margin-right: auto; }
.community .btn-row { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  background: #060708;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  padding: 52px 0 32px;
  font-size: 0.88rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.site-footer h4 {
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--silver-bright); }

.footer-about p { margin: 12px 0 0; max-width: 38ch; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Page header (inner pages) ---------- */

.page-head {
  position: relative;
  background:
    radial-gradient(ellipse 50% 90% at 20% 100%, rgba(190, 200, 212, 0.08), transparent 70%),
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}
.page-head h1 { margin: 0 0 8px; font-size: 2.1rem; letter-spacing: -0.02em; font-weight: 700; }
.page-head p { margin: 0; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .wrap, .product-card { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .sw-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 2.15rem; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav .nav-cta { margin-left: 0; text-align: center; }
}

@media (max-width: 560px) {
  .feature-grid, .spec-list, .footer-cols { grid-template-columns: 1fr; }
  .product-card { padding: 24px; }
}
