/* ================================================
   Sizorax — Liquid Glass
   Apple-inspired frosted glass with soft inner
   highlights, edge luminance, subtle refraction,
   and a restrained monochromatic palette.
   ================================================ */

:root {
  --bg: #0e0e11;
  --surface: rgba(255, 255, 255, 0.04);
  --glass: rgba(255, 255, 255, 0.025);
  --glass-edge: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.04);
  --glass-inner: rgba(255, 255, 255, 0.015);
  --glass-shadow: rgba(0, 0, 0, 0.30);
  --text: #f2f2f7;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-tertiary: rgba(255, 255, 255, 0.30);
  --accent: rgba(120, 180, 255, 0.85);
  --accent-soft: rgba(120, 180, 255, 0.12);
  --divider: rgba(255, 255, 255, 0.06);
  --blur: 10px;
  --blur-sm: 6px;
  --radius: 22px;
  --radius-sm: 16px;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* CI/CD pipeline background */
  --pipe-line: rgba(120, 180, 255, 0.18);
  --pipe-node: rgba(120, 180, 255, 0.30);
  --pipe-stroke: rgba(120, 180, 255, 0.40);
  --pipe-ring: rgba(120, 180, 255, 0.50);
  --pipe-particle: rgba(160, 210, 255, 1);
  --pipe-label: rgba(120, 180, 255, 0.18);
  --pipe-glow: rgba(80, 110, 180, 0.22);
}

html[data-theme="light"] {
  --bg: #f2f2f7;
  --surface: rgba(255, 255, 255, 0.45);
  --glass: rgba(255, 255, 255, 0.20);
  --glass-edge: rgba(255, 255, 255, 0.35);
  --glass-highlight: rgba(255, 255, 255, 0.15);
  --glass-inner: rgba(255, 255, 255, 0.08);
  --glass-shadow: rgba(0, 0, 0, 0.04);
  --text: #1d1d1f;
  --text-secondary: rgba(0, 0, 0, 0.50);
  --text-tertiary: rgba(0, 0, 0, 0.25);
  --accent: rgba(0, 100, 230, 0.85);
  --accent-soft: rgba(0, 100, 230, 0.08);
  --divider: rgba(0, 0, 0, 0.06);

  --pipe-line: rgba(0, 80, 180, 0.16);
  --pipe-node: rgba(0, 80, 180, 0.22);
  --pipe-stroke: rgba(0, 80, 180, 0.30);
  --pipe-ring: rgba(0, 80, 180, 0.40);
  --pipe-particle: rgba(0, 100, 220, 0.80);
  --pipe-label: rgba(0, 80, 180, 0.14);
  --pipe-glow: rgba(100, 140, 200, 0.18);
}

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

html {
  font-family: var(--sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

/* ===== CI/CD Pipeline Background ===== */
.pipeline-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.pipeline-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Ambient glow blobs — drift slowly, give glass blur material */
.pipeline-ambience circle {
  fill: var(--pipe-glow);
  filter: blur(60px);
  will-change: transform;
  transform-box: fill-box;
  transform-origin: center;
}

.amb-1 { animation: amb-1 22s ease-in-out infinite alternate; }
.amb-2 { animation: amb-2 26s ease-in-out infinite alternate; }
.amb-3 { animation: amb-3 20s ease-in-out infinite alternate; }
.amb-4 { animation: amb-4 28s ease-in-out infinite alternate; }
.amb-5 { animation: amb-5 24s ease-in-out infinite alternate; }

@keyframes amb-1 { 0% { transform: translate(0,0) scale(1); }  100% { transform: translate(60px,40px) scale(1.15); } }
@keyframes amb-2 { 0% { transform: translate(0,0) scale(1); }  100% { transform: translate(-50px,-30px) scale(0.9); } }
@keyframes amb-3 { 0% { transform: translate(0,0) scale(1); }  100% { transform: translate(-40px,50px) scale(1.12); } }
@keyframes amb-4 { 0% { transform: translate(0,0) scale(1); }  100% { transform: translate(30px,-40px) scale(0.95); } }
@keyframes amb-5 { 0% { transform: translate(0,0) scale(1); }  100% { transform: translate(50px,30px) scale(1.08); } }

/* Pipeline lines */
.pipeline-lines line,
.pipeline-lines path {
  stroke: var(--pipe-line);
  stroke-width: 2;
}

.pl-dashed {
  stroke-dasharray: 6 4;
}

/* Pipeline nodes */
.pipeline-nodes circle {
  fill: var(--pipe-node);
  stroke: var(--pipe-stroke);
  stroke-width: 1.5;
}

/* Pulsing activity rings */
.pipeline-rings circle {
  fill: none;
  stroke: var(--pipe-ring);
  stroke-width: 1;
}

/* Stage labels */
.pipeline-labels text {
  fill: var(--pipe-label);
  font-family: var(--mono);
  font-size: 11px;
  text-anchor: middle;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Animated particles */
.pipeline-particles circle {
  fill: var(--pipe-particle);
}

/* Noise texture overlay */
.pipeline-noise {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ===== Utility ===== */
.container {
  position: relative;
  z-index: 1;
  width: min(1080px, 90%);
  margin-inline: auto;
}

/* ===== Glass treatment ===== */
.glass {
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;

  /* Layered shadows: inner edge highlights + outer depth */
  box-shadow:
    inset 0 1px 0 0 var(--glass-highlight),
    inset 0 -0.5px 0 0 rgba(255, 255, 255, 0.03),
    inset 0 0 0 1px var(--glass-inner),
    0 8px 32px var(--glass-shadow),
    0 2px 8px rgba(0, 0, 0, 0.10);
}

/* Inner light refraction — curved glass caustic effect */
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(255, 255, 255, 0.02) 25%,
      transparent 50%
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.025) 0%,
      transparent 40%
    );
  pointer-events: none;
  z-index: 0;
}

/* Bottom edge light — simulates light wrapping under the glass */
.glass::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  pointer-events: none;
  z-index: 0;
}

