/* ==========================================================================
   CONSTITUTION OF INDIA — MINIMALIST CLEAN DESIGN SYSTEM
   Modern, quiet, editorial, authentic legal reference application aesthetic.
   ========================================================================== */

:root {
  --bg-page: #fafafa;
  --bg-surface: #ffffff;
  --bg-subtle: #f4f4f5;
  --bg-dark: #18181b;

  --text-main: #18181b;
  --text-muted: #71717a;
  --text-sub: #52525b;
  --text-light: #ffffff;

  --border: #e4e4e7;
  --border-dark: #27272a;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

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

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

body {
  font-family: var(--font);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.55;
}

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

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
  border-bottom-color: rgba(229, 231, 235, 0.85);
}

/* Navbar Store Badges (Scroll Reveal Effect) */
.nav-store-badges {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.3s ease;
  pointer-events: none;
}

.navbar.is-scrolled .nav-store-badges {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-badge {
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  line-height: 0;
}

.nav-badge-full {
  height: 32px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.nav-badge-mobile-icon {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #0f1117;
  border: 1px solid rgba(255, 255, 255, 0.22);
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.nav-badge-mobile-icon svg {
  display: block;
}

.nav-icon-apple {
  color: #ffffff;
}

.nav-badge:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-sub);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.nav-right-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   MOBILE HAMBURGER BUTTON & OFF-CANVAS SIDEBAR
   ========================================================================== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.mobile-menu-btn:hover {
  background: #f4f4f5;
  border-color: #d1d5db;
}

.mobile-menu-btn .hamburger-line {
  width: 18px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Morph Hamburger to 'X' when active */
.mobile-menu-btn.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Sidebar Backdrop Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

body.sidebar-open .sidebar-overlay {
  opacity: 1;
  visibility: visible;
}

/* Off-Canvas Sidebar Drawer */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(84vw, 350px);
  height: 100vh;
  background: #ffffff;
  z-index: 999;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.sidebar-open .mobile-sidebar {
  transform: translateX(0);
}

/* Sidebar Header */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1.15rem;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: cover;
}

.sidebar-brand-info {
  display: flex;
  flex-direction: column;
}

.sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.sidebar-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sidebar-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-sub);
  transition: all 0.2s ease;
}

.sidebar-close-btn:hover {
  background: #f4f4f5;
  color: var(--text-main);
  transform: rotate(90deg);
}

/* Sidebar Navigation Links */
.sidebar-nav {
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.96rem;
  transition: all 0.2s ease;
  background: transparent;
}

.sidebar-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f4f4f5;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.sidebar-link-text {
  flex: 1;
}

.sidebar-link-arrow {
  color: #9ca3af;
  transition: transform 0.2s ease, color 0.2s ease;
}

.sidebar-link:hover {
  background: #f8fafc;
  color: #000000;
}

.sidebar-link:hover .sidebar-link-icon {
  background: #18181b;
  color: #ffffff;
  border-color: #18181b;
}

.sidebar-link:hover .sidebar-link-arrow {
  color: #18181b;
  transform: translateX(3px);
}

/* Sidebar Footer & App Download CTA */
.sidebar-footer {
  padding: 1rem 1.15rem 1.5rem;
  border-top: 1px solid var(--border);
  background: #fafafa;
}

