@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* HeyHi Custom Properties - Vibrant Code Dark Palette */
:root {
  --color-background: #0f172a;     /* Slate 900 */
  --color-background-rgb: 15, 23, 42;
  --color-primary: #1e293b;        /* Slate 800 */
  --color-primary-rgb: 30, 41, 59;
  --color-secondary: #334155;      /* Slate 700 */
  --color-secondary-rgb: 51, 65, 85;
  --color-border: #334155;
  --color-text: #f8fafc;           /* Slate 50 */
  --color-text-muted: #94a3b8;     /* Slate 400 */
  
  --color-cta: #22c55e;            /* Emerald 500 (Run Green) */
  --color-cta-rgb: 34, 197, 94;
  --color-accent-blue: #3b82f6;    /* Blue 500 */
  --color-accent-blue-rgb: 59, 130, 246;
  --color-accent-purple: #a855f7;  /* Purple 500 */
  --color-accent-purple-rgb: 168, 85, 247;
  --color-error: #ef4444;          /* Red 500 */
  --color-error-rgb: 239, 68, 68;

  /* Typography */
  --font-heading: 'JetBrains Mono', monospace;
  --font-body: 'IBM Plex Sans', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.8);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.9);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-background);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border: 2px solid var(--color-background);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

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

/* Global Layout Containers */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

/* Typography Helpers */
.text-glow {
  background: linear-gradient(135deg, #fff 30%, var(--color-cta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(34, 197, 94, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn-primary {
  background: var(--color-cta);
  color: #0c120c;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
}

.btn-primary:hover {
  background: #2ee06e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.6);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-secondary:hover {
  background: var(--color-secondary);
  border-color: var(--color-text-muted);
  transform: translateY(-2px);
}

.btn-glow {
  position: relative;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: var(--color-cta);
  opacity: 0.15;
  filter: blur(10px);
  z-index: -1;
  transition: all var(--transition-normal);
}

.btn-glow:hover::after {
  opacity: 0.35;
  filter: blur(15px);
}

/* Floating Navigation Bar */
.navbar {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  height: 64px;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  top: 0;
  left: 0;
  right: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  background: rgba(15, 23, 42, 0.9);
}

.nav-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  letter-spacing: -0.5px;
}

.logo-accent {
  color: var(--color-cta);
  margin-right: 4px;
}

.logo-cursor {
  color: var(--color-cta);
  animation: blink 1s step-end infinite;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  cursor: pointer;
}

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

.nav-cta {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 20px;
}

/* Hero Section */
.hero-section {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.08) 0%, rgba(15, 23, 42, 0) 60%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--color-cta);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-icon {
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.15;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

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

/* Interactive Terminal Card in Hero */
.hero-terminal {
  background: #090d16;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-xl), 0 0 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 380px;
}

.terminal-header {
  height: 40px;
  background: #111827;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.btn-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.btn-dot.close { background: var(--color-error); }
.btn-dot.minimize { background: #fbbf24; }
.btn-dot.expand { background: var(--color-cta); }

.terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.terminal-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--color-cta);
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-cta);
  animation: pulse 2s infinite;
}

.terminal-body {
  padding: 20px;
  flex-grow: 1;
  overflow-y: auto;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: #c7d2fe;
}

.terminal-line {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.term-prompt {
  color: var(--color-cta);
  margin-right: 8px;
  user-select: none;
}

.term-cursor {
  color: var(--color-cta);
  font-weight: bold;
  animation: blink 1s step-end infinite;
}

.terminal-output {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--color-text-muted);
}

.term-log {
  display: block;
  opacity: 0;
  animation: slide-up 0.3s forwards ease;
}

.term-log.info { color: var(--color-text-muted); }
.term-log.success { color: var(--color-cta); }
.term-log.error { color: var(--color-error); }
.term-log.highlight { color: var(--color-accent-blue); }

/* Features Section (Bento Grid) */
.features-section {
  position: relative;
  background-color: #0b0f19;
}

.section-header {
  max-width: 650px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 24px;
}

.bento-card {
  background: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: border-color var(--transition-normal);
  cursor: pointer;
}

.bento-card:hover {
  border-color: rgba(34, 197, 94, 0.4);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(34, 197, 94, 0.05), transparent 40%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.bento-card:hover .card-glow {
  opacity: 1;
}

.bento-card > * {
  position: relative;
  z-index: 2;
}

.card-icon-wrapper {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--color-border);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.bento-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.bento-text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Bento Grid Spanning Modifications */
.bento-double {
  grid-column: span 2;
}

.bento-long {
  grid-column: span 3;
}

.bento-long-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

/* Bento Custom Visuals */
.bento-visual {
  margin-top: auto;
  padding-top: 24px;
}

.ci-visual {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ci-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
}

.ci-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ci-badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.ci-item.failed { border-color: rgba(239, 68, 68, 0.4); }
.ci-item.failed .ci-status-dot { background: var(--color-error); }
.ci-item.failed .ci-badge { background: rgba(239, 68, 68, 0.15); color: var(--color-error); }

.ci-item.healing { border-color: rgba(59, 130, 246, 0.4); }
.ci-item.healing .ci-status-dot { background: var(--color-accent-blue); animation: blink 1s step-end infinite; }
.ci-item.healing .ci-badge { background: rgba(59, 130, 246, 0.15); color: var(--color-accent-blue); }

.ci-item.success { border-color: rgba(34, 197, 94, 0.4); }
.ci-item.success .ci-status-dot { background: var(--color-cta); }
.ci-item.success .ci-badge { background: rgba(34, 197, 94, 0.15); color: var(--color-cta); }

.ci-arrow {
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}

.command-block {
  background: #090d16;
  border: 1px solid var(--color-border);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
}

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

.cmd-cli {
  color: var(--color-cta);
}

/* Interactive Sandbox Section */
.sandbox-section {
  background-color: var(--color-background);
}

.sandbox-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.sandbox-tab {
  background: var(--color-primary);
  border: 1px solid var(--color-border);
  padding: 12px 24px;
  border-radius: 8px;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.sandbox-tab:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

.sandbox-tab.active {
  background: var(--color-secondary);
  border-color: var(--color-cta);
  color: var(--color-text);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.15);
}

.tab-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-error);
}

