/* ============================================
   blockAnim Landing Page - shadcn/Radix Style
   ============================================ */

/* CSS Variables - shadcn inspired palette */
:root {
  /* Colors */
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 3.9%;
  --primary: 240 5.9% 10%;
  --primary-foreground: 0 0% 98%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --ring: 240 5.9% 10%;
  
  /* Brand accent */
  --brand: 221 83% 53%;
  --brand-foreground: 0 0% 100%;
  
  /* Radius */
  --radius: 0.625rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Typography */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Funnel Display', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.64;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  letter-spacing: -0.024em;
}

h2 {
  line-height: 1.24;
  font-weight: 520;
  letter-spacing: -0.04em;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.5s cubic-bezier(.8,0,0,1);
  background: transparent;
     max-width: 1200px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 100%;
    border-radius: 24px;
    corner-shape: squircle;
    border: 1px solid rgba(0, 0, 0, .1);
    top: 24px;
}

.header.scrolled {
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(12px);
  /*border-bottom: 1px solid rgba(0,0,0,.1);*/
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: hsl(var(--foreground));
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}

.logo-block {
  font-weight: 400;
}

.logo-anim {
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.4s cubic-bezier(.8,0,0,1);
}

.nav-link:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--muted));
}

.external-icon {
  width: 12px;
  height: 12px;
  opacity: 0.5;
}

.github-icon {
  width: 16px;
  height: 16px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(.8,0,0,1);
  white-space: nowrap;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background: hsl(var(--primary) / 0.9);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
  background: hsl(var(--secondary) / 0.8);
}

.btn-outline {
  background: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.btn-outline:hover {
  background: hsl(var(--muted));
  border-color: hsl(var(--border));
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

.btn-icon-right {
  width: 16px;
  height: 16px;
  transition: transform 0.4s cubic-bezier(.8,0,0,1);
}

.btn:hover .btn-icon-right {
  transform: translate(2px, -2px);
}

/* ============================================
   Badges
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.badge-new {
  background: linear-gradient(135deg, hsl(var(--brand)) 0%, hsl(280 80% 55%) 100%);
  color: white;
}

.badge-outline {
  background: transparent;
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  background: hsl(var(--background));
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 540;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: hsl(var(--foreground));
  margin-bottom: 20px;
}

.hero-title-accent {
  color: hsl(var(--brand));
}

.hero-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.stat {
  text-align: center;
  padding: 20px 32px;
  background: hsl(var(--muted) / 0.5);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}

.stat-value small {
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.stat-label {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 400px;
  overflow: visible;
}

.hero-image {
  position: absolute;
  inset: 20px;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
}

.demo-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.demo-card-wrapper {
  position: absolute;
  width: fit-content;
  z-index: 2;
}

.demo-card-wrapper-1 {
  top: -10px;
  left: -20px;
  transform: rotate(-3deg);
}

.demo-card-wrapper-2 {
  top: 100px;
  right: -30px;
  transform: rotate(2deg);
}

.demo-card-wrapper-3 {
  bottom: -15px;
  left: 40px;
  transform: rotate(-2deg);
}

.demo-card-header {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: hsl(var(--border));
}

.demo-dot:first-child {
  background: #ff5f57;
}

.demo-dot:nth-child(2) {
  background: #ffbd2e;
}

.demo-dot:nth-child(3) {
  background: #28c840;
}

.demo-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: hsl(var(--brand));
  background: hsl(var(--muted));
  padding: 8px 12px;
  border-radius: var(--radius);
}

.hero-gradient {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at 70% 30%, hsl(var(--brand) / 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* ============================================
   Section Styling
   ============================================ */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--brand));
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.028em;
  color: hsl(var(--foreground));
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   New in v2 Section
   ============================================ */
.new-feature {
  padding: 100px 0;
  margin: 0 24px;
  background: hsl(var(--muted) / 0.5);
  border-radius: calc(var(--radius) + 8px);
  text-align: center;
}

.new-feature-badge {
  margin-bottom: 20px;
}

.new-feature-badge .badge {
  background: linear-gradient(135deg, hsl(var(--brand)) 0%, hsl(280 80% 55%) 100%);
  color: white;
  font-size: 0.8125rem;
  padding: 6px 14px;
}

.new-feature-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  letter-spacing: -0.03em;
  color: hsl(var(--foreground));
  margin-bottom: 16px;
}

