:root {
  --bg-primary: #0e1117;
  --bg-card: #171b22;
  --bg-card-light: #212631;
  --bg-surface-inset: #090b0e;
  
  --neo-ink: #000000;
  --neo-border-color: #000000;
  --neo-border: 2.5px solid var(--neo-border-color);
  --neo-border-thick: 3.5px solid var(--neo-border-color);
  
  --text-primary: #ffffff;
  --text-secondary: #c5cbd5;
  --text-muted: #8b949e;
  --text-dark: #000000;

  /* Neo-Brutalist Solid Color Blocks (Zero Gradients) */
  --neo-yellow: #ffde59;
  --neo-orange: #ff5733;
  --neo-green: #2ecc71;
  --neo-purple: #a29bfe;
  --neo-blue: #3b82f6;
  --neo-pink: #ff7675;

  /* Hard Un-blurred Block Shadows */
  --neo-shadow-sm: 3px 3px 0px var(--neo-ink);
  --neo-shadow-md: 6px 6px 0px var(--neo-ink);
  --neo-shadow-lg: 10px 10px 0px var(--neo-ink);
  --neo-shadow-xl: 14px 14px 0px var(--neo-ink);

  --radius-none: 0px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Georgia', serif;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Cursor Follower */
.cursor-glow {
  position: fixed;
  width: 28px;
  height: 28px;
  border: 2px solid var(--neo-yellow);
  background: rgba(255, 222, 89, 0.15);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.04s ease-out;
}

/* Header */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: var(--bg-primary);
  border-bottom: var(--neo-border);
  z-index: 100;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  background: var(--neo-orange);
  border: var(--neo-border);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  box-shadow: var(--neo-shadow-sm);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  stroke: #000000;
  stroke-width: 2.5;
  fill: none;
}

.brand-title {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--text-primary);
}

.brand-badge {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--neo-yellow);
  border: var(--neo-border);
  box-shadow: var(--neo-shadow-sm);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--neo-border-color);
  box-shadow: var(--neo-shadow-sm);
}

/* Neo-Brutalist Buttons with Mechanical Tactile Press */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: var(--neo-border);
  box-shadow: var(--neo-shadow-md);
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--neo-orange);
  color: #ffffff;
}

.btn-primary:hover {
  background: #ff6b4a;
  transform: translate(-2px, -2px);
  box-shadow: var(--neo-shadow-lg);
}

.btn-primary:active {
  transform: translate(3px, 3px);
  box-shadow: var(--neo-shadow-sm);
}

.btn-secondary {
  background: var(--neo-yellow);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: #ffe67a;
  transform: translate(-2px, -2px);
  box-shadow: var(--neo-shadow-lg);
}

.btn-secondary:active {
  transform: translate(3px, 3px);
  box-shadow: var(--neo-shadow-sm);
}

.btn-dark {
  background: var(--bg-card);
  color: var(--text-primary);
}

.btn-dark:hover {
  background: var(--bg-card-light);
  transform: translate(-2px, -2px);
  box-shadow: var(--neo-shadow-lg);
}

.btn-large {
  padding: 16px 32px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding: 150px 40px 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.stamp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--neo-green);
  border: var(--neo-border);
  box-shadow: var(--neo-shadow-md);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  margin-bottom: 28px;
}

.stamp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neo-ink);
}

.hero-title {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 1040px;
  margin-bottom: 24px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.hero-title .highlight-yellow {
  background: var(--neo-yellow);
  color: var(--text-dark);
  padding: 2px 14px;
  border: var(--neo-border);
  box-shadow: var(--neo-shadow-md);
  border-radius: var(--radius-sm);
  display: inline-block;
  transform: rotate(-1.5deg);
}

.hero-title .highlight-orange {
  background: var(--neo-orange);
  color: #ffffff;
  padding: 2px 14px;
  border: var(--neo-border);
  box-shadow: var(--neo-shadow-md);
  border-radius: var(--radius-sm);
  display: inline-block;
  transform: rotate(1deg);
}

.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-secondary);
  max-width: 740px;
  line-height: 1.65;
  margin-bottom: 40px;
  font-weight: 500;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Neo-Brutalist Mini Studio Live Demo */
.demo-stage-wrapper {
  width: 100%;
  max-width: 1120px;
  background: var(--bg-card);
  border: var(--neo-border-thick);
  box-shadow: var(--neo-shadow-xl);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.demo-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: var(--neo-border);
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 14px;
}

.demo-pills {
  display: flex;
  gap: 10px;
}

.demo-tab-btn {
  background: var(--bg-primary);
  border: var(--neo-border);
  box-shadow: var(--neo-shadow-sm);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.12s;
}

.demo-tab-btn:hover {
  color: var(--text-primary);
  transform: translate(-1px, -1px);
  box-shadow: var(--neo-shadow-md);
}

.demo-tab-btn.active {
  background: var(--neo-yellow);
  color: var(--text-dark);
  box-shadow: var(--neo-shadow-md);
}

.demo-stage-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: center;
}

