/* Authenticas - Black & White Theme (Cursor-inspired) */

:root {
  --primary: #ffffff;
  --primary-dark: #e5e5e5;
  --accent: #a3a3a3;
  --gradient: #ffffff;
  
  --gray-50: #0a0a0a;
  --gray-100: #0f0f0f;
  --gray-200: #171717;
  --gray-300: #262626;
  --gray-400: #404040;
  --gray-500: #525252;
  --gray-600: #737373;
  --gray-700: #a3a3a3;
  --gray-800: #d4d4d4;
  --gray-900: #e5e5e5;
  --gray-950: #fafafa;
  
  --success: #22c55e;
  --error: #ef4444;
  --white: #ffffff;
  --black: #000000;
  --bg: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #0f0f0f;
  --border: #262626;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -1px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -2px rgba(0,0,0,0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5), 0 10px 10px -5px rgba(0,0,0,0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inclusive Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--white);
  font-weight: 400;
  line-height: 1.2;
}

.gradient-text {
  color: #ffffff;
}

.gradient-text-light {
  color: #ffffff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  background: var(--gray-900);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
}

.btn-ghost:hover {
  color: var(--white);
  background: var(--gray-300);
}

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

.btn-white:hover {
  background: var(--gray-900);
}

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

.btn-outline:hover {
  background: var(--gray-300);
  border-color: var(--gray-500);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  backdrop-filter: blur(12px);
  border-bottom: none;
  z-index: 1000;
  transition: border-color 0.2s;
}

.nav.scrolled {
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
}

.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
}

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

.nav-toggle {
  display: none;
}

/* Hero Section */
.hero {
  padding: 140px 0 80px;
  background: var(--bg);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.hero-title {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 20px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s;
}

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

.hero-card-image {
  height: 150px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-image svg {
  width: 100%;
  height: 100%;
}

.hero-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--white);
}

.hero-card p {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  text-decoration: none;
}

.card-link:hover {
  gap: 10px;
  color: var(--gray-700);
}

/* Customers Section */
.customers {
  padding: 80px 0;
  text-align: center;
  background: var(--bg-secondary);
  color: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.customers-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.customers-title {
  font-size: 36px;
  color: var(--white);
  margin-bottom: 16px;
}

.customers-link {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 14px;
}

.customers-link:hover {
  color: var(--white);
}

.logo-carousel {
  margin-top: 48px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
  display: flex;
  gap: 48px;
  animation: scroll 30s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.customer-logo {
  flex-shrink: 0;
  padding: 16px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 400;
  color: var(--gray-600);
  white-space: nowrap;
}

/* Section Styles */
.section-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 16px;
  text-align: center;
}

.section-title {
  font-size: 40px;
  text-align: center;
  margin-bottom: 16px;
}

.section-description {
  font-size: 18px;
  color: var(--gray-600);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* Features Section */
.features-section {
  padding: 100px 0;
  background: var(--bg);
}

.feature-blocks {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.feature-block.reverse {
  direction: rtl;
}

.feature-block.reverse > * {
  direction: ltr;
}

.feature-block-content h3 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--white);
}

.feature-block-content p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
}

.feature-block-image {
  display: flex;
  justify-content: center;
}

.feature-visual {
  position: relative;
}

/* Visual Cards */
.visual-card {
  width: 200px;
  padding: 20px;
  background: var(--gray-300);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.visual-card.offset {
  position: absolute;
  top: 40px;
  left: 100px;
}

.visual-header {
  width: 60px;
  height: 8px;
  background: var(--white);
  border-radius: 4px;
  margin-bottom: 16px;
}

.visual-header.alt {
  background: var(--gray-600);
}

.visual-line {
  height: 6px;
  background: var(--gray-400);
  border-radius: 3px;
  margin-bottom: 8px;
}

.visual-line.short {
  width: 60%;
}

.visual-button {
  width: 80px;
  height: 28px;
  background: var(--white);
  border-radius: 6px;
  margin-top: 16px;
}

.visual-button.alt {
  background: var(--gray-600);
}

/* Limit Visual */
.limit-visual {
  width: 280px;
  padding: 24px;
  background: var(--gray-300);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.limit-bar {
  height: 12px;
  background: var(--gray-400);
  border-radius: 6px;
  overflow: hidden;
}

.limit-fill {
  height: 100%;
  background: var(--white);
  border-radius: 6px;
}

.limit-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--gray-600);
}

