/* ========================================
   Contractory Landing Page
   ======================================== */

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

:root {
  --blue-dark: #1a1f3a;
  --blue-primary: #278bd6;
  --blue-bright: #02aef6;
  --blue-light: #5cb1d7;
  --dark: #231f20;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --gradient-blue: linear-gradient(135deg, #02aef6, #278bd6);
  --gradient-hero: linear-gradient(160deg, #0a1628 0%, #12304a 40%, #0f2847 70%, #0a1628 100%);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --transition: 0.2s ease;
}

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

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

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

a {
  text-decoration: none;
  color: inherit;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #02aef6, #278bd6);
  color: var(--white);
  border-color: transparent;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 174, 246, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--blue-primary);
  border-color: var(--blue-primary);
}

.btn-outline:hover {
  background: var(--blue-primary);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.3);
}

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

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius);
}

.btn-block {
  width: 100%;
}

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.nav-logo {
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav.scrolled .nav-logo {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

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

.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 80px 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 174, 246, 0.08) 0%, transparent 70%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 139, 214, 0.06) 0%, transparent 70%);
}

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

.hero-logo-section {
  background: var(--white);
  padding: 140px 0 60px;
  text-align: center;
}

.hero-logo-img {
  height: 260px;
  width: auto;
  padding-left: 18px;
}

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

.hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.text-white {
  color: var(--blue-bright);
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}

.hero-cta .btn-outline {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.3);
}

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

.hero-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #02aef6, #278bd6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   Trusted
   ======================================== */

