/* Root Variables & Colors */
:root {
  --primary: #00F2FE;
  --secondary: #4FACFE;
  --accent: #10B981;
  --danger: #F43F5E;
  --warning: #F59E0B;
  --bg-dark: #040815;
  --bg-darker: #02040A;
  --card-bg: rgba(15, 23, 42, 0.55);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-border-glow: rgba(0, 242, 254, 0.2);
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --font-sans: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Background Gradients */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(79, 172, 254, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.04) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.font-bold {
  font-weight: 800;
}

.font-mono {
  font-family: var(--font-mono);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--bg-darker);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-shadow);
  opacity: 0.95;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: 10px;
}

.btn-full {
  width: 100%;
}

.btn-glow {
  position: relative;
}

.btn-glow::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  filter: blur(8px);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: -1;
  border-radius: inherit;
}

.btn-glow:hover::after {
  opacity: 0.5;
}

/* Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  background: rgba(4, 8, 21, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

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

.header-actions {
  display: flex;
  gap: 12px;
}

/* Hero Section */
.hero-section {
  padding: 160px 0 100px 0;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

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

.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 9999px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
}

.badge-text {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}

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

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

/* Hero Visual & Float animation */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-glow-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.2) 0%, transparent 60%);
  filter: blur(20px);
  z-index: 1;
}

.visual-wrapper {
  position: relative;
  z-index: 2;
  border-radius: 16px;
  padding: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: float 6s ease-in-out infinite;
}

.dashboard-img {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  display: block;
  transition: var(--transition-smooth);
}

.dashboard-img:hover {
  transform: scale(1.02);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

/* Section Common Headers */
.section-header {
  text-align: center;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* Sandbox Section */
.sandbox-section {
  padding: 80px 0;
  background: rgba(2, 4, 10, 0.3);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.sandbox-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 30px;
}

.sandbox-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(12px);
}

.control-panel h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.panel-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.scenario-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.scenario-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
  color: inherit;
}

.scenario-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 242, 254, 0.3);
}

.scenario-card.active {
  background: rgba(0, 242, 254, 0.05);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.scenario-icon {
  font-size: 1.8rem;
}

.scenario-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.scenario-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Display / Player Panel */
.display-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mock-player-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: #020408;
}

.mock-player-visual {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.play-overlay {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(4, 8, 21, 0.7);
  border: 1.5px solid var(--card-border);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
  pointer-events: none;
}

.mock-player-wrapper:hover .play-overlay {
  transform: scale(1.1);
  color: var(--text-primary);
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary);
}

.player-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(4, 8, 21, 0.8);
  border: 1px solid var(--card-border);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* Scanner sweep animation overlay */
.scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 12px var(--primary);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
}

@keyframes sweep {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.scanning .scanner-line {
  opacity: 1;
  animation: sweep 2.5s infinite linear;
}

/* Compliance status badges */
.compliance-badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-neutral {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
}

.badge-safe {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.badge-failed {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #FB7185;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.1);
}

.badge-review {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #FBBF24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.results-header h3 {
  font-size: 1.1rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.metric-card {
  background: rgba(2, 4, 10, 0.2);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 14px;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.metric-bar-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.metric-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  width: 0%;
  transition: width 1s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
}

/* Console logs styling */
.console-wrapper {
  background: #020409;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.console-header {
  background: #090E1A;
  padding: 10px 16px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.console-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.console-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: var(--danger); }
.dot-yellow { background: var(--warning); }
.dot-green { background: var(--accent); }

.console-title {
  margin-left: 6px;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.console-status {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.console-body {
  padding: 16px;
  height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.console-line {
  line-height: 1.5;
  color: var(--text-primary);
  word-break: break-all;
}

.console-line.success { color: var(--accent); }
.console-line.error { color: var(--danger); }
.console-line.warn { color: var(--warning); }
.console-line.info { color: var(--primary); }

/* Features Section */
.features-section {
  padding: 100px 0;
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 40px 30px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-border-glow);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.04);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
}

.feature-icon {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Domain Configuration Section */
.domain-section {
  padding: 100px 0;
  background: rgba(2, 4, 10, 0.4);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.domain-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.badge-accent {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34D399;
}

.domain-info .section-title {
  text-align: left;
  margin-top: 12px;
  margin-bottom: 16px;
}

.domain-info > p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.domain-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step {
  display: flex;
  gap: 20px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--bg-darker);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.step-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.domain-console {
  background: #020409;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.console-tabs {
  display: flex;
  background: #090E1A;
  border-bottom: 1px solid var(--card-border);
}

.tab-btn {
  flex: 1;
  padding: 14px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-bottom: 2px solid transparent;
}

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

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(255, 255, 255, 0.01);
}

.tab-content {
  display: none;
  padding: 24px;
}

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

.code-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.code-box-header span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-copy {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-copy:hover {
  background: var(--primary);
  color: var(--bg-darker);
  border-color: var(--primary);
}

.code-block {
  display: block;
  overflow-x: auto;
  color: #E2E8F0;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* API Section */
.api-section {
  padding: 100px 0;
}

.api-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.api-docs h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.api-docs p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.endpoint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(2, 4, 10, 0.5);
  border: 1px solid var(--card-border);
  padding: 8px 16px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.method {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.method-post {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
}

.path {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
}

.params h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

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

.params li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 8px;
}

.params li code {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.param-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.api-code-panel {
  background: #020409;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
}

.code-tabs {
  display: flex;
  background: #090E1A;
  border-bottom: 1px solid var(--card-border);
}

.code-tab-btn {
  background: transparent;
  border: none;
  padding: 14px 24px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition-smooth);
}

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

.code-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.code-container {
  padding: 24px;
  position: relative;
}

.api-code-block {
  display: none;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #E2E8F0;
  overflow-x: auto;
}

.api-code-block.active {
  display: block;
}

/* Footer Section */
.main-footer {
  background: #020409;
  border-top: 1px solid var(--card-border);
  padding: 80px 0 30px 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  margin-bottom: 50px;
}

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

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links-group {
  display: flex;
  justify-content: flex-end;
  gap: 80px;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

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

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-container, .sandbox-grid, .domain-grid, .api-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-content {
    text-align: center;
    align-items: center;
  }
  
  .hero-description {
    max-width: 100%;
  }
  
  .hero-visual {
    margin-top: 20px;
  }
  
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-links-group {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .main-header {
    height: auto;
    padding: 16px 0;
  }
  
  .header-container {
    flex-direction: column;
    gap: 16px;
  }
  
  .nav-links {
    gap: 20px;
  }
  
  .hero-section {
    padding: 180px 0 60px 0;
  }
  
  .hero-title {
    font-size: 2.6rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}