.sidebar-cta-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sidebar-cta-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.sidebar-cta-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.sidebar-cta-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.sidebar-badges {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-badges .store-badge-link {
  width: 100%;
}

.sidebar-badges .store-badge-img {
  width: 100%;
  height: 44px;
  object-fit: contain;
}

.sidebar-meta-links {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sidebar-meta-links a {
  color: var(--text-sub);
  text-decoration: none;
}

.sidebar-meta-links a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-family: var(--font);
}

.btn-dark {
  background: #18181b;
  color: #ffffff;
  border-color: #18181b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-dark:hover {
  background: #27272a;
  border-color: #27272a;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.btn-secondary {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #18181b;
}

.btn-secondary:hover {
  background: #f4f4f5;
  border-color: #d4d4d8;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

.play-icon {
  flex-shrink: 0;
}

/* ==========================================================================
   HERO SECTION (Centered Layout Matching Reference Screenshot)
   ========================================================================== */
.hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: visible;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
}

.hero-heading {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  max-width: 780px;
}

.hero-subheading {
  font-size: 1.12rem;
  color: var(--text-sub);
  max-width: 640px;
  line-height: 1.6;
  margin: 0 auto 2.25rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  margin-bottom: 1.25rem;
}

/* Official Store Badges (Google Play & Apple App Store) */
.store-badges-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

.store-badge-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.store-badge-link:active {
  transform: translateY(0);
}

.store-badge-img {
  height: 52px;
  width: auto;
  display: block;
  border-radius: 8px;
}

/* Secondary Explore Link (below badges in hero) */
.hero-screens-wrap {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.hero-screens-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-sub);
  text-decoration: none;
  padding: 0.42rem 1.05rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.hero-screens-link:hover {
  color: var(--text-main);
  border-color: #d1d5db;
  background: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* Meta Stats Box (Matching Reference Screenshot) */
.hero-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  padding: 1.1rem 2.4rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  margin: 0 auto 3rem;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.meta-item strong {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.15;
}

.meta-item span {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 0.35rem;
}

.meta-sep {
  width: 1px;
  height: 28px;
  background: #e5e7eb;
}

/* ==========================================================================
   HERO SPLIT SHOWCASE (Phone on Left, Content on Right)
   ========================================================================== */
.hero-split-showcase {
  margin: 3.5rem auto 1.5rem;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 4.5rem;
  align-items: center;
  position: relative;
}

.split-visual-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.split-glow-backdrop {
  position: absolute;
  width: 320px;
  height: 480px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, rgba(99, 102, 241, 0.08) 50%, transparent 70%);
  filter: blur(45px);
  z-index: 0;
  pointer-events: none;
}

.split-device-frame {
  width: 300px;
  position: relative;
  z-index: 1;
}

.device-frame {
  border-radius: 40px;
  border: 8px solid #18181b;
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #000000;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.device-frame:hover {
  transform: translateY(-4px);
  box-shadow:
    0 36px 70px -15px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(0, 0, 0, 0.1);
}

.device-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 7px;
  background: #18181b;
  border-radius: 12px;
  z-index: 10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.device-chin {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  z-index: 10;
}

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


/* Split Content Column */
.split-content-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.split-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 1rem;
  letter-spacing: 0.2px;
}

.split-tag .tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
}

.split-heading {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.split-subheading {
  font-size: 1.04rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
}

.split-feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  margin-bottom: 2.25rem;
  width: 100%;
}

.split-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
}

.feature-icon-pill {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  color: #18181b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.split-feature-card:hover .feature-icon-pill {
  transform: translateY(-2px);
  background: #18181b;
  color: #ffffff;
  border-color: #18181b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.split-feature-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.split-feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.split-cta-wrap {
  margin-top: 0.5rem;
  justify-content: flex-start;
}

/* ==========================================================================
   COMMON SECTION STYLES
   ========================================================================== */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.section-intro {
  margin-bottom: 3rem;
}

.section-intro .label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.section-intro h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.section-intro p {
  font-size: 1.02rem;
  color: var(--text-sub);
  max-width: 600px;
  line-height: 1.6;
}

/* ==========================================================================
   DRIBBBLE-STYLE 3D CURVED PERSPECTIVE CAROUSEL
   Inspired by panoramic curved ribbon design
   ========================================================================== */
.curved-showcase-section {
  background: transparent;
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}

.showcase-header-container {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 1rem;
}

.showcase-pretitle {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ff5722;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.6rem;
}

.showcase-heading {
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: #111827;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.showcase-subheading {
  font-size: 1.02rem;
  color: #6b7280;
  max-width: 620px;
  margin: 0 auto 1.6rem;
  line-height: 1.55;
}

.showcase-cta-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.dribbble-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 0.4rem 0.45rem 0.4rem 1.3rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  color: #111827;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.dribbble-pill-btn:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: #d4d4d8;
  transform: translateY(-2px);
}

.pill-arrow-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ff5722;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.dribbble-pill-btn:hover .pill-arrow-circle {
  transform: translateX(3px);
}

/* Straight Mobile Device Carousel Stage */
.curved-carousel-stage {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0 3rem;
  padding: 1rem 0 2rem;
  user-select: none;
  cursor: grab;
}

.curved-carousel-stage:active {
  cursor: grabbing;
}

.curved-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Mobile Phone Device Frame — Straight & Upright */
.curved-card {
  position: absolute;
  width: 190px;
  height: 410px;
  border-radius: 36px;
  border: 6px solid #18181b;
  background: #000000;
  box-shadow:
    0 20px 45px -10px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, filter 0.4s ease;
  cursor: pointer;
  will-change: transform, opacity;
  transform-origin: center center;
  user-select: none;
}