.sandbox-tab.active .tab-indicator {
  background: var(--color-cta);
  box-shadow: 0 0 8px var(--color-cta);
}

/* Sandbox Playground Layout */
.sandbox-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  height: 520px;
}

.sandbox-panel {
  background: #090d16;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.panel-header {
  height: 48px;
  background: #111827;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 10px;
}

.panel-icon {
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
}

.panel-content {
  padding: 20px;
  flex-grow: 1;
  overflow: auto;
}

/* Code Editor Stylings */
.code-editor {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e2e8f0;
  tab-size: 4;
}

.code-line {
  display: block;
}

.code-line.added {
  background: rgba(34, 197, 94, 0.1);
  border-left: 3px solid var(--color-cta);
  padding-left: 8px;
  margin-left: -11px;
}

.code-line.removed {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid var(--color-error);
  padding-left: 8px;
  margin-left: -11px;
  color: #f87171;
}

.code-kw { color: #f43f5e; font-weight: 500; }  /* Keyword */
.code-fn { color: #3b82f6; }                    /* Function */
.code-str { color: #10b981; }                   /* String */
.code-num { color: #f59e0b; }                   /* Number */
.code-comment { color: #64748b; font-style: italic; } /* Comment */

/* Terminal Logs Panel */
.terminal-logs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: #cbd5e1;
}

.log-entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: slide-up var(--transition-fast) forwards;
}

.log-header {
  display: flex;
  gap: 8px;
  font-weight: 500;
}

.log-time {
  color: var(--color-text-muted);
}

.log-level {
  text-transform: uppercase;
}

.log-level.info { color: var(--color-accent-blue); }
.log-level.success { color: var(--color-cta); }
.log-level.error { color: var(--color-error); }
.log-level.warning { color: #eab308; }

.log-message {
  color: #e2e8f0;
  padding-left: 12px;
  border-left: 2px solid var(--color-primary);
  white-space: pre-wrap;
}

/* Architecture Section */
.architecture-section {
  background-color: #0b0f19;
}

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

.arch-step {
  background: var(--color-primary);
  border: 1px solid var(--color-border);
  padding: 32px 24px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform var(--transition-normal);
}

.arch-step:hover {
  transform: translateY(-4px);
}

.step-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(34, 197, 94, 0.15);
  line-height: 1;
}

.step-title {
  font-size: 1.15rem;
}

.step-desc {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* Go Server Section */
.goserver-section {
  background: var(--color-background);
}

.server-card {
  background: radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.1) 0%, rgba(30, 41, 59, 0.5) 80%);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.server-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(600px circle at top right, rgba(59, 130, 246, 0.08), transparent 50%);
  z-index: 1;
}

.server-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.server-badge {
  background: rgba(59, 130, 246, 0.15);
  color: var(--color-accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 4px 12px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  width: fit-content;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.server-title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.server-desc {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.server-code-block {
  background: #090d16;
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 10px;
  padding: 24px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: #cbd5e1;
}

.code-keyword { color: #f43f5e; }
.code-string { color: #10b981; }

/* Call To Action Section */
.cta-section {
  position: relative;
  background-color: #0b0f19;
}

.cta-card {
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.15) 0%, rgba(30, 41, 59, 0.5) 80%);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.cta-card-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at top left, rgba(34, 197, 94, 0.08), transparent 50%);
  z-index: 1;
}

.cta-inner {
  position: relative;
  z-index: 2;
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.cta-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* Call To Action Config Form */
.cta-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  background: rgba(9, 13, 22, 0.6);
  border: 1px solid var(--color-border);
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  background: #090d16;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-cta);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

/* Footer Styles */
.footer-section {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-background);
  padding: 60px 0 30px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-top: 0;
  padding-bottom: 40px;
}

.footer-info {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

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

.links-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.links-column h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
}

.links-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.links-column a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.links-column a:hover {
  color: var(--color-text);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(51, 65, 85, 0.4);
  text-align: center;
  color: rgba(148, 163, 184, 0.6);
  font-size: 0.8rem;
}

/* Animations */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Intersection Observer Scroll Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */

/* Responsive 1024px (Tablets / Laptops) */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-terminal {
    height: 350px;
  }
  
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bento-long {
    grid-column: span 2;
  }
  
  .bento-long-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .sandbox-display {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .sandbox-panel {
    height: 400px;
  }
  
  .server-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .arch-flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive 768px (Mobile Landscapes / Tablets) */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Can be handled by toggling mobile menu or absolute overlay */
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-container {
    padding: 60px 16px;
  }
  
  .cta-inner {
    padding: 40px 20px;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 32px;
  }
  
  .footer-links {
    gap: 40px;
    justify-content: space-between;
  }
}

/* Responsive 375px (Compact Mobile) */
@media (max-width: 375px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-double, .bento-long {
    grid-column: span 1;
  }
  
  .bento-card {
    padding: 20px;
  }
  
  .arch-flow {
    grid-template-columns: 1fr;
  }
  
  .sandbox-controls {
    flex-direction: column;
    gap: 10px;
  }
}

/* Accessibility - Respect Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .status-pulse, .logo-cursor, .term-cursor {
    animation: none !important;
  }
}