/* Webhook Visual */
.webhook-visual {
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.code-key { color: #a3a3a3; }
.code-string { color: #ffffff; }
.code-number { color: #d4d4d4; }

/* Audit Visual */
.audit-visual {
  width: 280px;
  padding: 16px;
  background: var(--gray-300);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.audit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.audit-row:last-child {
  border-bottom: none;
}

.audit-time {
  font-size: 12px;
  color: var(--gray-600);
  font-family: monospace;
}

.audit-status {
  font-size: 11px;
  font-weight: 400;
  padding: 4px 8px;
  border-radius: 4px;
}

.audit-status.approved {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.audit-status.denied {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.audit-amount {
  margin-left: auto;
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
}

/* Stages Section */
.stages-section {
  padding: 100px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stages-header {
  text-align: center;
  margin-bottom: 60px;
}

.stages-header h2 {
  font-size: 40px;
}

.stages-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.stages-images {
  position: relative;
  height: 300px;
}

.stage-image {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.stage-image.active {
  opacity: 1;
}

.stage-image svg {
  width: 100%;
  max-width: 300px;
}

.stages-tabs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stage-tab {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.stage-tab:hover {
  border-color: var(--gray-500);
}

.stage-tab.active {
  border-color: var(--white);
  box-shadow: var(--shadow-md);
}

.stage-tab h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--white);
}

.stage-tab p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.stage-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stage-features a {
  font-size: 12px;
  padding: 6px 12px;
  background: var(--gray-300);
  color: var(--gray-700);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}

.stage-features a:hover {
  background: var(--white);
  color: var(--black);
}

/* Integration Section */
.integration-section {
  padding: 100px 0;
  background: var(--bg);
}

.code-tabs {
  max-width: 700px;
  margin: 48px auto 0;
}

.code-tab-buttons {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  background: var(--gray-300);
  padding: 4px;
  border-radius: 10px 10px 0 0;
}

.code-tab-btn {
  padding: 10px 20px;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-600);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.code-tab-btn:hover {
  color: var(--white);
}

.code-tab-btn.active {
  background: var(--bg);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.code-block pre {
  padding: 24px;
  overflow-x: auto;
}

.code-block code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray-700);
}

.code-keyword { color: #ffffff; }
.code-string { color: #a3a3a3; }

/* Testimonials Section */
.testimonials-section {
  padding: 100px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonials-carousel {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
}

.carousel-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--gray-600);
}

.carousel-btn:hover {
  border-color: var(--gray-500);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.testimonials-track {
  flex: 1;
  display: flex;
  gap: 24px;
  overflow: hidden;
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: none;
}

.testimonial-card.active {
  display: block;
}

.testimonial-text {
  font-size: 20px;
  line-height: 1.6;
  color: var(--white);
  margin-bottom: 24px;
}

.testimonial-text strong {
  color: var(--white);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--gray-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 400;
  font-size: 14px;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 400;
  color: var(--white);
}

.author-role {
  font-size: 14px;
  color: var(--gray-600);
}

/* CTA Section */
.cta-section {
  padding: 120px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-eyebrow {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.cta-content h2 {
  font-size: 48px;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-description {
  font-size: 18px;
  color: var(--gray-600);
  margin-bottom: 32px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Footer */
.footer {
  padding: 64px 0 32px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
}

.footer-logo .logo-icon {
  width: 32px;
  height: 32px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h4 {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-column a {
  display: block;
  font-size: 14px;
  color: var(--gray-600);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--gray-500);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .hero-cards {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .feature-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .feature-block.reverse {
    direction: ltr;
  }
  
  .stages-content {
    grid-template-columns: 1fr;
  }
  
  .stages-images {
    display: none;
  }
  
  .testimonials-carousel {
    flex-direction: column;
  }
  
  .carousel-btn {
    display: none;
  }
  
  .cta-content h2 {
    font-size: 32px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .nav-actions {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  
  .nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
  }
}