/* Phone Top Speaker & Camera Notch Pill */
.curved-card::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 6.5px;
  background: #18181b;
  border-radius: 10px;
  z-index: 25;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Phone Bottom Gesture Indicator Bar */
.curved-card::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  z-index: 25;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.curved-card.is-active {
  border-color: #111827;
  box-shadow:
    0 20px 42px -10px rgba(0, 0, 0, 0.35),
    0 8px 24px -4px rgba(255, 87, 34, 0.3),
    0 0 0 2.5px rgba(255, 87, 34, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.curved-card:hover {
  box-shadow:
    0 24px 48px -8px rgba(0, 0, 0, 0.38),
    0 0 0 2.5px #ff5722;
}

.card-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  position: relative;
}

.card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  pointer-events: none;
  border-radius: inherit;
}

/* Numbered Pillars Grid (Bottom of Carousel, directly below arc) */
.numbered-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 1rem;
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.pillar-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.65;
  background: transparent;
  border: none;
  cursor: pointer;
}

.pillar-item:hover,
.pillar-item.is-current {
  opacity: 1;
  transform: translateY(-2px);
  background: transparent;
}

.pillar-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ff5722;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

.pillar-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.2px;
}

/* ==========================================================================
   12 LANGUAGES LIST
   ========================================================================== */
.languages-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.lang-row {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.lang-code {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-sub);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.lang-text {
  display: flex;
  flex-direction: column;
}

.lang-text strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.lang-text span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FEATURES (CLEAN 3x2 GRID)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

.feature-cell {
  display: flex;
  flex-direction: column;
}

.feature-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.65rem;
}

.feature-cell h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.feature-cell p {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.6;
}


/* ==========================================================================
   DOWNLOAD CALLOUT
   ========================================================================== */
.download-section {
  padding: 4rem 0 6rem;
}

.download-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.download-text {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.download-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.download-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.download-text p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.download-btn-wrap {
  flex-shrink: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid #e5e7eb;
  padding: 3.5rem 1.5rem 2.5rem;
  background-color: #f9fafb;
  text-align: center;
}

.footer-container,
.courtbook-footer-container {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 auto 1.5rem;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-app-brand:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.footer-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: block;
}

.footer-app-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.footer-app-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.footer-app-sub {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
}

.courtbook-footer-logo-link {
  display: inline-block;
  margin: 0 auto 1.5rem;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.courtbook-footer-logo-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.courtbook-footer-logo {
  width: 160px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.footer-store-badges,
.courtbook-footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 1.75rem;
  flex-wrap: wrap;
  width: 100%;
}

.footer-badge-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.footer-badge-item:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.footer-badge-item img {
  height: 42px;
  width: auto;
  display: block;
  border-radius: 7px;
}

.footer-legal-links,
.courtbook-footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 auto 1.35rem;
  width: 100%;
  max-width: 510px;
}

.footer-legal-links a,
.courtbook-footer-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.footer-legal-links a:hover,
.courtbook-footer-links a:hover {
  color: #111827;
}

.footer-divider,
.courtbook-footer-divider {
  width: 100%;
  max-width: 510px;
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 0 auto 1.35rem;
}

.footer-bottom-wrap,
.courtbook-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 510px;
  margin: 0 auto;
}

.footer-copyright,
.courtbook-copyright {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
  text-align: center;
  width: 100%;
}

@media (max-width: 540px) {

  .footer-legal-links,
  .courtbook-footer-links {
    justify-content: center;
    gap: 0.65rem 1.15rem;
    max-width: 100%;
  }

  .footer-divider,
  .courtbook-footer-divider {
    max-width: 90%;
  }
}

/* ==========================================================================
   LEGAL READER MODAL & DIALOG
   ========================================================================== */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.legal-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.legal-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 840px;
  max-height: 88vh;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  z-index: 1;
}

.legal-modal-overlay.is-active .legal-modal-dialog {
  transform: translateY(0) scale(1);
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.legal-modal-header-left h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.legal-modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legal-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legal-modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.legal-modal-close:hover {
  background: var(--border);
  color: var(--text-main);
}

.btn-icon-text {
  font-size: 0.82rem;
  color: var(--text-sub);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  transition: all 0.15s ease;
}

.btn-icon-text:hover {
  color: var(--text-main);
  background: var(--bg-surface);
}

.legal-tabs-nav {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.legal-tab-btn {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-sub);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.legal-tab-btn:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.05);
}

