/* ==========================================================================
   TriRise AI (tririseai.com) - TriDoc AI Promotional Static Website
   Design System: Clean White-Based SaaS Aesthetic
   ========================================================================== */

:root {
  /* Color Palette - White Base with Vibrant Accents */
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-dark-accent: #0f172a;
  
  /* Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* Primary Brand Colors (Emerald & Indigo SaaS highlights) */
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: #ecfdf5;
  --primary-border: #a7f3d0;
  
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-light: #eef2ff;
  --accent-border: #c7d2fe;

  --cyan-accent: #0891b2;
  --cyan-light: #ecfeff;

  /* UI Gradients */
  --gradient-primary: linear-gradient(135deg, #059669 0%, #0d9488 50%, #4f46e5 100%);
  --gradient-hero-bg: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08) 0%, rgba(79, 70, 229, 0.04) 40%, rgba(255, 255, 255, 0) 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.8) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.6) 100%);

  /* Borders & Shadows */
  --border-light: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-active: #10b981;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.08), 0 10px 15px -5px rgba(15, 23, 42, 0.03);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.2);

  /* Fonts & Spacing */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Helpers */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--primary-border);
  margin-bottom: 1rem;
}

.section-tag.blue {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent-border);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 3rem auto;
}

/* Header & Sticky Glass Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-domain {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  margin-left: 0.3rem;
  font-weight: 600;
}

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

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.nav-actions .btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}

/* Language Switcher Dropdown */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.lang-switcher select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
}

/* RTL Layout Adjustments (UAE Arabic 🇦🇪) */
html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .search-icon {
  left: auto;
  right: 0.9rem;
}

html[dir="rtl"] .search-input {
  padding: 0.6rem 2.5rem 0.6rem 1rem;
}

html[dir="rtl"] .popular-ribbon {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
}

/* Button Component Suite */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

.btn-accent {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #7c3aed 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
  color: white;
}

.btn-secondary {
  background: var(--bg-main);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 4rem 0 5rem 0;
  background: var(--gradient-hero-bg);
  text-align: center;
  overflow: hidden;
}

.hero-content {
  max-width: 880px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
}

.hero-pill .badge {
  background: var(--gradient-primary);
  color: white;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-item svg {
  color: var(--primary);
}

/* Hero Showcase Mockup */
.hero-mockup-wrapper {
  margin-top: 3.5rem;
  position: relative;
  border-radius: var(--radius-lg);
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.hero-mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: 1px solid var(--border-light);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.dot.red { background: #f87171; }
.dot.yellow { background: #fbbf24; }
.dot.green { background: #34d399; }

.window-url {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  background: var(--bg-main);
  padding: 0.2rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.hero-mockup-img {
  width: 100%;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  object-fit: cover;
}

/* Live Interactive Playground Section */
.playground-section {
  padding: 6rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.playground-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-sm);
}

.playground-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Simulator 1: AI Chat Demo */
.sim-chat-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.sim-msg {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  line-height: 1.5;
  font-size: 0.95rem;
}

.sim-msg.user {
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  align-self: flex-end;
  max-width: 80%;
}

.sim-msg.ai {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  align-self: flex-start;
  width: 100%;
}

.sim-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.sim-avatar.ai { background: var(--primary); color: white; }
.sim-avatar.user { background: var(--accent); color: white; }

.citation-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.sim-input-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.sim-input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  outline: none;
}

.sim-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* Simulator 2: PII Redaction Demo */
.redaction-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.doc-sample {
  background: var(--bg-subtle);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-size: 0.9rem;
  line-height: 1.8;
}

.redacted-item {
  background: #0f172a;
  color: #0f172a;
  padding: 0 0.4rem;
  border-radius: 3px;
  user-select: none;
  transition: var(--transition);
  position: relative;
}

.redacted-item.unmask {
  background: #fee2e2;
  color: #991b1b;
}

/* Comprehensive Tools & Features Grid */
.features-section {
  padding: 6rem 0;
  background: var(--bg-main);
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--text-primary);
  color: var(--text-inverse);
  border-color: var(--text-primary);
}

.search-wrapper {
  position: relative;
  min-width: 280px;
}

.search-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  font-size: 0.9rem;
  background: var(--bg-subtle);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.75rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-lg);
}

.tool-card-top {
  margin-bottom: 1.5rem;
}

.tool-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-light);
  color: var(--primary);
  transition: var(--transition);
}

.tool-card:hover .tool-icon-box {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
}

.tool-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.tool-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.tool-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.tool-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.spec-chip {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
}

