:root {
  --bg-dark: #020203;
  --bg-card: rgba(10, 10, 12, 0.85);
  --bg-card-hover: rgba(16, 16, 20, 0.95);
  --border-color: rgba(255, 255, 255, 0.05);
  --border-accent: rgba(0, 242, 254, 0.25);
  
  --primary: #00F2FE;
  --primary-glow: rgba(0, 242, 254, 0.12);
  --secondary: #2563EB;
  --emerald: #059669;
  --purple: #7C3AED;
  
  --text-main: #F1F5F9;
  --text-muted: #64748B;
  --text-dark: #475569;
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

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

/* Hardened Dimmed Cursor Follower */
.cursor-glow {
  position: fixed;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.05) 0%, rgba(37, 99, 235, 0.01) 60%, transparent 80%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: width 0.3s, height 0.3s;
}

#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 10; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--emerald) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Floating Dimmed Ribbon */
.awwwards-ribbon {
  position: fixed;
  top: 85px; right: -35px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--emerald), var(--secondary));
  color: #F1F5F9;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  padding: 6px 40px;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 99;
  opacity: 0.8;
}

/* Matte Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  background: rgba(2, 2, 3, 0.9);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
}

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

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.brand-logo { font-size: 22px; filter: drop-shadow(0 0 4px var(--primary-glow)); }
.badge-studio { font-size: 10px; font-weight: 800; background: rgba(0, 242, 254, 0.05); color: var(--primary); padding: 2px 8px; border-radius: 20px; border: 1px solid rgba(0, 242, 254, 0.15); letter-spacing: 1px; }

.nav-links { display: flex; gap: 32px; font-size: 14px; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover { color: var(--text-main); transition: color 0.2s; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); border: none; }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 6px; }

.btn-primary { background: linear-gradient(135deg, var(--secondary), var(--primary)); color: #020203; font-weight: 700; box-shadow: 0 4px 14px rgba(0, 242, 254, 0.2); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 242, 254, 0.35); }

.btn-secondary { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color); color: var(--text-main); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.15); }

.btn-hero-primary { padding: 16px 36px; font-size: 16px; background: linear-gradient(135deg, var(--secondary), var(--emerald)); color: white; border-radius: 12px; box-shadow: 0 6px 20px rgba(5, 150, 105, 0.2); font-weight: 700; }
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0, 242, 254, 0.3); }

.btn-hero-secondary { padding: 16px 36px; font-size: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--text-main); border-radius: 12px; font-weight: 600; }
.btn-hero-secondary:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-1px); }

/* Hero Section */
.hero-section { position: relative; padding-top: 150px; padding-bottom: 90px; text-align: center; }
.hero-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; filter: blur(160px); opacity: 0.08; pointer-events: none; }
.hero-glow-1 { top: 5%; left: 20%; background: var(--secondary); }
.hero-glow-2 { top: 15%; right: 20%; background: var(--emerald); }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 20px; background: rgba(0, 242, 254, 0.04); border: 1px solid rgba(0, 242, 254, 0.15); font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 28px; letter-spacing: 0.5px; backdrop-filter: blur(10px); }
.pulse-dot { width: 8px; height: 8px; background-color: #00F2FE; border-radius: 50%; box-shadow: 0 0 10px #00F2FE; animation: pulse 1.8s infinite; }

@keyframes pulse { 0% { transform: scale(0.95); opacity: 0.8; } 50% { transform: scale(1.3); opacity: 1; } 100% { transform: scale(0.95); opacity: 0.8; } }

.hero-title { font-family: var(--font-heading); font-size: 64px; font-weight: 900; line-height: 1.08; margin-bottom: 22px; letter-spacing: -1.5px; }
.hero-subtitle { max-width: 740px; margin: 0 auto 38px; font-size: 19px; color: var(--text-muted); font-weight: 400; line-height: 1.6; }
.hero-cta-group { display: flex; justify-content: center; gap: 18px; margin-bottom: 32px; }
.hero-meta { display: flex; justify-content: center; gap: 14px; font-size: 13px; color: var(--text-dark); margin-bottom: 54px; font-weight: 500; }

/* 3D Tilt Container & Epoch Chain Visualizer */
.tilt-container { perspective: 1000px; max-width: 960px; margin: 0 auto; }
.app-window-frame { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; overflow: hidden; backdrop-filter: blur(24px); text-align: left; transition: transform 0.15s ease-out; }
.shadow-glow { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 242, 254, 0.15); }

