/* ==========================================================================
   Heyo.Computer - Neo-Retro Design System
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=Silkscreen:wght@400;700&display=swap');

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */
:root {
  /* Dark Theme Backgrounds */
  --bg-dark: #0a0c10;
  --bg-panel: #12141a;
  --bg-elevated: #1a1d24;

  /* Accent - Peach */
  --accent: #E4A97D;
  --accent-dim: #c48a5f;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #c1c1c1;
  --text-muted: #707070;

  /* Borders */
  --border-color: #2a2d35;
  --border-accent: #3a3d45;

  /* Legacy mappings */
  --hero-bg: var(--bg-dark);
  --hero-text: var(--text-primary);
  --border-warm: var(--border-color);
  --text-dark: #1a1a1a;
  --bg-cream: #FFF8F3;

  /* Shadows */
  --shadow: rgba(0, 0, 0, 0.3);

  /* Typography */
  --font-display: 'Silkscreen', cursive;
  --font-body: 'IBM Plex Mono', monospace;
  --font-ascii: 'Monaco', 'Menlo', 'Courier New', monospace;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 18px; }

p {
  margin: 0 0 1rem 0;
  color: var(--text-muted);
}

a {
  color: var(--accent-coral);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

/* ==========================================================================
   Header
   ========================================================================== */
header {
  background: var(--bg-dark);
  color: var(--text-primary);
  padding: 0 20px;
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.logo {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: bold;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

nav a {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--text-primary);
}

nav a:hover {
  opacity: 0.8;
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-button {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  transition: color 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-button:hover {
  color: var(--text-primary);
}

.dropdown-button::after {
  content: '';
  width: 12px;
  height: 12px;
  margin-left: 5px;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M52 46.1836L41.591 35.7746C40.7123 34.8959 39.2877 34.8959 38.409 35.7746L28 46.1836' stroke='%23888888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

.dropdown.active .dropdown-button::after {
  transform: rotate(0deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-panel);
  min-width: 180px;
  border: 1px solid var(--border-color);
  z-index: 1001;
  margin-top: 10px;
}

.dropdown-content .dropdown-section {
  padding: 12px 16px 6px;
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropdown-content .dropdown-section:not(:first-child) {
  border-top: 1px solid var(--border-color);
  margin-top: 6px;
  padding-top: 12px;
}

.dropdown-content a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 16px;
  text-decoration: none;
  display: block;
  text-transform: none;
  transition: all 0.2s ease;
}

.dropdown-content a:hover {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
}

.dropdown.active .dropdown-content {
  display: block;
}

/* Header Actions */
.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.header-button {
  font-family: var(--font-display);
  font-size: 12px;
  background: transparent;
  color: var(--hero-text);
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.header-button:hover {
  opacity: 0.7;
}

.header-button.primary {
  background: var(--text-dark);
  color: var(--bg-cream);
  border: 2px solid var(--text-dark);
}

.header-button.primary:hover {
  opacity: 0.85;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #4caf50;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--hero-text);
  font-size: 24px;
  cursor: pointer;
}

/* ==========================================================================
   Terminal Frame - Full Page Experience
   ========================================================================== */
.terminal-frame {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
  padding: 15px;
}

/* Navigation Row */
.frame-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  border: 1px solid var(--border-color);
  border-bottom: none;
  background: var(--bg-dark);
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-item {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 15px 20px;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item:hover {
  color: var(--text-primary);
}

.nav-item.active {
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
  margin: 8px 0;
  padding: 8px 15px;
}

.nav-item--boxed {
  border: 1px solid var(--border-accent);
  margin: 8px 0;
  padding: 8px 15px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #27c93f;
  border-radius: 50%;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  14% {
    transform: scale(1.3);
    opacity: 1;
  }
  28% {
    transform: scale(1);
    opacity: 0.8;
  }
  42% {
    transform: scale(1.2);
    opacity: 1;
  }
  70% {
    transform: scale(1);
    opacity: 0.8;
  }
}

/* Main Content Area */
.frame-content {
  flex: 1;
  display: flex;
  border: 1px solid var(--border-color);
  min-height: 0;
  position: relative;
}

/* Intro Animation - Hidden UI Elements */
.frame-nav.intro-hidden {
  height: 0;
  padding: 0;
  overflow: hidden;
  border: none;
  opacity: 0;
}

.info-panel.intro-hidden {
  width: 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.info-panel.intro-hidden .info-section {
  opacity: 0;
}

.display-content.intro-hidden {
  opacity: 0;
}

.display-tabs.intro-hidden {
  opacity: 0;
}

/* Left Panel - Info */
.info-panel {
  flex: 0 0 auto;
  width: 300px;
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-color);
  background: var(--bg-dark);
  box-sizing: border-box;
}

.info-section {
  margin-bottom: 20px;
}

.info-label {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 1px;
}

.product-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
  letter-spacing: 1px;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border-color);
  margin-top: 20px;
}

.info-text {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.value-props {
  border-bottom: none;
}

/* Mobile-only sections (hidden on desktop) */
.mobile-only {
  display: none;
}

.mobile-section-title {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent);
  margin: 0 0 10px 0;
  letter-spacing: 1px;
}

.value-props p {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
  margin: 5px 0;
}

/* .cta-section {
  margin-top: auto;
} */

.cta-section .btn {
  display: block;
  width: 100%;
}

/* Right Panel - Display */
.display-panel {
  flex: 1;
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Three.js Container */
#threeContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 50px);
  pointer-events: none;
  z-index: 1;
}

#threeContainer canvas {
  display: block;
}

.display-content {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  position: relative;
  z-index: 2;
  width: 100%;
  background: transparent;
}

.display-view {
  display: none;
  width: 100%;
  background: transparent;
}

.display-view.active {
  display: block;
}

/* Tabs inside display panel */
.display-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

/* Terminal Output */
.terminal-output {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
}

.line {
  margin-bottom: 6px;
}

.line--cmd {
  color: var(--accent);
}

.line--output {
  color: var(--text-muted);
}

.line--success {
  color: #27c93f;
}

.terminal-cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background: var(--accent);
  animation: blink 1s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Code View */
.code-block {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
}

.code-comment {
  color: var(--text-muted);
}

.code-cmd {
  color: var(--accent);
}

.code-url {
  color: #27c93f;
}

/* Architecture View */
.arch-diagram {
  font-family: var(--font-ascii);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* Product Display (CLI & Desktop tabs) */
.product-display {
  max-width: 600px;
  background: transparent;
}

.product-ascii {
  font-family: var(--font-ascii);
  font-size: 10px;
  line-height: 1.2;
  color: var(--accent);
  margin: 0 0 20px 0;
}

.product-tagline {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 25px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.product-features {
  margin-bottom: 25px;
}

.product-features p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0;
}

/* Feature list inside display panel (no background) */
.feature-list {
  margin-bottom: 25px;
}

.feature-list p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0;
}


.product-preview {
  margin-top: 30px;
}

.preview-ascii {
  font-family: var(--font-ascii);
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 0;
}

/* Tab Buttons */
.tab-btn {
  flex: 1;
  font-family: var(--font-display);
  font-size: 10px;
  padding: 15px 20px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 1px;
}

.tab-btn:last-child {
  border-right: none;
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-btn.active {
  color: var(--accent);
}

.tab-icon {
  margin-right: 8px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.tab-btn:hover .tab-icon {
  transform: rotate(360deg) scale(1.2);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  background: var(--hero-bg);
  color: var(--hero-text);
  text-align: center;
  padding: 40px 20px;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
}

.hero-ascii {
  font-family: var(--font-ascii);
  font-size: 12px;
  line-height: 1.2;
  margin: 0;
  white-space: pre;
  text-align: left;
  letter-spacing: 0;
  display: inline-block;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 30px 0;
  line-height: 1.6;
  color: var(--hero-text);
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  font-family: var(--font-display);
  font-size: 14px;
  padding: 16px 24px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--text-dark);
}

.btn-primary {
  background: var(--bg-cream);
  border: none;
  box-shadow: none;
  color: #1a1a1a;
  font-weight: 500;
}

.btn-primary:hover {
  background: #fff;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--accent);
  border: none;
  color: #1a1a1a;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  box-shadow: none;
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-color);
  box-shadow: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 11px;
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-accent {
  background: var(--accent);
  border: 0px solid var(--accent);
  box-shadow: 4px 4px 0 #e4a97d69;
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 12px;
  padding: 14px 24px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
  box-sizing: border-box;
}

.btn-accent:hover {
  box-shadow: 6px 6px 0 #e4a97d69;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--bg-cream);
  border: 2px solid var(--text-dark);
  box-shadow: 6px 6px 0 var(--border-warm);
  padding: 30px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.card:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 var(--border-warm);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.card p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: 80px 20px;
}

.section--cream {
  background-color: var(--bg-cream);
}

.section--peach {
  background-color: var(--bg-peach);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-header p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 20px auto 0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   How It Works (Steps)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  background: var(--bg-cream);
  border: 2px solid var(--text-dark);
  box-shadow: 6px 6px 0 var(--border-warm);
  padding: 30px;
  text-align: center;
}

.step-number {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent-coral);
  margin-bottom: 15px;
  text-transform: uppercase;
}

.step-icon {
  font-family: var(--font-ascii);
  font-size: 12px;
  line-height: 1.2;
  white-space: pre;
  background: var(--text-dark);
  color: var(--bg-cream);
  padding: 15px;
  margin: 15px 0;
  display: inline-block;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 10px;
}

.step-card p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   Use Cases
   ========================================================================== */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.use-case-card {
  background: var(--bg-cream);
  border: 2px solid var(--text-dark);
  box-shadow: 6px 6px 0 var(--border-warm);
  padding: 30px;
}

.use-case-card h3 {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent-coral);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.use-case-card p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   Products Preview
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.product-card {
  background: var(--bg-cream);
  border: 2px solid var(--text-dark);
  box-shadow: 6px 6px 0 var(--border-warm);
  padding: 30px;
  text-decoration: none;
  display: block;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.product-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 var(--border-warm);
  opacity: 1;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.product-card p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.product-card .arrow {
  font-family: var(--font-display);
  color: var(--accent-coral);
  margin-top: 15px;
  display: block;
}

/* ==========================================================================
   Vision Section
   ========================================================================== */
.vision-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.vision-content h2 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.vision-content p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.vision-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.vision-list li {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  padding: 15px 0 15px 30px;
  position: relative;
  border-bottom: 2px dashed var(--border-warm);
}

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

.vision-list li::before {
  content: '>';
  font-family: var(--font-ascii);
  color: var(--accent-coral);
  position: absolute;
  left: 0;
}

.vision-diagram {
  font-family: var(--font-ascii);
  font-size: 12px;
  line-height: 1.4;
  white-space: pre;
  background: var(--bg-peach);
  border: 2px solid var(--text-dark);
  padding: 20px;
  margin: 30px auto;
  display: inline-block;
  text-align: left;
}

/* ==========================================================================
   Dotted Dividers
   ========================================================================== */
.divider-dotted {
  border: none;
  border-top: 2px dashed var(--border-warm);
  margin: 40px 0;
}

.divider-dotted--dark {
  border-top-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   ASCII Art Elements
   ========================================================================== */
.header-ascii {
  font-family: var(--font-ascii);
  font-size: 10px;
  line-height: 1.2;
  white-space: pre;
  color: var(--text-dark);
  margin: 0 0 20px 0;
  text-align: center;
  padding: 0;
}

.ascii-divider {
  font-family: var(--font-ascii);
  font-size: 12px;
  color: var(--border-warm);
  text-align: center;
  margin: 40px 0;
  letter-spacing: 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-cream);
  color: var(--text-dark);
  border-top: 2px solid var(--border-warm);
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-links a {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-dark);
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--accent-coral);
}

footer p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  margin: 10px 0;
}

footer a {
  color: var(--accent-coral);
}

/* ==========================================================================
   Modal
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--bg-panel);
  margin: 5% auto;
  padding: 20px;
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 600px;
  position: relative;
}

.close-button {
  font-family: var(--font-display);
  color: var(--text-muted);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close-button:hover {
  color: var(--accent);
}

/* ==========================================================================
   Product Page Specific Styles
   ========================================================================== */
.product-hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  background: var(--hero-bg);
  color: var(--hero-text);
  text-align: center;
  padding: 40px 20px;
}

.product-hero-section .hero-ascii {
  font-size: 10px;
}

.product-features {
  padding: 60px 20px;
  background: var(--bg-cream);
}

.product-features-header {
  text-align: center;
  margin-bottom: 40px;
}

.product-features ul {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  max-width: 600px;
}

.product-features li {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-muted);
  padding: 15px 0 15px 40px;
  position: relative;
  border-bottom: 2px dashed var(--border-warm);
}

.product-features li:last-child {
  border-bottom: none;
}

.product-features li::before {
  content: '>';
  font-family: var(--font-ascii);
  color: var(--accent-coral);
  position: absolute;
  left: 10px;
  font-size: 18px;
}

/* Login/CTA Section */
.cta-section {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--hero-bg);
}