.demo-canvas-box {
  background: var(--bg-surface-inset);
  border: var(--neo-border);
  box-shadow: var(--neo-shadow-md);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.demo-canvas-box canvas {
  max-width: 100%;
  height: auto;
  border: 2px solid #000000;
  border-radius: var(--radius-sm);
  box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.9);
}

.demo-controls-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.demo-control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-control-group label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neo-yellow);
}

.demo-control-group input {
  background: var(--bg-surface-inset);
  border: var(--neo-border);
  box-shadow: var(--neo-shadow-sm);
  color: var(--text-primary);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
}

.demo-control-group input:focus {
  outline: none;
  border-color: var(--neo-yellow);
  box-shadow: var(--neo-shadow-md);
}

/* Feature Showcase Grid */
.section {
  padding: 110px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--neo-purple);
  color: var(--text-dark);
  padding: 4px 12px;
  border: var(--neo-border);
  box-shadow: var(--neo-shadow-sm);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  display: inline-block;
}

.section-heading {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 680px;
  margin-bottom: 50px;
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: var(--neo-border-thick);
  box-shadow: var(--neo-shadow-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--neo-shadow-xl);
}

.feature-card-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: #0f131a;
  border-bottom: var(--neo-border);
}

.feature-card-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.feature-card-title {
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.feature-card-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Comparison Table (Neo-Brutalist Grid) */
.comparison-table-wrap {
  background: var(--bg-card);
  border: var(--neo-border-thick);
  box-shadow: var(--neo-shadow-xl);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 36px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 20px 24px;
  border-bottom: var(--neo-border);
  border-right: var(--neo-border);
}

.comparison-table th:last-child, .comparison-table td:last-child {
  border-right: none;
}

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

.comparison-table th {
  background: var(--bg-card-light);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neo-yellow);
}

.comparison-table td {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.comparison-table tr td:first-child {
  font-weight: 800;
  color: var(--text-primary);
}

.check-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--neo-green);
  color: var(--text-dark);
  padding: 4px 10px;
  border: 1.5px solid #000;
  box-shadow: 2px 2px 0px #000;
  border-radius: 4px;
  font-weight: 800;
  font-size: 12px;
}

.cross-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--neo-pink);
  color: var(--text-dark);
  padding: 4px 10px;
  border: 1.5px solid #000;
  box-shadow: 2px 2px 0px #000;
  border-radius: 4px;
  font-weight: 800;
  font-size: 12px;
}

/* Call to Action Banner */
.cta-banner {
  background: var(--neo-yellow);
  color: var(--text-dark);
  border: var(--neo-border-thick);
  box-shadow: var(--neo-shadow-xl);
  border-radius: var(--radius-lg);
  padding: 68px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 70px auto 110px;
  max-width: 1120px;
}

.cta-banner h2 {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 900;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.cta-banner p {
  color: #1a1a1a;
  font-size: 17px;
  max-width: 640px;
  margin-bottom: 36px;
  font-weight: 600;
}

/* Footer */
.footer {
  border-top: var(--neo-border);
  padding: 44px 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .nav-header { padding: 0 20px; }
  .nav-links { display: none; }
  .hero-section { padding: 120px 20px 70px; }
  .demo-stage-body { grid-template-columns: 1fr; }
  .feature-cards-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 20px; }
  .comparison-table-wrap { overflow-x: auto; }
}

/* Privacy & Storage Legal Notice Tray (Cookie-Free & Dexie.js Disclosure) */
.privacy-notice-tray {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 920px);
  z-index: 9999;
  background: var(--bg-card);
  border: var(--neo-border-thick);
  border-radius: var(--radius-md);
  box-shadow: var(--neo-shadow-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: privacy-slide-up 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.privacy-notice-tray[hidden] {
  display: none !important;
}

.privacy-notice-content {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.privacy-notice-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #14241a;
  border: 1.5px solid var(--neo-green);
  color: var(--neo-green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.privacy-notice-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--neo-green);
}

.privacy-notice-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.privacy-notice-text strong {
  color: var(--text-primary);
  margin-right: 4px;
}

.privacy-notice-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@keyframes privacy-slide-up {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 768px) {
  .privacy-notice-tray {
    flex-direction: column;
    align-items: flex-start;
    bottom: 10px;
    padding: 12px 16px;
  }
  .privacy-notice-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Suppress Netlify Injected Badge */
.nl-badge,
#nl-badge,
[id="nl-badge"],
[class*="nl-badge"],
[aria-label*="Powered by Netlify"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  z-index: -9999 !important;
  clip: rect(0, 0, 0, 0) !important;
}

/* Feature 8.2: Paper Yield & Imposition Calculator Widget */
.paper-calculator-widget {
  background: var(--bg-card);
  border: var(--neo-border);
  border-radius: var(--radius-md);
  box-shadow: var(--neo-shadow-md);
  padding: 32px 28px;
  max-width: 1040px;
  margin: 36px auto 0;
  text-align: left;
}

.paper-calculator-widget input:focus,
.paper-calculator-widget select:focus {
  outline: 2px solid var(--neo-yellow);
  outline-offset: 1px;
}

