@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #070a13;
  --bg-secondary: #0e1322;
  --bg-tertiary: #171e32;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #10b981;
  --accent-secondary: #06b6d4;
  --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --accent-glow: 0 0 20px rgba(16, 185, 129, 0.25);
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(14, 19, 34, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Background Gradients/Glows */
body::before, body::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

body::before {
  top: 10%;
  left: -100px;
  background: var(--accent-primary);
}

body::after {
  top: 60%;
  right: -100px;
  background: var(--accent-secondary);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(7, 10, 19, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  min-width: 0;
  flex: 1 1 auto;
}

.logo-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo svg {
  stroke: var(--accent-primary);
  -webkit-text-fill-color: initial;
  flex-shrink: 0;
}

nav {
  flex: 0 0 auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.25rem;
}

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

#btn-header-cta {
  flex: 0 0 auto;
  margin-left: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 0.95rem;
  gap: 0.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #070a13;
  box-shadow: var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

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

/* Hero Section */
.hero {
  padding: 10rem 2rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.75rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

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

/* Interactive Demo / Tree Visualizer */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.demo-card {
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.demo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.demo-badge {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  background-color: rgba(6, 182, 212, 0.15);
  color: var(--accent-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.tree-viewport {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 185, 129, 0.3) transparent;
}

.tree-viewport::-webkit-scrollbar {
  height: 6px;
}

.tree-viewport::-webkit-scrollbar-track {
  background: transparent;
}

.tree-viewport::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.3);
  border-radius: 3px;
}

.tree-viewport::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.5);
}

.tree-container {
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  gap: 2.5rem;
  width: 100%;
  min-width: max-content;
  padding: 0 1.5rem;
}

.tree-row {
  display: flex;
  gap: 3rem;
  z-index: 2;
  position: relative;
}

.tree-node {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
  user-select: none;
}

.tree-node.active {
  border-color: var(--accent-primary);
  box-shadow: var(--accent-glow);
}

.tree-node.uncertain {
  border-style: dashed;
  border-color: #f59e0b; /* Amber */
  opacity: 0.85;
}

.node-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  color: #070a13;
  font-size: 0.85rem;
}

.tree-node.uncertain .node-avatar {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.node-info {
  display: flex;
  flex-direction: column;
}

.node-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.node-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Connecting Lines using SVG */
.tree-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.tree-connections path {
  fill: none;
  stroke: var(--border-color);
  stroke-width: 2;
  transition: var(--transition);
}

.tree-connections path.active {
  stroke: var(--accent-primary);
}

.tree-connections path.uncertain {
  stroke: #f59e0b;
  stroke-dasharray: 6, 4;
}

.demo-controls {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.demo-controls .btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* Features Grid */
.features {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
}

.feature-card:nth-child(2) .feature-icon {
  background-color: rgba(6, 182, 212, 0.1);
  color: var(--accent-secondary);
}

.feature-card:nth-child(3) .feature-icon {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card p {
  font-size: 0.95rem;
}

/* Interface Presentation Mockup */
.mockup-section {
  padding: 6rem 2rem;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.mockup-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.mockup-img-wrapper {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  transition: var(--transition);
}

.mockup-img-wrapper:hover {
  border-color: rgba(16, 185, 129, 0.2);
}

.mockup-img-wrapper img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.mockup-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.mockup-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.feature-list li svg {
  margin-top: 0.25rem;
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* Call to Action */
.cta-section {
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cta-container::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: var(--accent-primary);
  filter: blur(100px);
  top: -50px;
  right: -50px;
  opacity: 0.25;
}

.cta-container h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.cta-container p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

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

/* Responsive Rules */
@media (max-width: 968px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 8rem;
    text-align: center;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .mockup-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .mockup-content {
    order: -1;
  }
}

/* Hide nav links when space is tight — keep logo + Launch in one row */
@media (max-width: 900px) {
  nav {
    display: none;
  }
  
  .nav-container {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }
  
  .logo {
    font-size: 1.15rem;
    gap: 0.4rem;
  }
  
  .logo svg {
    width: 22px;
    height: 22px;
  }
  
  .hide-mobile {
    display: none;
  }
  
  #btn-header-cta {
    padding: 0.55rem 0.95rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 6rem 1rem 3rem;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .nav-container {
    padding: 0.7rem 0.85rem;
    gap: 0.6rem;
  }
  
  .logo {
    font-size: 1rem;
    gap: 0.35rem;
  }
  
  .logo svg {
    width: 20px;
    height: 20px;
  }
  
  #btn-header-cta {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }
  
  .modal-overlay {
    padding: 0.75rem;
    align-items: center;
  }
  
  .modal-card {
    padding: 1.75rem 1.15rem 1.5rem;
    max-width: 100%;
  }
  
  .modal-close {
    top: 0.75rem;
    right: 0.75rem;
  }
  
  .modal-content h3 {
    font-size: 1.4rem;
  }
  
  .modal-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .demo-card {
    padding: 1.25rem 0.75rem;
    max-width: 100%;
  }

  .demo-controls {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }

  .demo-controls .btn {
    width: 100%;
    text-align: center;
    margin-left: 0;
  }
  
  .tree-row {
    gap: 1rem;
  }
  
  .tree-node {
    min-width: 120px;
    padding: 0.4rem 0.5rem;
    gap: 0.4rem;
  }
  
  .node-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  
  .node-name {
    font-size: 0.75rem;
  }
  
  .node-meta {
    font-size: 0.65rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .mockup-content h2 {
    font-size: 2rem;
  }
  
  .cta-container {
    padding: 3rem 1.25rem;
  }
  
  .cta-container h2 {
    font-size: 2rem;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* Interactive Tree Node Hover Enhancements */
.tree-node {
  cursor: pointer;
}

.tree-node:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.tree-node.active:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
}

.tree-node.uncertain:hover {
  border-color: #f59e0b;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100vw;
  background-color: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: min(480px, 100%);
  width: 100%;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), var(--accent-glow);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 1;
  margin: 0 auto;
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-card::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--accent-gradient);
  filter: blur(100px);
  top: -100px;
  right: -100px;
  opacity: 0.15;
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.modal-icon.success {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-secondary);
}

.modal-content h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.modal-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.modal-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.modal-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.btn-modal-submit {
  width: 100%;
  padding: 0.85rem;
}

.btn-modal-close {
  margin-top: 1rem;
  width: 100%;
}


