/* ═══════════════════════════════════════════════════════════════
   DIAMOND COOL LIQUID DYNAMICS — Website Design System
   Matching reference: Industrial cryogenic cold plate aesthetic
   ═══════════════════════════════════════════════════════════════ */

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

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  --dc-black: #000000;
  --dc-bg: #050508;
  --dc-surface: #0a0a10;
  --dc-surface-alt: #0e0e16;
  --dc-card: rgba(10, 14, 24, 0.65);
  --dc-border: rgba(100, 140, 180, 0.15);
  --dc-border-hover: rgba(100, 160, 220, 0.3);
  --dc-text: #e0e4ec;
  --dc-text-dim: #8090a8;
  --dc-text-muted: #4a5568;
  --dc-silver: #c0c8d8;
  --dc-silver-bright: #e8ecf4;
  --dc-blue: #4a8cc8;
  --dc-blue-light: #6aaee8;
  --dc-blue-glow: rgba(74, 140, 200, 0.12);
  --dc-blue-bright: #88ccff;
  --dc-ice: #a0d4f0;
  --dc-frost: rgba(160, 212, 240, 0.06);
  --dc-red: #e05050;
  --dc-green: #50e088;
  --dc-radius: 4px;
  --dc-radius-lg: 8px;
  --dc-transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dc-max-width: 1280px;
  --font-display: 'Oswald', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--dc-bg);
  color: var(--dc-text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--dc-blue-light); text-decoration: none; transition: color var(--dc-transition); }
a:hover { color: var(--dc-blue-bright); }

/* ── Utilities ────────────────────────────────────────────────── */
.container { max-width: var(--dc-max-width); margin: 0 auto; padding: 0 3rem; }
.mono { font-family: var(--font-mono); }

.tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--dc-border);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dc-blue-light);
}
.accent-text { color: var(--dc-blue-light); }

/* ── Navigation ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--dc-transition);
  background: transparent;
}
.nav.scrolled {
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dc-border);
  padding: 0.75rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--dc-max-width);
  margin: 0 auto;
  padding: 0 3rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
}
.nav-logo-icon svg {
  width: 100%;
  height: 100%;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-text .brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dc-silver-bright);
}
.nav-logo-text .sub {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dc-text-dim);
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--dc-silver);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--dc-transition);
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--dc-silver);
  color: var(--dc-silver-bright);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--dc-transition);
  text-decoration: none;
}
.nav-cta:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #fff;
  color: #fff;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--dc-silver);
  transition: var(--dc-transition);
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0 0;
}
.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  z-index: 1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 15%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,1) 60%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 15%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,1) 60%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, var(--dc-bg) 0%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dc-silver-bright);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 0, 0, 0.4);
}
.hero-tagline {
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dc-blue-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 4px 20px rgba(0, 0, 0, 0.5);
}
.hero-body {
  font-size: 1rem;
  color: var(--dc-text-dim);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--dc-silver);
  color: var(--dc-silver-bright);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--dc-transition);
  text-decoration: none;
  width: fit-content;
}
.hero-cta:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #fff;
  color: #fff;
  transform: translateX(4px);
}
.hero-cta .arrow { transition: transform var(--dc-transition); }
.hero-cta:hover .arrow { transform: translateX(4px); }

/* ── Feature Bar (bottom of hero) ─────────────────────────────── */
.feature-bar {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--dc-border);
  background: rgba(5, 5, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem 2rem;
  border-right: 1px solid var(--dc-border);
  transition: background var(--dc-transition);
}
.feature-item:last-child { border-right: none; }
.feature-item:hover { background: rgba(74, 140, 200, 0.04); }
.feature-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--dc-blue-light);
  stroke-width: 1.5;
  fill: none;
}
.feature-text h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dc-silver-bright);
  margin-bottom: 0.35rem;
}
.feature-text p {
  font-size: 0.75rem;
  color: var(--dc-text-dim);
  line-height: 1.5;
}

