/* Instagram Sans — primary brand font.
   Obtain WOFF2 files from https://about.instagram.com/brand/type and place in fonts/ */
@font-face {
    font-family: 'Instagram Sans';
    src: url('fonts/InstagramSans-Regular.woff2') format('woff2'),
         url('fonts/InstagramSans-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Instagram Sans';
    src: url('fonts/InstagramSans-Medium.woff2') format('woff2'),
         url('fonts/InstagramSans-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Instagram Sans';
    src: url('fonts/InstagramSans-Bold.woff2') format('woff2'),
         url('fonts/InstagramSans-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
/* DM Sans loaded as fallback until Instagram Sans files are added */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
    /* Brand: Deep Trust Navy — primary anchor */
    --primary-darkest: #000d2d;
    --primary-dark: #001a4a;
    --primary-medium: #002767;
    --primary-base: #003484;
    --primary-light: #0041a1;
    --primary-lighter: #4d7bc4;
    --primary-lightest: #99b8e7;
    /* Brand: Secondary (CTAs & Structure) */
    --blue: #0047AC;
    --blue-dark: #003a8c;
    --bronze: #594A36;
    /* Brand: Accents (Intelligence & Interaction) */
    --violet: #B171D6;
    --magenta: #D15792;
    --maroon: #884455;
    /* Brand: Supporting Neutrals */
    --paper-tint: #ffffff;
    --interface-gray: #BBBBBD;
    --slate: #4D4D53;
    --doc-gray: #2D2D31;
    --near-black: #0F0F11;
    --white: #ffffff;
    /* Semantic aliases */
    --accent: #ffffff;
    --text-primary: #0F0F11;
    --text-secondary: #4D4D53;
    --text-light: #4D4D53;
    --background-light: #ffffff;
    --background-section: #ffffff;
    --border-light: rgba(0, 13, 45, 0.08);
    --shadow-light: 0 4px 20px rgba(0, 13, 45, 0.08);
    --shadow-medium: 0 8px 40px rgba(0, 13, 45, 0.12);
    --gradient-primary: linear-gradient(135deg, var(--primary-darkest) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--blue) 0%, var(--primary-darkest) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Instagram Sans', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    background: var(--accent);
    color: var(--text-primary);
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-light);
    border-bottom: 1px solid var(--border-light);
}

.header.scrolled-up {
    transform: translateY(-100%);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-image {
    height: 40px;
    transition: transform 0.2s ease;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--primary-darkest);
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-darkest);
    letter-spacing: -0.5px;
}

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

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

.nav-link {
    text-decoration: none;
    color: var(--slate);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    letter-spacing: -0.2px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width 0.2s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

.login-btn {
    background: var(--blue);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease, transform 0.2s ease;
    border: 2px solid var(--blue);
}

.login-btn:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    transform: translateY(-1px);
}

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

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary-darkest);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(77, 123, 196, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(153, 184, 231, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    color: var(--accent);
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 32px;
    color: var(--primary-lightest);
}

.badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-family: 'Instagram Sans', 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
}

.title-highlight {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-lightest) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--primary-lightest);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.cta-primary {
    background: var(--accent);
    color: var(--primary-darkest);
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.cta-primary:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.cta-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    padding: 16px 32px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.arrow {
    transition: transform 0.2s ease;
}

.cta-secondary:hover .arrow {
    transform: translateX(4px);
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.stat:nth-child(1) { animation-delay: 0.2s; }
.stat:nth-child(2) { animation-delay: 0.4s; }
.stat:nth-child(3) { animation-delay: 0.6s; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--primary-lightest);
    font-weight: 500;
}

.hero-visual {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.floating-cards {
    position: relative;
    width: 300px;
    height: 400px;
}

.legal-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 120px;
    right: 0;
    animation-delay: 2s;
}

.card-3 {
    bottom: 0;
    left: 20px;
    animation-delay: 4s;
}

.card-icon {
    font-size: 1.5rem;
}

.card-text {
    font-weight: 600;
    color: var(--primary-darkest);
    font-size: 0.9rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-accent);
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--primary-darkest);
    box-shadow: var(--shadow-light);
}

.section-title {
    font-family: 'Instagram Sans', 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--primary-darkest);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--primary-medium);
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    background: var(--background-light);
    padding: 120px 0;
}

.feature-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 40px;
}

.feature-card {
    background: var(--accent);
    border-radius: 24px;
    padding: 60px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-card.reverse {
    direction: rtl;
}

.feature-card.reverse > * {
    direction: ltr;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-visual .visual-placeholder {
    width: 100%;
    height: 300px;
    background: var(--gradient-accent);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--primary-darkest);
    font-weight: 600;
    font-size: 1rem;
    border: 2px dashed var(--primary-lighter);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-visual .visual-placeholder span:first-child {
    font-size: 3rem;
}

.feature-visual .visual-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

.feature-card:hover .visual-placeholder {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 13, 45, 0.1);
}

/* Search Animation Styles */
.search-animation-container {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: visible;
    box-shadow: inset 0 2px 8px rgba(0, 13, 45, 0.08);
}

.search-interface {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 13, 45, 0.1);
}

.search-input {
    width: 100%;
    padding: 14px 18px;
    border: none;
    font-size: 0.9rem;
    background: transparent;
    color: transparent;
}

.search-input::placeholder {
    color: var(--primary-medium);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.typed-text {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--primary-medium);
    font-family: 'Inter', sans-serif;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    animation: typingText 12s infinite;
}

.typed-text::before {
    content: 'Search legal documents...';
    color: var(--primary-medium);
    animation: showInitialText 12s infinite;
}

.typed-text::after {
    content: 'doctrine of necessity';
    color: var(--primary-darkest);
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    overflow: hidden;
    animation: showTypedText 12s infinite;
}

@keyframes showInitialText {
    0%, 8% {
        opacity: 1;
    }
    10%, 100% {
        opacity: 0;
    }
}

@keyframes showTypedText {
    0%, 9% {
        width: 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
        width: 0;
    }
    20%, 100% {
        opacity: 1;
        width: 145px;
    }
}

@keyframes typingText {
    0%, 100% {
        /* Container animation - not used for width anymore */
    }
}

.database-dropdown {
    min-width: 160px;
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 13, 45, 0.1);
    transition: all 0.2s ease;
    height: 100%;
}

.dropdown-label {
    font-size: 0.9rem;
    color: transparent;
    position: relative;
}

.dropdown-label::before {
    content: 'Select Database';
    position: absolute;
    left: 0;
    top: 0;
    animation: updateLabelAndColor 12s infinite;
}

@keyframes updateLabelAndColor {
    0%, 48% {
        content: 'Select Database';
        color: var(--primary-medium);
        font-weight: 400;
    }
    50%, 100% {
        content: 'NKP';
        color: var(--primary-darkest);
        font-weight: 500;
    }
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: var(--primary-medium);
    transition: transform 0.2s ease;
    animation: rotateArrow 12s infinite;
}

@keyframes rotateArrow {
    0%, 38% { transform: rotate(0deg); }
    40%, 48% { transform: rotate(180deg); }
    50%, 100% { transform: rotate(0deg); }
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 13, 45, 0.15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    z-index: 20;
    overflow: hidden;
    animation: showDropdown 12s infinite;
}

@keyframes showDropdown {
    0%, 38% { 
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
    }
    40%, 48% { 
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    50%, 100% { 
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
    }
}

.dropdown-option {
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--primary-medium);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-option:hover {
    background: var(--background-light);
}

.dropdown-option[data-value="nkp"] {
    animation: selectOption 12s infinite;
}

@keyframes selectOption {
    0%, 44% { 
        background: transparent;
        color: var(--primary-medium);
    }
    45%, 48% { 
        background: var(--primary-lightest);
        color: var(--primary-darkest);
        font-weight: 500;
    }
    50%, 100% { 
        background: transparent;
        color: var(--primary-medium);
    }
}

.apply-filters-btn {
    width: fit-content;
    padding: 12px 36px;
    background: var(--primary-darkest);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 13, 45, 0.2);
}

.apply-filters-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 13, 45, 0.3);
}

.apply-filters-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-100%);
    animation: buttonFlash 12s infinite;
}

@keyframes buttonFlash {
    0%, 58% { transform: translateX(-100%); }
    60%, 62% { transform: translateX(0); }
    64%, 100% { transform: translateX(100%); }
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(-10px);
    animation: showResults 12s infinite;
}

@keyframes showResults {
    0%, 65% { 
        opacity: 0;
        transform: translateY(-10px);
    }
    70%, 100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

.result-item {
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 13, 45, 0.08);
    transition: all 0.2s ease;
    cursor: pointer;
}

.result-item:hover {
    transform: translateX(4px);
    box-shadow: 0 3px 10px rgba(0, 13, 45, 0.12);
}

.result-item:first-child {
    animation: highlightFirst 12s infinite;
}

@keyframes highlightFirst {
    0%, 85% { 
        background: white;
    }
    88%, 95% { 
        background: linear-gradient(90deg, var(--primary-lightest) 0%, white 100%);
        border-left: 3px solid var(--primary-base);
        padding-left: 11px;
    }
    100% { 
        background: white;
    }
}

.result-icon {
    font-size: 1.2rem;
    opacity: 0.8;
}

.result-content {
    flex: 1;
}

.result-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-darkest);
    margin-bottom: 2px;
}

.result-snippet {
    font-size: 0.75rem;
    color: var(--primary-medium);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.animated-cursor {
    position: absolute;
    top: 45px;
    left: 100px;
    pointer-events: none;
    z-index: 30;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: moveCursor 12s infinite;
}

@keyframes moveCursor {
    /* Start position */
    0%, 5% { top: 45px; left: 100px; }
    /* Move to search input */
    8%, 10% { top: 45px; left: 50px; }
    /* Move while typing */
    20%, 35% { top: 45px; left: 190px; }
    /* Move to dropdown */
    38%, 40% { top: 45px; left: 415px; }
    /* Click dropdown to open */
    42%, 44% { top: 45px; left: 415px; }
    /* Select NKP option */
    45%, 48% { top: 95px; left: 415px; }
    /* Move to Apply Filters */
    55%, 58% { top: 100px; left: 90px; }
    /* Click Apply Filters */
    60%, 62% { top: 100px; left: 90px; }
    /* Move to first result */
    85%, 90% { top: 170px; left: 200px; }
    /* Reset */
    100% { top: 45px; left: 100px; }
}

.feature-icon {
    margin-bottom: 24px;
}

/* Regulations Animation Styles */
.regulations-animation-container {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 13, 45, 0.08);
}

.regulations-interface {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6px;
    height: 100%;
}

.regulation-viewer {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 13, 45, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.regulation-header {
    background: var(--primary-darkest);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    height: 48px;
    box-sizing: border-box;
}

.regulation-title {
    font-weight: 600;
}

.regulation-controls {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    opacity: 0.9;
}

.regulation-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: linear-gradient(180deg, white 0%, #fafafa 100%);
}

.regulation-page h4 {
    color: var(--primary-darkest);
    font-size: 0.95rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

.regulation-section {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.regulation-section strong {
    color: var(--primary-dark);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 6px;
}

.regulation-text {
    color: var(--primary-medium);
    font-size: 0.75rem;
    line-height: 1.4;
}

.highlighted-rule {
    animation: highlightRule 10s infinite;
}

@keyframes highlightRule {
    0%, 60% {
        background: transparent;
    }
    65%, 90% {
        background: rgba(255, 213, 0, 0.2);
        border-left: 3px solid var(--primary-base);
        padding-left: 9px;
    }
    95%, 100% {
        background: transparent;
    }
}

.regulation-chatbot {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 13, 45, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reg-chat-header {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    height: 48px;
    box-sizing: border-box;
}

.reg-chat-icon {
    font-size: 1.2rem;
}

.reg-chat-messages {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    background: #fafbfc;
}

.reg-chat-message {
    max-width: 85%;
}

.reg-user-message {
    align-self: flex-end;
    background: var(--primary-darkest);
    color: white;
    padding: 10px 14px;
    border-radius: 12px 12px 4px 12px;
    font-size: 0.8rem;
    opacity: 0;
    animation: showUserMessage 10s infinite;
}

.reg-bot-message {
    align-self: flex-start;
    background: white;
    border: 1px solid var(--border-light);
    padding: 12px 14px;
    border-radius: 12px 12px 12px 4px;
    font-size: 0.75rem;
    color: var(--primary-medium);
    opacity: 0;
    animation: showBotMessage 10s infinite;
}

.reg-typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px;
    animation: hideTyping 10s infinite;
}

.reg-typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--primary-medium);
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.reg-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.reg-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

.reg-bot-response {
    opacity: 0;
    animation: showResponse 10s infinite;
}

.reg-bot-response p {
    margin-bottom: 8px;
    line-height: 1.4;
}

.reg-bot-response ul {
    margin: 8px 0;
    padding-left: 20px;
}

.reg-bot-response li {
    margin: 4px 0;
    color: var(--primary-dark);
}

.reg-reference-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 6px 10px;
    background: var(--gradient-accent);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-darkest);
    animation: pulseReference 10s infinite;
}

