@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/* --- Big-Tech Base Scaling Rule --- */
html {
  font-size: 14px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 1536px) {
  html {
    font-size: 14.5px;
  }
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #FFFFFF;
  color: #111315;
  overflow-x: hidden;
  line-height: 1.5;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* --- Color Variables --- */
:root {
  --bg-dark: #111315;
  --bg-darker: #0B0D0E;
  --color-mint: #4EFA94;
  --color-mint-hover: #40DF83;
  --color-mint-soft: #E9FBF1;
  --color-forest: #163828;
  --color-forest-deep: #0F281C;
  --color-surface-grey: #F4F5F7;
  --color-border-subtle: #E6E8EC;
  --radius-card: 28px;
  --radius-card-lg: 34px;
}

/* --- Bento Card Foundations --- */
.bento-card {
  border-radius: var(--radius-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.bento-card-lg {
  border-radius: var(--radius-card-lg);
}

.bento-card:hover {
  transform: translateY(-2px);
}

.bg-onyx {
  background-color: var(--bg-dark);
  color: #FFFFFF;
}

.bg-mint {
  background-color: var(--color-mint);
  color: #111315;
}

.bg-forest {
  background-color: var(--color-forest);
  color: #FFFFFF;
}

.bg-surface-grey {
  background-color: var(--color-surface-grey);
}

/* --- Interactive Target Badge (Inspiration Slide 1 & 7) --- */
.target-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #111315;
  border: 2px solid var(--color-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-mint);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px rgba(78, 250, 148, 0.25);
}

.target-badge:hover {
  transform: scale(1.08) rotate(45deg);
  background: var(--color-mint);
  color: #111315;
}

.target-badge-subtle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.target-badge-subtle:hover {
  border-color: var(--color-mint);
  color: var(--color-mint);
}

/* --- 3D Ribbed / Parametric Texture Simulation (CSS/SVG Based) --- */
.ribbed-texture {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 8px,
    rgba(0, 0, 0, 0.06) 8px,
    rgba(0, 0, 0, 0.06) 16px
  );
}

.wave-grid-pattern {
  background-size: 24px 24px;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

.wave-grid-pattern-dark {
  background-size: 24px 24px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

/* --- Pulse and Glow Animations --- */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(78, 250, 148, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(78, 250, 148, 0.55);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes radarSweep {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.radar-sweep {
  animation: radarSweep 4s linear infinite;
  transform-origin: center;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.animate-float {
  animation: floatSlow 4s ease-in-out infinite;
}

/* Custom Scrollbar for Code & Preview Tabs */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Pill Tabs & Buttons */
.pill-btn {
  border-radius: 9999px;
  padding: 0.625rem 1.35rem;
  font-size: 0.925rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.pill-btn-mint {
  background-color: var(--color-mint);
  color: #0D0F11;
}

.pill-btn-mint:hover {
  background-color: var(--color-mint-hover);
  box-shadow: 0 4px 18px rgba(78, 250, 148, 0.35);
  transform: translateY(-1px);
}

.pill-btn-dark {
  background-color: var(--bg-dark);
  color: #FFFFFF;
}

.pill-btn-dark:hover {
  background-color: #23272B;
  transform: translateY(-1px);
}

.pill-btn-outline {
  border: 1.5px solid var(--color-border-subtle);
  background-color: transparent;
  color: #111315;
}

.pill-btn-outline:hover {
  border-color: #111315;
  background-color: #FFFFFF;
}

/* Glass Panels */
.glass-panel-dark {
  background: rgba(17, 19, 21, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-light {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Phone Mockup Frame */
.phone-mockup {
  border-radius: 40px;
  background: #0B0D0E;
  border: 8px solid #1C1F22;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.phone-notch {
  width: 90px;
  height: 18px;
  background: #1C1F22;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  margin: 0 auto;
}

/* Route dash animation */
@keyframes routeDash {
  to {
    stroke-dashoffset: -40;
  }
}

.route-animate {
  stroke-dasharray: 8 4;
  animation: routeDash 1.2s linear infinite;
}
