:root {
  --bg: #ffffff;
  --bg-dots: #000000;
  --text: #050505;
  --text-muted: #555555;
  --surface: rgba(0, 0, 0, 0.02);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);
  --accent: #000000;
  --radius: 16px;
  --max-width: 1000px;
  --gap: 24px;
}

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

html { 
  scroll-behavior: smooth; 
}

body {
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

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

img { 
  max-width: 100%; 
  height: auto; 
  display: block; 
}

button, .btn { 
  cursor: pointer; 
  border: none;
  font-family: inherit;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

h1, h2, h3 {
  letter-spacing: -0.04em;
  font-weight: 600;
  line-height: 1.1;
}

h1 { 
  font-size: clamp(3rem, 8vw, 5.5rem); 
  margin-bottom: 0.5em; 
}

h2 { 
  font-size: clamp(2rem, 5vw, 3rem); 
  margin-bottom: 0.5em; 
}

h3 { 
  font-size: 1.25rem; 
  margin-bottom: 0.5em; 
}

p { 
  margin-bottom: 1rem; 
  color: var(--text-muted);
}

.lead { 
  font-size: clamp(1rem, 3vw, 1.125rem); 
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* Navigation */
.nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.5rem 1rem;
  z-index: 1000;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.brand { 
  display: flex; 
  align-items: center; 
  gap: 0.5rem; 
  font-weight: 600;
  font-size: 0.95rem;
}

.logo {
  width: 1.5rem; 
  height: 1.5rem;
  background: var(--accent);
  border-radius: 50%;
}

.menu { 
  display: flex; 
  gap: 1.5rem; 
  align-items: center;
}

.menu a { 
  font-size: 0.85rem; 
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.menu-toggle {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  gap: 0.5rem;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary { 
  background: var(--accent); 
  color: #fff; 
}

.btn-primary:hover { 
  background: #333; 
}

.btn-secondary { 
  background: transparent; 
  color: var(--text); 
  border: 1px solid var(--glass-border); 
}

.btn-secondary:hover { 
  background: var(--surface); 
}

/* Sections */
.section { 
  padding-top: 4rem;
  padding-bottom: 8rem 0; 
}


.section-title { 
  text-align: center; 
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
  margin-bottom: 4rem;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 6rem;
  text-align: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--glass-border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2rem;
  transition: background 0.2s;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.pill-badge:hover {
  background: rgba(0,0,0,0.05);
}

.pill-badge .badge-inner {
  background: var(--accent);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Bento Mock UI Element */
.mock-ui {
  margin-top: 4rem;
  width: 100%;
  max-width: 900px;
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--glass-border);
  border-bottom: none;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  overflow: hidden;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--glass-border);
  background: #fafafa;
  padding: 0.75rem 1rem;
}
.glide-out {
  opacity: 0;
  transform: translateX(100%); /* Glides out to the right */
  transition: all 0.5s ease-in-out; /* Smooth 0.5-second animation */
}

.mock-dots {
  display: flex;
  gap: 0.4rem;
}
.mock-dot:nth-child(1) {
    width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: yellow
}
.mock-dot:nth-child(2) {  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: green;
}
.mock-dot:nth-child(3){
    width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: red;
}
.mock-dot {

}

.mock-terminal {
  height: 150px;
  background: #ffffff;
  padding: 1.5rem;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.terminal-line { margin-top: 0.5rem; opacity: 0; animation: fadeIn 0s forwards; }
.terminal-line:nth-child(1) { animation-delay: 0.5s; }
.terminal-line:nth-child(2) { animation-delay: 1.0s; }
.terminal-line:nth-child(3) { animation-delay: 1.5s; }
.terminal-line:nth-child(4) { animation-delay: 2.0s; }
.terminal-line:nth-child(5) { animation-delay: 2.5s; }

@keyframes fadeIn {
  to { opacity: 1; }
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000;
  margin-right: 0.5rem;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Bento Grid */
.bento-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.bento-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

.bento-icon {
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.bento-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text);
  stroke-width: 2;
}

.bento-image {
  margin: 1.5rem -2rem -2rem -2rem;
  border-top: 1px solid var(--glass-border);
  height: 200px;
}

.bento-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
  background-color: rgba(83, 82, 82, 0.22);
  mask-image: linear-gradient(to top, rgb(255, 255, 255) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top,mas rgb(255, 255, 255) 70%, transparent 100%);
}

.footer a {
  color: var(--text);
  margin: 0 0.5rem;
}

/* Mobile */
@media (max-width: 768px) {
  .nav {
    border-radius: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    border-top: none;
    border-left: none;
    border-right: none;
  }
  
  .menu-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
  }
  
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: none;
  }

  .menu.active {
    display: flex;
  }

  .cta-group {
    flex-direction: column;
    width: 100%;
  }

  .cta-group .btn {
    width: 100%;
  }
}
