/* Custom Design System variables - RentMate Brand Colors */
:root {
  /* Default Light Theme (Estate Trust) */
  --bg-primary: hsl(216, 33%, 97%); /* #F5F7FA */
  --bg-secondary: hsl(0, 0%, 100%); /* #FFFFFF */
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(200, 18%, 84%, 0.5);
  --card-border-hover: rgba(13, 71, 161, 0.35);
  
  --primary-color: hsl(216, 85%, 34%); /* #0D47A1 */
  --primary-hover: hsl(216, 85%, 28%);
  --secondary-color: hsl(204, 82%, 94%); /* #E3F2FD */
  --secondary-hover: hsl(204, 82%, 88%);
  
  --accent-cyan: hsl(216, 85%, 34%);
  --accent-cyan-glow: rgba(13, 71, 161, 0.15);
  --accent-teal: hsl(123, 46%, 34%); /* #2E7D32 */
  --accent-hover: hsl(216, 85%, 28%);
  
  --text-primary: hsl(234, 66%, 30%); /* #1A237E */
  --text-secondary: hsl(200, 18%, 26%); /* #37474F */
  --text-muted: hsl(200, 10%, 48%);
  
  --success-green: hsl(123, 46%, 34%);
  --error-red: hsl(0, 66%, 47%);
  --border-color: hsl(200, 18%, 84%);
  --input-bg: rgba(255, 255, 255, 0.9);
  
  /* Logo Colors */
  --logo-navy: #152640;
  --logo-green: #4E9F75;
  
  --btn-primary-bg: linear-gradient(135deg, hsl(216, 85%, 34%) 0%, hsl(216, 85%, 44%) 100%);
  --btn-primary-text: hsl(0, 0%, 100%);
  --btn-secondary-bg: hsl(204, 82%, 94%);
  --btn-secondary-text: hsl(216, 85%, 34%);
  --btn-secondary-border: hsl(200, 18%, 84%);
  --header-bg: rgba(245, 247, 250, 0.85);
  
  --font-primary: 'Assistant', sans-serif;
  --font-accent: 'Outfit', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
}

body.dark {
  /* Modern Real Estate Dark Theme (Navy & Sage) */
  --bg-primary: hsl(220, 40%, 8%);
  --bg-secondary: hsl(220, 40%, 12%);
  --card-bg: rgba(30, 41, 59, 0.45);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-border-hover: rgba(215, 100, 70%, 0.4);
  
  --primary-color: hsl(215, 100%, 70%);
  --primary-hover: hsl(215, 100%, 65%);
  --secondary-color: hsl(215, 28%, 17%);
  --secondary-hover: hsl(215, 28%, 23%);
  
  --accent-cyan: hsl(215, 100%, 70%);
  --accent-cyan-glow: rgba(215, 100, 70%, 0.15);
  --accent-teal: hsl(142, 70%, 49%);
  --accent-hover: hsl(215, 100%, 65%);
  
  --text-primary: hsl(210, 20%, 98%);
  --text-secondary: hsl(215, 20%, 75%);
  --text-muted: hsl(215, 16%, 52%);
  
  --success-green: hsl(142, 70%, 49%);
  --error-red: hsl(8, 50%, 51%);
  --border-color: hsl(215, 28%, 17%);
  --input-bg: rgba(15, 23, 42, 0.6);
  
  /* Logo Colors Dark Mode */
  --logo-navy: #FFFFFF;
  --logo-green: #4E9F75;
  
  --btn-primary-bg: linear-gradient(135deg, hsl(215, 100%, 70%) 0%, hsl(215, 100%, 60%) 100%);
  --btn-primary-text: hsl(220, 40%, 8%);
  --btn-secondary-bg: hsl(215, 28%, 17%);
  --btn-secondary-text: hsl(210, 20%, 98%);
  --btn-secondary-border: hsl(215, 28%, 23%);
  --header-bg: rgba(8, 18, 30, 0.8);
}

/* Global Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  overflow-x: hidden;
  max-width: 100%;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-accent);
  font-weight: 700;
  line-height: 1.2;
}

p {
  line-height: 1.6;
  color: var(--text-secondary);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--accent-hover);
}

/* Background Ambient Glows */
.bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.15;
}

.bg-glow-1 {
  top: 10%;
  left: -100px;
  background: var(--accent-cyan);
}

