/* ============================================================
   Pixelizer — Premium Marketing Site
   ============================================================ */

:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-2: #111111;
  --border: rgba(255,255,255,0.07);
  --text-1: #ededed;
  --text-2: rgba(255,255,255,0.55);
  --text-3: rgba(255,255,255,0.3);
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

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

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

a {
  text-decoration: none;
  color: inherit;
}

/* ---- Container ---- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- Section ---- */

.section {
  padding: 140px 0;
}

.section-dark {
  background: var(--surface);
}

.section-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-1);
  margin-bottom: 64px;
  max-width: 600px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text-1);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

/* ============================================================
   NAVIGATION — Premium transparent glassmorphic nav
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 32px;
  transition: all 0.3s ease;
}

.nav-scrolled {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo + Brand */
.nav-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.logo-pixel {
  color: #4285F4;
}

.logo-izer {
  color: #fafafa;
}

.nav-tagline {
  font-size: 10.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

/* Center Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 450;
  color: rgba(255,255,255,0.5);
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.05);
}

/* Right Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-action-btn {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  padding: 7px 16px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-action-btn:hover {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
}

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 20px;
  border-radius: 7px;
  background: #6366f1;
  color: #fff;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: #4f46e5;
  box-shadow: 0 2px 16px rgba(99,102,241,0.3);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
  position: relative;
}

/* Background video — fills hero, plays behind content */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 110%;
  height: 110%;
  margin: -5%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 2s ease;
  filter: saturate(0.7) contrast(1.1) blur(4px);
  animation: heroVideoZoom 20s ease-in-out infinite alternate;
}

.hero-video.loaded {
  opacity: 0.3;
}

@keyframes heroVideoZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.7) 0%,
    rgba(0,0,0,0.4) 40%,
    rgba(0,0,0,0.6) 70%,
    rgba(0,0,0,0.95) 100%
  );
  z-index: 1;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 0 0 60%;
  max-width: 60%;
  z-index: 2;
}

.hero-headline {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: 40px;
}

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

.hero-visual {
  flex: 0 0 40%;
  max-width: 40%;
  position: relative;
  display: none; /* Hide cube, video is now the visual */
}

#cube-canvas {
  width: 100%;
  aspect-ratio: 1;
  opacity: 0.55;
}

#cube-canvas canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ============================================================
   HOW IT WORKS — TIMELINE
   ============================================================ */

.timeline {
  display: flex;
  gap: 0;
  position: relative;
  padding-top: 48px;
}

.timeline-line {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.timeline-step {
  flex: 1;
  position: relative;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(20px);
}

.timeline-step:first-child {
  padding-left: 0;
}

.timeline-step:last-child {
  padding-right: 0;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  top: 6px;
  left: 24px;
}

.timeline-step:first-child .timeline-dot {
  left: 0;
}

.timeline-number {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: 12px;
  margin-top: 32px;
  font-family: var(--mono);
}

.timeline-heading {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ============================================================
   INTERACTIVE DEMO
   ============================================================ */

.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.demo-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 10px;
  display: block;
}

.demo-textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-1);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
}

.demo-textarea::placeholder {
  color: var(--text-3);
}

.demo-textarea:focus {
  border-color: var(--accent);
}

.demo-run-btn {
  margin-top: 16px;
}

.demo-terminal {
  background: #0c0c0c;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text-3);
  margin-left: 8px;
}

.terminal-body {
  padding: 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  min-height: 320px;
}

.terminal-line {
  opacity: 0;
  transform: translateX(-8px);
}

.t-green { color: #34d399; }
.t-yellow { color: #fbbf24; }
.t-dim { color: var(--text-3); }
.t-accent { color: var(--accent-hover); }

/* ============================================================
   TEST SUITES — DATA TABLE
   ============================================================ */

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table thead {
  background: var(--surface);
}

.data-table th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr {
  opacity: 0;
  transform: translateY(8px);
  transition: background 0.15s;
}

.data-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

.cell-name {
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
}

/* ============================================================
   API — CODE BLOCKS
   ============================================================ */

.code-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.code-block {
  background: #0c0c0c;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
}

.code-block-left {
  transform: translateX(-40px);
}

.code-block-right {
  transform: translateX(40px);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

.code-lang {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  font-family: var(--mono);
}

.code-filename {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--mono);
}

.code-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  overflow-x: auto;
  margin: 0;
  color: var(--text-2);
}

.code-body code {
  font-family: inherit;
}

.syn-keyword { color: #c084fc; }
.syn-module { color: #34d399; }
.syn-class { color: #60a5fa; }
.syn-string { color: #fbbf24; }
.syn-number { color: #f472b6; }

/* ============================================================
   COMPLIANCE
   ============================================================ */

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

.compliance-item {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.compliance-badge {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 12px;
}

.compliance-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ============================================================
   VIDEO
   ============================================================ */

.video-container {
  max-width: 960px;
  margin: 0 auto;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.video-placeholder:hover {
  border-color: rgba(255,255,255,0.15);
}

.video-play {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.video-placeholder:hover .video-play {
  background: var(--accent);
}

.video-label {
  font-size: 15px;
  color: var(--text-3);
  text-align: center;
  max-width: 400px;
}

/* ============================================================
   CTA
   ============================================================ */

.section-cta {
  text-align: center;
  padding: 160px 0;
}

.cta-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 17px;
  color: var(--text-2);
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-logo {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text-2);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero-headline { font-size: 52px; }
  .section-title { font-size: 32px; }
  .code-layout { grid-template-columns: 1fr; }
  .compliance-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-action-btn { display: none; }
  .hero-inner { flex-direction: column; }
  .hero-content { flex: none; max-width: 100%; }
  .hero-headline { font-size: 40px; }
  .section { padding: 80px 0; }
  .timeline { flex-direction: column; gap: 40px; }
  .timeline-line { display: none; }
  .demo-layout { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-links { gap: 40px; }
  .cta-title { font-size: 32px; }
  .compliance-grid { grid-template-columns: 1fr; }
}