/* ==========================================================================
   Herv.ai Landing Page
   Modern SaaS landing with high-contrast design and refined typography
   ========================================================================== */

/* Import Montserrat font family */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* CSS Variables
   ========================================================================== */
:root {
  /* Brand Colors */
  --primary: #13A7FF;
  --primary-hover: #0095EB;
  --primary-glow: rgba(19, 167, 255, 0.35);
  --primary-soft: rgba(19, 167, 255, 0.1);
  --navy: #0D151E;
  --navy-light: #152231;
  --white: #FEFEFE;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;

  /* Typography */
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: 80px;
  --section-padding-mobile: 60px;

  /* Effects */
  --transition: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.6;
  background: var(--white);
  margin: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Classes
   ========================================================================== */
.h1 {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.h2 {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

.h3 {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
}

.subheadline {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
}

.body-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
}

.body-text-sm {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
}

/* Responsive typography */
@media (min-width: 768px) {
  .h1 { font-size: 56px; }
  .h2 { font-size: 40px; }
}

@media (min-width: 1024px) {
  .h1 { font-size: 64px; }
  .h2 { font-size: 44px; }
}

/* Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
  color: var(--white);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  text-decoration: none;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 17px;
}

/* Navigation
   ========================================================================== */
.landing-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-slow);
}

.landing-navbar.scrolled {
  background: rgba(13, 21, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.navbar-brand img {
  height: 34px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--transition);
}

.nav-links li a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  margin-left: 16px;
}

.nav-cta .btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
}

/* Mobile navigation */
.navbar-toggler {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.navbar-toggler-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--white);
}

.navbar-toggler-icon::before { top: -7px; }
.navbar-toggler-icon::after { bottom: -7px; }

@media (max-width: 768px) {
  .navbar-toggler {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 20px;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 4px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 12px 16px;
  }

  .nav-cta {
    margin-left: 0;
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
  }
}

/* Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Atmospheric background */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Gradient orbs */
.hero-bg::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(19, 167, 255, 0.15) 0%, transparent 70%);
  top: -20%;
  right: -15%;
  animation: float 20s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(19, 167, 255, 0.1) 0%, transparent 70%);
  bottom: -10%;
  left: -10%;
  animation: float 25s ease-in-out infinite reverse;
}

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

/* Subtle grid pattern */
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(19, 167, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 167, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
}

.hero-text {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  border: 1px solid rgba(19, 167, 255, 0.2);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease-out 0.1s both;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease-out 0.2s both;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
  max-width: 480px;
  animation: fadeUp 0.6s ease-out 0.3s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  animation: fadeUp 0.6s ease-out 0.4s both;
}

.hero-note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  animation: fadeUp 0.6s ease-out 0.5s both;
}

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

/* Hero Visual Card */
.hero-visual {
  display: none;
  animation: fadeUp 0.8s ease-out 0.5s both;
}

@media (min-width: 1024px) {
  .hero-visual {
    display: block;
  }
}

.hero-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
}

.hero-card-info h4 {
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 4px;
}

.hero-card-info span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.hero-checks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateX(-16px);
  animation: slideIn 0.4s ease-out forwards;
}

.hero-check-item:last-child {
  border-bottom: none;
}

.hero-check-item:nth-child(1) { animation-delay: 0.7s; }
.hero-check-item:nth-child(2) { animation-delay: 0.8s; }
.hero-check-item:nth-child(3) { animation-delay: 0.9s; }
.hero-check-item:nth-child(4) { animation-delay: 1.0s; }
.hero-check-item:nth-child(5) { animation-delay: 1.1s; }

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.check-icon {
  width: 24px;
  height: 24px;
  background: rgba(19, 167, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 11px;
  flex-shrink: 0;
}

/* Trust Bar
   ========================================================================== */
.trust-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 28px 0;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 48px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
}

.trust-item i {
  color: var(--primary);
  font-size: 18px;
}

/* Features Section (Why Us)
   ========================================================================== */