.bg-glow-2 {
  top: 60%;
  right: -100px;
  background: var(--accent-teal);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: 0 4px 20px var(--accent-cyan-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-cyan-glow);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid var(--btn-secondary-border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  opacity: 0.9;
  border-color: var(--btn-secondary-text);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--secondary-color);
  border-color: var(--primary-color);
  color: var(--text-primary);
}

.btn-block {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
}

.badge {
  display: inline-flex;
  padding: 6px 16px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 100px;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.badge-accent {
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.2);
  color: var(--accent-teal);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: var(--font-accent);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

/* Logo T span styling removed for solid branding */

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  font-weight: 500;
  color: var(--text-secondary);
}

nav a:hover {
  color: var(--text-primary);
}

/* Hero Section with Video Backing */
.hero-video-section {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none; /* Prevent interception of mouse events */
}

.hero-video-wrapper canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  display: block;
}

.scroll-down-hint {
  position: relative;
  z-index: 10;
  margin-bottom: 40px;
}

.scroll-down-arrow {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounceArrow 2s infinite;
}

@keyframes bounceArrow {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* Hero Text Section (Starts Below Video) */
.hero-text-section {
  position: relative;
  z-index: 10;
  background-color: transparent;
  padding: 60px 24px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  position: relative;
  max-width: 800px;
  z-index: 10;
  text-align: center;
  margin: 0 auto;
}

/* Desktop Fixed Background scroll sequence */
@media (min-width: 768px) {
  .hero-video-wrapper {
    overflow: visible; /* Allow fixed canvas to break out and cover viewport */
  }
  .hero-video-wrapper canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
  }
  /* Stacking contexts for content sections above fixed background */
  .hero-text-section,
  .benefits-section,
  .features-section,
  .calculator-section,
  .waitlist-section,
  .academy-section,
  .contact-section {
    position: relative;
    z-index: 10;
  }
}

@media (max-width: 768px) {
  .hero-video-section {
    height: 60vh;
  }
  .hero-text-section {
    padding: 60px 16px;
  }
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, 
    rgba(8, 18, 30, 0.6) 0%, 
    var(--bg-primary) 90%
  );
}


.hero-title {
  font-size: 3.5rem;
  margin-bottom: 24px;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

/* Features (Bento Grid) Section */
.features-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 32px 0 rgba(13, 71, 161, 0.03);
}

.bento-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px 0 rgba(13, 71, 161, 0.08), 0 0 0 1px var(--card-border-hover);
}

.card-large {
  grid-column: span 2;
  min-height: 380px;
}

.card-medium {
  grid-column: span 1;
  min-height: 380px;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.card-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Bento Card Visual Mockups */
.card-preview {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: var(--bg-primary);
  border-top: 1px solid var(--card-border);
  border-top-left-radius: var(--border-radius-md);
  border-top-right-radius: var(--border-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-line {
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  width: 80%;
}

.mockup-line.accent-line {
  width: 40%;
  background: var(--accent-cyan);
}

.mockup-bar {
  height: 30px;
  background: var(--border-color);
  border-radius: 6px;
  width: 90%;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.mockup-bar.accent-bar {
  border-left: 3px solid var(--accent-teal);
  background: rgba(20, 184, 166, 0.05);
}

/* Waitlist Form Section */
.waitlist-section {
  max-width: 750px;
  margin: 0 auto;
  padding: 100px 24px;
}

.waitlist-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.waitlist-header {
  text-align: center;
  margin-bottom: 40px;
}

.waitlist-header h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.waitlist-header p {
  color: var(--text-secondary);
}

/* Forms styling */
form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
  background: var(--input-bg);
}

/* Errors */
.error-msg {
  font-size: 0.8rem;
  color: var(--error-red);
  margin-top: 4px;
  display: none;
}

.form-group.has-error input,
.form-group.has-error select {
  border-color: var(--error-red);
  background: rgba(239, 68, 68, 0.05);
}

.form-group.has-error .error-msg,
.consent-group.has-error .error-msg {
  display: block;
}

/* Compliance Checkboxes */
.consent-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.consent-checkbox-container {
  display: flex;
  align-items: flex-start;
  position: relative;
  cursor: pointer;
  font-size: 0.85rem;
  user-select: none;
  gap: 12px;
}

.consent-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  min-width: 20px;
  height: 20px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: var(--transition-smooth);
  display: inline-block;
  position: relative;
}

.consent-checkbox-container:hover input ~ .checkmark {
  border-color: var(--accent-cyan);
}

.consent-checkbox-container input:checked ~ .checkmark {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.consent-checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.consent-checkbox-container .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid var(--bg-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent-text {
  color: var(--text-secondary);
  line-height: 1.5;
}

.legal-link {
  color: var(--accent-cyan);
  border-bottom: 1px dotted var(--accent-cyan);
}

/* Status box */
.status-box {
  padding: 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  display: none;
  text-align: center;
}

.status-success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success-green);
  color: var(--success-green);
}

.status-error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error-red);
  color: var(--error-red);
}

