/* =============================================================================
   AuthorityOS Marketing Site
   Matches app branding: dark theme, Plus Jakarta Sans, IBM Plex Mono
   ============================================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #05070a;
  --bg-secondary: #0c1017;
  --bg-tertiary: #131921;
  --bg-elevated: #1a222d;
  --border: #2a3441;
  --border-hover: #3d4f63;
  --text-primary: #e8edf4;
  --text-secondary: #8899ad;
  --text-muted: #5a6a7d;
  --accent: #64b5f6;
  --accent-glow: rgba(100, 181, 246, 0.15);
  --success: #22c55e;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =============================================================================
   Navigation
   ============================================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(5, 7, 10, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =============================================================================
   Hero
   ============================================================================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.highlight {
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.hero-price {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
}

/* Carousel */
.hero-carousel {
  position: relative;
  height: 120px;
  overflow: hidden;
  margin: 1.5rem 0;
}

.carousel-track {
  position: relative;
  height: 100%;
}

.carousel-message {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.6s ease-out;
}

.carousel-message.active {
  opacity: 1;
  transform: translateX(0);
}

.carousel-message.exit {
  opacity: 0;
  transform: translateX(-100%);
}

.carousel-message.stacked {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.carousel-message.stacked span {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
}

.carousel-message.pricing {
  font-size: 1.1rem;
}

.carousel-message .pricing-note {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.highlight-text {
  color: var(--accent);
}

.coming-soon-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* Visual */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.visual-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  width: 320px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.visual-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

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

.visual-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.visual-content {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.visual-line {
  height: 10px;
  background: var(--bg-tertiary);
  border-radius: 4px;
}

.visual-line.w-90 { width: 90%; }
.visual-line.w-85 { width: 85%; }
.visual-line.w-80 { width: 80%; }
.visual-line.w-75 { width: 75%; }
.visual-line.w-60 { width: 60%; }
.visual-line.accent { background: var(--accent-glow); }

.visual-section {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* =============================================================================
   Buttons
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  box-shadow: 0 0 30px var(--accent-glow), 0 8px 24px rgba(100, 181, 246, 0.25);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-secondary:hover {
  background: rgba(100, 181, 246, 0.1);
  transform: translateY(-2px);
}

/* =============================================================================
   Features
   ============================================================================= */

.features {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  transition: opacity 0.4s ease;
}

.feature {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =============================================================================
   Social Proof
   ============================================================================= */

.proof {
  padding: 5rem 2rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.proof-text {
  font-size: 1.375rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.proof-attr {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
}

/* =============================================================================
   CTA Section
   ============================================================================= */

.cta {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-top: 1px solid var(--border);
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.cta > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.signup-form {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto 1rem;
}

.signup-input {
  flex: 1;
  min-width: 240px;
  padding: 0.875rem 1.25rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
}

.signup-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.signup-input::placeholder {
  color: var(--text-muted);
}

.cta-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1rem;
  transition: color 0.3s ease;
}

.success-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  color: var(--success);
  font-weight: 600;
  animation: fadeIn 0.3s ease;
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--success);
  color: var(--bg-primary);
  border-radius: 50%;
  font-size: 0.875rem;
}

/* =============================================================================
   Footer
   ============================================================================= */

.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* =============================================================================
   Animations
   ============================================================================= */

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

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
    padding-top: 7rem;
  }

  .hero-cta {
    align-items: center;
  }

  .hero-visual {
    order: -1;
  }

  .visual-card {
    width: 280px;
  }
}

@media (max-width: 600px) {
  .nav {
    padding: 1rem;
  }

  .hero {
    padding: 6rem 1.5rem 3rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .features, .cta {
    padding: 4rem 1.5rem;
  }

  .proof {
    padding: 3rem 1.5rem;
  }

  .proof-text {
    font-size: 1.125rem;
  }

  .signup-form {
    flex-direction: column;
  }

  .signup-input {
    width: 100%;
  }
}