.new-feature-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 540px;
  margin: 0 auto 48px;
}

.new-feature-description strong {
  color: hsl(var(--brand));
  font-weight: 600;
}

.cascade-demo {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}

.cascade-demo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
}

.cascade-code {
  padding: 0;
  min-width: 0;
  overflow: hidden;
}

.cascade-code .code-block {
  height: 100%;
  border-radius: 0;
  border: none;
  max-width: 100%;
}

.cascade-code .code-header {
  border-radius: 0;
}

.cascade-code pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
}

.cascade-code code {
  font-size: 0.875rem;
  line-height: 1.8;
}

.code-highlight {
  color: hsl(var(--brand));
  font-weight: 500;
}

.cascade-code code {
  font-size: 0.9375rem;
  line-height: 1.8;
}

.code-tag {
  color: hsl(355 65% 65%);
}

.code-attr {
  color: hsl(187 70% 65%);
}

.code-string {
  color: hsl(95 55% 65%);
}

.code-highlight {
  color: hsl(var(--brand));
  font-weight: 600;
  background: hsl(var(--brand) / 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.cascade-preview {
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: hsl(var(--muted) / 0.3);
}

.cascade-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--muted-foreground));
}

.cascade-replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(.8,0,0,1);
}

.cascade-replay:hover {
  color: hsl(var(--brand));
  border-color: hsl(var(--brand) / 0.3);
  background: hsl(var(--brand) / 0.05);
}

.cascade-replay svg {
  width: 14px;
  height: 14px;
}

.cascade-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  justify-content: center;
  width: 100% !important;
  max-width: 100%;
}

.cascade-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  transition: all 0.4s cubic-bezier(.8,0,0,1);
}

.cascade-list li:hover {
  border-color: hsl(var(--brand) / 0.3);
  box-shadow: var(--shadow-md);
}

.cascade-icon {
  font-size: 1.25rem;
}

.cascade-note {
  margin-top: 32px;
  padding: 12px 20px;
  font-size: 0.875rem;
  color: hsl(var(--brand));
  background: hsl(var(--brand) / 0.08);
  border: 1px solid hsl(var(--brand) / 0.2);
  border-radius: var(--radius);
  border-left: 3px solid hsl(var(--brand));
  justify-self: center;
}

.cascade-note code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: hsl(var(--muted));
  padding: 2px 8px;
  border-radius: calc(var(--radius) - 2px);
  color: hsl(var(--foreground));
}

@media (max-width: 768px) {
  .new-feature-title {
    font-size: 2rem;
  }
  
  .header {
      border:none;
      border-radius: 0;
      left:0;
      transform: none;
      top:0;
      position: sticky;
      border-color:rgva(0,0,0,.1) !important;
  }
  
  .cascade-demo-inner {
    grid-template-columns: 1fr;
  }
  
  .cascade-code .code-block {
    border-radius: calc(var(--radius) + 8px) calc(var(--radius) + 8px) 0 0;
  }
}

/* ============================================
   Features Bento Grid
   ============================================ */
.features {
  background: hsl(var(--background));
}

.bento-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.bento-card {
  position: relative;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  padding: 28px;
  transition: all 0.5s cubic-bezier(.8,0,0,1);
  flex: 1 1 calc(33.333% - 12px);
  min-width: 280px;
  overflow: hidden;
}

/* Blue top border that fills on hover */
.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: hsl(var(--brand));
  transition: width 0.5s cubic-bezier(.8,0,0,1);
  border-radius: 0 0 2px 2px;
}

.bento-card:hover::before {
  width: 100%;
}

.bento-card:hover {
  border-color: hsl(var(--border) / 0.5);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Row 2: 2 cards taking 50% each */
.bento-card-half {
  flex: 1 1 calc(50% - 8px);
}

.bento-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--brand));
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.bento-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.bento-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.bento-description {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.bento-visual {
  margin-top: auto;
  padding-top: 24px;
}

.speed-bar {
  position: relative;
  height: 8px;
  background: hsl(var(--muted));
  border-radius: 9999px;
  overflow: hidden;
}

.speed-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 15%;
  background: linear-gradient(90deg, hsl(var(--brand)), hsl(var(--brand) / 0.6));
  border-radius: 9999px;
  animation: speedPulse 2s ease-in-out infinite;
}