.reg-chat-input {
    padding: 12px;
    border-top: 1px solid var(--border-light);
    background: white;
}

.reg-chat-input input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    font-size: 0.8rem;
    background: var(--background-light);
}

.reg-chat-input input::placeholder {
    color: var(--primary-medium);
}

/* Acts Animation Styles */
.acts-animation-container {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 13, 45, 0.08);
}

.acts-interface {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4px;
    height: 100%;
}

.pdf-viewer {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 13, 45, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdf-header {
    background: var(--primary-darkest);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    height: 48px;
    box-sizing: border-box;
}

.pdf-title {
    font-weight: 600;
}

.pdf-controls {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    opacity: 0.9;
}

.pdf-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: linear-gradient(180deg, white 0%, #fafafa 100%);
}

.pdf-page h4 {
    color: var(--primary-darkest);
    font-size: 0.95rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

.pdf-section {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pdf-section strong {
    color: var(--primary-dark);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 6px;
}

.pdf-text {
    color: var(--primary-medium);
    font-size: 0.75rem;
    line-height: 1.4;
}

.highlighted-section {
    animation: highlightSection 10s infinite;
}

@keyframes highlightSection {
    0%, 60% {
        background: transparent;
    }
    65%, 90% {
        background: rgba(255, 213, 0, 0.2);
        border-left: 3px solid var(--primary-base);
        padding-left: 9px;
    }
    95%, 100% {
        background: transparent;
    }
}

.chatbot-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 13, 45, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    height: 48px;
    box-sizing: border-box;
}

.chat-icon {
    font-size: 1.2rem;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    background: #fafbfc;
}

.chat-message {
    max-width: 85%;
    animation: fadeInMessage 10s infinite;
}

.user-message {
    align-self: flex-end;
    background: var(--primary-darkest);
    color: white;
    padding: 10px 14px;
    border-radius: 12px 12px 4px 12px;
    font-size: 0.8rem;
    opacity: 0;
    animation: showUserMessage 10s infinite;
}

@keyframes showUserMessage {
    0%, 15% {
        opacity: 0;
        transform: translateY(10px);
    }
    20%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    align-self: flex-start;
    background: white;
    border: 1px solid var(--border-light);
    padding: 12px 14px;
    border-radius: 12px 12px 12px 4px;
    font-size: 0.75rem;
    color: var(--primary-medium);
    opacity: 0;
    animation: showBotMessage 10s infinite;
}

@keyframes showBotMessage {
    0%, 30% {
        opacity: 0;
        transform: translateY(10px);
    }
    35%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px;
    animation: hideTyping 10s infinite;
}

@keyframes hideTyping {
    0%, 30% {
        display: flex;
        opacity: 1;
    }
    35%, 40% {
        opacity: 1;
    }
    45%, 100% {
        display: none;
        opacity: 0;
    }
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--primary-medium);
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.bot-response {
    opacity: 0;
    animation: showResponse 10s infinite;
}

@keyframes showResponse {
    0%, 45% {
        opacity: 0;
        height: 0;
    }
    50%, 100% {
        opacity: 1;
        height: auto;
    }
}

.bot-response p {
    margin-bottom: 8px;
    line-height: 1.4;
}

.bot-response ul {
    margin: 8px 0;
    padding-left: 20px;
}

.bot-response li {
    margin: 4px 0;
    color: var(--primary-dark);
}

.reference-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 6px 10px;
    background: var(--gradient-accent);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-darkest);
    animation: pulseReference 10s infinite;
}

@keyframes pulseReference {
    0%, 60% {
        transform: scale(1);
    }
    65%, 70%, 75%, 80% {
        transform: scale(1.05);
    }
    67%, 72%, 77%, 100% {
        transform: scale(1);
    }
}

.chat-input {
    padding: 12px;
    border-top: 1px solid var(--border-light);
    background: white;
}

.chat-input input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    font-size: 0.8rem;
    background: var(--background-light);
}

.chat-input input::placeholder {
    color: var(--primary-medium);
}

.icon-background {
    width: 64px;
    height: 64px;
    background: var(--gradient-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-light);
}

.feature-content h3 {
    font-size: 1.5rem;
    color: var(--primary-darkest);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.feature-content p {
    font-size: 1rem;
    color: var(--primary-medium);
    line-height: 1.6;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    margin-bottom: 24px;
}

.feature-list li {
    padding: 6px 0;
    color: var(--primary-medium);
    font-size: 0.95rem;
    position: relative;
    padding-left: 20px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-base);
    font-weight: 600;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-darkest);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

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

.feature-link .arrow {
    transition: transform 0.2s ease;
}

.feature-link:hover .arrow {
    transform: translateX(4px);
}

/* Product Showcase */
.product-showcase {
    background: var(--accent);
    padding: 120px 0;
    position: relative;
}

.product-grid {
    display: grid;
    gap: 80px;
    margin-top: 40px;
}

.product-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.product-feature.reverse {
    direction: rtl;
}

.product-feature.reverse > * {
    direction: ltr;
}

.feature-visual {
    position: relative;
}

.visual-mockup {
    background: var(--gradient-accent);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.lookup-mockup {
    height: 320px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.lookup-mockup .mockup-content {
    padding: 8px;
    flex: 1;
    position: relative;
    min-height: 160px;
}

.visual-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.mockup-header {
    background: var(--accent);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-light);
}

.mockup-title {
    font-weight: 600;
    color: var(--primary-darkest);
    font-size: 0.9rem;
}

.mockup-content {
    padding: 16px;
}

/* Brief Mockup */
.brief-item {
    font-size: 0.8rem;
    color: var(--primary-medium);
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brief-item:last-child {
    border-bottom: none;
}

.brief-item strong {
    color: var(--primary-darkest);
    font-weight: 600;
}

.brief-item.highlighted {
    background: rgba(0, 52, 132, 0.05);
    border-radius: 4px;
    padding: 6px 8px;
    margin: 0 -8px; /* Adjust to align with padding */
}

/* Lookup Mockup */
.lookup-mockup .mockup-content {
    padding: 8px;
}

.lookup-item-wrapper {
    margin-bottom: 8px;
}

.lookup-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--accent);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lookup-item:hover {
    background: var(--background-light);
}

.lookup-icon {
    font-size: 1.2rem;
}

.lookup-text {
    font-weight: 500;
    color: var(--primary-darkest);
    flex: 1;
}

.lookup-arrow {
    font-size: 0.8rem;
    color: var(--primary-medium);
    transition: transform 0.3s ease;
}

.lookup-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    padding: 0 12px;
}

.detail-item {
    padding: 10px 12px;
    background: var(--background-light);
    border-radius: 6px;
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--primary-base);
    cursor: pointer;
    border-left: 3px solid var(--primary-base);
}

.detail-item:hover {
    background: var(--primary-lightest);
}

.act-viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 13, 45, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 10;
}

.act-viewer {
    background: white;
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    box-shadow: var(--shadow-medium);
    transform: scale(0.9);
    transition: transform 0.4s ease;
    position: relative;
}

.act-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-darkest);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.act-content p {
    font-size: 0.85rem;
    color: var(--primary-medium);
    margin-bottom: 8px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 1.5rem;
    color: var(--primary-medium);
    cursor: pointer;
}

/* Lookup Animation */
.product-feature.animate-in .lookup-mockup {
    animation: runLookupAnimation 6s infinite;
}

@keyframes runLookupAnimation {
    0%, 12% { /* Initial state */
        --arrow-rotate: 0deg;
        --details-height: 0px;
        --details-padding: 0px;
        --overlay-opacity: 0;
        --viewer-scale: 0.9;
    }
    20%, 30% { /* Expand "Acts Cited" */
        --arrow-rotate: 90deg;
        --details-height: 50px;
        --details-padding: 8px;
        --overlay-opacity: 0;
        --viewer-scale: 0.9;
    }
    50%, 68% { /* Show Act Viewer */
        --arrow-rotate: 90deg;
        --details-height: 50px;
        --details-padding: 8px;
        --overlay-opacity: 1;
        --viewer-scale: 1;
    }
    85%, 100% { /* Reset state */
        --arrow-rotate: 0deg;
        --details-height: 0px;
        --details-padding: 0px;
        --overlay-opacity: 0;
        --viewer-scale: 0.9;
    }
}

.lookup-mockup .lookup-arrow {
    transform: rotate(var(--arrow-rotate, 0deg));
    transition: transform 0.3s ease;
}

.lookup-mockup .lookup-details {
    max-height: var(--details-height, 0px);
    padding-top: var(--details-padding, 0px);
    padding-bottom: var(--details-padding, 0px);
    transition: max-height 0.4s ease, padding 0.4s ease;
    overflow: hidden;
}

.lookup-mockup .act-viewer-overlay {
    opacity: var(--overlay-opacity, 0);
    pointer-events: all;
    transition: opacity 0.4s ease;
}

.lookup-mockup .act-viewer {
    transform: scale(var(--viewer-scale, 0.9));
    transition: transform 0.4s ease;
}

.animated-cursor-lookup {
    position: absolute;
    top: 90px;
    left: 80px;
    pointer-events: none;
    z-index: 30;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    opacity: 0;
    transition: all 0.5s ease;
}

.product-feature.animate-in .animated-cursor-lookup {
    animation: moveCursorLookup 6s infinite;
}

@keyframes moveCursorLookup {
    /* Start position - move to Acts Cited */
    0%, 5% {
        top: 90px;
        left: 80px;
        opacity: 1;
    }
    /* Click "Acts Cited" arrow */
    15%, 20% {
        top: 110px;
        left: 250px;
        opacity: 1;
    }
    /* Move to "Evidence Act" link */
    35%, 40% {
        top: 170px;
        left: 120px;
        opacity: 1;
    }
    /* Click "Evidence Act" */
    45%, 50% {
        top: 130px;
        left: 120px;
        opacity: 1;
    }
    /* Move to close button */
    70%, 75% {
        top: 87px;
        left: 255px;
        opacity: 1;
    }
    /* Click close button */
    80%, 85% {
        top: 70px;
        left: 280px;
        opacity: 1;
    }
    /* Fade out at the end */
    95%, 100% {
        top: 70px;
        left: 280px;
        opacity: 0;
    }
}

/* Dictionary Mockup */
.dictionary-mockup .mockup-title {
    font-size: 0.9rem;
    line-height: 1.4;
}
.case-header-title span {
    display: block;
}
.case-header-title .case-dates {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--primary-medium);
    margin-top: 4px;
}

.dictionary-mockup .mockup-content {
    position: relative;
    padding: 16px;
    height: 180px; /* Give it a fixed height to contain the text */
}

.legal-text-nepali {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--primary-medium);
}

.highlight-word {
    background-color: transparent;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.definition-box {
    position: absolute;
    top: 40px;
    left: 250px;
    background: var(--accent);
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    padding: 16px;
    width: 240px;
    z-index: 20;
    border: 1px solid var(--border-light);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.definition-box h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-darkest);
    margin-bottom: 8px;
}

.definition-box p {
    font-size: 0.85rem;
    color: var(--primary-medium);
}

/* Dictionary Animation */
.product-feature.animate-in .dictionary-mockup {
    --word-bg: transparent;
    --box-opacity: 0;
    --box-transform: translateY(10px);
    animation: runDictionaryAnimation 6s infinite;
}