.trusted {
  padding: 48px 0;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.trusted-label {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}

/* ========================================
   Section Headers
   ======================================== */

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

.section-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

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

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

.features {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(2, 174, 246, 0.1), rgba(39, 139, 214, 0.1));
  color: var(--blue-primary);
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

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

/* ========================================
   How It Works
   ======================================== */

.how-it-works {
  padding: 100px 0;
  background: var(--gray-50);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.step-number {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #02aef6, #278bd6);
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
}

.step-connector {
  width: 80px;
  height: 2px;
  background: var(--gray-300);
  margin-top: 28px;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

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

/* ========================================
   Extraction
   ======================================== */

.extraction {
  padding: 100px 0;
}

.extraction-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.extraction-text h2 {
  font-size: clamp(28px, 3vw, 36px);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.extraction-text > p {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 32px;
}

.extraction-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.extraction-list li {
  padding-left: 24px;
  position: relative;
}

.extraction-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-bright);
}

.extraction-list strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.extraction-list span {
  font-size: 13px;
  color: var(--gray-600);
}

/* JSON Preview */
.json-preview {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #1e1e2e;
}

.json-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #181825;
}

.json-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.json-dot.red { background: #f38ba8; }
.json-dot.yellow { background: #f9e2af; }
.json-dot.green { background: #a6e3a1; }

.json-title {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 8px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.json-body {
  padding: 20px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.6;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

.json-body code {
  color: #cdd6f4;
}

/* ========================================
   Integrations
   ======================================== */

.integrations {
  padding: 100px 0;
  background: var(--gray-50);
}

.integrations-group {
  margin-bottom: 56px;
}

.integrations-group:last-child {
  margin-bottom: 0;
}

.integrations-group-header {
  margin-bottom: 28px;
}

.integrations-group-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.storage-badge {
  background: rgba(2, 174, 246, 0.1);
  color: var(--blue-bright);
}

.workflow-badge {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.integrations-group-header h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.integrations-group-header p {
  font-size: 14px;
  color: var(--gray-600);
  max-width: 640px;
  line-height: 1.7;
}

.integrations-grid-half {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.integrations-grid-third {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.integration-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.integration-card:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow);
}

.integration-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(2, 174, 246, 0.1), rgba(39, 139, 214, 0.1));
  color: var(--blue-primary);
  margin-bottom: 16px;
}

.integration-icon svg {
  width: 24px;
  height: 24px;
}

.integration-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.integration-card p {
  font-size: 13px;
  color: var(--gray-600);
}

/* ========================================
   Security
   ======================================== */

.security {
  padding: 100px 0;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.security-item {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}

.security-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--blue-primary);
}

.security-icon svg {
  width: 24px;
  height: 24px;
}

.security-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.security-item p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ========================================
   Pricing
   ======================================== */

.pricing {
  padding: 100px 0;
  background: var(--gray-50);
}

/* Billing toggle */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.pricing-toggle-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-400);
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}

.pricing-toggle-label.active {
  color: var(--gray-900);
}

.pricing-toggle-save {
  font-size: 12px;
  font-weight: 700;
  color: #02aef6;
  background: rgba(2, 174, 246, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
}

.pricing-toggle-switch {
  width: 48px;
  height: 26px;
  border-radius: 13px;
  background: var(--gray-200);
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
  padding: 0;
}

.pricing-toggle-switch.yearly {
  background: #02aef6;
}

.pricing-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.pricing-toggle-switch.yearly .pricing-toggle-knob {
  transform: translateX(22px);
}

.pricing-detail-row {
  font-size: 14px;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.pricing-detail-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
}

.pricing-detail-icon.seat-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2302aef6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.pricing-detail-icon.token-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2302aef6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a4 4 0 0 1 4 4v1a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V6a4 4 0 0 1 4-4z'/%3E%3Cpath d='M5 10h14l1 12H4L5 10z'/%3E%3Cpath d='M9 14l2 2 4-4'/%3E%3C/svg%3E");
}

.pricing-detail-sub {
  font-size: 12px;
  color: var(--gray-400);
  margin-left: 24px;
  margin-bottom: 4px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: subgrid;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  position: relative;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
}

.pricing-card-featured {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 1px var(--blue-primary), var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #02aef6, #278bd6);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* Block: Header (name + description) */
.pricing-block.pricing-header {
  margin-bottom: 0;
}

.pricing-header h3 {
  font-size: 22px;
  margin-bottom: 4px;
}

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

/* Block: Price */
.pricing-block.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 0;
}

.price-currency {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-600);
}

.price-amount {
  font-size: 44px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

.price-period {
  font-size: 13px;
  color: var(--gray-400);
}

/* Block: Seats & tokens details */
.pricing-block.pricing-details {
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 0;
}

/* Block: Features */
.pricing-block.pricing-features-wrap {
  padding-top: 12px;
}

.pricing-inherit {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Block: CTA */
.pricing-block.pricing-cta {
  align-self: end;
}

.pricing-features li {
  font-size: 14px;
  color: var(--gray-700);
  padding-left: 24px;
  position: relative;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2302aef6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

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

.cta {
  padding: 100px 0;
  background: var(--gradient-hero);
  position: relative;
}

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

.cta h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--white);
  margin-bottom: 16px;
}

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

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

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

.footer {
  padding: 64px 0 32px;
  background: #0a1628;
  color: rgba(255, 255, 255, 0.6);
}

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

.footer-logo {
  height: 64px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-company {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--blue-bright);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

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

/* Character-by-character text reveal */
.char-span {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px) scale(1.3);
  filter: blur(4px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.char-span.char-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Fade up */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Zoom scroll — JS controls transform directly */
.zoom-scroll {
  will-change: transform, opacity;
}

/* 3D perspective scroll — JS controls transform directly */
.scroll-3d {
  will-change: transform, opacity;
  transform-origin: center bottom;
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stagger-children > .stagger-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide in from left */
.slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide-left.slide-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide in from right */
.slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide-right.slide-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Hero logo entrance */
.hero-logo-img {
  animation: logoEntrance 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
    padding-left: 18px;
  }
}

/* Button hover shimmer */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::after {
  left: 100%;
}

/* Feature card hover lift */
.feature-card {
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
}

/* Integration card hover */
.integration-card {
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Pricing card hover */
.pricing-card {
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

@media (max-width: 1024px) {
  .features-grid,
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .integrations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    max-width: 600px;
  }

  .pricing-card {
    grid-row: auto;
    display: flex;
    flex-direction: column;
  }

  .extraction-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

@media (max-width: 768px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.mobile-open .nav-links,
  .nav.mobile-open .nav-actions {
    display: flex;
  }

  .nav.mobile-open .nav-inner {
    flex-wrap: wrap;
  }

  .nav.mobile-open .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 16px;
    padding: 24px 0 16px;
    order: 3;
  }

  .nav.mobile-open .nav-actions {
    width: 100%;
    order: 4;
    padding-bottom: 16px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-logo-section {
    padding: 100px 0 40px;
  }

  .hero-logo-img {
    height: 180px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
    margin-top: 48px;
    padding-top: 32px;
  }

  .features-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .integrations-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .integrations-grid-half,
  .integrations-grid-third {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .step {
    padding: 0;
    max-width: 400px;
  }

  .step-connector {
    width: 2px;
    height: 32px;
    margin: 0;
  }

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

/* ========================================
   Language Switcher
   ======================================== */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.04em;
}

.lang-btn:hover {
  color: rgba(255, 255, 255, 0.8);
}

.lang-btn.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.lang-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  user-select: none;
}