.features-section {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-header .h2 {
  color: var(--navy);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--gray-500);
  font-size: 18px;
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px;
  transition: all var(--transition-slow);
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon i {
  font-size: 24px;
  color: var(--primary);
}

.feature-card .h3 {
  color: var(--navy);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--gray-500);
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

/* Pricing Section
   ========================================================================== */
.pricing-section {
  padding: var(--section-padding) 0;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.pricing-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 48px;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.price-display {
  margin-bottom: 16px;
}

.price-currency {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  vertical-align: top;
}

.price-amount {
  font-size: 80px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.03em;
}

.price-period {
  display: block;
  color: var(--gray-500);
  font-size: 16px;
  font-weight: 500;
  margin-top: 8px;
}

.pricing-description {
  color: var(--gray-500);
  font-size: 16px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-100);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  font-size: 15px;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li i {
  color: var(--primary);
  font-size: 14px;
  width: 20px;
  text-align: center;
}

.pricing-card .btn-primary {
  width: 100%;
  margin-bottom: 16px;
}

.trial-note {
  color: var(--gray-500);
  font-size: 14px;
  margin: 0;
}

/* Integrations Section
   ========================================================================== */
.integrations-section {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.integrations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .integrations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

.integration-card {
  background: var(--gray-50);
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
}

.integration-card:hover {
  background: var(--white);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-card);
}

.integration-logo {
  height: 48px;
  width: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.integration-card .h3 {
  color: var(--navy);
  margin-bottom: 8px;
}

.integration-card p {
  color: var(--gray-500);
  font-size: 15px;
  margin: 0;
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Section
   ========================================================================== */
.cta-section {
  padding: var(--section-padding) 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.4;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.cta-section .h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  margin-bottom: 32px;
}

/* Footer
   ========================================================================== */
.landing-footer {
  background: #080D12;
  padding: 64px 0 40px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-brand img {
  height: 28px;
  width: auto;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  max-width: 260px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  text-align: center;
}

/* Scroll Reveal Animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Mobile Responsive
   ========================================================================== */
@media (max-width: 767px) {
  :root {
    --section-padding: 60px;
  }

  .hero-section {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-text {
    text-align: center;
    max-width: 100%;
  }

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

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-note {
    text-align: center;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .feature-card {
    padding: 28px;
  }

  .pricing-card {
    padding: 36px 28px;
  }

  .price-amount {
    font-size: 64px;
  }
}

/* Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-primary { color: var(--primary); }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }

/* ==========================================================================
   Login Page
   Modern, atmospheric login matching the landing page aesthetic
   ========================================================================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
}

/* Atmospheric background - same as hero */
.login-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-bg::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(19, 167, 255, 0.15) 0%, transparent 70%);
  top: -30%;
  right: -20%;
  animation: float 20s ease-in-out infinite;
}

.login-bg::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(19, 167, 255, 0.1) 0%, transparent 70%);
  bottom: -20%;
  left: -15%;
  animation: float 25s ease-in-out infinite reverse;
}

.login-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(19, 167, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 167, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}

.login-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  animation: fadeUp 0.6s ease-out;
}

/* Brand/Logo */
.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--white);
  font-weight: 700;
  font-size: 26px;
  text-decoration: none;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.login-brand img {
  height: 40px;
  width: auto;
}

.login-brand:hover {
  color: var(--white);
  text-decoration: none;
}

/* Login Card */
.login-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-header h1 {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 28px;
  color: var(--white);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.login-header p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Alert/Error Messages */
.login-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
}

.login-alert i {
  color: #f87171;
  font-size: 16px;
  flex-shrink: 0;
}

/* SSO Section */
.sso-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 10px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.sso-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sso-icon-img {
  height: 20px;
  width: auto;
  flex-shrink: 0;
}

/* Google SSO Button - White background with Google brand colors in icon */
.sso-google {
  background: var(--white);
  color: #1f2937;
  border-color: var(--white);
}

.sso-google:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  color: #1f2937;
  text-decoration: none;
}