@keyframes runDictionaryAnimation {
    /* Initial state - no highlight, no definition */
    0%, 35% {
        --word-bg: transparent;
        --box-opacity: 0;
        --box-transform: translateY(10px);
    }
    /* Word gets highlighted when cursor approaches */
    40%, 45% {
        --word-bg: rgba(0, 52, 132, 0.1);
        --box-opacity: 0;
        --box-transform: translateY(10px);
    }
    /* Definition box appears when cursor clicks */
    50%, 75% {
        --word-bg: rgba(0, 52, 132, 0.1);
        --box-opacity: 1;
        --box-transform: translateY(-40);
    }
    /* Animation reset */
    85%, 100% {
        --word-bg: transparent;
        --box-opacity: 0;
        --box-transform: translateY(10px);
    }
}

.dictionary-mockup .highlight-word {
    background-color: var(--word-bg);
}

.dictionary-mockup .definition-box {
    opacity: var(--box-opacity);
    transform: var(--box-transform);
}

.animated-cursor-dict {
    position: absolute;
    pointer-events: none;
    z-index: 30;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    opacity: 0;
}

.product-feature.animate-in .animated-cursor-dict {
    animation: moveCursorDict 6s infinite;
}

@keyframes moveCursorDict {
    /* Start position - fade in */
    0%, 15% {
        opacity: 0;
        top: 85px;
        left: 40px;
    }
    /* Appear and start moving toward the word */
    25% {
        opacity: 1;
        top: 85px;
        left: 40px;
    }
    /* Move to the highlighted word "न्यायिक" */
    35%, 40% {
        opacity: 1;
        top: 130px;
        left: 380px;
    }
    /* Hover over the word (slight scale for click effect) */
    45% {
        opacity: 1;
        top: 130px;
        left: 380px;
        transform: scale(0.9);
    }
    /* Click effect */
    50%, 65% {
        opacity: 1;
        top: 130px;
        left: 380px;
        transform: scale(1);
    }
    /* Move away after definition shows */
    75% {
        opacity: 1;
        top: 140px;
        left: 200px;
        transform: scale(1);
    }
    /* Fade out */
    85%, 100% {
        opacity: 0;
        top: 140px;
        left: 200px;
        transform: scale(1);
    }
}

/* AI Chat Mockup */
.chat-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    margin-bottom: 8px;
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-bubble.user {
    background: var(--primary-base);
    color: var(--accent);
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
    background: var(--accent);
    color: var(--primary-darkest);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-light);
}

.feature-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-darkest);
    margin-bottom: 20px;
    line-height: 1.2;
}

.feature-info p {
    font-size: 1.1rem;
    color: var(--primary-medium);
    line-height: 1.6;
    margin-bottom: 24px;
}

.feature-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.benefit {
    background: var(--background-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-darkest);
    border: 1px solid var(--border-light);
}

/* Reviews Section */
.reviews {
    background: var(--background-section);
    padding: 120px 0 80px;
    overflow: hidden;
    position: relative;
}

.reviews-carousel {
    margin-top: 60px;
    position: relative;
    padding: 20px 0;
}

.reviews-track {
    display: flex;
    gap: 32px;
    animation: scroll-reviews 40s linear infinite;
    width: max-content;
    padding-left: 20px;
}

.reviews-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-reviews {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.review-card {
    background: var(--accent);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--primary-lighter);
    width: 500px;
    min-width: 500px;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 13, 45, 0.15);
    border-color: var(--primary-base);
}

.firm-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-placeholder {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    border: 2px solid var(--accent);
    font-weight: 600;
    color: var(--accent);
    font-size: 0.85rem;
    line-height: 1.2;
}

.logo-placeholder span:first-child {
    font-size: 0.95rem;
    font-weight: 700;
}

.review-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-text {
    color: var(--primary-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    font-style: italic;
    position: relative;
}

.review-text::before {
    content: '"';
    position: absolute;
    left: -16px;
    top: -8px;
    font-size: 2.5rem;
    color: var(--primary-lighter);
    font-family: 'Instagram Sans', 'DM Serif Display', serif;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.reviewer-info strong {
    color: var(--primary-darkest);
    font-weight: 600;
    font-size: 0.95rem;
}

.reviewer-info span {
    color: var(--primary-light);
    font-size: 0.85rem;
}

/* Pricing Section */
.pricing {
    background: var(--background-section);
    padding: 120px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.pricing-card {
    background: var(--accent);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    cursor: pointer;
}

.pricing-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--shadow-medium);
}

.pricing-card.featured {
    background: var(--gradient-primary);
    color: var(--accent);
    transform: scale(1.05);
    border: 2px solid var(--primary-base);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px) !important;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-light);
}

.plan-header {
    margin-bottom: 32px;
}

.plan-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-darkest);
    margin-bottom: 8px;
}

.pricing-card.featured .plan-name {
    color: var(--accent);
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

.currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-darkest);
}

.pricing-card.featured .currency {
    color: var(--accent);
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-darkest);
    line-height: 1;
}

.pricing-card.featured .amount {
    color: var(--accent);
}

.period {
    font-size: 1rem;
    color: var(--primary-medium);
    font-weight: 500;
}

.pricing-card.featured .period {
    color: var(--primary-lightest);
}

.plan-description {
    color: var(--primary-medium);
    font-size: 1rem;
    line-height: 1.4;
}

.pricing-card.featured .plan-description {
    color: var(--primary-lightest);
}

.plan-features {
    margin-bottom: 32px;
    text-align: left;
}

.plan-features ul {
    list-style: none;
}

.plan-features li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--primary-medium);
    position: relative;
    padding-left: 24px;
}

.pricing-card.featured .plan-features li {
    color: var(--primary-lightest);
}

.plan-features li::before {
    position: absolute;
    left: 0;
    font-weight: 600;
}

.plan-button {
    width: 100%;
    background: var(--blue);
    color: #fff;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s ease, transform 0.2s ease;
    border: 2px solid var(--blue);
    display: inline-block;
}

.plan-button:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    transform: translateY(-2px);
}

.pricing-card.featured .plan-button {
    background: var(--accent);
    color: var(--primary-darkest);
    border-color: var(--accent);
}

