:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  text-decoration: none;
}

button,
a,
summary,
[role="button"] {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}

.perspective-1000 {
  perspective: 1000px;
}

.tilt-card,
.tilt-card-reverse {
  transform-style: preserve-3d;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.tilt-card:hover {
  transform: rotateY(2deg) rotateX(2deg);
}

.tilt-card-reverse:hover {
  transform: rotateY(-2deg) rotateX(2deg);
}

#site-header {
  backdrop-filter: none;
}

#site-header.header-scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.hero-heading {
  text-wrap: balance;
}

.hero-heading-accent {
  display: block;
}

.hero-copy {
  text-wrap: pretty;
}

main > section {
  scroll-margin-top: 5.5rem;
}

main > section:nth-of-type(n + 2) {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-tab {
  color: rgb(107 114 128);
}

.dashboard-tab:hover {
  color: rgb(31 41 55);
  background: rgba(243, 244, 246, 0.45);
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.dashboard-tab .dashboard-tab-indicator {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgb(37 99 235);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.dashboard-tab.is-active {
  color: rgb(37 99 235);
}

.dashboard-tab.is-active .dashboard-tab-indicator {
  transform: scaleX(1);
}

#mobile-menu-toggle .icon-close {
  display: none;
}

#mobile-menu-toggle.is-open .icon-menu {
  display: none;
}

#mobile-menu-toggle.is-open .icon-close {
  display: block;
}

.dashboard-toast {
  animation: toast-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate3d(48px, 48px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

#dashboard-toast.hidden {
  display: none;
}

#dashboard-toast {
  display: flex;
}

.eye-toggle-btn {
  color: rgb(107 114 128);
}

.eye-toggle-btn:hover {
  color: rgb(55 65 81);
}

.eye-toggle-btn.is-active {
  background: #fff;
  color: rgb(17 24 39);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.faq-item {
  overflow: hidden;
}

.faq-trigger {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.faq-trigger:hover {
  color: rgb(17 24 39);
}

.faq-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

.faq-item.is-open .faq-content {
  max-height: 220px;
  opacity: 1;
}

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

@media (max-width: 1024px) {
  .tilt-card:hover,
  .tilt-card-reverse:hover {
    transform: none;
  }

  .hero-section > .absolute {
    opacity: 0.32;
  }

  .hero-section .mt-12 {
    margin-top: 2.5rem !important;
  }

  .hero-section .max-w-7xl {
    padding-top: 6.5rem !important;
    padding-bottom: 4.5rem !important;
  }
}

@media (max-width: 768px) {
  .px-6 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .py-20 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  .py-16 {
    padding-top: 3.25rem !important;
    padding-bottom: 3.25rem !important;
  }

  .mb-12 {
    margin-bottom: 2.25rem !important;
  }

  .space-y-20 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 3rem !important;
  }

  .hero-section h1 {
    font-size: clamp(2rem, 9.5vw, 3.35rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.025em;
  }

  .hero-section .hero-heading {
    max-width: 14ch;
    margin-inline: auto;
    overflow-wrap: anywhere;
  }

  .hero-section .hero-heading-accent {
    display: block;
    margin-top: 0.12em;
  }

  .hero-section p.text-xl {
    font-size: clamp(1rem, 4.8vw, 1.25rem) !important;
  }

  .hero-section .hero-copy {
    max-width: 32ch;
    margin-inline: auto;
  }

  .text-4xl.sm\:text-5xl.lg\:text-6xl {
    font-size: clamp(1.9rem, 8.1vw, 2.55rem) !important;
    line-height: 1.08 !important;
  }

  .text-3xl.sm\:text-4xl.lg\:text-5xl {
    font-size: clamp(1.65rem, 7vw, 2.1rem) !important;
    line-height: 1.14 !important;
  }

  .text-4xl.sm\:text-5xl.lg\:text-7xl {
    font-size: clamp(2rem, 9vw, 2.8rem) !important;
    line-height: 1.08 !important;
  }

  .hero-section .h-14,
  #pricing .h-12,
  #testimonials .rounded-3xl,
  #faq .faq-trigger,
  #mobile-menu a,
  #mobile-menu-toggle {
    min-height: 44px;
  }

  .hero-section .hero-actions {
    width: 100%;
  }

  .hero-section .hero-actions > * {
    width: 100%;
    max-width: 19rem;
  }

  .hero-section .text-sm.font-medium.text-gray-700 {
    font-size: 0.75rem;
  }

  .hero-section .hero-dashboard-shell {
    max-width: min(100%, 23rem);
  }

  .hero-section .rounded-2xl.bg-gray-900.p-2.sm\:p-4.shadow-2xl,
  .hero-section .hero-dashboard-shell {
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.18);
  }

  .dashboard-mockup {
    font-size: 11px;
  }

  .dashboard-content {
    padding: 0.75rem !important;
    gap: 0.75rem !important;
  }

  .dashboard-header-bar {
    padding: 0.65rem 0.75rem !important;
  }

  .dashboard-controls {
    gap: 0.4rem;
  }

  .dashboard-controls > .bg-black {
    padding: 0.45rem 0.55rem;
    font-size: 10px;
  }

  .dashboard-tab {
    padding: 0.45rem 0.38rem;
    font-size: 10px;
  }

  .dashboard-tab span {
    gap: 0.2rem;
    white-space: nowrap;
  }

  .dashboard-tab [data-lucide],
  .dashboard-tab .bg-purple-100 {
    display: none;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .dashboard-stats > div {
    min-height: 96px;
    padding: 0.72rem 0.4rem;
  }

  .dashboard-table {
    display: none;
  }

  #dashboard-toast {
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }

  #site-header .h-16 {
    height: 3.75rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
