/* Clarity Landing Page */

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[x-cloak] { display: none !important; }

/* ── Scroll-triggered animations ────────────────────────────── */

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

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

.animate-fade-in-up {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Staggered children */
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 80ms; }
.stagger > *:nth-child(3) { animation-delay: 160ms; }
.stagger > *:nth-child(4) { animation-delay: 240ms; }

/* ── Form inputs ────────────────────────────────────────────── */

.login-input {
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  color: #f0f0f0;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  font-family: inherit;
}

.login-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.login-input:focus {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.login-input.editor-focus:focus {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* ── SSO buttons ────────────────────────────────────────────── */

.sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  transition: all 0.2s;
  cursor: pointer;
}

.sso-btn:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.sso-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ── Background grid ────────────────────────────────────────── */

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

/* ── Gradient text ──────────────────────────────────────────── */

.text-gradient-indigo {
  background: linear-gradient(135deg, #818cf8, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #34d399, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Floating animation ─────────────────────────────────────── */

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

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

/* ── Modal ──────────────────────────────────────────────────── */

.modal-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Logo wordmark ─────────────────────────────────────────── */

.logo-text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
}

/* ── Typewriter cursor ─────────────────────────────────────── */

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

.tw-cursor {
  font-weight: 300;
  animation: blink 0.75s step-end infinite;
}

/* ── Feature cards ─────────────────────────────────────────── */

.feature-card {
  transition: border-color 0.3s, background-color 0.3s;
}

.feature-card:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ── Pricing cards ─────────────────────────────────────────── */

.pricing-card {
  transition: transform 0.3s, border-color 0.3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

/* ── Scrollbar hide ─────────────────────────────────────────── */

.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