@keyframes speedPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.speed-label {
  display: block;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 8px;
}

.animation-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.anim-tag {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  border-radius: var(--radius);
  transition: all 0.4s cubic-bezier(.8,0,0,1);
}

.anim-tag:hover {
  background: hsl(var(--brand) / 0.1);
  color: hsl(var(--brand));
}

/* ============================================
   Demo Preview Section
   ============================================ */
.demo-preview-section {
  padding: 100px 0;
  margin: 0 24px;
  background: hsl(var(--muted) / 0.5);
  border-radius: calc(var(--radius) + 8px);
}

.browser-frame {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.browser-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: hsl(var(--muted));
  border-bottom: 1px solid hsl(var(--border));
}

.browser-dots {
  display: flex;
  gap: 8px;
}

.browser-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: hsl(var(--border));
}

.browser-dot.red {
  background: #ff5f57;
}

.browser-dot.yellow {
  background: #ffbd2e;
}

.browser-dot.green {
  background: #28c840;
}

.browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.browser-url svg {
  width: 14px;
  height: 14px;
  color: hsl(var(--muted-foreground) / 0.6);
}

.browser-expand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--muted-foreground));
  transition: all 0.4s cubic-bezier(.8,0,0,1);
}

.browser-expand:hover {
  background: hsl(var(--brand) / 0.1);
  border-color: hsl(var(--brand) / 0.3);
  color: hsl(var(--brand));
}

.browser-expand svg {
  width: 16px;
  height: 16px;
}

.browser-content {
  height: 500px;
  background: hsl(var(--muted) / 0.5);
}

.browser-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   Installation Section
   ============================================ */
.install {
  background: hsl(var(--background));
}

.install-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.install-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  padding: 32px;
  overflow: hidden;
}

.install-card-primary {
  border-color: hsl(var(--brand) / 0.3);
  background: linear-gradient(135deg, hsl(var(--brand) / 0.03) 0%, transparent 50%);
}

.install-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.install-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--brand));
  border-radius: var(--radius);
}

.install-icon svg {
  width: 24px;
  height: 24px;
  color: white
}

.install-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--brand));
  background: hsl(var(--brand) / 0.1);
  padding: 4px 10px;
  border-radius: 9999px;
}

.install-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.install-description {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 24px;
}

/* Code Block */
.code-block {
  background: hsl(240 10% 8%);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 100%;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: hsl(240 10% 12%);
  border-bottom: 1px solid hsl(240 10% 18%);
}

.code-lang {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(0 0% 60%);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(0 0% 70%);
  background: hsl(240 10% 18%);
  border: none;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(.8,0,0,1);
}

.code-copy:hover {
  background: hsl(240 10% 24%);
  color: hsl(0 0% 90%);
}

.code-copy svg {
  width: 14px;
  height: 14px;
}

.code-block pre {
  padding: 20px;
  margin: 0;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: hsl(210 40% 75%);
}

/* ============================================
   Documentation Section
   ============================================ */
.docs {
  margin: 0 24px;
  background: hsl(var(--muted) / 0.5);
  border-radius: calc(var(--radius) + 8px);
}

/* Syntax Demo */
.syntax-demo {
  margin-bottom: 48px;
}

.syntax-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
}

.syntax-visual {
  text-align: center;
  margin-bottom: 32px;
}

.syntax-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  background: hsl(var(--muted));
  padding: 16px 24px;
  border-radius: var(--radius);
}

.syntax-prefix {
  color: hsl(var(--muted-foreground));
}

.syntax-animation {
  color: hsl(var(--brand));
  font-weight: 500;
}

.syntax-delay {
  color: hsl(150 60% 45%);
}

.syntax-repeat {
  color: hsl(35 90% 50%);
}