.security-disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Spinner Loading */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--bg-primary);
  animation: spin 0.8s linear infinite;
  display: none;
  margin-right: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 64px 24px;
  font-size: 0.85rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-brand {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-disclaimer {
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 900px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Responsiveness (Grid adjusting) */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-medium {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .hero-title {
    font-size: 2.6rem;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .card-large {
    grid-column: span 1;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .waitlist-card {
    padding: 28px;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
  }
  
  /* Header & Navigation mobile styling */
  .header-container {
    padding: 12px 16px;
  }
  .logo-text {
    font-size: 1.3rem;
  }
  nav {
    gap: 10px;
  }
  nav a:not(.btn) {
    display: none; /* Hide text navigation links on mobile */
  }
  .lang-selector, .theme-toggle {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  #nav-waitlist-btn {
    width: auto !important; /* Prevent header button from taking 100% width */
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  /* Reduce size of background glows to prevent horizontal overflow */
  .bg-glow {
    width: 300px;
    height: 300px;
    filter: blur(80px);
  }
  .bg-glow-1 {
    left: -50px;
  }
  .bg-glow-2 {
    right: -50px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Language & Theme Selectors in Header */
.lang-selector, .theme-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--border-radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-smooth);
}
.lang-selector:hover, .theme-toggle:hover {
  background: var(--secondary-color);
  border-color: var(--primary-color);
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* CPI Calculator styling inside Bento card */
.cpi-calculator-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  margin-top: 16px;
}
body.dark .cpi-calculator-card {
  background: rgba(0, 0, 0, 0.2);
}
.cpi-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cpi-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cpi-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cpi-form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.cpi-form-group input {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 0.9rem;
}
.cpi-form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}
.cpi-result-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  color: var(--text-primary);
  display: none;
}
.cpi-result-box.show {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* Academy Section */
.academy-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}
.academy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.academy-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  transition: var(--transition-smooth);
}
.academy-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: 0 10px 30px var(--accent-cyan-glow);
}
.academy-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
}
.academy-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.academy-card-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}
.academy-card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-color);
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.academy-card-link:hover {
  opacity: 0.8;
}

/* Contact Us Section */
.contact-section {
  max-width: 750px;
  margin: 0 auto;
  padding: 80px 24px;
}
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.02);
}
.contact-header {
  text-align: center;
  margin-bottom: 32px;
}
.contact-header h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.contact-header p {
  color: var(--text-secondary);
}

/* SVG icons styles */
.svg-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  stroke: var(--primary-color);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.dark .svg-icon {
  stroke: var(--accent-cyan);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-svg {
  width: 32px;
  height: 32px;
}

/* LTR adjustments when lang=en */
[dir="ltr"] .checkmark:after {
  left: 7px;
}
[dir="ltr"] .consent-checkbox-container {
  text-align: left;
}
[dir="ltr"] .waitlist-header, [dir="ltr"] .contact-header, [dir="ltr"] .section-header {
  text-align: center;
}
[dir="ltr"] .academy-card-link {
  align-self: flex-start;
}

@media (max-width: 1024px) {
  .academy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .academy-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 28px;
  }
}