/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    height: auto;
    padding: 15px 0;
  }

  .header-container nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    display: none;
  }

  nav.active {
    display: flex;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    margin-top: 0;
    background-color: transparent;
    border: none;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    color: var(--hero-text);
    padding: 10px 0;
  }

  .mobile-menu-toggle {
    display: block;
  }

  /* Terminal Frame Mobile */
  .terminal-frame {
    padding: 10px;
  }

  .frame-nav {
    flex-wrap: wrap;
    padding: 10px;
  }

  .frame-nav .nav-left {
    display: none;
  }

  .frame-nav .nav-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-item {
    padding: 10px 12px;
    font-size: 10px;
  }

  .frame-content {
    flex-direction: column;
  }

  .info-panel {
    flex: 1;
    width: auto;
    padding: 25px 20px;
    border-right: none;
    border-bottom: none;
  }

  .product-title {
    font-size: 16px;
  }

  .display-panel {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .code-block {
    font-size: 11px;
  }

  .arch-diagram {
    font-size: 9px;
    overflow-x: auto;
  }

  .tab-btn {
    padding: 12px 10px;
    font-size: 9px;
  }

  .tab-icon {
    display: none;
  }

  /* Three.js hidden on mobile */
  #threeContainer {
    display: none;
  }

  /* Other mobile styles */
  .hero {
    min-height: auto;
    padding: 60px 20px;
  }

  .hero-ascii {
    font-size: 6px;
    overflow-x: auto;
  }

  .hero-tagline {
    font-size: 14px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .section {
    padding: 60px 20px;
  }

  .section-header h2 {
    font-size: 16px;
  }

  .steps-grid,
  .use-cases-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .header-ascii {
    font-size: 6px;
    overflow-x: auto;
  }

  .vision-diagram {
    font-size: 8px;
    padding: 15px;
    overflow-x: auto;
  }

  .product-hero-section {
    min-height: auto;
    padding: 40px 20px;
  }

  .product-hero-section .hero-ascii {
    font-size: 6px;
  }

  footer {
    padding: 40px 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }

  .cta-section .btn {
    display: block;
  }
}

@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
}