.window-header { height: 44px; background: rgba(5, 5, 6, 0.98); display: flex; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--border-color); }
.window-controls { display: flex; gap: 8px; }
.control { width: 12px; height: 12px; border-radius: 50%; }
.close { background: #E11D48; } .minimize { background: #D97706; } .maximize { background: #059669; }

.window-title { margin: 0 auto; font-size: 12px; color: var(--text-muted); font-weight: 500; }
.window-badge { font-size: 11px; font-family: var(--font-mono); color: #059669; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.green-dot { width: 8px; height: 8px; background: #059669; border-radius: 50%; box-shadow: 0 0 6px #059669; }

.chain-visualizer { padding: 36px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #040405; }
.epoch-node { flex: 1; padding: 20px; background: rgba(255, 255, 255, 0.01); border: 1px solid var(--border-color); border-radius: 12px; text-align: center; transition: all 0.3s; }
.epoch-node.active { border-color: rgba(0, 242, 254, 0.3); background: rgba(0, 242, 254, 0.03); box-shadow: 0 0 15px rgba(0, 242, 254, 0.1); }
.node-icon { font-size: 26px; margin-bottom: 8px; }
.node-title { font-weight: 700; font-size: 15px; color: var(--text-main); }
.node-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.hash-tag { font-family: var(--font-mono); font-size: 10px; background: rgba(0, 242, 254, 0.08); color: var(--primary); padding: 3px 8px; border-radius: 4px; display: inline-block; font-weight: 600; }

.chain-arrow { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-dark); }
.arrow-line { width: 44px; height: 2px; background: linear-gradient(90deg, var(--secondary), var(--primary)); display: block; }
.arrow-label { font-size: 9px; font-family: var(--font-mono); color: var(--primary); text-transform: uppercase; font-weight: 700; }

/* Metrics Section */
.metrics-section { padding: 70px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.metric-card { padding: 28px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; transition: all 0.3s; }
.metric-card:hover { border-color: var(--border-accent); transform: translateY(-2px); background: var(--bg-card-hover); }
.metric-number { font-family: var(--font-heading); font-size: 52px; font-weight: 900; color: var(--primary); display: inline-block; letter-spacing: -1px; }
.metric-unit { display: inline-block; font-size: 22px; font-weight: 800; color: var(--emerald); margin-left: 2px; }
.metric-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; font-weight: 500; }

/* Sandbox Section */
.sandbox-app-container { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; overflow: hidden; }
.sandbox-toolbar { padding: 16px 24px; background: #060608; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 16px; }
.verifier-status { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--emerald); font-weight: 600; }

.sandbox-workspace { display: grid; grid-template-columns: 1fr 1fr; height: 400px; }
.code-inspector { background: #030304; border-right: 1px solid var(--border-color); display: flex; flex-direction: column; }
.inspector-header { padding: 12px 18px; background: rgba(255, 255, 255, 0.01); border-bottom: 1px solid var(--border-color); font-size: 11px; font-family: var(--font-mono); color: var(--primary); font-weight: 800; letter-spacing: 0.5px; }
.code-block { flex: 1; padding: 18px; font-family: var(--font-mono); font-size: 12px; color: #34D399; overflow-y: auto; line-height: 1.7; }

.results-panel { background: #050506; display: flex; flex-direction: column; }
.panel-header { padding: 14px 20px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
.panel-header h4 { font-size: 14px; font-weight: 700; }
.audit-feed { flex: 1; padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; font-family: var(--font-mono); font-size: 12px; }

.audit-item { padding: 12px 14px; border-radius: 8px; background: rgba(255, 255, 255, 0.01); border: 1px solid var(--border-color); }
.audit-item.success { border-color: rgba(5, 150, 105, 0.2); color: #34D399; background: rgba(5, 150, 105, 0.03); }
.audit-item.failure { border-color: rgba(225, 29, 72, 0.3); color: #FDA4AF; background: rgba(225, 29, 72, 0.06); }
.check-mark { font-weight: 800; margin-right: 6px; }

/* Features & FAQ */
.section { padding: 100px 0; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-title { font-family: var(--font-heading); font-size: 42px; font-weight: 900; margin-bottom: 16px; letter-spacing: -0.8px; }
.section-subtitle { color: var(--text-muted); font-size: 17px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature-card { padding: 36px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; transition: all 0.3s ease; }
.feature-card:hover { background: var(--bg-card-hover); border-color: var(--border-accent); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6); }
.feature-icon { font-size: 34px; margin-bottom: 18px; }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); font-size: 14px; }

.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.faq-item { padding: 24px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; }
.faq-question { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.faq-answer { font-size: 14px; color: var(--text-muted); }

.footer { padding: 48px 0; border-top: 1px solid var(--border-color); text-align: center; font-size: 13px; color: var(--text-dark); }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-muted); font-size: 16px; }

/* Accessibility Assistant Widget Styles */
.accessibility-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.widget-toggle-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.widget-toggle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.45);
  background: var(--bg-card-hover);
}

.widget-panel {
  display: none;
  flex-direction: column;
  gap: 8px;
  background: rgba(10, 10, 12, 0.95);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 12px;
  width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
}

.widget-panel.active {
  display: flex;
  animation: slideInUp 0.25s ease-out;
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.panel-btn {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.panel-btn:hover {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--primary);
  color: var(--primary);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Simplified View Mode for Accessibility */
body.simplified-view #particleCanvas,
body.simplified-view .cursor-glow,
body.simplified-view .hero-glow,
body.simplified-view .awwwards-ribbon {
  display: none !important;
}

body.simplified-view {
  background-color: #000000 !important;
}

body.simplified-view .app-window-frame,
body.simplified-view .metric-card,
body.simplified-view .feature-card,
body.simplified-view .faq-item,
body.simplified-view .sandbox-app-container {
  background: #111111 !important;
  border-color: #ffffff !important;
  box-shadow: none !important;
  transform: none !important;
}

body.simplified-view .gradient-text {
  background: none !important;
  -webkit-text-fill-color: var(--primary) !important;
}