/* Benefits Section */
.benefits-section {
  max-width: 1200px;
  margin: -60px auto 60px;
  padding: 0 24px;
  position: relative;
  z-index: 20;
}
.benefits-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
  cursor: pointer;
}
.benefit-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: 0 12px 30px var(--accent-cyan-glow);
}
.benefit-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
body.dark .benefit-icon {
  color: var(--accent-cyan);
}
.benefit-icon svg {
  width: 28px;
  height: 28px;
}
.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.benefit-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CPI Calculator Section */
.calculator-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
  border-top: 1px solid var(--border-color);
}
.calculator-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.calculator-card-premium {
  background: #ffffff;
  border: 1px solid rgba(13, 71, 161, 0.08);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: 0 20px 45px rgba(13, 71, 161, 0.06);
  transition: var(--transition-smooth);
}
body.dark .calculator-card-premium {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}
.calculator-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: right;
}
[dir="ltr"] .calculator-info {
  text-align: left;
}
.calculator-info h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.calculator-info p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.formula-box {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-align: center;
  direction: ltr;
  margin: 12px 0;
}
body.dark .formula-box {
  background: rgba(0, 0, 0, 0.2);
}

.calculator-card-premium .cpi-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calculator-card-premium label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.calculator-card-premium input {
  padding: 14px 18px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition-smooth);
}
.calculator-card-premium input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
}

.cpi-calculator-card {
  display: none;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 1024px) {
  .calculator-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .calculator-info {
    order: -1;
  }
}

@media (max-width: 768px) {
  .benefits-section {
    margin-top: 20px;
  }
  .benefits-container {
    grid-template-columns: 1fr;
  }
}

/* Custom form elements for the new calculator */
.full-width {
  grid-column: span 1;
}
.cpi-select {
  width: 100%;
  padding: 14px 18px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.cpi-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
}
.cpi-form-group.checkbox-group {
  margin-top: 10px;
}
.cpi-checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  user-select: none;
}
.cpi-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.cpi-checkbox-container .checkmark {
  height: 22px;
  width: 22px;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  transition: var(--transition-smooth);
  display: inline-block;
  position: relative;
}
.cpi-checkbox-container:hover input ~ .checkmark {
  border-color: var(--primary-color);
}
.cpi-checkbox-container input:checked ~ .checkmark {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.cpi-checkbox-container .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.cpi-checkbox-container input:checked ~ .checkmark:after {
  display: block;
}
.cpi-checkbox-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Article Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 18, 30, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background: #ffffff;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(8, 18, 30, 0.25);
  position: relative;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(13, 71, 161, 0.08);
}
body.dark .modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.modal-overlay.show .modal-card {
  transform: scale(1) translateY(0);
}
.modal-close-btn {
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--bg-primary);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition-smooth);
  z-index: 10;
}
[dir="ltr"] .modal-close-btn {
  right: 24px;
  left: auto;
}
.modal-close-btn:hover {
  background: var(--secondary-color);
  transform: rotate(90deg);
}
body.dark .modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.modal-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: right;
}
[dir="ltr"] .modal-content-wrapper {
  text-align: left;
}
.modal-title {
  font-size: 1.8rem;
  color: var(--text-primary);
  font-family: var(--font-accent);
  font-weight: 700;
  line-height: 1.3;
}
.modal-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}
.modal-divider {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 8px 0;
}
.modal-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.modal-body p {
  margin-bottom: 18px;
}
.modal-body p:last-child {
  margin-bottom: 0;
}
.modal-body h4 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 24px 0 12px 0;
  font-weight: 600;
}
.modal-body ul {
  margin-bottom: 18px;
  padding-right: 20px;
}
[dir="ltr"] .modal-body ul {
  padding-left: 20px;
  padding-right: 0;
}
.modal-body li {
  margin-bottom: 8px;
}

/* Store inline link styling */
.store-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--secondary-color);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  vertical-align: middle;
  font-size: 0.9em;
}
.store-svg-inline {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* Bento mini mockup styling */
.mini-mockup-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.mini-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
  margin-bottom: 4px;
}
.mini-badge-blue {
  background: rgba(13, 71, 161, 0.1);
  color: var(--primary-color);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
}
body.dark .mini-badge-blue {
  background: rgba(215, 100, 70%, 0.15);
  color: var(--accent-cyan);
}
.mini-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}
.mini-card-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}
.mini-label {
  color: var(--text-secondary);
}
.mini-value {
  font-weight: 600;
  color: var(--text-primary);
}

.scanner-container {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  position: relative;
}

.mock-document {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  height: 100px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
}

