/* Echo - Creative Editorial & Kinetic Monogram Architecture
   Asymmetric layout, interactive kinetic 'E' sculpture, fluid acoustic waves, and high-fashion typography.
   Zero vibe-coded boilerplate. */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,700;1,800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-page: #fbfcfd;
  --bg-pure: #ffffff;
  --bg-subtle: #f4f6f9;
  --ink-primary: #0b1324;
  --ink-navy: #131e33;
  --ink-muted: #52617a;
  --ink-faint: #8a99b0;
  --brand-navy: #131e33;
  --brand-blue: #0284c7;
  --brand-cyan: #0ea5e9;
  --line-light: #e5e9f0;
  --line-strong: #0b1324;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'JetBrains Mono', ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-page);
  color: var(--ink-primary);
  font-family: var(--font-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Cursor Spotlight Glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    650px circle at var(--cursor-x, 50vw) var(--cursor-y, 30vh),
    rgba(2, 132, 199, 0.04),
    transparent 75%
  );
  transition: opacity 0.3s ease;
}

/* Scroll Progress Indicator Bar */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #0ea5e9);
  z-index: 9999;
  pointer-events: none;
  transition: width 0.08s ease-out;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.7);
}

/* Full-Bleed Kinetic Soundwave Ripple Canvas */
#fluid-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.site-container {
  position: relative;
  z-index: 2;
}

/* Header - Understated Editorial Gallery Style */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 252, 253, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-light);
}

.nav-grid {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink-primary);
}

.nav-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(19, 30, 51, 0.15);
}

.nav-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-brand-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink-navy);
}

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

.nav-anchor {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-anchor:hover {
  color: var(--ink-primary);
}

.nav-anchor::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--ink-navy);
  transition: width 0.22s ease;
}

.nav-anchor:hover::after {
  width: 100%;
}

.nav-download-link {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-navy);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid var(--ink-navy);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-download-link:hover {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

/* Asymmetric Hero Section */
.hero-asymmetric {
  max-width: 1300px;
  margin: 0 auto;
  padding: 100px 40px 70px;
}

.hero-two-column {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.hero-left-column {
  text-align: left;
}

.hero-kicker {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-blue);
  margin-bottom: 18px;
  display: block;
}

.hero-h1 {
  font-size: 76px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: var(--ink-navy);
  margin-bottom: 32px;
}

.hero-h1 span.italic-highlight {
  font-style: italic;
  font-weight: 800;
  background: linear-gradient(120deg, #0284c7 0%, #38bdf8 35%, #0ea5e9 70%, #0284c7 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: acousticShimmer 6s ease-in-out infinite;
  display: inline-block;
}

@keyframes acousticShimmer {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.hero-p {
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 620px;
  margin-bottom: 44px;
  letter-spacing: -0.01em;
}

.hero-links-row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.text-action-link {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-navy);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--ink-navy);
  padding-bottom: 3px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-action-link:hover {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
  transform: translateX(4px);
}

.text-subtle-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}

.text-subtle-link:hover {
  color: var(--ink-primary);
  text-decoration: underline;
  transform: translateY(-1px);
}

/* Kinetic Interactive 'E' Monogram Sculpture */
.hero-sculpture-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.sculpture-card {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1.05;
  background: var(--brand-navy);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 24px 60px rgba(19, 30, 51, 0.25);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  cursor: pointer;
  user-select: none;
}

.sculpture-card:active {
  transform: scale(0.96) !important;
}

@keyframes sculptureIdleFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.4deg);
  }
}

.sculpture-card:hover {
  transform: scale(1.02) rotate(-0.5deg);
}

.sculpture-bg-lines {
  position: absolute;
  inset: 0;
  background-image: repeating-radial-gradient(
    circle at 50% 50%,
    transparent 0,
    transparent 28px,
    rgba(255, 255, 255, 0.04) 29px,
    transparent 30px
  );
  pointer-events: none;
}

.monogram-svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.slab-top, .slab-mid, .slab-bot {
  fill: #ffffff;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sculpture-card:hover .slab-top {
  transform: translateX(-6px);
}

.sculpture-card:hover .slab-mid {
  transform: translateX(8px);
}

.sculpture-card:hover .slab-bot {
  transform: translateX(-4px);
}

/* Asymmetric Editorial Philosophy (Right Indented) */
.statement-section {
  max-width: 1300px;
  margin: 60px auto 90px;
  padding: 0 40px;
}

.statement-box {
  margin-left: auto;
  max-width: 780px;
  border-left: 3px solid var(--ink-navy);
  padding: 16px 0 16px 36px;
}

.statement-quote {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--ink-navy);
  margin-bottom: 14px;
}

.statement-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
}

/* Diagonal Staggered Feature Layout (Alternating Alignments) */
.staggered-section {
  max-width: 1300px;
  margin: 0 auto 110px;
  padding: 0 40px;
}

.stagger-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  margin-bottom: 90px;
}

.stagger-item.reverse {
  grid-template-columns: 1fr 1fr;
}

.stagger-item.reverse .stagger-text {
  order: 2;
}

.stagger-item.reverse .stagger-visual {
  order: 1;
}

.stagger-num {
  font-family: var(--font-code);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.stagger-heading {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-navy);
  line-height: 1.15;
  margin-bottom: 16px;
}

