:root {
  /* Pure, Elite Dark Theme */
  --bg-base: #030303;
  --bg-panel: rgba(15, 15, 15, 0.6);
  --bg-card: rgba(20, 20, 20, 0.4);
  --bg-card-hover: rgba(28, 28, 28, 0.8);

  /* Official Doria Cream/Yellow */
  --doria-yellow: #fffecb;
  --doria-yellow-dim: rgba(255, 254, 203, 0.08);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a1a1a1;
  --text-muted: #666666;

  /* Borders */
  --border-light: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.15);

  /* Status Colors */
  --safe-green: #7ee787;
  --threat-red: #ff7b72;
  --warning-amber: #f2cc60;

  /* Typography */
  --font-sans: "Inter", "Plus Jakarta Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --font-logo: "Major Mono Display", monospace;

  --radius-lg: 16px;
  --radius-md: 8px;
  --radius-sm: 6px;

  /* Mouse Tracking Variables */
  --mouse-x: -1000px;
  --mouse-y: -1000px;
}

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

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* --- Interactive Glowing Grid Background --- */
.grid-bg-base {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.grid-bg-glow {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 254, 203, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 254, 203, 0.2) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(
    400px circle at var(--mouse-x) var(--mouse-y),
    black,
    transparent
  );
  -webkit-mask-image: radial-gradient(
    400px circle at var(--mouse-x) var(--mouse-y),
    black,
    transparent
  );
  pointer-events: none;
  z-index: 1;
  transition:
    mask-position 0.1s ease,
    -webkit-mask-position 0.1s ease;
}

/* Ambient Glows */
.glow-orb-hero {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 254, 203, 0.05) 0%,
    transparent 70%
  );
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

header {
  backdrop-filter: blur(20px);
  background: rgba(3, 3, 3, 0.5);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo svg {
  color: var(--doria-yellow);
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 6px rgba(255, 254, 203, 0.3));
}

.logo-text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a.nav-item:hover {
  color: var(--text-primary);
}

.btn-github {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}
.btn-github:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* --- SIDE-BY-SIDE SPLIT HERO --- */
.hero-split {
  max-width: 1300px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 10;
  padding: 0 2rem;
}

.hero-copy {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge-award {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  width: fit-content;
}

.badge-award i {
  color: var(--doria-yellow);
  font-size: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}

h1 span {
  color: var(--doria-yellow);
  text-shadow: 0 0 30px rgba(255, 254, 203, 0.2);
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 3rem;
  line-height: 1.6;
  max-width: 550px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
}

.btn-primary {
  background: var(--doria-yellow);
  color: #000;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
  width: fit-content;
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(255, 254, 203, 0.4);
  transform: translateY(-1px);
}

/* --- Inline Terminal --- */
.terminal-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Rounded Pill Toggles */
.terminal-toggle-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  padding: 0.25rem;
  border-radius: 50px;
  width: fit-content;
}

.terminal-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 500;
}

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

.terminal-tab-btn.active {
  background: rgba(255, 254, 203, 0.08);
  color: var(--doria-yellow);
  box-shadow: 0 0 15px rgba(255, 254, 203, 0.1);
}

.terminal {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-top: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 8px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red {
  background: #ff5f56;
}
.dot-yellow {
  background: #ffbd2e;
}
.dot-green {
  background: #27c93f;
}

.terminal-title {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.terminal-body {
  padding: 1.5rem;
  font-size: 0.85rem;
  height: 440px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  line-height: 1.5;
}

.cli-cyan {
  color: #58a6ff;
}
.cli-pink {
  color: #f472b6;
}
.cli-dim {
  color: #8b95a5;
}
.cli-white {
  color: #f4f1eb;
}
.cli-red {
  color: var(--threat-red);
}
.cli-green {
  color: var(--safe-green);
}

/* --- Our Products Section --- */
.products-section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 10;
}

.section-container {
  max-width: 1300px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.product-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

/* Clean Hover Glow Effect (Replaced the noisy grid) */
.product-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: radial-gradient(
    circle at top center,
    rgba(255, 254, 203, 0.06),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-card:hover::after {
  opacity: 1;
}

.product-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--doria-yellow);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

/* --- Why Doria (Bento Features) --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

/* Clean Hover Glow Effect (Replaced the noisy grid) */
.bento-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: radial-gradient(
    circle at top center,
    rgba(255, 254, 203, 0.06),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bento-card:hover::after {
  opacity: 1;
}
.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-icon {
  color: var(--doria-yellow);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(255, 254, 203, 0.05);
  border: 1px solid rgba(255, 254, 203, 0.1);
  margin-bottom: 1rem;
}

.bento-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.bento-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Micro-Visuals (Adjusted for high readability) */
.micro-visual {
  margin-top: 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  position: relative;
}

.ast-tree-visual {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ast-node-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ast-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--doria-yellow);
}

/* FIXED BRANCH VISUALIZER */
.git-branch-visual {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  padding: 10px 10px 35px 10px;
}
.git-branch-visual::before {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  top: 16px;
  height: 2px;
  background: var(--border-highlight);
  z-index: 1;
}
.git-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  position: relative;
  z-index: 2;
}
.git-node.danger {
  background: var(--threat-red);
  box-shadow: 0 0 12px var(--threat-red);
}
.git-node.doria-agent {
  background: var(--doria-yellow);
  box-shadow: 0 0 12px var(--doria-yellow);
}
.git-node.success {
  background: var(--safe-green);
  box-shadow: 0 0 12px var(--safe-green);
}

.git-label {
  position: absolute;
  top: 24px;
  font-size: 0.75rem;
  white-space: nowrap;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Edge Alignments */
.git-node:first-child .git-label {
  left: 0;
}
.git-node:nth-child(2) .git-label {
  left: 50%;
  transform: translateX(-50%);
}
.git-node:last-child .git-label {
  right: 0;
}

.ai-chat-visual {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ai-bubble {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  line-height: 1.5;
  color: var(--text-secondary);
}
.ai-bubble.danger {
  border-color: rgba(255, 123, 114, 0.3);
  background: rgba(255, 123, 114, 0.05);
  color: var(--threat-red);
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border-light);
  padding: 3rem 2rem;
  background: rgba(3, 3, 3, 0.8);
  position: relative;
  z-index: 10;
  margin-top: 4rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-txt {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

@media (max-width: 992px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    padding: 5rem 2rem;
    min-height: auto;
  }
  .hero-copy {
    align-items: center;
    text-align: center;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}