body.dark .mock-document {
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.doc-line {
  height: auto;
  background: transparent;
  width: 100%;
  font-size: 0.52rem;
  line-height: 1.3;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: rtl;
}

body.dark .doc-line {
  color: var(--text-muted);
}

[dir="ltr"] .doc-line {
  direction: ltr;
}

.doc-line.doc-header {
  height: auto;
  font-weight: bold;
  font-size: 0.6rem;
  color: var(--primary-color);
  margin-bottom: 4px;
  background: transparent;
}

body.dark .doc-line.doc-header {
  color: var(--accent-cyan);
  background: transparent;
}

.doc-line.highlight {
  background: rgba(78, 159, 117, 0.1);
  border-right: 2px solid var(--logo-green);
  padding-right: 4px;
}

[dir="ltr"] .doc-line.highlight {
  border-right: none;
  border-left: 2px solid var(--logo-green);
  padding-right: 0;
  padding-left: 4px;
}

.scanner-laser {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: scanLaser 3s ease-in-out infinite;
  z-index: 2;
}

.scan-result-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  animation: scanResultFade 3s ease-in-out infinite;
}

/* Digital Handover Protocol Mockup Styling */
.mini-protocol-widget {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.protocol-left {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.protocol-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 2px;
}

.mini-badge-green {
  background: rgba(78, 159, 117, 0.12);
  color: var(--logo-green);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
}

.protocol-status {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.protocol-checklist {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 4px 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
}

.photo-badge {
  font-size: 0.6rem;
  padding: 1px 4px;
  background: rgba(13, 71, 161, 0.08);
  color: var(--primary-color);
  border-radius: 3px;
  margin-inline-start: auto;
  font-weight: 600;
  white-space: nowrap;
}

body.dark .photo-badge {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}

.status-dot-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: bold;
  flex-shrink: 0;
}

.status-dot-icon.checked {
  background: rgba(78, 159, 117, 0.15);
  color: var(--logo-green);
}

.status-dot-icon.warning {
  background: rgba(217, 83, 79, 0.12);
  color: #d9534f;
}

.status-dot-icon.utility-icon {
  background: rgba(13, 71, 161, 0.1);
  color: var(--primary-color);
}

body.dark .status-dot-icon.utility-icon {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}

.protocol-signature-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sig-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.sig-pad {
  background: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  border-radius: 6px;
  height: 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sig-line-svg {
  width: 100%;
  height: 100%;
}

.sig-path {
  stroke: var(--primary-color);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawSignature 5s ease-in-out infinite;
}

body.dark .sig-path {
  stroke: var(--accent-cyan);
}

/* Animations */
@keyframes scanLaser {
  0%, 100% {
    top: 10px;
    opacity: 0;
  }
  5%, 95% {
    opacity: 1;
  }
  50% {
    top: 90px;
    opacity: 1;
  }
}

@keyframes scanResultFade {
  0%, 35% {
    opacity: 0.2;
    transform: translateY(2px);
    filter: blur(1px);
  }
  50%, 90% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  95%, 100% {
    opacity: 0.2;
  }
}

@keyframes drawSignature {
  0% {
    stroke-dashoffset: 1000;
  }
  30%, 75% {
    stroke-dashoffset: 0;
  }
  95%, 100% {
    stroke-dashoffset: -1000;
  }
}

/* App Showcase & Video Demo Section */
.showcase-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 10;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Phone Mockup Styling */
.phone-mockup {
  position: relative;
  width: 290px;
  height: 580px;
  background: #1e293b;
  border: 12px solid #0f172a;
  border-radius: 40px;
  margin: 0 auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}
body.dark .phone-mockup {
  border-color: #020617;
  background: #0f172a;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
}

.phone-speaker {
  width: 60px;
  height: 4px;
  background: #334155;
  border-radius: 2px;
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-screen {
  position: relative;
  flex: 1;
  margin: 28px 8px 30px;
  background: var(--bg-primary);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.phone-button {
  width: 32px;
  height: 32px;
  border: 2px solid #334155;
  border-radius: 50%;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
}

/* Carousel Styles */
.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow: hidden;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.carousel-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.carousel-btn:hover {
  background: var(--secondary-color);
  border-color: var(--primary-color);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-dots .dot.active {
  background: var(--accent-cyan);
  transform: scale(1.25);
}

/* Mock App UI Screens */
.mock-app-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font-primary);
  background: var(--bg-primary);
}

.mock-app-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.mock-app-avatar {
  font-size: 1.1rem;
}

.mock-app-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

/* Mock Widgets */
.mock-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.mock-stat-val {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-teal);
}

.mock-property-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.mock-prop-name {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.mock-prop-status {
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.65rem;
}

.mock-prop-status.paid {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.mock-prop-status.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

/* AI Scanner Mockup */
.mock-scan-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.03);
}

.mock-scan-icon {
  font-size: 2.2rem;
  animation: floatMock 3s ease-in-out infinite;
}

.mock-scan-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mock-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}

.mock-progress-fill {
  width: 75%;
  height: 100%;
  background: var(--accent-cyan);
  border-radius: 3px;
  animation: mockProgress 2.5s infinite linear;
}

.mock-clause-card {
  background: var(--card-bg);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-clause-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-teal);
}

