/* ============================================================
   OZMARX.COM — Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #07070e;
  --surface:     #0e0e1a;
  --surface2:    #15152a;
  --surface3:    #1c1c35;
  --border:      #1f1f3a;
  --border2:     #2a2a4a;
  --accent:      #6d6afe;
  --accent-dim:  rgba(109,106,254,.15);
  --accent-glow: rgba(109,106,254,.35);
  --green:       #10b981;
  --green-dim:   rgba(16,185,129,.12);
  --amber:       #f59e0b;
  --amber-dim:   rgba(245,158,11,.12);
  --red:         #ef4444;
  --red-dim:     rgba(239,68,68,.12);
  --text:        #e8e8f0;
  --text2:       #9090b0;
  --text3:       #60607a;
  --mono:        'JetBrains Mono', monospace;
  --sans:        'Inter', sans-serif;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,.45);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,7,14,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--surface2);
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
}
.nav-cta:hover { opacity: .88; background: var(--accent) !important; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── Hero ── */
.hero {
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(109,106,254,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  border: 1px solid rgba(109,106,254,.3);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text2);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); text-decoration: none; }

/* ── Stats bar ── */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}
.stat-label { font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }

/* ── Section headers ── */
.section-header { margin-bottom: 40px; }
.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 8px;
}
.section-header p { color: var(--text2); font-size: 15px; }
.section-header .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ── Pricing snapshot cards ── */
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.snapshot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.snapshot-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.snapshot-card .provider-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}
.snapshot-card .provider-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.snapshot-card .gpu-label {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 16px;
}
.snapshot-card .price {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 500;
  color: #fff;
}
.snapshot-card .price .unit {
  font-size: 13px;
  color: var(--text2);
  font-weight: 400;
}
.snapshot-card .badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 10px;
}
.badge-best { background: var(--green-dim); color: var(--green); }
.badge-popular { background: var(--accent-dim); color: var(--accent); }
.badge-enterprise { background: var(--amber-dim); color: var(--amber); }

/* ── Full Pricing Table ── */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--sans);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.search-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 8px;
  font-family: var(--sans);
  outline: none;
  width: 200px;
  margin-left: auto;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text3); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

thead th {
  background: var(--surface2);
  color: var(--text3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
thead th:hover { color: var(--text); }
thead th .sort-icon { margin-left: 4px; opacity: .4; }
thead th.sorted .sort-icon { opacity: 1; color: var(--accent); }

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface2); }

tbody td {
  padding: 14px 16px;
  vertical-align: middle;
}

.td-provider { font-weight: 600; color: #fff; }
.td-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-block;
}
.type-hyperscaler { background: var(--amber-dim); color: var(--amber); }
.type-neocloud { background: var(--accent-dim); color: var(--accent); }
.type-marketplace { background: var(--green-dim); color: var(--green); }

.td-price {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
}
.price-low { color: var(--green); }
.price-mid { color: var(--amber); }
.price-high { color: var(--red); }

.td-avail {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text2);
}
.dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-green { background: var(--green); }
.dot-amber { background: var(--amber); }
.dot-red { background: var(--red); }

.td-link a {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.td-link a:hover { text-decoration: underline; }

/* ── Article Cards ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.article-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 10px;
}
.article-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 10px;
}
.article-card p {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}
.article-meta {
  font-size: 12px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-meta .read-time::before { content: '·'; margin-right: 12px; }

/* ── Why Ozmarx ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.why-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.why-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.why-card p {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.6;
}

/* ── Newsletter ── */
.newsletter-box {
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface3) 100%);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-box::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 300px;
  background: radial-gradient(ellipse, rgba(109,106,254,.12) 0%, transparent 70%);
  pointer-events: none;
}
.newsletter-box h3 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.newsletter-box p { color: var(--text2); margin-bottom: 24px; }

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text);
  font-size: 14px;
  padding: 11px 16px;
  border-radius: var(--radius);
  font-family: var(--sans);
  outline: none;
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form input::placeholder { color: var(--text3); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text2);
  margin-top: 10px;
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text3);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13.5px;
  color: var(--text2);
  text-decoration: none;
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text3);
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 10px;
}
.page-hero p { font-size: 16px; color: var(--text2); max-width: 600px; }

/* ── Provider chips ── */
.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px 4px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
}
.provider-badge .dot { width: 8px; height: 8px; }

/* ── Comparison Page specific ── */
.compare-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text2);
}
.legend-item { display: flex; align-items: center; gap: 6px; }

.gpu-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── About page ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.about-content p {
  color: var(--text2);
  margin-bottom: 16px;
  line-height: 1.75;
}

.principles-list { list-style: none; margin-top: 8px; }
.principles-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text2);
}
.principles-list li:last-child { border-bottom: none; }
.principles-list .icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(109,106,254,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Last updated chip ── */
.last-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text3);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 0 16px; }
  .nav-links { display: none; }
  .hero { padding: 60px 0 48px; }
  .section { padding: 56px 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .table-controls { flex-direction: column; align-items: flex-start; }
  .search-input { margin-left: 0; width: 100%; }
  table { font-size: 12px; }
  thead th, tbody td { padding: 10px 12px; }
}