/* ── Section Base ─────────────────────────────────────────────── */
.section {
  padding: 7rem 0;
  position: relative;
}
.section-header {
  margin-bottom: 4rem;
}
.section-header.center { text-align: center; }
.section-header .tag { margin-bottom: 1.25rem; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--dc-silver-bright);
  margin-bottom: 1rem;
  line-height: 1.1;
}
.section-header p {
  color: var(--dc-text-dim);
  max-width: 600px;
  font-size: 0.95rem;
  line-height: 1.8;
}
.section-header.center p { margin: 0 auto; }
.section-divider {
  width: 60px;
  height: 1px;
  background: var(--dc-blue-light);
  margin: 1.5rem 0;
  opacity: 0.5;
}
.section-header.center .section-divider { margin: 1.5rem auto; }

/* ── Stats Row ────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--dc-border);
}
.stat-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-right: 1px solid var(--dc-border);
  transition: background var(--dc-transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--dc-frost); }
.stat-value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--dc-blue-light);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dc-text-dim);
}

/* ── Problem Cards ────────────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--dc-border);
}
.problem-card {
  text-align: center;
  padding: 3rem 2rem;
  border-right: 1px solid var(--dc-border);
  background: var(--dc-card);
  backdrop-filter: blur(10px);
  transition: all var(--dc-transition);
}
.problem-card:last-child { border-right: none; }
.problem-card:hover { background: rgba(10, 14, 24, 0.85); }
.problem-card .big-num {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.problem-card .big-num.danger { color: var(--dc-red); }
.problem-card .big-num.safe { color: var(--dc-green); }
.problem-card h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dc-silver-bright);
  margin-bottom: 1rem;
}
.problem-card p {
  font-size: 0.85rem;
  color: var(--dc-text-dim);
  line-height: 1.7;
}

/* ── Tech Steps ───────────────────────────────────────────────── */
.tech-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--dc-border);
}
.tech-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  border-bottom: 1px solid var(--dc-border);
  transition: background var(--dc-transition);
}
.tech-step:last-child { border-bottom: none; }
.tech-step:hover { background: var(--dc-frost); }
.step-num-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--dc-border);
  padding: 2rem;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dc-blue-light);
}
.step-body {
  padding: 2.5rem 2.5rem;
}
.step-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dc-silver-bright);
  margin-bottom: 0.75rem;
}
.step-body p {
  color: var(--dc-text-dim);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.step-specs {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.step-spec .spec-val {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dc-blue-light);
}
.step-spec .spec-label {
  font-size: 0.6rem;
  color: var(--dc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Spec Grid ────────────────────────────────────────────────── */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--dc-border);
}
.spec-card {
  padding: 2rem;
  border-right: 1px solid var(--dc-border);
  border-bottom: 1px solid var(--dc-border);
  background: var(--dc-card);
  backdrop-filter: blur(10px);
}
.spec-card:nth-child(2n) { border-right: none; }
.spec-card:nth-child(n+3) { border-bottom: none; }
.spec-category {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dc-blue-light);
  margin-bottom: 1.25rem;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(100, 140, 180, 0.07);
}
.spec-row:last-child { border-bottom: none; }
.spec-row .spec-label { color: var(--dc-text-dim); font-size: 0.85rem; }
.spec-row .spec-value {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--dc-silver-bright);
  font-size: 0.85rem;
}

/* ── Comparison Table ─────────────────────────────────────────── */
.comparison-wrap {
  overflow-x: auto;
  border: 1px solid var(--dc-border);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.comparison-table th,
.comparison-table td {
  padding: 0.9rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(100, 140, 180, 0.08);
}
.comparison-table th {
  background: var(--dc-surface);
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dc-text-dim);
}
.comparison-table th.hl {
  color: var(--dc-blue-light);
  background: rgba(74, 140, 200, 0.05);
}
.comparison-table td { color: var(--dc-text-dim); }
.comparison-table td.hl {
  color: var(--dc-silver-bright);
  background: rgba(74, 140, 200, 0.03);
  font-weight: 500;
}
.comparison-table tr:last-child td { border-bottom: none; }
.chk { color: var(--dc-green); }
.xmk { color: var(--dc-red); opacity: 0.5; }