.mock-clause-text {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Protocol Screen Mockup */
.mock-checklist-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-primary);
}

.mock-check-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.65rem;
}

.mock-checklist-item.done .mock-check-box {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.mock-checklist-item.alert .mock-check-box {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.mock-signature-box {
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-sig-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.mock-sig-line {
  border-bottom: 2px dashed var(--border-color);
  height: 24px;
}

/* Video Phone Mockup Specific Styling (Portrait Video) */
.video-phone-mockup .phone-screen .video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000000;
  overflow: hidden;
}

.video-phone-mockup .phone-screen .video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fit perfectly in portrait mode */
  display: block;
}

.video-phone-mockup .custom-video-controls {
  padding: 8px 12px;
  gap: 8px;
}

/* Custom Play Overlay */
.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 18, 30, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  z-index: 5;
  transition: opacity 0.3s ease;
}

.play-circle-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.play-svg-overlay {
  width: 24px;
  height: 24px;
  margin-left: 4px; /* Shift to center triangle visually */
}

.video-play-overlay:hover .play-circle-btn {
  transform: scale(1.1);
  background: rgba(20, 184, 166, 0.3);
  border-color: var(--accent-cyan);
}

.fallback-play-text {
  font-size: 0.9rem;
  color: #e2e8f0;
  font-weight: 600;
}

/* Custom controls layer */
.custom-video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.video-wrapper:hover .custom-video-controls {
  opacity: 1;
  transform: translateY(0);
}

.control-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.control-btn:hover {
  color: var(--accent-cyan);
}

.control-btn svg {
  width: 20px;
  height: 20px;
}

.progress-bar-container {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-cyan);
  border-radius: 3px;
  position: absolute;
  top: 0;
  left: 0;
}

/* Animations */
@keyframes mockProgress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes floatMock {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Responsive grid for Showcase */
@media (max-width: 1024px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .showcase-section {
    padding: 60px 24px;
  }
}

/* Strategic CTA banner inside academy articles */
.article-cta-banner {
  margin-top: 40px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(13, 71, 161, 0.04) 0%, rgba(20, 184, 166, 0.04) 100%);
  border: 1px solid rgba(13, 71, 161, 0.1);
  border-radius: var(--border-radius-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: inset 0 0 20px rgba(13, 71, 161, 0.02);
  transition: var(--transition-smooth);
}

body.dark .article-cta-banner {
  background: linear-gradient(135deg, rgba(215, 100, 70, 0.08) 0%, rgba(142, 70, 49, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.article-cta-banner:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 32px rgba(13, 71, 161, 0.05);
  transform: translateY(-2px);
}

.article-cta-banner p {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}

.article-cta-banner .btn {
  padding: 10px 24px;
  font-size: 0.9rem;
  border-radius: var(--border-radius-sm);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: 0 4px 12px var(--accent-cyan-glow);
}

.article-cta-banner .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--accent-cyan-glow);
}




/* Accessibility Widget */
.accessibility-widget {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
  z-index: 9999;
}

.accessibility-widget:hover {
  transform: scale(1.1);
  background-color: var(--primary-hover);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.accessibility-widget svg {
  fill: currentColor;
  width: 26px;
  height: 26px;
}

/* Ensure focus outline is clear for keyboard navigation */
.accessibility-widget:focus-visible {
  outline: 3px solid var(--accent-cyan);
  outline-offset: 2px;
}
