/* DocuSign IAM Landing Page Styles */
:root {
  --brand-purple: #5B21B6;
  --brand-purple-dark: #4C1D95;
  --brand-purple-light: #8B5CF6;
  --brand-cyan: #00E5FF;
  --text-dark: #111827;
  --text-gray: #4B5563;
  --bg-light: #FAF5FF;
  --white: #FFFFFF;
  --border-color: #E5E7EB;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.section-padding {
  padding: 120px 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: #1F2937; color: var(--white); }
.bg-purple-light { background-color: #EDE9FE; }
.bg-cyan-light { background-color: #CFFAFE; }

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-title {
  font-size: 48px;
  text-align: center;
  margin-bottom: 24px;
  color: inherit;
}
.section-title.text-left { text-align: left; }
.section-subtitle {
  text-align: center;
  font-size: 20px;
  color: var(--text-gray);
  margin-bottom: 64px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn-primary {
  background-color: var(--brand-purple);
  color: var(--white);
  border: none;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover {
  background-color: var(--brand-purple-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  padding: 15px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-outline:hover {
  background-color: var(--bg-light);
  border-color: var(--text-dark);
}
.btn-outline.white {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline.white:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-purple);
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s;
}
.link-arrow:hover {
  gap: 12px;
}
.link-arrow svg {
  width: 16px;
  height: 16px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 24px;
  height: 24px;
}
.lm-sq { border-radius: 3px; background: var(--text-dark); }
.lm-sq-r { background: #EF4444; }
.lm-sq-p { background: var(--brand-purple); }
.logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.04em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-item {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
}
.nav-item > a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.nav-item > a:hover { color: var(--brand-purple); }

.nav-link-sub {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 600;
}
.btn-nav {
  background: var(--brand-purple);
  color: var(--white);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--brand-purple-dark); }

/* Hero Section */
.hero {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
  background: linear-gradient(135deg, #4C1D95 0%, #312E81 100%);
  position: relative;
  display: flex;
  align-items: center;
  padding: 100px 0;
  overflow: hidden;
}
.hero-bg-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}
.gc-1 { width: 800px; height: 800px; background: rgba(139, 92, 246, 0.4); top: -300px; left: -200px; }
.gc-2 { width: 600px; height: 600px; background: rgba(0, 229, 255, 0.2); bottom: -200px; right: -200px; }
.gc-3 { width: 500px; height: 500px; background: rgba(167, 139, 250, 0.3); top: 30%; right: 30%; }
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.6;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 10;
}
.hero-content {
  color: var(--white);
}
.badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--white);
  backdrop-filter: blur(4px);
}
.hero-title {
  font-size: 72px;
  line-height: 1.05;
  margin-bottom: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.hero-subtitle {
  font-size: 22px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 48px;
  line-height: 1.6;
  font-weight: 400;
}
.error-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.trust-badges {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 32px;
}
.trust-badges p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  font-weight: 500;
}
.tb-logos {
  display: flex;
  gap: 24px;
}
.tb-logos span {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  opacity: 0.8;
}

/* Hero Visual (Error Mockup) */
.hero-visual {
  position: relative;
  perspective: 1200px;
}
.error-mockup {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
  overflow: hidden;
  transform: rotateY(-8deg) rotateX(8deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.error-mockup:hover {
  transform: rotateY(0) rotateX(0);
}
.em-header {
  background: #F3F4F6;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 24px;
}
.em-dots { display: flex; gap: 8px; }
.em-dot { width: 14px; height: 14px; border-radius: 50%; background: #D1D5DB; }
.em-dot:nth-child(1) { background: #EF4444; }
.em-dot:nth-child(2) { background: #F59E0B; }
.em-dot:nth-child(3) { background: #10B981; }
.em-url {
  flex: 1;
  background: var(--white);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-gray);
  font-family: monospace;
  border: 1px solid var(--border-color);
}
.em-body {
  padding: 64px 48px;
  text-align: center;
  color: var(--text-dark);
}
.em-icon-wrap {
  width: 80px;
  height: 80px;
  background: #FEE2E2;
  color: #EF4444;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
}
.em-body h3 {
  font-size: 32px;
  margin-bottom: 16px;
}
.em-body p {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 40px;
  line-height: 1.6;
}
.em-details {
  background: #F9FAFB;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  text-align: left;
}
.emd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}
.emd-row:last-child { border-bottom: none; padding-bottom: 0; }
.emd-row:first-child { padding-top: 0; }
.emd-row span:first-child { color: var(--text-gray); font-weight: 500; }
.status-badge {
  background: #FEE2E2;
  color: #B91C1C;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
}

/* Explanation Section */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.exp-desc {
  font-size: 20px;
  color: var(--text-gray);
  margin-bottom: 48px;
}
.feature-list {
  list-style: none;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}
.fl-icon {
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-purple);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.fl-icon svg { width: 24px; height: 24px; }
.feature-list li strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}
.feature-list li p {
  color: var(--text-gray);
  font-size: 16px;
}

.recovery-card {
  background: var(--white);
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}
.recovery-card h3 {
  font-size: 28px;
  margin-bottom: 40px;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.timeline-item {
  display: flex;
  gap: 24px;
  position: relative;
}
.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 24px;
  top: 48px;
  bottom: -32px;
  width: 2px;
  background: var(--border-color);
}
.timeline-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--brand-purple);
  font-size: 18px;
  flex-shrink: 0;
  z-index: 2;
  border: 4px solid var(--white);
}
.timeline-copy strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}
.timeline-copy p {
  color: var(--text-gray);
  font-size: 15px;
}

/* IAM Features */
.iam-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.iam-card {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s, box-shadow 0.3s;
}
.iam-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.iam-card-img {
  height: 240px;
  border-radius: 16px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
}
.iam-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
}
.iam-card p {
  color: var(--text-gray);
  font-size: 16px;
}

/* Mock UIs */
.mock-ui {
  background: var(--white);
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mui-header { font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
.mui-search { background: var(--bg-light); padding: 8px 12px; border-radius: 6px; font-size: 12px; color: var(--text-gray); }
.mui-results { display: flex; flex-direction: column; gap: 8px; }
.mui-row { display: flex; justify-content: space-between; align-items: center; padding: 8px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 12px; font-weight: 500; }
.badge-sm { padding: 2px 8px; border-radius: 12px; font-size: 10px; background: #E6F4EA; color: #1E8E3E; }

.mock-ui.mobile { width: 140px; margin: 0 auto; }
.mui-doc-mini { flex: 1; background: var(--bg-light); border-radius: 6px; border: 1px dashed var(--border-color); }
.mui-btn { background: var(--brand-purple); color: var(--white); text-align: center; padding: 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }

.mock-code {
  font-family: monospace;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.text-green { color: #10B981; }

/* Integrations */
.int-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}
.int-desc {
  font-size: 20px;
  color: var(--text-gray);
  margin-bottom: 40px;
}
.int-logos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.int-logo-box {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-gray);
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}
.int-logo-box:hover {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-card {
  padding: 48px 32px;
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s;
}
.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.stat-num {
  font-size: 56px;
  font-weight: 800;
  color: var(--brand-purple);
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}
.stat-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-gray);
}

/* Footer */
.footer {
  background: var(--white);
  padding: 100px 0 40px;
  border-top: 1px solid var(--border-color);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}
.brand-col .logo { margin-bottom: 32px; }
.footer-desc {
  color: var(--text-gray);
  font-size: 16px;
  max-width: 300px;
}
.footer-col h4 {
  font-size: 18px;
  margin-bottom: 32px;
}
.footer-col a {
  display: block;
  color: var(--text-gray);
  text-decoration: none;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--brand-purple); }

.country-selector.dark {
  background: var(--white);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 24px;
  font-weight: 600;
  cursor: pointer;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  font-size: 15px;
  color: var(--text-gray);
  font-weight: 500;
}
.footer-links-btm {
  display: flex;
  gap: 32px;
}
.footer-links-btm a {
  color: var(--text-gray);
  text-decoration: none;
}
.footer-links-btm a:hover {
  color: var(--brand-purple);
}

/* Animations */
.animate-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.animate-up.in-view {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Responsive */
@media (max-width: 1200px) {
  .hero-title { font-size: 56px; }
  .hero-container, .exp-grid, .int-grid { grid-template-columns: 1fr; gap: 64px; }
  .iam-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 40px; }
  .error-actions { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 24px; text-align: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .int-logos-grid { grid-template-columns: 1fr 1fr; }
}