/* ── Deploy Grid ──────────────────────────────────────────────── */
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--dc-border);
}
.deploy-card {
  padding: 2.5rem;
  border-right: 1px solid var(--dc-border);
  border-bottom: 1px solid var(--dc-border);
  background: var(--dc-card);
  backdrop-filter: blur(10px);
}
.deploy-card:nth-child(2n) { border-right: none; }
.deploy-card:nth-child(n+3) { border-bottom: none; }
.deploy-card h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dc-text-dim);
  margin-bottom: 0.75rem;
}
.deploy-val {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--dc-blue-light);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.deploy-sub {
  font-size: 0.8rem;
  color: var(--dc-text-dim);
  margin-bottom: 1.5rem;
}
.incentive-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(100, 140, 180, 0.07);
}
.incentive-row:last-child { border-bottom: none; }
.incentive-row .label { color: var(--dc-text-dim); font-size: 0.8rem; }
.incentive-row .amount {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--dc-green);
  font-size: 0.85rem;
}

/* ── CTA Section ──────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 6rem 0;
  border-top: 1px solid var(--dc-border);
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--dc-silver-bright);
  margin-bottom: 1rem;
}
.cta-section p {
  color: var(--dc-text-dim);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  font-size: 0.95rem;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--dc-silver);
  color: var(--dc-silver-bright);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--dc-transition);
  text-decoration: none;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #fff;
  color: #fff;
}
.btn-outline.accent {
  border-color: var(--dc-blue-light);
  color: var(--dc-blue-light);
}
.btn-outline.accent:hover {
  background: var(--dc-blue-glow);
  border-color: var(--dc-blue-bright);
  color: var(--dc-blue-bright);
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--dc-border);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-text {
  color: var(--dc-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}
.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.footer-links a {
  color: var(--dc-text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Scroll Animations ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Section alternate bg ─────────────────────────────────────── */
.section-dark { background: var(--dc-surface); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .feature-bar { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(2) { border-right: none; }
  .feature-item:nth-child(1),
  .feature-item:nth-child(2) { border-bottom: 1px solid var(--dc-border); }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-card { border-right: none; border-bottom: 1px solid var(--dc-border); }
  .problem-card:last-child { border-bottom: none; }
  .specs-grid { grid-template-columns: 1fr; }
  .spec-card { border-right: none; border-bottom: 1px solid var(--dc-border); }
  .spec-card:last-child { border-bottom: none; }
  .deploy-grid { grid-template-columns: 1fr; }
  .deploy-card { border-right: none; border-bottom: 1px solid var(--dc-border); }
  .deploy-card:last-child { border-bottom: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: 1px solid var(--dc-border); }
  .hero-bg { width: 50%; opacity: 0.5; }
}
@media (max-width: 767px) {
  .container { padding: 0 1.5rem; }
  .nav-inner { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 8, 0.97);
    backdrop-filter: blur(20px);
    padding: 1rem 1.5rem 2rem;
    border-bottom: 1px solid var(--dc-border);
    gap: 1rem;
  }
  .hero-bg { width: 100%; opacity: 0.25; }
  .hero h1 { font-size: 2.5rem; }
  .feature-bar { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--dc-border); }
  .feature-item:last-child { border-bottom: none; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--dc-border); }
  .stat-item:last-child { border-bottom: none; }
  .tech-step { grid-template-columns: 1fr; }
  .step-num-wrap { border-right: none; border-bottom: 1px solid var(--dc-border); padding: 1rem; }
  .section { padding: 4rem 0; }
}