.syntax-legend {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-animation {
  background: hsl(var(--brand));
}

.legend-delay {
  background: hsl(150 60% 45%);
}

.legend-repeat {
  background: hsl(35 90% 50%);
}

.legend-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.legend-badge {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 9999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.legend-badge.badge-optional {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

/* Table */
.docs-table-wrapper {
  overflow-x: auto;
  margin-bottom: 48px;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
}

.docs-table thead {
  background: hsl(var(--muted));
}

.docs-table th {
  padding: 16px 20px;
  font-size: 0.8125rem;
  text-align: left;
  color: hsl(var(--foreground));
  border-bottom: 1px solid hsl(var(--border));
}

.docs-table td {
  padding: 20px;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
  border-bottom: 1px solid hsl(var(--border));
  vertical-align: top;
}

.docs-table tbody tr:last-child td {
  border-bottom: none;
}

.docs-table tbody tr:hover {
  background: hsl(var(--muted) / 0.5);
}

.inline-code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: hsl(var(--muted));
  padding: 4px 8px;
  border-radius: calc(var(--radius) - 2px);
}

.code-accent {
  color: hsl(var(--brand));
}

.table-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 9999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.table-badge.badge-optional {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.example-code {
  display: flex;
  align-items: center;
  gap: 8px;
}

.example-code code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted));
  padding: 8px 12px;
  border-radius: calc(var(--radius) - 2px);
  overflow-x: auto;
}

.table-copy {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(.8,0,0,1);
}

.table-copy:hover {
  background: hsl(var(--muted));
  border-color: hsl(var(--muted-foreground) / 0.3);
}

.table-copy svg {
  width: 14px;
  height: 14px;
  color: hsl(var(--muted-foreground));
}

.docs-cta {
  text-align: center;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid hsl(var(--border));
  padding: 64px 0 32px;
  margin-top:64px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 4px;
}

.footer-link {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.4s cubic-bezier(.8,0,0,1);
}

.footer-link:hover {
  color: hsl(var(--foreground));
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid hsl(var(--border));
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

/* ============================================
   Toast Notification
   ============================================ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  transition: all 0.5s cubic-bezier(.8,0,0,1);
  z-index: 200;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast svg {
  width: 18px;
  height: 18px;
  color: hsl(150 60% 50%);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-badge {
    justify-content: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    height: 180px;
  }
  
  .demo-card-wrapper-1 {
    top: -5px;
    left: 10px;
  }
  
  .demo-card-wrapper-2 {
    top: 60px;
    right: 10px;
  }
  
  .demo-card-wrapper-3 {
    bottom: -10px;
    left: 30px;
    display: none;
  }
  
  .hero-title {
    font-size: 2.75rem;
    letter-spacing: -0.024em;
  }
  
  .bento-card {
    flex: 1 1 calc(50% - 8px);
    min-width: 260px;
  }
  
  .bento-card-half {
    flex: 1 1 100%;
  }
  
  .install-grid {
    grid-template-columns: 1fr;
  }
  
  .install-card {
    padding: 24px;
  }
  
  .code-block pre {
    padding: 16px;
  }
  
  .code-block code {
    font-size: 0.75rem;
  }
  
  .new-feature,
  .demo-preview-section,
  .docs {
    margin: 0 16px;
  }
}

@media (max-width: 768px) {
    tr {
    display: flex;
    flex-direction: column;
}
thead {
    display:none;
}
    
p {
    line-height: 1.48;
}    
p.install-description,
p.footer-copy {
    text-align: left !important;
}
  .nav {
    display: none;
  }
  
  .browser-content {
      height: 380px;
  }
  
  section:not(.hero):not(.header):not(.footer) {
      padding: 32px 0;
  }
  
  .container p:not(.bento-description):not(.hero-description) {
      max-width: 280px;
      text-align: center;
      font-size:1.05rem;
  }
  
  .hero {
    padding: 64px 0 0px;
    border-radius: 0 0 24px 24px;
    margin-bottom: 2rem;
  }
  
  .hero-image {
      overflow: visible !important;
  }
  
  .hero-image img {
      transform: scalex(3) scaley(2);
    filter: blur(24px) saturate(4);
    mask-image: radial-gradient(ellipse at bottom, black 40%, transparent 65%);
    height: 320px;
  }
  
  .hero-title {
    font-size: 2.24rem;
  }
  
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-stats {
    flex-direction: row;
    gap: 12px;
  }
  
  .stat {
    padding: 16px 24px;
    flex: 1;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  section {
    padding: 64px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .bento-card,
  .bento-card-half {
    flex: 1 1 100%;
    min-width: 0;
  }
  
  .syntax-legend {
    flex-direction: column;
    gap: 12px;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }
  
  .footer-links {
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.24rem;
  }
  
  .syntax-code {
    font-size: 0.875rem;
    padding: 12px 16px;
  }
  
  .docs-table th,
  .docs-table td {
    padding: 12px;
  }
}