:root {
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --brand-500: #0ea5e9;
  --tw-color-brand-500: #0ea5e9;
  --tw-color-cyan-500: #2dd4bf;
  --tw-color-emerald-500: #10b981;
  --bg-main: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: rgba(0, 0, 0, 0.08);
  --card-bg: #f8fafc;
  --card-bg-hover: #f1f5f9;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  width: 100%;
}

.bg-main {
    background-color: var(--bg-main) !important;
}

.font-heading {
  font-family: var(--font-heading);
}

/* Navigation Item Styles */
.nav-item {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: var(--text-primary);
}

/* Button Fixes for Get Offer and Install Now visibility */
/* Specifically targeting the buttons in hero and offer section */
.hero-text a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#offerCodeBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 160px;
}

/* Ensure span inside buttons inherits color or stays white */
.bg-slate-900 span {
    color: #ffffff !important;
}

.bg-slate-100 span {
    color: #0f172a !important;
}

/* Animations */
@keyframes fadeUp {
  from { 
    opacity: 0; 
    transform: translateY(30px) scale(0.98); 
    filter: blur(4px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
    filter: blur(0);
  }
}

@keyframes fancy-badge-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes gradientX {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient-x {
    background-size: 200% auto;
    animation: gradientX 5s ease infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.animate-shimmer {
    animation: shimmer 2s infinite;
}

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

.animate-blink {
    animation: blink 1s step-end infinite;
}

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

.animate-bounce-y {
  animation: bounceY 1.5s infinite ease-in-out;
}

/* Improved Scroll Animation Class */
.scroll-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header Scroll Effect */
#mainHeader.scrolled {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

/* Spotlight Card Effect */
.spotlight-card {
    --mouse-x: -100px;
    --mouse-y: -100px;
}

.spotlight-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(0,0,0,0.03), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
}

.spotlight-card:hover::before {
    opacity: 1;
}

.version-badge {
  opacity: 0;
  animation: fancy-badge-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s forwards;
}

.version-badge-text {
  background-image: linear-gradient(90deg, #0284c7, #0ea5e9, #7c3aed, #0284c7);
  background-size: 250% 250%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientX 4s ease infinite;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
    border: 2px solid #f1f1f1;
}
::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* Utilities */
textarea:focus, input:focus {
    outline: none;
    border-color: var(--brand-500);
}

button, a {
    touch-action: manipulation;
}

.text-transparent {
    -webkit-background-clip: text;
    background-clip: text;
}

.hidden {
  display: none !important;
}

#demoEditor {
    font-family: 'Fira Code', monospace;
}

/* Offer Card Responsive Styles */
.offer-card-bg {
    background-image: linear-gradient(to bottom right, #ffffff, #f1f5f9);
    border-color: #cbd5e1;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.offer-card-inner {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    color: #0f172a;
}

.offer-code-box {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: #cbd5e1;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.offer-copy-btn {
    background-color: #0f172a;
    color: #ffffff !important;
}

.offer-copy-btn:hover {
    background-color: #1e293b;
}

.offer-code-text {
    background-image: linear-gradient(to right, #0ea5e9, #0284c7, #0d9488);
}
