/**
 * Query Setu — vanilla styles
 * Theme, typography, glass, and animations (same as the Next.js landing page)
 */

:root {
  --color-primary: #F59E0B;
  --color-primary-light: #FBBF24;
  --color-primary-dark: #D97706;
  --color-secondary: #EF4444;
  --color-secondary-light: #F87171;
  --color-accent: #10B981;
  --color-accent-light: #34D399;
  --color-bg-primary: #000000;
  --color-bg-secondary: #0A0A0A;
  --color-bg-tertiary: #1A1A1A;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #A3A3A3;
  --color-text-muted: #737373;
  --color-border: #262626;
  --color-border-light: #404040;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Monaco", "Cascadia Code", "Roboto Mono", "Courier New", monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  --text-8xl: 6rem;

  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0em;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 900;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 4rem;
}

body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--font-normal);
  font-feature-settings: "rlig" 1, "calt" 1, "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.glass-hover:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 12px 48px 0 rgba(245, 158, 11, 0.2);
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

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

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

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

.animate-slide-in-up {
  animation: slideInUp 0.6s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-up {
  animation: slideInUp 0.8s ease-out;
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.grid-background {
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

.dot-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

::selection {
  background: rgba(99, 102, 241, 0.3);
  color: var(--color-text-primary);
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-bg-primary), 0 0 0 4px var(--color-primary);
}

.btn {
  display: inline-block;
  text-align: center;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-image: linear-gradient(to right, #f59e0b, #ef4444);
  color: #fff;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
  color: #fff;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-md { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

.nav-link {
  position: relative;
  font-size: 0.875rem;
  color: #a3a3a3;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.nav-link.is-active {
  font-weight: 600;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 0.125rem;
  border-radius: 9999px;
  background-image: linear-gradient(to right, #f59e0b, #ef4444);
}

.mobile-nav-link {
  display: block;
  color: #d4d4d4;
  transition: color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #fff;
}

.mobile-nav-link.is-active {
  font-weight: 600;
}

.mobile-nav-link.is-active::after {
  content: "";
  display: inline-block;
  margin-left: 0.5rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-image: linear-gradient(to right, #f59e0b, #ef4444);
  vertical-align: middle;
}

.modal-hidden {
  display: none !important;
}

body.modal-open,
body.menu-open {
  overflow: hidden;
}

.mobile-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-menu-backdrop.is-open {
  display: block;
}

.hiw-track {
  display: flex;
  width: 100%;
  transition: transform 0.3s ease-out;
}

.hiw-slide {
  width: 100%;
  min-width: 100%;
  flex: 0 0 100%;
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.faq-answer.is-open {
  max-height: 52rem;
}

.faq-chevron {
  transition: transform 0.3s ease;
}

.faq-chevron.is-open {
  transform: rotate(180deg);
}

.hidden-item {
  display: none !important;
}

.hero-title {
  font-size: clamp(1.85rem, 7.2vw, 4.5rem);
  line-height: 1.15;
  word-break: break-word;
}

.hero-badge {
  max-width: min(100%, 34rem);
}

.hero-chips {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: #f59e0b;
  color: #111;
  font-weight: 700;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 1rem;
}

.comparison-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1023px) {
  .desktop-nav {
    display: none !important;
  }

  .mobile-menu-btn {
    display: inline-flex !important;
  }

  .mobile-drawer {
    display: none;
  }

  .mobile-drawer.is-open {
    display: block;
  }
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex !important;
  }

  .mobile-menu-btn {
    display: none !important;
  }

  .mobile-drawer,
  .mobile-drawer.is-open,
  .mobile-menu-backdrop,
  .mobile-menu-backdrop.is-open {
    display: none !important;
  }
}

.security-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.security-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #d4d4d4;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.security-mark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  border-radius: 9999px;
}

.security-mark svg {
  width: 0.75rem;
  height: 0.75rem;
}

.security-mark-yes {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
}

.security-mark-no {
  color: #a3a3a3;
  background: rgba(255, 255, 255, 0.06);
}

.site-footer {
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-integrations {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
}

.footer-kicker {
  margin-right: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #737373;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #d4d4d4;
  background: rgba(255, 255, 255, 0.03);
}

.footer-chip-accent {
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
}

.footer-heading {
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f5f5f5;
}

.footer-link {
  color: #a3a3a3;
  font-size: 0.875rem;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-contact {
  display: block;
  max-width: 22rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.footer-contact:hover {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.06);
}

.footer-contact-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #737373;
}

.footer-contact-value {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #f5f5f5;
  word-break: break-all;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.15rem 0 1.35rem;
}

@media (max-width: 640px) {
  nav .text-xl {
    font-size: 1.05rem;
  }

  nav svg.w-12 {
    width: 2.4rem;
    height: 2.4rem;
  }

  .hero-title {
    font-size: clamp(1.7rem, 9vw, 2.4rem);
    line-height: 1.2;
  }

  .hero-chips {
    gap: 0.5rem;
  }

  .hero-chips .glass {
    padding: 0.45rem 0.7rem;
  }

  .btn-lg {
    width: 100%;
  }

  #features-toggle {
    width: 100%;
    justify-content: center;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .footer-bottom {
    text-align: left;
  }

  .security-list li {
    font-size: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .animate-float,
  .animate-glow,
  .animate-slide-in-up,
  .animate-scale-in,
  .animate-fade-in,
  .animate-pulse {
    animation: none !important;
  }
}