.glass > * { position: relative; z-index: 1; }

.glass-sm {
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  border-radius: var(--radius-sm);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 10px 0;
}

.header-glass {
  background: var(--glass);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  border: 1px solid var(--glass-edge);
  border-radius: 16px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  box-shadow:
    inset 0 1px 0 0 var(--glass-highlight),
    0 4px 20px var(--glass-shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20);
}

.brand-name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-pill {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 99px;
  transition: background 0.2s, color 0.2s;
}

.nav-pill:hover {
  background: var(--glass-highlight);
  color: var(--text);
}

.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-edge);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: border-color 0.2s, background 0.2s;
  box-shadow: inset 0 1px 0 0 var(--glass-highlight);
}

.theme-btn:hover {
  border-color: var(--text-tertiary);
  background: var(--glass-highlight);
}

/* ===== Main (scrollable area) ===== */
main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 76px;   /* header height + padding */
  padding-bottom: 72px; /* footer height + padding */
  position: relative;
  z-index: 1;
}

/* ===== Hero ===== */
.hero { padding: 32px 0 36px; }

.hero-glass { padding: 44px 42px 40px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 18ch;
}

.hero-lead {
  color: var(--text-secondary);
  margin: 16px 0 28px;
  max-width: 54ch;
  line-height: 1.65;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 11px 22px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(100, 160, 255, 0.22);
  transition: filter 0.2s;
}

.btn-primary:hover { filter: brightness(1.15); }

.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 11px 22px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  box-shadow: inset 0 1px 0 0 var(--glass-highlight);
  transition: background 0.2s;
}

.btn-glass:hover { background: var(--glass-highlight); }

/* Signal row — authentic, understated */
.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: 20px;
}

.signal-row li {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-tertiary);
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  box-shadow: inset 0 1px 0 0 var(--glass-highlight);
}

/* ===== Products ===== */
.products-section { padding: 18px 0 60px; }

.section-label { margin-bottom: 4px; }
.section-label .eyebrow { margin-bottom: 0; }

.products-section h2 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.product-card {
  padding: 24px;
  transition: transform 0.3s cubic-bezier(.22, .68, 0, 1), box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-4px) scale(1.004);
  box-shadow:
    inset 0 1px 0 0 var(--glass-highlight),
    inset 0 0 0 1px var(--glass-inner),
    0 18px 52px var(--glass-shadow),
    0 4px 14px rgba(0, 0, 0, 0.14);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.card-logo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  object-fit: contain;
}

.card-title-wrap {
  flex: 1;
  min-width: 0;
}

.card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-chip {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 99px;
  padding: 4px 12px;
  letter-spacing: 0.03em;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  margin-bottom: 18px;
}

.feature-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--divider);
}

.feature-list li:last-child { border-bottom: none; }

.feature-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--glass-highlight);
  border: 1px solid var(--glass-edge);
  display: grid;
  place-items: center;
  font-size: 0.5rem;
  color: var(--accent);
  line-height: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 4px;
}

.card-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.card-link:hover { gap: 8px; }

.card-cat {
  font-size: 0.66rem;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Footer ===== */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 10px 0;
}

.footer-glass {
  background: var(--glass);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  border: 1px solid var(--glass-edge);
  border-radius: 16px;
  padding: 12px 20px;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-tertiary);
  box-shadow:
    inset 0 1px 0 0 var(--glass-highlight),
    0 -4px 20px var(--glass-shadow);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-glass { padding: 28px 22px 26px; }
  .signal-row { gap: 6px; }
}

@media (max-width: 500px) {
  .header-glass { padding: 0 14px; height: 50px; }
  .brand-sub { display: none; }
  .nav-pill { display: none; }
}