.stagger-p {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.stagger-visual-slab {
  background: var(--bg-pure);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  position: relative;
}

.visual-slab-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.diff-chip-removed {
  background: #fee2e2;
  color: #991b1b;
  padding: 6px 14px;
  border-radius: 4px;
  font-family: var(--font-code);
  font-size: 12px;
  display: block;
  margin-bottom: 8px;
  position: relative;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.diff-chip-removed::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 14px;
  right: 100%;
  height: 1.5px;
  background: #dc2626;
  transition: right 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.diff-chip-removed.striked::after {
  right: 14px;
}

.diff-chip-promoted {
  background: #e0f2fe;
  color: #0369a1;
  padding: 7px 14px;
  border-radius: 4px;
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 700;
  display: block;
  border: 1px solid rgba(2, 132, 199, 0.2);
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.diff-chip-promoted:hover {
  transform: translateX(4px);
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.2);
}

/* The Live Compiler Laboratory (Full Width Split Workbench) */
.laboratory-section {
  max-width: 1300px;
  margin: 0 auto 120px;
  padding: 0 40px;
}

.lab-title-row {
  margin-bottom: 32px;
}

.lab-headline {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink-navy);
  margin-bottom: 10px;
}

.lab-subheadline {
  font-size: 16px;
  color: var(--ink-muted);
}

.lab-workbench-slab {
  background: var(--bg-pure);
  border: 1px solid var(--line-light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(19, 30, 51, 0.06);
}

.lab-nav-bar {
  padding: 16px 28px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.lab-live-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-navy);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.lab-mode-picker {
  display: flex;
  gap: 6px;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 6px;
}

.mode-tab-btn {
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.mode-tab-btn.active {
  background: #ffffff;
  color: var(--ink-navy);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.lab-grid-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.lab-col {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.lab-col.input-col {
  border-right: 1px solid var(--line-light);
  background: #fafcff;
}

.lab-col.output-col {
  background: #ffffff;
}

.col-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.col-label-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.score-chip {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.score-chip.messy {
  background: #fee2e2;
  color: #b91c1c;
}

.score-chip.airtight {
  background: #dcfce7;
  color: #15803d;
}

.preset-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.preset-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  border: 1px solid var(--line-light);
  color: var(--ink-muted);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-btn:hover {
  background: var(--ink-navy);
  color: #ffffff;
  border-color: var(--ink-navy);
}

.lab-text-input {
  flex: 1;
  width: 100%;
  min-height: 220px;
  background: #ffffff;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 16px;
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-primary);
  resize: none;
  outline: none;
  margin-bottom: 14px;
  transition: border-color 0.15s ease;
}

.lab-text-input:focus {
  border-color: var(--ink-navy);
}

.score-chip.airtight.pulse-ping {
  animation: scorePing 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scorePing {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  50% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(1); }
}

.lab-text-output {
  flex: 1;
  width: 100%;
  min-height: 220px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 16px;
  font-family: var(--font-code);
  font-size: 12.5px;
  line-height: 1.6;
  color: #f8fafc;
  overflow-y: auto;
  white-space: pre-wrap;
  margin-bottom: 14px;
  position: relative;
}

.lab-text-output.is-compiling::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8 30%, #ffffff 50%, #38bdf8 70%, transparent);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.9), 0 0 6px #ffffff;
  animation: scanlineSweep 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

@keyframes scanlineSweep {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.lab-feedback-list {
  margin-top: auto;
}

.feedback-alert {
  padding: 10px 14px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 6px;
  font-size: 12px;
  color: #9f1239;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* 3-Step Guided Installation */
.installation-section {
  max-width: 1300px;
  margin: 0 auto 120px;
  padding: 0 40px;
}

.install-header-row {
  margin-bottom: 40px;
}

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

.install-col-card {
  background: var(--bg-pure);
  border: 1px solid var(--line-light);
  padding: 36px 30px;
  border-radius: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.install-col-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink-navy);
}

.install-num {
  font-family: var(--font-code);
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 16px;
}

.install-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink-navy);
  margin-bottom: 10px;
}

.install-body {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.install-body code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--ink-navy);
}

/* Architectural Comparison Matrix */
.matrix-section {
  max-width: 1300px;
  margin: 0 auto 120px;
  padding: 0 40px;
}

.matrix-header-row {
  margin-bottom: 40px;
  max-width: 680px;
}

.matrix-table-wrap {
  background: var(--bg-pure);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.matrix-table th {
  padding: 18px 24px;
  background: #f8fafc;
  color: var(--ink-navy);
  font-weight: 800;
  border-bottom: 1px solid var(--line-light);
  font-size: 13px;
  letter-spacing: -0.01em;
}

.matrix-table th.highlight {
  background: #0b1324;
  color: #ffffff;
}

.matrix-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-light);
  color: var(--ink-muted);
  line-height: 1.5;
}

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

.matrix-table td.highlight {
  background: #f0f7ff;
  color: var(--ink-navy);
  font-weight: 700;
}

/* Footer: Minimalist Swiss Finish */
.site-footer {
  border-top: 1px solid var(--line-light);
  padding: 48px 0;
  background: var(--bg-pure);
}

.footer-grid {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-muted);
}

.footer-copy strong {
  color: var(--ink-navy);
}

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

.footer-anchor {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-anchor:hover {
  color: var(--ink-navy);
}

/* Scroll Fade Animation Classes */
.fade-in-element {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-h1 { font-size: 46px; }
  .hero-two-column { grid-template-columns: 1fr; }
  .stagger-item, .stagger-item.reverse { grid-template-columns: 1fr; }
  .lab-grid-columns { grid-template-columns: 1fr; }
  .install-grid-3 { grid-template-columns: 1fr; }
  .nav-anchors { display: none; }
  .hero-sculpture-container { order: -1; }
}
