@import 'tailwindcss';

/* =============================================
   NightOwl Design Tokens
   ============================================= */

:root {
  /* Brand Colors */
  --color-navy-950: #050b18;
  --color-navy-900: #0a1628;
  --color-navy-800: #0f2044;
  --color-navy-700: #162d5e;
  --color-navy-600: #1e3a72;

  --color-indigo-500: #4f6ef7;
  --color-indigo-400: #7b93fa;
  --color-indigo-300: #a8b8fc;

  --color-teal-400: #2dd4bf;
  --color-teal-300: #5eead4;

  --color-amber-400: #fbbf24;
  --color-amber-300: #fcd34d;

  /* Neutral */
  --color-zinc-50: #fafafa;
  --color-zinc-100: #f4f4f5;
  --color-zinc-200: #e4e4e7;
  --color-zinc-400: #a1a1aa;
  --color-zinc-500: #71717a;
  --color-zinc-600: #52525b;
  --color-zinc-700: #3f3f46;
  --color-zinc-800: #27272a;
  --color-zinc-900: #18181b;
  --color-zinc-950: #09090b;

  /* Semantic */
  --background: var(--color-navy-950);
  --surface: var(--color-navy-900);
  --surface-elevated: var(--color-navy-800);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #f0f4ff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: var(--color-indigo-500);
  --accent-secondary: var(--color-teal-400);
  --accent-warm: var(--color-amber-400);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing scale */
  --space-section: 6rem;
  --space-section-sm: 4rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-pill: 9999px;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--text-primary);
  --font-sans: var(--font-sans);
  --font-mono: var(--font-mono);
}

/* =============================================
   Base Reset & Typography
   ============================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--background);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
}

/* =============================================
   NightOwl Utility Classes
   ============================================= */

.section-padding {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.container-default {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--color-indigo-400) 0%, var(--color-teal-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-warm {
  background: linear-gradient(135deg, var(--color-amber-300) 0%, var(--color-indigo-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card styles */
.card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.card-hover {
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}
.card-hover:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* Button variants */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 0 0 0 rgba(79, 110, 247, 0);
}
.btn-primary:hover {
  background: var(--color-indigo-400);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79, 110, 247, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}
.btn-secondary:hover {
  border-color: var(--color-indigo-400);
  color: var(--text-primary);
  background: rgba(79, 110, 247, 0.08);
}

/* Eyebrow / label tag */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-indigo-400);
  background: rgba(79, 110, 247, 0.12);
  border: 1px solid rgba(79, 110, 247, 0.25);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.875rem;
}

/* Divider */
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* Glowing orb background element */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.35;
}

/* Prose / body text */
.body-lg {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.body-md {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Heading sizes */
.heading-display {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.heading-xl {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.heading-lg {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Noise texture overlay for hero */
.noise-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

/* Star field animation for hero */
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animation-delay-100 {
  animation-delay: 0.1s;
  opacity: 0;
}
.animation-delay-200 {
  animation-delay: 0.2s;
  opacity: 0;
}
.animation-delay-300 {
  animation-delay: 0.3s;
  opacity: 0;
}
.animation-delay-400 {
  animation-delay: 0.4s;
  opacity: 0;
}
.animation-delay-500 {
  animation-delay: 0.5s;
  opacity: 0;
}

/* =============================================
   Accordion (FAQ)
   ============================================= */

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  gap: 1rem;
  transition: color 0.2s ease;
}
.faq-trigger:hover {
  color: var(--color-indigo-400);
}

.faq-content {
  overflow: hidden;
  max-height: 0;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
}
.faq-content.open {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-chevron.open {
  transform: rotate(180deg);
}

/* =============================================
   Pricing card highlighted state
   ============================================= */

.pricing-card-featured {
  background: linear-gradient(135deg, rgba(79, 110, 247, 0.15) 0%, rgba(45, 212, 191, 0.08) 100%);
  border-color: var(--color-indigo-500);
  box-shadow: 0 0 40px rgba(79, 110, 247, 0.15);
}

/* =============================================
   Integration logo grid
   ============================================= */

.integration-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}
.integration-logo:hover {
  border-color: var(--border-strong);
  background: var(--surface-elevated);
  color: var(--text-primary);
}

/* =============================================
   NavBar
   ============================================= */

.nav-link {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--text-primary);
}

/* =============================================
   Scroll reveal — clients that support JS handle
   the class toggle; for no-JS fallback everything
   is visible by default.
   ============================================= */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