/* Footer */
.footer {
    background: var(--primary-darkest);
    color: var(--accent);
    padding: 80px 0 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(77, 123, 196, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(153, 184, 231, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.logo-image-footer {
    height: 120px;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: var(--primary-lightest);
    line-height: 1.6;
    margin-bottom: 32px;
    font-size: 1rem;
}

.footer-social {
    display: flex;
    gap: 24px;
}

.social-link {
    color: var(--primary-lightest);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: var(--accent);
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-section h4 {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--primary-lightest);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

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

.footer-cta {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.cta-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.cta-content p {
    color: var(--primary-lightest);
    font-size: 1rem;
}

.footer-cta .cta-button {
    background: var(--blue);
    color: #fff;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.footer-cta .cta-button:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 71, 172, 0.3);
}

.footer-bottom {
    border-top: 1px solid var(--primary-dark);
    padding-top: 32px;
    position: relative;
    z-index: 2;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: var(--primary-lightest);
    font-size: 0.9rem;
}

.footer-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
}

/* Legal Pages Specific Styles */
.legal-page-header {
    padding: 120px 0 60px;
    background: var(--gradient-primary);
    text-align: center;
    color: var(--accent);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-page-header h1 {
    font-family: 'Instagram Sans', 'DM Serif Display', serif;
    font-size: 3.5rem;
    margin-bottom: 8px;
}

.legal-page-header p {
    font-size: 1.1rem;
    color: var(--primary-lightest);
}

.legal-content {
    padding: 80px 0;
    background: var(--background-light);
}

.legal-section {
    background: var(--accent);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
    margin-bottom: 40px;
}

.legal-section h2 {
    font-family: 'Instagram Sans', 'DM Serif Display', serif;
    font-size: 2rem;
    color: var(--primary-darkest);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.legal-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-section p, .legal-section li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--primary-medium);
    margin-bottom: 16px;
}

.legal-section ul {
    list-style-position: outside;
    padding-left: 20px;
}

.legal-section ul ul {
    margin-top: 8px;
    margin-bottom: 8px;
}

.legal-section strong {
    color: var(--primary-darkest);
    font-weight: 600;
}

.legal-section em {
    font-style: italic;
    color: var(--primary-dark);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.9rem;
}

.legal-table th, .legal-table td {
    border: 1px solid var(--border-light);
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background: var(--background-section);
    font-weight: 600;
    color: var(--primary-darkest);
}

.chat-example {
    background: var(--background-section);
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
    border: 1px solid var(--border-light);
}

.chat-example p {
    margin-bottom: 12px;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: flex-start;
}

.contact-details p {
    margin-top: 24px;
}

.contact-details a {
    color: var(--primary-base);
    text-decoration: none;
}
.contact-details a:hover {
    text-decoration: underline;
}

.contact-form .form-group {
    margin-bottom: 24px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: var(--primary-darkest);
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-base);
    box-shadow: 0 0 0 3px rgba(0, 52, 132, 0.1);
}

.contact-form textarea {
    resize: vertical;
}

.captcha-placeholder {
    background: var(--background-section);
    border: 1px dashed var(--border-light);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    color: var(--primary-medium);
}

.contact-form .cta-primary {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

/* Contact Buttons Styles */
.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--background-section);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: var(--primary-lightest);
    border-color: var(--primary-base);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 52, 132, 0.1);
}

.contact-btn .btn-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-lightest);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-btn .btn-content h3 {
    margin: 0 0 4px 0;
    color: var(--primary-darkest);
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-btn .btn-content p {
    margin: 0;
    color: var(--primary-medium);
    font-size: 0.9rem;
}

/* Team Page Styles */
.team-section {
    background: var(--background-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.team-card {
    background: var(--accent);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.team-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 24px;
    border: 4px solid var(--accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 24px;
    border: 4px solid var(--accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.team-img-binamra {
    object-position: center 0%;
    transform: scale(1.9);
}

.team-img-aabhusan {
    object-position: 100% 30%;
    transform: scale(1);
}

.team-img-manish {
    object-position: -5% 0%;
    transform: scale(2.4);
}

.team-img-samit {
    object-position: 0% -20%;
}

.team-img-sankalpa {
    object-position: center center;
}

.team-info {
    width: 100%;
}

.team-name {
    font-family: 'Instagram Sans', 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--primary-darkest);
    margin-bottom: 8px;
}

.team-designation {
    font-size: 0.95rem;
    color: var(--primary-base);
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.team-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--primary-medium);
    text-align: left;
}

.team-cta {
    background: var(--gradient-primary);
    padding: 80px 0;
    text-align: center;
}

.team-cta .cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.team-cta h2 {
    font-family: 'Instagram Sans', 'DM Serif Display', serif;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.team-cta p {
    font-size: 1.1rem;
    color: var(--primary-lightest);
    margin-bottom: 32px;
}

/* Animation Classes */
.animate-in {
    opacity: 1 !important;
}

.feature-card.animate-in,
.product-feature.animate-in {
    transform: translateY(0) !important;
}

.pricing-card.animate-in {
    transform: none;
}

.pricing-card.featured.animate-in {
    transform: scale(1.05);
}

.feature-card,
.product-feature,
.pricing-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.feature-card.animate-ready,
.product-feature.animate-ready,
.pricing-card.animate-ready {
    opacity: 0;
    transform: translateY(30px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }

    .feature-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
        text-align: center;
    }

    .feature-card.reverse {
        direction: ltr;
    }

    .feature-visual .visual-placeholder {
        height: 250px;
    }

    .search-animation-container {
        height: 320px;
    }
    
    .acts-animation-container {
        height: 320px;
    }
    
    .regulations-animation-container {
        height: 320px;
    }
    
    .acts-interface {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .regulations-interface {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .pdf-header {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .regulation-header {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .pdf-content {
        padding: 16px;
    }
    
    .regulation-content {
        padding: 16px;
    }
    
    .chat-messages {
        padding: 12px;
    }
    
    .reg-chat-messages {
        padding: 12px;
    }

    .review-card {
        width: 400px;
        min-width: 400px;
        grid-template-columns: 100px 1fr;
        gap: 20px;
        padding: 24px;
    }

    .logo-placeholder {
        width: 80px;
        height: 80px;
        font-size: 0.75rem;
    }

    .logo-placeholder span:first-child {
        font-size: 0.85rem;
    }

    .product-feature {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .product-feature.reverse {
        direction: ltr;
    }

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

    .footer-links-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

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

    .header {
        padding: 12px 0;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        transform: translateY(-100%);
        /* visibility:hidden after 0.3s (after slide-up completes) */
        transition: transform 0.3s ease, visibility 0s linear 0.3s;
        visibility: hidden;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-light);
        z-index: 1001;
    }

    .nav.active .nav-links {
        transform: translateY(0);
        /* visibility:visible immediately when opening */
        transition: transform 0.3s ease;
        visibility: visible;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding-top: 100px;
        min-height: 90vh;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 32px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 40px;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .hero-stats {
        gap: 32px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .feature-grid {
        gap: 32px;
    }

    .feature-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 24px;
        text-align: center;
    }

    .feature-card.reverse {
        direction: ltr;
    }

    .feature-visual .visual-placeholder {
        height: 250px;
    }
    
    .search-animation-container {
        height: 300px;
        padding: 16px;
        overflow: visible;
    }
    
    .acts-animation-container {
        height: 280px;
        padding: 12px;
    }
    
    .regulations-animation-container {
        height: 280px;
        padding: 12px;
    }
    
    .acts-interface {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .regulations-interface {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .pdf-viewer {
        display: none;
    }
    
    .regulation-viewer {
        display: none;
    }
    
    .chatbot-panel {
        height: 100%;
    }
    
    .regulation-chatbot {
        height: 100%;
    }
    
    .search-interface {
        gap: 12px;
    }
    
    .search-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .database-dropdown {
        width: 100%;
    }
    
    .apply-filters-btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .search-results {
        gap: 8px;
    }
    
    .result-item {
        padding: 8px;
    }

    .review-card {
        width: 320px;
        min-width: 320px;
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 20px;
        text-align: center;
    }

    .firm-logo {
        margin-bottom: 8px;
    }

    .logo-placeholder {
        width: 100px;
        height: 60px;
        padding: 8px;
        margin: 0 auto;
    }

    .review-text::before {
        left: -12px;
        top: -4px;
        font-size: 2rem;
    }

    .feature-content h3 {
        font-size: 1.3rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .pricing-card.featured {
        transform: none;
    }

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

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

    .footer-cta {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        padding: 32px 24px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

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

    .contact-buttons {
        gap: 12px;
    }

    .contact-btn {
        padding: 16px;
        gap: 12px;
    }

    .contact-btn .btn-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .contact-btn .btn-content h3 {
        font-size: 1rem;
    }

    .contact-btn .btn-content p {
        font-size: 0.85rem;
    }
.team-grid {
    grid-template-columns: 1fr;
    gap: 24px;
}

.team-card {
    padding: 24px;
}

.team-cta h2 {
    font-size: 2rem;
}

.team-cta p {
    font-size: 1rem;
}
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .feature-benefits {
        flex-direction: column;
        gap: 8px;
    }

    .pricing-card {
        padding: 24px 16px;
    }

    .footer-cta {
        padding: 24px 16px;
    }
}

/* ============================================
   HOMEPAGE v2 — HALSA-INSPIRED REDESIGN
   ============================================ */

/* Section eyebrow */
.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 12px;
}

/* Buttons */
.btn-dark {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Instagram Sans', 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
}
.btn-dark:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-light {
    display: inline-block;
    background: #fff;
    color: var(--primary-darkest);
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Instagram Sans', 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.btn-light:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--primary-darkest);
    padding: 13px 28px;
    border-radius: 8px;
    border: 1.5px solid rgba(0,13,45,0.3);
    text-decoration: none;
    font-family: 'Instagram Sans', 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.btn-outline:hover { border-color: var(--primary-darkest); background: rgba(0,13,45,0.04); }

/* ============ HERO V2 ============ */
.hero-v2 {
    background: var(--paper-tint);
    padding: 140px 0 80px;
    overflow: hidden;
}
.hero-v2-content {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 8px;
}
.hero-v2-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid rgba(0,13,45,0.1);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #000d2d;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
}
.hero-v2-title {
    font-family: 'Instagram Sans', 'DM Serif Display', serif;
    font-size: clamp(2.2rem, 4.2vw, 3.8rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #000d2d;
    margin-bottom: 16px;
}
.hero-v2-title em {
    font-style: italic;
    color: #ffffff; /* white — neutral on dark navy hero card */
}
.hero-v2-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(0,13,45,0.65);
    margin-bottom: 24px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* Browser mockups */
.hero-browsers {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    max-width: 780px;
    margin: 0 auto 12px;
    padding: 0 20px;
}
.browser-window {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0,13,45,0.1);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}
.browser-window:hover { transform: translateY(-4px); }
.mockup-center { flex: 1.1; }
.mockup-center:hover { transform: translateY(-4px); }
.browser-chrome {
    background: #f1f1f1;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}
.browser-dots { display: flex; gap: 5px; }
.browser-dot-el {
    width: 8px; height: 8px;
    border-radius: 50%;
}
.browser-dot-el:nth-child(1) { background: #ff5f57; }
.browser-dot-el:nth-child(2) { background: #febc2e; }
.browser-dot-el:nth-child(3) { background: #28c840; }
.browser-url-bar {
    flex: 1;
    background: #e4e4e4;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 0.7rem;
    color: #666;
    font-family: 'Instagram Sans', 'DM Sans', sans-serif;
}
.browser-body {
    padding: 10px;
    min-height: 76px;
}
/* Najir mockup content */
.mock-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 0.75rem;
    color: #000d2d;
    border: 1px solid rgba(0,0,0,0.08);
}
.mock-search-icon { font-size: 0.8rem; }
.mock-result-list { display: flex; flex-direction: column; gap: 8px; }
.mock-result-item {
    padding: 8px 10px;
    border-radius: 6px;
    background: #f9f9f9;
    border: 1px solid rgba(0,0,0,0.05);
    font-size: 0.7rem;
}
.mock-result-item.active { background: rgba(0,71,172,0.08); border-color: rgba(0,71,172,0.25); }
.mock-result-title { font-weight: 600; color: #000d2d; margin-bottom: 2px; }
.mock-result-snippet { color: rgba(0,13,45,0.55); }
/* Acts mockup */
.mock-acts-content { display: flex; flex-direction: column; gap: 6px; }
.mock-acts-title {
    font-size: 0.8rem; font-weight: 600; color: #000d2d; margin-bottom: 8px;
}
.mock-line { height: 8px; background: #e8e8e8; border-radius: 4px; }
.mock-line.w-full { width: 100%; }
.mock-line.w-80 { width: 80%; }
.mock-line.w-60 { width: 60%; }
.mock-line.w-90 { width: 90%; }
.mock-line.highlighted { background: rgba(0,71,172,0.1); border-left: 3px solid var(--blue); padding-left: 6px; height: 10px; width: 100%; }
/* Dict mockup */
.mock-dict-entry-main { margin-bottom: 10px; }
.mock-dict-nep { display: block; font-size: 1.1rem; font-weight: 600; color: #000d2d; font-family: 'Instagram Sans', 'DM Serif Display', serif; }
.mock-dict-rom { display: block; font-size: 0.7rem; color: var(--primary-base); margin-bottom: 4px; }
.mock-dict-def { font-size: 0.7rem; color: rgba(0,13,45,0.6); line-height: 1.5; }
.mock-dict-divider { height: 1px; background: rgba(0,0,0,0.07); margin: 8px 0; }

/* Hero stats */
.hero-v2-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0,13,45,0.1);
    padding: 20px 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.hero-v2-stat { text-align: center; flex: 1; }
.hero-v2-stat-num { font-size: 1.8rem; font-weight: 700; color: #000d2d; line-height: 1; margin-bottom: 4px; }
.hero-v2-stat-lbl { font-size: 0.75rem; color: rgba(0,13,45,0.55); font-weight: 500; }
.hero-v2-stat-divider { width: 1px; height: 40px; background: rgba(0,13,45,0.1); flex-shrink: 0; margin: 0 16px; }

/* ============ TRUST STRIP ============ */
.trust-strip {
    padding: 28px 0;
    border-top: 1px solid rgba(0,13,45,0.07);
    border-bottom: 1px solid rgba(0,13,45,0.07);
    background: #fff;
}
.trust-strip .container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}
.trust-label {
    font-size: 0.8rem;
    color: rgba(0,13,45,0.45);
    font-weight: 500;
    white-space: nowrap;
}
.trust-logos {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}
.trust-logos span {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(0,13,45,0.5);
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}
.trust-logos span:hover { color: #000d2d; }

/* ============ CORE FEATURES ============ */
.core-features {
    background: #F7F7F8;
    padding: 100px 0;
}
.cf-header {
    text-align: center;
    margin-bottom: 56px;
}
.core-features .section-eyebrow { color: var(--blue); }
.cf-title {
    font-family: 'Instagram Sans', 'DM Serif Display', serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 400;
    color: #000d2d;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.1;
}
.cf-subtitle {
    font-size: 1.1rem;
    color: rgba(0,13,45,0.6);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}
.cf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.cf-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,13,45,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 1;
}
.cf-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.cf-card.animate-ready { opacity: 0; transform: translateY(24px); }
.cf-card.in-view { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s ease; }
.cf-card-visual {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    position: relative;
    overflow: hidden;
}
.cf-visual-najir { background: linear-gradient(135deg, rgba(0,71,172,0.07) 0%, rgba(0,71,172,0.14) 100%); }
.cf-visual-acts  { background: linear-gradient(135deg, #f0f0f2 0%, rgba(0,13,45,0.08) 100%); }
.cf-visual-regs  { background: linear-gradient(135deg, rgba(89,74,54,0.08) 0%, rgba(89,74,54,0.15) 100%); }
.cf-visual-dict  { background: linear-gradient(135deg, rgba(177,113,214,0.08) 0%, rgba(177,113,214,0.16) 100%); }
.cf-card-icon {
    position: absolute;
    top: 16px; right: 16px;
    font-size: 1.4rem;
    opacity: 0.6;
}
/* Mini result items for Najir card */
.cf-mini-results { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.cf-mini-result {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 8px; padding: 8px 12px;
    backdrop-filter: blur(4px);
}
.cf-mini-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(0,52,132,0.3); flex-shrink: 0;
}
.cf-mini-dot.active { background: var(--blue); }
.cf-mini-lines { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cf-mini-line {
    height: 6px; border-radius: 3px;
    background: rgba(0,13,45,0.12);
}
.cf-mini-line.long { width: 90%; }
.cf-mini-line.medium { width: 65%; }
.cf-mini-line.short { width: 45%; }
/* Doc lines for Acts card */
.cf-doc-content { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.cf-doc-title { height: 12px; background: rgba(0,13,45,0.2); border-radius: 4px; width: 70%; margin-bottom: 4px; }
.cf-mock-line {
    height: 7px; border-radius: 3px;
    background: rgba(0,13,45,0.1);
}
.cf-mock-line.full { width: 100%; }
.cf-mock-line.w80 { width: 80%; }
.cf-mock-line.w60 { width: 60%; }
.cf-mock-line.highlight {
    background: rgba(0,71,172,0.1);
    border-left: 3px solid var(--blue);
    padding-left: 6px;
    height: 9px; width: 100%;
}
/* Tags for Regs card */
.cf-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cf-tag {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,13,45,0.1);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(0,13,45,0.7);
    backdrop-filter: blur(4px);
}
.cf-tag.active {
    background: var(--blue);
    color: #fff; border-color: var(--blue);
}
/* Dict entries */
.cf-dict-entries { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.cf-dict-entry {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 8px; padding: 8px 12px;
    backdrop-filter: blur(4px);
}
.cf-dict-entry.muted { opacity: 0.5; }
.cf-dict-nep { font-family: 'Instagram Sans', 'DM Serif Display', serif; font-size: 0.9rem; color: #000d2d; font-weight: 600; }
.cf-dict-arr { color: var(--blue); font-size: 0.8rem; }
.cf-dict-eng { font-size: 0.8rem; color: rgba(0,13,45,0.7); font-weight: 500; }
/* Card body */
.cf-card-body { padding: 24px 28px 28px; }
.cf-card-body h3 {
    font-family: 'Instagram Sans', 'DM Serif Display', serif;
    font-size: 1.35rem; font-weight: 400;
    color: #000d2d; margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.cf-card-body p {
    font-size: 0.9rem; line-height: 1.65;
    color: rgba(0,13,45,0.65); margin-bottom: 16px;
}
.cf-link {
    font-size: 0.875rem; font-weight: 600;
    color: var(--blue); text-decoration: none;
    transition: color 0.2s ease;
}
.cf-link:hover { color: var(--blue-dark); }

/* ============ EMPOWERING SECTION ============ */
.emp-section {
    background: #fff;
    padding: 100px 0;
}
.emp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.emp-visual-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    background: #f8fafc;
}
.emp-visual-wrap .search-animation-container {
    height: 400px; border-radius: 0; box-shadow: none;
}

.emp-content-side .section-eyebrow { margin-bottom: 12px; }
.emp-title {
    font-family: 'Instagram Sans', 'DM Sans', sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 400; color: #000d2d;
    letter-spacing: -0.02em; line-height: 1.15;
    margin-bottom: 20px;
}
.emp-desc {
    font-size: 1rem; line-height: 1.7;
    color: rgba(0,13,45,0.65); margin-bottom: 32px;
}
.emp-features-list {
    list-style: none; padding: 0;
    display: flex; flex-direction: column; gap: 20px;
    margin-bottom: 36px;
}
.emp-features-list li {
    display: flex; gap: 14px; align-items: flex-start;
}
.emp-check {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(0,71,172,0.1); color: var(--blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.emp-features-list strong {
    display: block; font-size: 0.95rem; font-weight: 600;
    color: #000d2d; margin-bottom: 3px;
}
.emp-features-list p { font-size: 0.875rem; color: rgba(0,13,45,0.6); margin: 0; }

/* ============ AI SECTION ============ */
.ai-section {
    background: #F7F7F8;
    padding: 100px 0;
}
.ai-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.ai-content-side .section-eyebrow { margin-bottom: 12px; color: var(--blue); }
.ai-title {
    font-family: 'Instagram Sans', 'DM Sans', sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 400; color: #000d2d;
    letter-spacing: -0.02em; line-height: 1.15;
    margin-bottom: 20px;
}
.ai-desc {
    font-size: 1rem; line-height: 1.7;
    color: rgba(0,13,45,0.65); margin-bottom: 28px;
}
.ai-feats-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-bottom: 32px;
}
.ai-feat {
    background: #fff; border-radius: 12px;
    padding: 16px; display: flex; gap: 12px;
    border: 1px solid rgba(0,13,45,0.07);
    opacity: 1;
}
.ai-feat.animate-ready { opacity: 0; transform: translateY(16px); }
.ai-feat.in-view { opacity: 1; transform: translateY(0); transition: all 0.5s ease; }
.ai-feat-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.ai-feat strong { display: block; font-size: 0.875rem; font-weight: 600; color: #000d2d; margin-bottom: 3px; }
.ai-feat p { font-size: 0.8rem; color: rgba(0,13,45,0.6); margin: 0; line-height: 1.5; }
.ai-card {
    background: #fff; border-radius: 16px;
    padding: 24px; box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,13,45,0.07);
    position: relative; overflow: hidden;
}
.ai-card-header {
    font-size: 0.85rem; font-weight: 600; color: #000d2d;
    padding-bottom: 14px; border-bottom: 1px solid rgba(0,13,45,0.07);
    margin-bottom: 14px;
}
.ai-card-row {
    display: flex; gap: 10px; margin-bottom: 10px;
    font-size: 0.82rem; line-height: 1.5;
}
.ai-card-row.highlighted {
    background: rgba(0,71,172,0.07); border-radius: 6px;
    padding: 8px 10px; margin: 0 -10px 10px;
    border-left: 3px solid var(--blue);
}
.ai-card-label { font-weight: 600; color: #000d2d; flex-shrink: 0; }
.ai-card-value { color: rgba(0,13,45,0.65); }
.ai-chat-overlay {
    margin-top: 16px; padding-top: 16px;
    border-top: 1px solid rgba(0,13,45,0.07);
}
.ai-chat-bubble {
    border-radius: 12px; padding: 8px 12px;
    font-size: 0.78rem; line-height: 1.5;
    max-width: 85%; margin-bottom: 8px;
}
.user-bubble { background: #f1f1f1; color: #000d2d; margin-left: auto; border-radius: 12px 12px 2px 12px; }
.bot-bubble { background: rgba(0,71,172,0.07); color: #000d2d; border-left: 2px solid var(--blue); border-radius: 12px 12px 12px 2px; }

/* ============ STEPS SECTION ============ */
.steps-section {
    background: #fff;
    padding: 100px 0;
}
.steps-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.steps-content .section-eyebrow { margin-bottom: 12px; }
.steps-title {
    font-family: 'Instagram Sans', 'DM Sans', sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 400; color: #000d2d;
    letter-spacing: -0.02em; line-height: 1.15;
    margin-bottom: 36px;
}
.steps-list {
    list-style: none; padding: 0;
    display: flex; flex-direction: column; gap: 0;
    counter-reset: steps;
    margin-bottom: 36px;
}
.step-item {
    display: flex; gap: 20px; padding: 20px 0;
    border-bottom: 1px solid rgba(0,13,45,0.07);
    opacity: 1;
}
.step-item:first-child { padding-top: 0; }
.step-item:last-child { border-bottom: none; }
.step-item.animate-ready { opacity: 0; transform: translateX(-20px); }
.step-item.in-view { opacity: 1; transform: translateX(0); transition: all 0.5s ease; }
.step-num {
    font-family: 'Instagram Sans', 'DM Serif Display', serif;
    font-size: 1.5rem; font-weight: 400;
    color: rgba(0,13,45,0.2); flex-shrink: 0;
    line-height: 1; margin-top: 2px; min-width: 36px;
}
.step-body strong {
    display: block; font-size: 0.95rem; font-weight: 600;
    color: #000d2d; margin-bottom: 4px;
}
.step-body p { font-size: 0.875rem; color: rgba(0,13,45,0.6); margin: 0; line-height: 1.55; }
/* Steps mockup */
.steps-mockup {
    background: #F7F7F8;
    border-radius: 20px; padding: 28px;
    position: sticky; top: 100px;
}
.steps-mockup-inner {
    background: #fff; border-radius: 12px;
    overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,13,45,0.07);
}
.steps-mock-header {
    background: #f5f5f5;
    padding: 10px 14px;
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.steps-mock-dots { display: flex; gap: 4px; }
.steps-mock-dot {
    width: 8px; height: 8px; border-radius: 50%;
}
.steps-mock-dot:nth-child(1) { background: #ff5f57; }
.steps-mock-dot:nth-child(2) { background: #febc2e; }
.steps-mock-dot:nth-child(3) { background: #28c840; }
.steps-mock-url {
    background: #e4e4e4; border-radius: 4px;
    padding: 3px 10px; font-size: 0.7rem; color: #666;
    flex: 1;
}
.steps-mock-body { padding: 16px; }
.steps-mock-title {
    font-size: 0.9rem; font-weight: 600; color: #000d2d;
    margin-bottom: 10px;
}
.steps-mock-search {
    display: flex; align-items: center; gap: 8px;
    background: #f5f5f5; border-radius: 6px;
    padding: 8px 12px; margin-bottom: 10px;
    font-size: 0.75rem; color: #000d2d;
    border: 1px solid rgba(0,0,0,0.08);
}
.steps-mock-filters { display: flex; gap: 6px; margin-bottom: 12px; }
.step-filter {
    background: #f5f5f5; border-radius: 50px;
    padding: 4px 12px; font-size: 0.7rem;
    font-weight: 500; color: rgba(0,13,45,0.6);
}
.step-filter.active {
    background: var(--blue); color: #fff;
}
.steps-mock-results { display: flex; flex-direction: column; gap: 8px; }
.steps-mock-result {
    display: flex; align-items: flex-start; gap: 8px;
    background: #f9f9f9; border-radius: 6px;
    padding: 8px 10px; font-size: 0.7rem;
    border: 1px solid rgba(0,0,0,0.05);
}
.steps-mock-result.active-result {
    background: rgba(0,71,172,0.08); border-color: rgba(0,71,172,0.25);
}
.steps-mock-result-icon { flex-shrink: 0; }
.steps-mock-result-title { font-weight: 600; color: #000d2d; margin-bottom: 2px; }
.steps-mock-result-snippet { color: rgba(0,13,45,0.55); }

/* ============ METRIC SECTION ============ */
.metric-section {
    background: #000d2d;
    padding: 100px 0;
    color: #fff;
}
.metric-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.metric-big {
    font-family: 'Instagram Sans', 'DM Serif Display', serif;
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 400; color: #fff;
    line-height: 1; letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.metric-big span { color: #ffffff; }
.metric-desc {
    font-size: 1.05rem; line-height: 1.65;
    color: rgba(255,255,255,0.65);
    margin-bottom: 32px; max-width: 420px;
}
.metric-items {
    display: flex; gap: 32px; flex-wrap: wrap;
}
.metric-item {
    opacity: 1;
}
.metric-item.animate-ready { opacity: 0; }
.metric-item.in-view { opacity: 1; transition: opacity 0.5s ease; }
.metric-item-num {
    font-family: 'Instagram Sans', 'DM Serif Display', serif;
    font-size: 2rem; font-weight: 400;
    color: #fff; line-height: 1; margin-bottom: 4px;
}
.metric-item-lbl { font-size: 0.8rem; color: rgba(255,255,255,0.5); font-weight: 500; }
.metric-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px; padding: 36px;
}
.metric-percent {
    font-family: 'Instagram Sans', 'DM Serif Display', serif;
    font-size: 4rem; font-weight: 400;
    color: #fff; line-height: 1; margin-bottom: 16px;
}
.metric-card-desc {
    font-size: 0.95rem; line-height: 1.65;
    color: rgba(255,255,255,0.65); margin-bottom: 24px;
}
.metric-checks { display: flex; flex-direction: column; gap: 10px; }
.metric-check {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.875rem; color: rgba(255,255,255,0.7);
}
.metric-check::before {
    content: '✓'; color: var(--blue);
    font-weight: 700; flex-shrink: 0;
}

/* ============ CTA JOIN ============ */
.cta-join {
    background: #000d2d;
    padding: 80px 0;
}
.cta-join-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px; align-items: center;
}
.cta-join-eyebrow {
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(255,255,255,0.6); margin-bottom: 12px;
}
.cta-join-title {
    font-family: 'Instagram Sans', 'DM Serif Display', serif;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 400; color: #fff;
    letter-spacing: -0.02em; line-height: 1.1;
    margin-bottom: 20px;
}
.cta-join-desc {
    font-size: 1rem; line-height: 1.65;
    color: rgba(255,255,255,0.6); margin-bottom: 32px;
}
.cta-join-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px; padding: 32px;
    display: flex; flex-direction: column; gap: 24px;
}
.cj-stat-num {
    font-family: 'Instagram Sans', 'DM Serif Display', serif;
    font-size: 2.2rem; font-weight: 400;
    color: #fff; line-height: 1; margin-bottom: 4px;
}
.cj-stat-lbl { font-size: 0.8rem; color: rgba(255,255,255,0.5); font-weight: 500; }
.cj-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px; padding: 6px 14px;
    font-size: 0.8rem; color: rgba(255,255,255,0.7);
    align-self: flex-start; font-weight: 500;
}

/* ============ FINAL CTA ============ */
.final-cta {
    background: #F7F7F8;
    padding: 100px 0;
    text-align: center;
}
.final-cta-title {
    font-family: 'Instagram Sans', 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 400; color: #000d2d;
    letter-spacing: -0.02em; line-height: 1.1;
    margin-bottom: 20px;
}
.final-cta-title em { font-style: italic; color: var(--doc-gray); } /* Document Gray #2D2D31 — neutral on light bg */
.final-cta-desc {
    font-size: 1.1rem; color: rgba(0,13,45,0.6);
    margin-bottom: 36px; max-width: 480px;
    margin-left: auto; margin-right: auto;
    line-height: 1.6;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .cf-grid { grid-template-columns: 1fr; }
    .emp-layout, .ai-layout, .steps-layout,
    .metric-layout, .cta-join-layout { grid-template-columns: 1fr; gap: 40px; }
    .hero-browsers { flex-direction: column; max-width: 400px; }
    .mockup-center { transform: none; }
    .browser-window { min-width: unset; }
    .ai-feats-grid { grid-template-columns: 1fr; }
    .steps-mockup { position: static; }
    .hero-v2-stats { gap: 0; padding: 16px 20px; }
    .hero-v2-stat-num { font-size: 1.4rem; }
}
@media (max-width: 600px) {
    .hero-v2 { padding: 120px 0 60px; }
    .hero-v2-title { font-size: 2.2rem; }
    .trust-strip .container { flex-direction: column; gap: 16px; text-align: center; }
    .trust-logos { gap: 16px; }
    .hero-v2-stats { flex-direction: column; gap: 12px; }
    .hero-v2-stat-divider { width: 80%; height: 1px; margin: 0; }
    .metric-items { gap: 20px; }
}

/* ============ RESPONSIVE: 1400px LAPTOP ============ */
@media (max-width: 1400px) {

    /* Hero mockups: cap width tighter on laptop */
    .hero-browsers {
        max-width: 720px;
    }

    /* Section padding: reduce from 100px → 80px on laptop */
    .emp-section,
    .ai-section,
    .steps-section,
    .feat6-section {
        padding: 80px 0;
    }
    .metric-section {
        padding: 80px 0;
    }
    .cta-join {
        padding: 64px 0;
    }
    .final-cta {
        padding: 80px 0;
    }

    /* Section gaps: tighten from 64px → 48px */
    .emp-layout,
    .ai-layout,
    .steps-layout,
    .metric-layout {
        gap: 48px;
    }

    /* Orbital: fixed 540px left column is too wide on laptop */
    .orbital-layout {
        grid-template-columns: 460px 1fr;
        gap: 40px;
    }
    .orbital-stage {
        width: 440px;
        height: 440px;
    }
    .ot-ring {
        width: 360px;
        height: 360px;
    }

    /* Pricing: reduce cell padding so text breathes at 1280px */
    .pct-col-label {
        padding: 24px 20px;
    }
    .pct-col-plan {
        padding: 24px 16px 28px;
    }
    .pct-col-val {
        padding: 14px 12px;
    }
    .pct-price-main {
        font-size: 1.75rem;
    }
    .pct-plan-name {
        font-size: 1.1rem;
    }
    .pct-section {
        padding: 80px 0 64px;
    }
}

/* ============================================================
   HERO CARD REDESIGN — Primary navy rounded card (Halsa-style)
   ============================================================ */

/* Hero social proof */
.hero-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
}
.hero-avatars {
    display: flex;
    align-items: center;
}
.hero-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    margin-left: -10px;
    object-fit: cover;
    object-position: center top;
}
.hero-avatars .hero-avatar:first-child {
    margin-left: 0;
}
.hero-social-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hero-stars {
    display: flex;
    gap: 2px;
}
.hero-star {
    color: #F5C842;
    font-size: 0.95rem;
    line-height: 1;
}
.hero-star-half {
    background: linear-gradient(90deg, #F5C842 50%, rgba(255,255,255,0.25) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-social-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.3;
}

/* Nav CTA → primary navy */
.login-btn {
    background: var(--primary-darkest);
    border-color: var(--primary-darkest);
}
.login-btn:hover {
    background: rgba(0, 13, 45, 0.82);
    border-color: rgba(0, 13, 45, 0.82);
    transform: translateY(-1px);
}

/* Hero outer: white background; top padding clears fixed header + shows rounded top corners */
.hero-v2 {
    background: #ffffff;
    padding: 80px 0 12px; /* 72px header + 8px gap so top corners are fully visible */
}

/* Hero inner: dark navy rounded card — wide (24px gaps), not constrained to 1200px */
.hero-v2 .container {
    background: var(--primary-darkest);
    border-radius: 28px;
    max-width: calc(100% - 48px); /* 24px gap on each side */
    width: calc(100% - 48px);
    padding: 28px 80px 20px;
    overflow: hidden;
    position: relative;
}

/* Grid displacement canvas */
#heroGrid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Ensure hero content sits above the canvas */
.hero-v2-content,
.hero-browsers,
.hero-v2-stats {
    position: relative;
    z-index: 1;
}

/* Text overrides for dark hero card */
.hero-v2-title {
    color: #ffffff;
}
.hero-v2-desc {
    color: rgba(255, 255, 255, 0.68);
}
.hero-v2-badge {
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.badge-dot {
    background: var(--blue);
}

/* CTA button on dark card — white for contrast */
.hero-v2-content .btn-dark {
    background: #ffffff;
    color: var(--primary-darkest);
    border-radius: 50px;
}
.hero-v2-content .btn-dark:hover {
    background: rgba(255, 255, 255, 0.88);
    transform: translateY(-1px);
}

/* Stats bar on dark card */
.hero-v2-stats {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-v2-stat-num {
    color: #ffffff;
}
.hero-v2-stat-lbl {
    color: rgba(255, 255, 255, 0.55);
}
.hero-v2-stat-divider {
    background: rgba(255, 255, 255, 0.15);
}

/* Responsive: tighten card padding on smaller screens */
@media (max-width: 900px) {
    .hero-v2 .container {
        padding: 48px 32px 48px;
        max-width: calc(100% - 32px);
        width: calc(100% - 32px);
    }
}
@media (max-width: 600px) {
    .hero-v2 {
        padding: 84px 0 32px;
    }
    .hero-v2 .container {
        border-radius: 20px;
        padding: 40px 20px 40px;
        max-width: calc(100% - 24px);
        width: calc(100% - 24px);
    }
}
/* ============================================================
   ORBITAL FEATURE EXPLORER
   ============================================================ */

/* Layout: orbital stage left, info panel right */
.orbital-layout {
    display: grid;
    grid-template-columns: 540px 1fr;
    gap: 56px;
    align-items: center;
    min-height: 560px;
}
.orbital-stage-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* Stage: fixed square, nodes positioned from center */
.orbital-stage {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

/* SVG connection lines */
.ot-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

/* Dashed orbit ring */
.ot-ring {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 13, 45, 0.13);
    pointer-events: none;
}

/* Center pulsing element */
.ot-center {
    position: absolute;
    width: 56px;
    height: 56px;
    z-index: 10;
}
.ot-ping-a,
.ot-ping-b {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 13, 45, 0.18);
    animation: otPingAnim 2.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.ot-ping-b { animation-delay: 1.4s; }
@keyframes otPingAnim {
    0%   { transform: scale(1);   opacity: 0.55; }
    100% { transform: scale(2.6); opacity: 0; }
}
.ot-core {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #000D2D 0%, #0047AC 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 13, 45, 0.28), 0 0 0 4px rgba(0, 71, 172, 0.12);
}

/* Orbital nodes */
.ot-node {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -28px;
    margin-top: -28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    will-change: transform, opacity;
}
.ot-node-glow {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 71, 172, 0.18) 0%, transparent 70%);
    top: -8px;
    left: -8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.ot-node:hover .ot-node-glow,
.ot-node.ot-node-related .ot-node-glow { opacity: 1; }
.ot-node-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(0, 13, 45, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000D2D;
    box-shadow: 0 2px 10px rgba(0, 13, 45, 0.07);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.ot-node:hover .ot-node-btn {
    border-color: #0047AC;
    box-shadow: 0 4px 16px rgba(0, 71, 172, 0.22);
}
.ot-node.ot-node-active .ot-node-btn {
    background: #000D2D;
    border-color: #000D2D;
    color: #ffffff;
    transform: scale(1.28);
    box-shadow: 0 6px 24px rgba(0, 13, 45, 0.32);
}
.ot-node.ot-node-related .ot-node-btn {
    border-color: #0047AC;
    animation: otRelatedPulse 1.6s ease-in-out infinite;
}
@keyframes otRelatedPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 71, 172, 0.32); }
    50%       { box-shadow: 0 0 0 7px rgba(0, 71, 172, 0); }
}
.ot-node-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4D4D53;
    letter-spacing: 0.03em;
    white-space: nowrap;
    margin-top: 1px;
    transition: color 0.2s;
    pointer-events: none;
}
.ot-node.ot-node-active .ot-node-label { color: #000D2D; font-weight: 700; }

/* Hint text below stage */
.ot-hint {
    font-size: 0.73rem;
    color: #BBBBBD;
    margin: 0;
    letter-spacing: 0.02em;
}

/* ---- Info panel ---- */
.ot-panel { padding: 4px 0; }

#otPanelIdle { transition: opacity 0.3s ease; }

.ot-idle-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #000D2D;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 8px 0 22px;
}
.ot-idle-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ot-idle-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    color: #2D2D31;
    transition: background 0.15s, border-color 0.15s;
}
.ot-idle-item span:nth-child(2) { flex: 1; }
.ot-idle-item:hover { background: #ffffff; border-color: rgba(0,13,45,0.1); }
.ot-idle-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- Detail panel ---- */
#otPanelDetail { transition: opacity 0.3s ease; }

.ot-detail-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.ot-badge-blue   { background: rgba(0,71,172,0.1);   color: #0047AC; }
.ot-badge-navy   { background: rgba(0,13,45,0.08);   color: #000D2D; }
.ot-badge-bronze { background: rgba(89,74,54,0.1);   color: #594A36; }
.ot-badge-violet { background: rgba(0,71,172,0.1); color: #0047AC; }
.ot-badge-maroon { background: rgba(136,68,85,0.1);  color: #884455; }

.ot-detail-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #000D2D;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin: 0 0 14px;
}
.ot-detail-desc {
    font-size: 0.88rem;
    line-height: 1.68;
    color: #4D4D53;
    margin: 0 0 22px;
}
.ot-detail-features {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.ot-detail-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: #2D2D31;
    font-weight: 500;
}
.ot-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 71, 172, 0.1);
    color: #0047AC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}
.ot-detail-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.ot-related-chip {
    background: #F7F7F8;
    border: 1px solid rgba(0,13,45,0.12);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #4D4D53;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ot-related-chip:hover { background: #000D2D; border-color: #000D2D; color: #fff; }
.ot-detail-link {
    background: #000D2D;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    margin-left: auto;
    transition: background 0.2s;
}
.ot-detail-link:hover { background: #0047AC; }
.ot-back-btn {
    background: none;
    border: none;
    font-size: 0.76rem;
    color: #BBBBBD;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}
.ot-back-btn:hover { color: #4D4D53; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .orbital-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .orbital-stage-wrap { align-items: center; }
}
@media (max-width: 600px) {
    .orbital-stage { width: 340px; height: 340px; }
    .ot-ring { width: 280px; height: 280px; }
    .ot-idle-title { font-size: 1.3rem; }
    .ot-detail-title { font-size: 1.5rem; }
}

/* ============================================================
   FEATURES SECTION (feat6) — Powerful Features for Legal Professionals
   ============================================================ */

.feat6-section {
    padding: 88px 0;
    background: #F7F7F8;
}

.feat6-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

.feat6-title {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    font-weight: 700;
    color: #000D2D;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}

.feat6-title em {
    font-style: italic;
    color: #0047AC;
}

.feat6-subtitle {
    font-size: 1rem;
    color: #4D4D53;
    line-height: 1.72;
    margin: 0;
    max-width: 440px;
    align-self: center;
}

/* Main visual panel */
.feat6-visual-wrap {
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(0, 13, 45, 0.09);
    background: #ffffff;
    height: 420px;
    overflow: hidden;
}

.feat6-visual-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 64px;
    background: linear-gradient(to top, #ffffff, transparent);
    z-index: 5;
    pointer-events: none;
}

/* Panels */
.feat6-panel {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.feat6-panel.feat6-active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Panel 0: Case Briefs --- */
.feat6-cb-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0, 13, 45, 0.09);
    padding: 28px 32px;
    width: 100%;
    max-width: 640px;
    box-shadow: 0 4px 28px rgba(0, 13, 45, 0.08);
}

.feat6-cb-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 13, 45, 0.07);
}

.feat6-cb-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0047AC;
    background: rgba(0, 71, 172, 0.08);
    padding: 3px 10px;
    border-radius: 100px;
    align-self: flex-start;
}

.feat6-cb-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #000D2D;
    margin-top: 6px;
}

.feat6-cb-court {
    font-size: 0.75rem;
    color: #4D4D53;
}

.feat6-cb-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feat6-cb-row {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    align-items: start;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease var(--d, 0s), transform 0.4s ease var(--d, 0s);
}

.feat6-cb-row.feat6-cb-show {
    opacity: 1;
    transform: none;
}

.feat6-cb-lbl {
    font-size: 0.7rem;
    font-weight: 700;
    color: #4D4D53;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 2px;
}

.feat6-cb-val {
    font-size: 0.82rem;
    color: #2D2D31;
    line-height: 1.55;
}

.feat6-cb-row-hi {
    background: rgba(0, 71, 172, 0.05);
    border-left: 3px solid #0047AC;
    padding: 8px 10px;
    border-radius: 0 6px 6px 0;
    margin: 2px -10px;
}

.feat6-cb-row-hi .feat6-cb-lbl { color: #0047AC; }
.feat6-cb-row-hi .feat6-cb-val { color: #000D2D; font-weight: 500; }

.feat6-cb-typing {
    font-size: 0.75rem;
    color: #BBBBBD;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.feat6-cb-cursor {
    display: inline-block;
    width: 8px;
    height: 13px;
    background: #0047AC;
    border-radius: 2px;
    animation: feat6Blink 1s step-end infinite;
}

@keyframes feat6Blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Panel 1: Contextual Lookup --- */
.feat6-cl-wrap {
    position: relative;
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feat6-cl-doc {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 13, 45, 0.09);
    padding: 24px 28px;
    box-shadow: 0 2px 12px rgba(0, 13, 45, 0.05);
}

.feat6-cl-para {
    font-size: 0.88rem;
    color: #2D2D31;
    line-height: 1.85;
    margin: 0;
}

.feat6-cl-hl {
    background: rgba(0, 71, 172, 0.12);
    color: #0047AC;
    border-radius: 3px;
    padding: 1px 4px;
    font-weight: 600;
    cursor: pointer;
}

.feat6-cl-hl2 {
    background: rgba(0, 71, 172, 0.1);
    color: #0047AC;
    border-radius: 3px;
    padding: 1px 4px;
    font-weight: 600;
}

.feat6-cl-popup {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 13, 45, 0.1);
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 13, 45, 0.12);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    align-self: flex-start;
    min-width: 320px;
}

.feat6-cl-popup.feat6-cl-popup-show {
    opacity: 1;
    transform: none;
}

.feat6-cl-popup-header {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0047AC;
    margin-bottom: 8px;
}

.feat6-cl-popup-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #000D2D;
    margin-bottom: 3px;
}

.feat6-cl-popup-sec {
    font-size: 0.78rem;
    font-weight: 600;
    color: #0047AC;
    margin-bottom: 6px;
}

.feat6-cl-popup-desc {
    font-size: 0.8rem;
    color: #4D4D53;
    line-height: 1.55;
    margin-bottom: 10px;
}

.feat6-cl-popup-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: #0047AC;
    cursor: pointer;
}

/* --- Panel 2: Dictionary --- */
.feat6-dict-wrap {
    position: relative;
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feat6-dict-doc {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 13, 45, 0.09);
    padding: 24px 28px;
    box-shadow: 0 2px 12px rgba(0, 13, 45, 0.05);
}

.feat6-dict-para {
    font-size: 0.87rem;
    color: #2D2D31;
    line-height: 1.85;
    margin: 0;
}

.feat6-dict-hl {
    background: rgba(0, 71, 172, 0.1);
    color: #0047AC;
    border-radius: 3px;
    padding: 1px 5px;
    font-weight: 700;
    cursor: context-menu;
    border-bottom: 2px dotted #0047AC;
}

.feat6-dict-menu {
    position: absolute;
    top: calc(100% - 56px);
    left: 48%;
    background: #ffffff;
    border: 1px solid rgba(0, 13, 45, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 13, 45, 0.14);
    overflow: hidden;
    opacity: 0;
    transform: scale(0.92);
    transform-origin: top left;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10;
}

.feat6-dict-menu.feat6-dict-show {
    opacity: 1;
    transform: scale(1);
}

.feat6-dict-menu-item {
    padding: 9px 18px;
    font-size: 0.8rem;
    color: #2D2D31;
    cursor: pointer;
    white-space: nowrap;
}

.feat6-dict-menu-active {
    background: rgba(0, 71, 172, 0.08);
    color: #0047AC;
    font-weight: 600;
}

.feat6-dict-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 71, 172, 0.15);
    padding: 20px 24px;
    box-shadow: 0 4px 20px rgba(0, 13, 45, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.feat6-dict-card.feat6-dict-show {
    opacity: 1;
    transform: none;
}

.feat6-dict-card-nep {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000D2D;
    margin-bottom: 2px;
}

.feat6-dict-card-eng {
    font-size: 0.82rem;
    color: #0047AC;
    font-weight: 600;
    margin-bottom: 10px;
}

.feat6-dict-card-def {
    font-size: 0.82rem;
    color: #4D4D53;
    line-height: 1.65;
    margin-bottom: 10px;
}

.feat6-dict-card-ref {
    font-size: 0.7rem;
    color: #BBBBBD;
}

/* --- Panel 3: AI Chat --- */
.feat6-chat-wrap {
    width: 100%;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feat6-chat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4D4D53;
    background: #F7F7F8;
    border: 1px solid rgba(0, 13, 45, 0.09);
    border-radius: 12px 12px 0 0;
    padding: 11px 20px;
    border-bottom: none;
}

.feat6-chat-icon { font-size: 1.1rem; }

.feat6-chat-messages {
    background: #ffffff;
    border: 1px solid rgba(0, 13, 45, 0.09);
    border-radius: 0 0 12px 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
    box-shadow: 0 4px 24px rgba(0, 13, 45, 0.07);
}

.feat6-chat-msg {
    max-width: 86%;
    padding: 11px 15px;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.62;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease var(--d, 0s), transform 0.4s ease var(--d, 0s);
}

.feat6-chat-msg.feat6-chat-show {
    opacity: 1;
    transform: none;
}

.feat6-chat-user {
    background: #000D2D;
    color: rgba(255, 255, 255, 0.88);
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

.feat6-chat-bot {
    background: rgba(0, 13, 45, 0.04);
    color: #2D2D31;
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}

.feat6-chat-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 2px 0;
}

.feat6-chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #BBBBBD;
    animation: feat6TypingDot 1.2s ease-in-out infinite;
}

.feat6-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.feat6-chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes feat6TypingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.feat6-chat-answer { display: none; }
.feat6-chat-answer strong { color: #0047AC; }

/* --- Feature Cards --- */
.feat6-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.feat6-card {
    padding: 20px 18px;
    border-radius: 14px;
    border: 1.5px solid rgba(0, 13, 45, 0.07);
    background: transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.feat6-card:hover {
    border-color: rgba(0, 13, 45, 0.18);
    background: rgba(0, 13, 45, 0.02);
}

.feat6-card.feat6-card-active {
    border-color: #000D2D;
    background: rgba(0, 13, 45, 0.03);
}

.feat6-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(0, 13, 45, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000D2D;
    flex-shrink: 0;
}

.feat6-card-active .feat6-card-icon {
    background: #000D2D;
    color: #ffffff;
}

.feat6-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0F0F11;
    margin: 0;
}

.feat6-card-desc {
    font-size: 0.79rem;
    color: #4D4D53;
    line-height: 1.62;
    margin: 0;
}

/* Responsive */
@media (max-width: 960px) {
    .feat6-header { grid-template-columns: 1fr; gap: 16px; }
    .feat6-subtitle { max-width: none; }
    .feat6-cards { grid-template-columns: repeat(2, 1fr); }
    .feat6-visual-wrap { height: 360px; }
}

@media (max-width: 600px) {
    .feat6-cards { grid-template-columns: 1fr; }
    .feat6-visual-wrap { height: 320px; }
    .feat6-panel { padding: 20px; }
    .feat6-cb-card { padding: 20px; }
}

/* ============================================================
   PRICING COMPARISON TABLE (pct-) — v2
   ============================================================ */

.pct-section {
    padding: 96px 0 80px;
    background: #ffffff;
}

.pct-header {
    text-align: center;
    margin-bottom: 56px;
}

.pct-badge {
    display: inline-block;
    border: 1px solid rgba(0,13,45,0.18);
    border-radius: 99px;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #000D2D;
    margin-bottom: 18px;
}

.pct-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: #000D2D;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
}

.pct-subtitle {
    font-size: 1.05rem;
    color: #4D4D53;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Table layout: 4 columns — label + 3 plans */
.pct-table {
    width: 100%;
    border: 1px solid rgba(0,13,45,0.09);
    border-radius: 16px;
    overflow: hidden;
}

.pct-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    border-bottom: 1px solid rgba(0,13,45,0.07);
}
.pct-row:last-child {
    border-bottom: none;
}

/* Column dividers */
.pct-row > * + * {
    border-left: 1px solid rgba(0,13,45,0.07);
}

/* Plan header row */
.pct-row-plans {
    align-items: start;
    background: #F7F7F8;
}

.pct-col-label {
    padding: 28px 28px;
    display: flex;
    align-items: center;
}

.pct-col-plan {
    padding: 28px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pct-col-featured {
    background: #000D2D;
    position: relative;
}
.pct-col-featured .pct-plan-name,
.pct-col-featured .pct-plan-desc,
.pct-col-featured .pct-plan-note,
.pct-col-featured .pct-price-period {
    color: rgba(255,255,255,0.7) !important;
}
.pct-col-featured .pct-price-main {
    color: #ffffff !important;
}

.pct-plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000D2D;
    margin: 0;
    letter-spacing: -0.02em;
}

.pct-plan-desc {
    font-size: 0.82rem;
    color: #4D4D53;
    margin: 0;
    line-height: 1.5;
}

.pct-plan-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-top: 14px;
}

.pct-price-main {
    font-size: 2rem;
    font-weight: 700;
    color: #000D2D;
    letter-spacing: -0.03em;
}

.pct-price-blur {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

.pct-price-period {
    font-size: 0.8rem;
    color: #4D4D53;
}

.pct-plan-note {
    font-size: 0.75rem;
    color: #BBBBBD;
    margin: 0 0 10px;
}

/* Buttons */
.pct-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-top: auto;
    width: fit-content;
}
.pct-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}
.pct-btn:active {
    transform: translateY(0);
}
.pct-btn:focus-visible {
    outline: 2px solid #0047AC;
    outline-offset: 2px;
}

.pct-btn-outline {
    border: 1.5px solid rgba(0,13,45,0.22);
    color: #000D2D;
    background: transparent;
}

.pct-btn-primary {
    background: #0047AC;
    color: #ffffff;
    border: 1.5px solid #0047AC;
}

/* Section label row */
.pct-row-section-label {
    background: #F7F7F8;
}
.pct-row-section-label .pct-col-label {
    padding: 14px 28px;
}
.pct-row-section-label span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #4D4D53;
}

/* Feature rows */
.pct-col-label {
    padding: 14px 28px;
    font-size: 0.88rem;
    color: #2D2D31;
    font-weight: 500;
}

.pct-col-val {
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Alternating row bg */
.pct-row:not(.pct-row-plans):not(.pct-row-section-label):nth-child(even) {
    background: #F7F7F8;
}
/* Keep featured column dark regardless */
.pct-row:not(.pct-row-plans) .pct-col-featured-cell {
    background: rgba(0,13,45,0.04);
}

.pct-check {
    width: 16px;
    height: 16px;
    color: #0047AC;
    flex-shrink: 0;
}

.pct-minus {
    width: 16px;
    height: 16px;
    color: #BBBBBD;
    flex-shrink: 0;
}

.pct-text-val {
    font-size: 0.8rem;
    color: #4D4D53;
    text-align: center;
}

/* Featured column value cells inherit dark bg from parent row — handled via nth-child selectors elsewhere */

/* Responsive */
@media (max-width: 768px) {
    .pct-section { padding: 64px 0 56px; }

    .pct-row {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .pct-col-label {
        padding: 12px 14px;
        font-size: 0.78rem;
    }

    .pct-col-plan {
        padding: 20px 12px 24px;
    }

    .pct-plan-name { font-size: 1rem; }
    .pct-price-main { font-size: 1.5rem; }
    .pct-plan-desc { display: none; }
    .pct-plan-note { display: none; }

    .pct-col-val {
        padding: 12px 8px;
    }
}

@media (max-width: 520px) {
    .pct-row {
        grid-template-columns: 1.2fr repeat(3, 1fr);
    }
    .pct-col-label { padding: 10px; font-size: 0.72rem; }
    .pct-col-plan { padding: 16px 8px 20px; }
    .pct-plan-name { font-size: 0.9rem; }
    .pct-price-main { font-size: 1.2rem; }
    .pct-btn { font-size: 0.72rem; padding: 7px 10px; gap: 3px; }
    .pct-btn svg { display: none; }
}

/* ============================================================
   SOCIAL ICONS COMPONENT (si-)
   Footer social links — dark pill container with icon buttons,
   tooltip on hover, and subtle underline indicator.
   ============================================================ */

.si-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.si-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), transparent);
    pointer-events: none;
}

.si-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    outline: none;
}

.si-btn:focus-visible {
    box-shadow: 0 0 0 2px rgba(177, 113, 214, 0.6);
}

.si-bg {
    position: absolute;
    inset: 4px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.si-btn:hover .si-bg {
    opacity: 1;
    transform: scale(1);
}

.si-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.38);
    transition: color 0.25s ease, transform 0.25s ease;
}

.si-btn:hover .si-icon {
    color: #ffffff;
    transform: scale(1.12);
}

.si-indicator {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.7);
    width: 0;
    opacity: 0;
    transition: width 0.25s ease, opacity 0.25s ease;
}

.si-btn:hover .si-indicator {
    width: 10px;
    opacity: 1;
}

.si-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    padding: 4px 10px;
    border-radius: 7px;
    background: #ffffff;
    color: #0F0F11;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10;
}

.si-tooltip-arrow {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: #ffffff;
}

.si-btn:hover .si-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   SHARED PAGE HERO — matches team.html style
   Used by: terms, privacy, disclaimer, security, blog, how-to-use
   ═══════════════════════════════════════════════════════════════ */
@keyframes phFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes phLineGrow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}
.page-hero {
    background: #000D2D;
    padding: 96px 0 64px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,71,172,0.22) 0%, transparent 68%);
    pointer-events: none;
}
.page-hero-glow2 {
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,71,172,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}
.page-hero-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.45);
    margin-bottom: 20px;
    animation: phFadeUp 0.5s ease both 0.05s;
}
.page-hero-bar {
    display: block;
    width: 32px;
    height: 2px;
    background: #0047AC;
    flex-shrink: 0;
    transform-origin: left;
    animation: phLineGrow 0.5s ease both 0.1s;
}
.page-hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin: 0 0 12px;
    animation: phFadeUp 0.55s ease both 0.15s;
}
.page-hero-title em {
    font-style: italic;
    color: #ffffff;
}
.page-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.52);
    line-height: 1.75;
    max-width: 560px;
    margin: 0;
    animation: phFadeUp 0.55s ease both 0.25s;
}
@media (max-width: 768px) {
    .page-hero { padding: 80px 0 48px; }
    .page-hero-title { font-size: clamp(2rem, 7vw, 3rem); }
}

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   Targets all viewport sizes from 768px down to 320px.
   Layered breakpoints: 768 → 600 → 480 → 380
   ============================================================ */

/* ----------------------------------------------------------------
   768px — tablet/large phone
   ---------------------------------------------------------------- */
@media (max-width: 768px) {

    /* Section padding: universal tightening */
    .core-features,
    .feat6-section,
    .steps-section,
    .metric-section,
    .final-cta {
        padding: 72px 0;
    }

    /* Steps: hide the decorative mockup at tablet — content is enough */
    .steps-mockup { display: none; }
    .steps-layout { grid-template-columns: 1fr; }

    /* Metric: tighter card padding */
    .metric-card { padding: 28px 24px; }

    /* Final CTA: tighten title */
    .final-cta-title { font-size: clamp(2rem, 5vw, 3rem); }
}

/* ----------------------------------------------------------------
   600px — most phones in portrait
   ---------------------------------------------------------------- */
@media (max-width: 600px) {

    /* Hero v2: only show center browser mockup */
    .hero-browsers {
        padding: 0;
        max-width: 100%;
        flex-direction: row; /* override the column from 900px */
    }
    .mockup-left,
    .mockup-right {
        display: none;
    }
    .mockup-center {
        flex: 1;
        width: 100%;
        transform: none !important; /* remove elevation lift */
    }

    /* Hero content: section padding */
    .hero-v2 { padding: 80px 0 24px; }

    /* Core features: section padding */
    .core-features,
    .feat6-section,
    .steps-section,
    .metric-section,
    .final-cta,
    .pct-section {
        padding: 56px 0;
    }

    /* Orbital: tighten stage on small phones */
    .orbital-stage { width: 300px; height: 300px; }
    .ot-ring { width: 240px; height: 240px; }
    .orbital-layout { gap: 20px; }

    /* Feat6: ensure cards are comfortable */
    .feat6-visual-wrap { height: 280px; }
    .feat6-cards { gap: 12px; }
    .feat6-card { padding: 18px 16px; }

    /* Metric: reduce big number size */
    .metric-big { font-size: clamp(3rem, 12vw, 5rem); }
    .metric-percent { font-size: 3rem; }
    .metric-card { padding: 24px; }
    .metric-items { gap: 20px; }

    /* Final CTA */
    .final-cta { text-align: center; }
    .final-cta-title { font-size: clamp(1.8rem, 7vw, 2.8rem); }
    .final-cta-desc { font-size: 0.95rem; }
    .final-cta .btn-dark {
        display: block;
        width: fit-content;
        margin: 0 auto;
        padding: 14px 32px;
    }

    /* Pricing: allow horizontal scroll instead of cramping */
    .pct-section .container { padding: 0 0; }
    .pct-table-scroller {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 16px;
    }
    .pct-table { min-width: 480px; }

    /* Footer: tighten */
    .footer { padding: 56px 0 32px; }
}

/* ----------------------------------------------------------------
   480px — small phones (iPhone SE, older Androids)
   ---------------------------------------------------------------- */
@media (max-width: 480px) {

    /* Hero: tighter card padding */
    .hero-v2 .container {
        padding: 32px 16px 32px;
        max-width: calc(100% - 16px);
        width: calc(100% - 16px);
        border-radius: 16px;
    }

    /* Hero title: ensure it fits */
    .hero-v2-title { font-size: clamp(1.75rem, 7.5vw, 2.4rem); }

    /* Hero CTA button: full width */
    .hero-v2-content .btn-dark {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        box-sizing: border-box;
    }

    /* Hero social proof: stack on tiny screens */
    .hero-social-proof {
        flex-direction: column;
        gap: 8px;
    }

    /* Hero stats: reduce stat number size */
    .hero-v2-stat-num { font-size: 1.2rem; }

    /* Orbital: scale down for tight viewports */
    .orbital-stage { width: 280px; height: 280px; }
    .ot-ring { width: 220px; height: 220px; }
    .ot-hint { font-size: 0.78rem; }

    /* Core features section eyebrow + header */
    .cf-header { margin-bottom: 32px; }
    .cf-title { font-size: clamp(1.6rem, 6vw, 2rem); }

    /* Feat6 section */
    .feat6-title { font-size: clamp(1.6rem, 6.5vw, 2rem); }
    .feat6-visual-wrap { height: 260px; }
    .feat6-cb-card { padding: 16px; }
    .feat6-cb-header { gap: 4px; }
    .feat6-cb-badge { font-size: 0.72rem; }

    /* Steps section */
    .steps-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
    .step-item { gap: 14px; }
    .step-num { font-size: 1.25rem; min-width: 28px; }
    .steps-content .btn-dark {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        box-sizing: border-box;
    }

    /* Pricing: tighten further at 480px */
    .pct-table { min-width: 440px; }
    .pct-col-label { padding: 8px 10px; font-size: 0.7rem; }
    .pct-col-plan { padding: 14px 8px 18px; }
    .pct-plan-name { font-size: 0.85rem; }
    .pct-price-main { font-size: 1.1rem; }
    .pct-btn { font-size: 0.68rem; padding: 6px 8px; }

    /* Footer links: 2-column grid overrides earlier 1-col */
    .footer-links-group { grid-template-columns: repeat(2, 1fr); gap: 24px; }

    /* Footer CTA section */
    .footer-cta h3 { font-size: 1.2rem; }
}

/* ----------------------------------------------------------------
   380px — very small phones (iPhone 5/SE 1st gen, Galaxy S5)
   ---------------------------------------------------------------- */
@media (max-width: 380px) {

    /* Orbital: minimum viable */
    .orbital-stage { width: 260px; height: 260px; }
    .ot-ring { width: 200px; height: 200px; }

    /* Hero title */
    .hero-v2-title { font-size: 1.65rem; }

    /* Hero card */
    .hero-v2 .container {
        padding: 28px 14px 28px;
        max-width: calc(100% - 12px);
        width: calc(100% - 12px);
        border-radius: 14px;
    }

    /* Pricing: allow scroll, don't collapse */
    .pct-table { min-width: 400px; }

    /* Section eyebrows */
    .section-eyebrow { font-size: 0.7rem; }

    /* General container */
    .container { padding: 0 12px; }
}

/* ----------------------------------------------------------------
   Pricing table: add scroll wrapper via CSS when no HTML wrapper
   ---------------------------------------------------------------- */
@media (max-width: 600px) {
    .pct-section .container {
        padding-left: 0;
        padding-right: 0;
    }
    .pct-header {
        padding: 0 16px;
        margin-bottom: 32px;
    }
    .pct-table {
        border-radius: 0;
        border-left: none;
        border-right: none;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: unset;
    }
    .pct-row {
        min-width: 480px;
    }
    /* Scroll hint visual: faint right shadow */
    .pct-table::after {
        content: '';
        position: sticky;
        right: 0;
        top: 0;
        width: 32px;
        background: linear-gradient(to right, transparent, rgba(0,13,45,0.06));
        pointer-events: none;
        flex-shrink: 0;
    }
}

/* ----------------------------------------------------------------
   Feat6 chat/contextual panels: ensure they fit on mobile
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
    .feat6-cl-wrap { flex-direction: column; gap: 12px; }
    .feat6-cl-popup { position: static; box-shadow: none; width: 100%; }
    .feat6-dict-wrap { flex-direction: column; gap: 10px; }
    .feat6-dict-card { position: static; width: 100%; max-width: 100%; }
    .feat6-chat-wrap { padding: 0 4px; }
    .feat6-chat-messages { gap: 10px; }
    .feat6-chat-msg { font-size: 0.78rem; padding: 10px 12px; }
}

/* ----------------------------------------------------------------
   Mobile nav: logo LEFT, hamburger RIGHT
   ---------------------------------------------------------------- */

/* Hide the in-dropdown CTA link on desktop — login-btn handles it */
.nav-link-cta { display: none; }

@media (max-width: 768px) {
    /* Two-pronged fix:
       1) .nav stays in flex flow but gets flex:0 0 0 + overflow:hidden
          → zero-width slot, .login-btn clipped.
       2) .login-btn directly hidden as belt-and-suspenders.
       .nav-links is position:fixed so it escapes both constraints
       and the dropdown still works. */
    .nav {
        flex: 0 0 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    /* Belt-and-suspenders: hide .login-btn directly */
    .login-btn {
        display: none !important;
        visibility: hidden !important;
    }

    /* With .nav zero-width, header-content has logo + hamburger.
       justify-content:space-between puts them at the two ends. */
    .logo { display: flex; align-items: center; }
    .logo-image { height: 32px; width: auto; }

    /* Hamburger must be in flow and visible */
    .mobile-menu-toggle { z-index: 1001; position: relative; }

    /* Dropdown: allow scrolling on very small screens */
    .nav-links {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    /* "Get Started" CTA inside the dropdown — shown on mobile */
    .nav-link-cta {
        display: flex;
        justify-content: center;
        background: var(--blue, #0047AC);
        color: #fff !important;
        border-radius: 8px;
        padding: 12px 16px !important;
        margin-top: 4px;
        font-weight: 600;
    }
    .nav-link-cta::after { display: none; }
}

/* ----------------------------------------------------------------
   Touch targets: ensure all interactive elements are ≥44px tall
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
    .nav-link { padding: 8px 0; min-height: 44px; display: flex; align-items: center; }
    .ot-node-btn { width: 52px; height: 52px; }
    .feat6-card { cursor: pointer; }
    .pct-btn { min-height: 40px; }
    .metric-check { padding: 6px 0; }
}

/* ----------------------------------------------------------------
   Orbital overflow clamp: prevent nodes escaping stage on small screens
   ---------------------------------------------------------------- */
@media (max-width: 600px) {
    .orbital-stage-wrap { overflow: hidden; width: 100%; padding-bottom: 8px; }
}

/* ================================================================
   Navy section grid — consistent across all pages
   Matches the hero canvas grid (28 px cell, same line colour/opacity)
   ================================================================ */
.footer,
.metric-section,
.cta-join,
.page-hero {
    background-image:
        linear-gradient(rgba(160, 215, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(160, 215, 255, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
}