/* QuickBooks SSO Button - QuickBooks green brand color */
.sso-quickbooks {
  background: #2CA01C;
  color: var(--white);
  border-color: #2CA01C;
}

.sso-quickbooks:hover {
  background: #249017;
  border-color: #249017;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 160, 28, 0.35);
  color: var(--white);
  text-decoration: none;
}

/* Divider */
.login-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.login-divider span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Login Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-form label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 16px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 15px;
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-family: var(--font-family);
  font-size: 15px;
  color: var(--white);
  transition: all 0.2s ease;
}

.input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(19, 167, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(19, 167, 255, 0.15);
}

.input-wrapper:focus-within i {
  color: var(--primary);
}

/* Login Button */
.btn-login {
  width: 100%;
  margin-top: 4px;
  padding: 16px 32px;
  font-size: 16px;
}

/* Login Footer */
.login-footer {
  margin-top: 20px;
  text-align: center;
}

.forgot-link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Sign Up Prompt */
.signup-prompt {
  text-align: center;
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
}

.signup-prompt a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.signup-prompt a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Mobile Responsive - Login */
@media (max-width: 480px) {
  .login-page {
    padding: 24px 16px;
  }

  .login-brand {
    font-size: 22px;
    margin-bottom: 32px;
  }

  .login-brand img {
    height: 34px;
  }

  .login-card {
    padding: 28px 24px;
    border-radius: 16px;
  }

  .login-header h1 {
    font-size: 24px;
  }

  .sso-btn {
    padding: 12px 16px;
    font-size: 14px;
  }

  .input-wrapper input {
    padding: 12px 14px 12px 44px;
    font-size: 14px;
  }

  .btn-login {
    padding: 14px 28px;
  }
}

/* Policy Pages
   ========================================================================== */
.policy-section {
  padding: 120px 0 80px;
  background: var(--white);
  min-height: calc(100vh - 300px);
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.policy-effective {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-style: italic;
}

.policy-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.policy-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1rem;
}

.policy-content ul {
  margin: 1rem 0 1.5rem 1.5rem;
  padding: 0;
}

.policy-content li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.policy-content a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.2s;
}

.policy-content a:hover {
  color: var(--primary-hover);
}

.policy-content address {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-top: 1rem;
  padding: 1.5rem;
  background: var(--bg-subtle);
  border-radius: 8px;
}

@media (max-width: 767px) {
  .policy-section {
    padding: 100px 0 60px;
  }

  .policy-content h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
  }
}

/* Cookie Policy Tables
   ========================================================================== */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cookie-table th {
  background: var(--bg-subtle);
  font-weight: 600;
  color: var(--dark);
}

.cookie-table td {
  color: var(--text);
}

.cookie-table tbody tr:hover {
  background: var(--bg-subtle);
}

@media (max-width: 767px) {
  .cookie-table {
    font-size: 0.8rem;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 8px 10px;
  }
}

/* Cookie Consent Banner
   ==========================================================================
   Accessibility-first design:
   - WCAG AAA contrast ratios (7:1+ for text)
   - Color-blind friendly: buttons distinguished by fill/outline, not color alone
   - Clear visual hierarchy through weight and contrast
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  border-top: 3px solid var(--primary);
  padding: 20px 24px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-text p {
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.cookie-banner-text a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.cookie-banner-text a:hover {
  color: var(--primary);
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

/* Primary button: Filled style - clearly the main action */
.cookie-btn-primary {
  background: var(--primary);
  color: var(--navy);
  border: 2px solid var(--primary);
}

.cookie-btn-primary:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(19, 167, 255, 0.3);
}

/* Secondary button: Outline style - visually distinct from primary without relying on color */
.cookie-btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.cookie-btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-1px);
}

/* Focus states for keyboard navigation - accessibility */
.cookie-btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .cookie-banner {
    padding: 16px 20px;
  }

  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .cookie-banner-text p {
    font-size: 0.875rem;
  }

  .cookie-banner-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .cookie-btn {
    width: 100%;
    padding: 14px 24px;
  }
}