.legal-tab-btn.active {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.legal-modal-body {
  padding: 2rem 2.25rem;
  overflow-y: auto;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-main);
}

.legal-pane {
  display: none;
}

.legal-pane.active {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-meta-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.legal-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.legal-lead {
  font-size: 0.96rem;
  color: var(--text-sub);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.legal-block {
  margin-bottom: 1.5rem;
}

.legal-block h4 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.legal-block p {
  color: var(--text-sub);
  margin-bottom: 0.75rem;
}

.legal-list {
  padding-left: 1.35rem;
  margin-bottom: 1rem;
  color: var(--text-sub);
}

.legal-list li {
  margin-bottom: 0.5rem;
}

.legal-callout {
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-md);
  background: #fefce8;
  border: 1px solid #fef08a;
  color: #713f12;
  font-size: 0.88rem;
  margin: 1.25rem 0;
  line-height: 1.55;
}

.legal-callout strong {
  color: #854d0e;
}

.contact-card-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 0.65rem 1.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  margin: 1.25rem 0 0.75rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
}

.contact-email-link:hover {
  transform: translateY(-1px);
  border-color: var(--text-main);
}

.copy-toast {
  display: inline-block;
  font-size: 0.8rem;
  color: #059669;
  margin-top: 0.5rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.copy-toast.show {
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .hero-heading {
    font-size: 2.6rem;
  }

  .hero-split-showcase {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
    margin-top: 2rem;
  }

  .split-visual-col {
    margin: 0 auto;
  }

  .split-content-col {
    align-items: center;
    text-align: center;
  }

  .split-heading {
    font-size: 2.1rem;
  }

  .split-subheading {
    margin-left: auto;
    margin-right: auto;
  }

  .split-feature-list {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }

  .split-cta-wrap {
    justify-content: center;
  }

  .showcase-heading {
    font-size: 2.3rem;
  }

  .curved-carousel-stage {
    height: 500px;
  }

  .curved-card {
    width: 175px;
    height: 380px;
    border-radius: 34px;
    border: 6px solid #18181b;
  }

  .card-inner {
    border-radius: 26px;
  }

  .numbered-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

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

@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav-store-badges {
    gap: 0.5rem;
  }

  .nav-badge-full {
    display: none !important;
  }

  .nav-badge-mobile-icon {
    display: flex !important;
  }

  .nav-badge {
    box-shadow: none;
    border-radius: 10px;
  }

  .nav-badge:hover .nav-badge-mobile-icon {
    transform: translateY(-1px) scale(1.05);
    background: #18181b;
    border-color: rgba(255, 255, 255, 0.35);
  }

  .brand-title {
    font-size: 0.86rem;
  }

  /* Sections & Container */
  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 3.75rem 0;
  }

  /* Hero Section */
  .hero-badge {
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
  }

  .hero-heading {
    font-size: 1.85rem;
    line-height: 1.22;
    letter-spacing: -0.6px;
    margin-bottom: 0.85rem;
  }

  .hero-subheading {
    font-size: 0.94rem;
    line-height: 1.55;
    margin-bottom: 1.75rem;
    max-width: 92%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 0.85rem;
  }

  .store-badge-img {
    height: 44px;
  }

  .hero-screens-link {
    font-size: 0.82rem;
    padding: 0.38rem 0.95rem;
  }

  .hero-meta {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    padding: 0.9rem 1.5rem;
    border-radius: 14px;
    margin-bottom: 2.25rem;
  }

  .meta-item strong {
    font-size: 1.18rem;
  }

  .meta-item span {
    font-size: 0.65rem;
  }

  .meta-sep {
    display: none;
  }

  /* Hero Split Showcase ("India's Supreme Law") */
  .hero-split-showcase {
    gap: 2.5rem;
    margin-top: 1.5rem;
  }

  .split-tag {
    font-size: 0.74rem;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.75rem;
  }

  .split-heading {
    font-size: 1.65rem;
    line-height: 1.24;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
  }

  .split-subheading {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .split-feature-list {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    margin-bottom: 1.5rem;
  }

  .split-feature-card {
    gap: 0.85rem;
  }

  .split-feature-card h3 {
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
  }

  .split-feature-card p {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .feature-icon-pill {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

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

  .device-frame {
    width: min(78vw, 260px);
    border-radius: 36px;
  }

  /* App Screens Carousel */
  .showcase-pretitle {
    font-size: 0.82rem;
    margin-bottom: 0.45rem;
  }

  .showcase-heading {
    font-size: 1.65rem;
    line-height: 1.22;
    letter-spacing: -0.6px;
    margin-bottom: 0.6rem;
  }

  .showcase-subheading {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
  }

  .dribbble-pill-btn {
    font-size: 0.84rem;
    padding: 0.35rem 0.4rem 0.35rem 1.1rem;
  }

  .pill-arrow-circle {
    width: 28px;
    height: 28px;
  }

  .curved-carousel-stage {
    height: 560px;
    margin: 1rem 0 2rem;
    overflow: visible;
    padding: 1rem 0 2rem;
  }

  .curved-card {
    width: min(66vw, 235px);
    height: min(142vw, 505px);
    border-radius: 36px;
    border: 6px solid #18181b;
  }

  .curved-card::before {
    width: 42px;
    height: 6.5px;
    top: 7px;
  }

  .curved-card::after {
    width: 48px;
    height: 3px;
    bottom: 6px;
  }

  .card-inner {
    border-radius: 28px;
  }

  .numbered-pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .pillar-num {
    font-size: 0.85rem;
  }

  .pillar-title {
    font-size: 0.9rem;
  }

  /* Common Section Headers */
  .section-intro {
    margin-bottom: 2.25rem;
  }

  .section-intro .label {
    font-size: 0.7rem;
    letter-spacing: 0.8px;
    margin-bottom: 0.4rem;
  }

  .section-intro h2 {
    font-size: 1.55rem;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
  }

  .section-intro p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  /* Languages List */
  .languages-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .lang-row {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }

  .lang-code {
    font-size: 0.7rem;
    padding: 0.2rem 0.45rem;
  }

  .lang-text strong {
    font-size: 0.88rem;
  }

  .lang-text span {
    font-size: 0.78rem;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .feature-num {
    font-size: 0.75rem;
    margin-bottom: 0.45rem;
  }

  .feature-cell h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
  }

  .feature-cell p {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  /* Download Callout */
  .download-section {
    padding: 3rem 0 4.5rem;
  }

  .download-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.25rem;
    gap: 1.5rem;
  }

  .download-text {
    flex-direction: column;
    gap: 0.85rem;
  }

  .download-icon {
    width: 46px;
    height: 46px;
  }

  .download-text h3 {
    font-size: 1.15rem;
    line-height: 1.25;
  }

  .download-text p {
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .download-btn-wrap {
    width: 100%;
    justify-content: center;
  }

  .download-btn-wrap .btn {
    width: 100%;
    font-size: 0.88rem;
  }

  /* Footer */
  .footer {
    padding: 2.75rem 0 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
    margin-bottom: 2rem;
  }

  .footer-col-brand {
    max-width: none;
    grid-column: 1 / -1;
  }

  .footer-bottom {
    font-size: 0.74rem;
    padding-top: 1.5rem;
  }

  .legal-modal-dialog {
    max-height: 94vh;
    padding: 0;
  }

  .legal-modal-body {
    padding: 1.25rem 1.25rem 1.75rem;
  }

  .legal-modal-header {
    padding: 1rem 1.25rem;
  }

  .legal-tabs-nav {
    padding: 0.5rem 1rem;
    gap: 0.35rem;
  }

  .legal-tab-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 580px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* Compact Smartphones (iPhone, Galaxy 360px - 480px) */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .hero-heading {
    font-size: 1.62rem;
    line-height: 1.22;
  }

  .hero-subheading {
    font-size: 0.9rem;
  }

  .split-heading {
    font-size: 1.45rem;
    line-height: 1.22;
  }

  .split-subheading {
    font-size: 0.88rem;
  }

  .showcase-heading {
    font-size: 1.45rem;
    line-height: 1.22;
  }

  .section-intro h2 {
    font-size: 1.38rem;
  }

  .hero-meta {
    padding: 0.85rem 1rem;
    gap: 0.85rem;
  }

  .meta-item strong {
    font-size: 1.1rem;
  }

  .curved-card {
    width: min(70vw, 220px);
    height: min(150vw, 475px);
  }

  .curved-carousel-stage {
    height: 520px;
  }
}