/* Visual Workflow Simulation Section */
.workflow-section {
  padding: 6rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.workflow-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.workflow-nodes {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.wf-node {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.wf-node.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  background: var(--primary-light);
}

.wf-node-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.wf-node-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.wf-node-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ROI Calculator Section */
.roi-section {
  padding: 6rem 0;
  background: var(--bg-main);
}

.roi-card {
  background: var(--gradient-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.roi-controls {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.95rem;
}

.roi-slider {
  width: 100%;
  accent-color: var(--primary);
  height: 6px;
  border-radius: 3px;
  cursor: pointer;
}

.roi-output-box {
  background: var(--bg-dark-accent);
  color: var(--text-inverse);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.roi-big-number {
  font-size: 3.2rem;
  font-weight: 800;
  color: #34d399;
  letter-spacing: -0.03em;
  margin: 0.5rem 0;
}

/* Global Office Addresses Section */
.offices-section {
  padding: 6rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
}

.offices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.office-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.office-flag {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.office-city {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.placeholder-badge {
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  font-weight: 700;
}

.office-address-lines {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.office-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}

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

.contact-row svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Pricing Section (Capacity-Based Model) */
.pricing-section {
  padding: 6rem 0;
  background: var(--bg-main);
}

.pricing-promo-banner {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary-hover);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2rem auto;
  box-shadow: var(--shadow-sm);
}

.billing-toggle-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  background: var(--bg-subtle);
  padding: 6px;
  border-radius: var(--radius-full);
  max-width: 420px;
  margin: 0 auto 3rem auto;
  border: 1px solid var(--border-light);
}

.billing-toggle-btn {
  flex: 1;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
}

.billing-toggle-btn.active {
  background: var(--bg-main);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.popular-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  margin: 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.plan-feature-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* API Developer Section */
.api-section {
  padding: 6rem 0;
  background: var(--bg-dark-accent);
  color: var(--text-inverse);
}

.api-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.code-block {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #e2e8f0;
  overflow-x: auto;
  line-height: 1.6;
}

.code-keyword { color: #f43f5e; }
.code-string { color: #34d399; }
.code-func { color: #38bdf8; }

/* Contact Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 1px solid var(--border-light);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  background: var(--bg-subtle);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  background: var(--bg-main);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* Footer Section */
.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col-brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Projects Showcase Section */
.projects-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-card.docs-card {
  border-color: #a7f3d0;
  background: radial-gradient(circle at 100% 0%, rgba(5, 150, 105, 0.05) 0%, #ffffff 50%);
}

.project-card.docs-card:hover {
  border-color: #059669;
}

.project-card.hr-card {
  border-color: #c7d2fe;
  background: radial-gradient(circle at 100% 0%, rgba(79, 70, 229, 0.05) 0%, #ffffff 50%);
}

.project-card.hr-card:hover {
  border-color: #4f46e5;
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.project-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.docs-icon {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
}

.hr-icon {
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
}

.project-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.docs-pill {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.hr-pill {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.project-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 0.35rem;
  letter-spacing: -0.02em;
}

.project-url-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  color: #334155;
  border: 1px solid var(--border-light);
}

.project-url-badge.hr-badge {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
}

.project-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.project-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.project-features-list li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.project-features-list li strong {
  color: var(--text-primary);
}

.project-features-list li::before {
  content: "✓";
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}

.project-card.hr-card .project-features-list li::before {
  color: var(--accent);
}

.project-card-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.project-launch-btn {
  width: 100%;
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

/* Tool affiliation tags on feature cards */
.tool-affiliation-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-left: auto;
}

.tool-affiliation-tag.docs {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.tool-affiliation-tag.hr {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.hr-tool-btn {
  border-color: var(--accent-border) !important;
  color: var(--accent) !important;
}

.hr-tool-btn:hover {
  background: var(--accent-light) !important;
  border-color: var(--accent) !important;
}

/* Hero Mockup Project Switcher */
.preview-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f1f5f9;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  margin-left: 0.75rem;
}

.preview-tab {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  border: none;
}

.preview-tab.active {
  background: white;
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Dual Product Pricing Switcher */
.pricing-product-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem auto 2.5rem auto;
  max-width: 640px;
}

.product-switch-btn {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid var(--border-light);
  background: white;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.product-switch-btn:hover {
  border-color: var(--primary);
  color: var(--text-primary);
}

.product-switch-btn.active.docs-switch {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.15);
}

.product-switch-btn.active.hr-switch {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.15);
}

/* Modular Tool Pricing Calculator */
.pricing-view {
  display: none;
}

.pricing-view.active {
  display: block;
}

.modular-pricing-layout {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}

.modular-tools-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.modular-tool-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
  background: white;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  user-select: none;
}

.modular-tool-card:hover:not(.complimentary) {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.modular-tool-card.selected {
  border-color: var(--primary);
  background: #f0fdf4;
}

.modular-tool-card.complimentary {
  background: #f8fafc;
  border-color: #e2e8f0;
  cursor: default;
}

.modular-tool-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modular-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

.modular-tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--bg-subtle);
  flex-shrink: 0;
}

.modular-tool-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modular-tool-info p {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.complimentary-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  background: #dcfce7;
  color: #15803d;
  border-radius: var(--radius-full);
}

.base-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  background: #e0e7ff;
  color: #4338ca;
  border-radius: var(--radius-full);
}

.modular-tool-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  text-align: right;
  margin-left: 1rem;
}

.modular-tool-price small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Sticky Summary Card */
.modular-summary-card {
  background: white;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-md);
}

.summary-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.summary-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.summary-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
}

.summary-row.bold {
  font-weight: 700;
  color: var(--text-primary);
}

.summary-total-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
  border: 1px solid var(--border-light);
}

.summary-total-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-total-amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin: 0.35rem 0;
}

.summary-total-amount span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-gateway-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.85rem;
  line-height: 1.4;
}

.trust-shield-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.trust-shield-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .offices-grid { grid-template-columns: 1fr; }
  .workflow-container, .roi-card, .api-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-toggle { display: block; }
  .hero-title { font-size: 2.2rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .redaction-demo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
