/* 
  VIMS Registry - Editorial Layout + PRO Color Grading
  Font: Outfit (Headings) & Inter (Body)
  Backgrounds: Elegant Radial Gradients & Glassmorphism
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* LUXURY MEDICAL PALETTE */
    --primary: #2DD4BF;
    /* Teal-400 */
    --primary-glow: rgba(45, 212, 191, 0.4);
    --secondary: #6366F1;
    /* Indigo-500 */
    --bg-dark: #030712;
    --bg-dark-soft: #0F172A;
    --bg-light: #F8FAFC;
    --text-dark: #F8FAFC;
    --text-dark-muted: #94A3B8;
    --text-light: #0F172A;
    --text-light-muted: #475569;

    /* Metrics */
    --nav-height: 80px;
    --max-w: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --f-heading: 'Outfit', sans-serif;
    --f-body: 'Inter', sans-serif;
}

[data-theme="dark"] {
    --bg-page: var(--bg-dark);
    --bg-glass: rgba(15, 23, 42, 0.7);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-main: var(--text-dark);
    --text-sec: var(--text-dark-muted);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --nav-bg: rgba(3, 7, 18, 0.82);
    --hero-overlay-main: linear-gradient(112deg, rgba(3, 7, 18, 0.9) 0%, rgba(3, 7, 18, 0.7) 42%, rgba(3, 7, 18, 0.48) 68%, rgba(3, 7, 18, 0.72) 100%);
    --hero-overlay-accent: radial-gradient(circle at 76% 24%, rgba(45, 212, 191, 0.16), transparent 44%);
    --hero-text-shadow: 0 3px 24px rgba(0, 0, 0, 0.5);
}

/* Custom Cursor */
.custom-cursor {
    display: none;
}

.cursor-follower {
    display: none;
}

@media (max-width: 1024px) {

    .custom-cursor,
    .cursor-follower {
        display: none;
    }
}

[data-theme="light"] {
    --bg-page: var(--bg-light);
    --bg-glass: rgba(255, 255, 255, 0.8);
    --border-glass: rgba(0, 0, 0, 0.1);
    --text-main: var(--text-light);
    --text-sec: var(--text-light-muted);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(248, 250, 252, 0.85);
    --hero-overlay-main: linear-gradient(112deg, rgba(248, 250, 252, 0.94) 0%, rgba(248, 250, 252, 0.83) 45%, rgba(248, 250, 252, 0.58) 70%, rgba(248, 250, 252, 0.7) 100%);
    --hero-overlay-accent: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.12), transparent 46%);
    --hero-text-shadow: 0 2px 18px rgba(248, 250, 252, 0.85);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-page);
    background-image: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(45, 212, 191, 0.05), transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--f-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.5s ease;
}

h1,
h2,
h3,
h4 {
    font-family: var(--f-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 8vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

p {
    font-size: 1.1rem;
    color: var(--text-sec);
    margin-bottom: 2rem;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.label-micro {
    font-family: var(--f-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--f-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    text-decoration: none;
    background: var(--primary);
    color: var(--bg-dark);
    border: 1px solid var(--primary);
}

.btn:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--primary-glow);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    transition: 0.3s;
}

.navbar.scrolled {
    height: 70px;
    box-shadow: var(--card-shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--f-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
    font-weight: 400;
}

.logo-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-brand-logo {
    display: block;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.nav-brand-logo-foundation {
    height: 42px;
}

.nav-brand-logo-physio {
    height: 42px;
}

.logo .logo-text {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    white-space: nowrap;
}

.logo .logo-word-main {
    color: var(--text-main);
    font-weight: 800;
}

.logo .logo-word-accent {
    color: var(--primary);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
    list-style: none;
}

.hamburger {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    background: var(--bg-glass);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    color: var(--text-main);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.hamburger:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.theme-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    background: var(--bg-glass);
    color: var(--text-main);
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.theme-switch:hover {
    transform: translateY(-1px);
    border-color: var(--primary);
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-sec);
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

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

.nav-login-btn {
    padding: 0.75rem 1.3rem;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
}

/* HERO */
.hero-slider-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: var(--bg-dark);
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bs-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 10s linear;
}

.hero-slide.active .slide-bs-layer {
    transform: scale(1.1);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay-accent), var(--hero-overlay-main);
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 900px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s 0.3s var(--ease-out-expo);
}

.hero-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-content h1 em {
    font-style: normal;
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h1,
.hero-content h2,
.hero-content .label-micro {
    text-shadow: var(--hero-text-shadow);
}

/* CARDS & GRIDS */
.section-pad {
    padding: clamp(5rem, 12vw, 10rem) 0;
}

.registry-intro-brief {
    margin-top: clamp(2rem, 4vw, 3.5rem);
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
}

.registry-intro-card {
    background: linear-gradient(145deg, rgba(45, 212, 191, 0.06), rgba(99, 102, 241, 0.05) 42%, var(--bg-glass) 100%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    max-width: 1120px;
    margin: 0 auto;
}

.registry-intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.9;
}

.registry-intro-card h2 {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    margin-bottom: 1rem;
}

.registry-intro-card p {
    margin-bottom: 0;
    max-width: 1000px;
    color: var(--text-main);
    line-height: 1.85;
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
}

@media (max-width: 900px) {
    .registry-intro-brief {
        margin-top: 1.6rem;
        padding-top: 2.2rem;
    }
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 4rem;
}

.split-layout > * {
    min-width: 0;
}

.split-layout.reverse {
    direction: rtl;
}

.split-layout.reverse>* {
    direction: ltr;
}

.split-visual {
    contain: layout style;
}

.feature-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    box-shadow: var(--card-shadow);
    transition: 0.5s var(--ease-out-expo);
    will-change: transform;
}

.feature-img:hover {
    transform: translateY(-10px);
}

.registry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat-item {
    padding: 2.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    text-align: center;
    transition: 0.3s;
    contain: layout paint;
}

.stat-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    min-height: 1.2em;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.stat-lbl {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-sec);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pillar {
    padding: 3.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    transition: 0.4s var(--ease-out-expo);
}

.pillar:hover {
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), transparent);
    transform: translateY(-10px);
}

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

.engagement-card {
    padding: 3.5rem;
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    display: flex;
    gap: 2.5rem;
    transition: 0.4s;
}

.engagement-card .card-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

/* FOOTER */
footer {
    padding: 4rem 0 2rem;
    background: var(--bg-dark-soft);
    border-top: 1px solid var(--border-glass);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.45fr repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
    margin-bottom: 2.5rem;
}

.footer-brand-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand {
    width: fit-content;
}

.footer-brand-block p {
    margin: 0;
    max-width: 440px;
    font-size: 0.98rem;
    line-height: 1.7;
}

.f-links h5 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.f-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.f-links a,
.f-links span {
    color: var(--text-sec);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.footer-btm {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--text-sec);
    font-size: 0.85rem;
}

/* ANIMATIONS & RESPONSIVE */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s var(--ease-out-expo);
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    body.menu-open {
        overflow: hidden;
    }

    .navbar .container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .navbar .container > div {
        gap: 0.65rem !important;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-brand {
        gap: 0.4rem;
        flex-wrap: nowrap;
    }

    .nav-brand-logo-foundation,
    .nav-brand-logo-physio {
        height: 30px;
    }

    .logo .logo-text {
        gap: 0.28rem;
        line-height: 1.05;
    }

    .theme-switch,
    .hamburger {
        width: 42px;
        height: 42px;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .engagement-grid {
        grid-template-columns: 1fr;
    }

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

    .hamburger {
        display: inline-flex;
        z-index: 1101;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(84vw, 340px);
        height: 100vh;
        padding: 6.25rem 1.5rem 2rem;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(3, 7, 18, 0.98));
        border-left: 1px solid var(--border-glass);
        box-shadow: -16px 0 40px rgba(0, 0, 0, 0.28);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 1100;
    }

    [data-theme="light"] .nav-menu {
        background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.98));
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 0.95rem 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-glass);
    }

    .nav-link::after {
        display: none;
    }

    .nav-login-btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
        padding: 0.85rem 1rem;
    }

    .theme-switch {
        margin-top: 0.35rem;
        align-self: flex-start;
    }
}

@media (max-width: 600px) {
    .registry-grid {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 1rem;
    }

    .logo-brand {
        gap: 0.28rem;
    }

    .nav-brand-logo-foundation,
    .nav-brand-logo-physio {
        height: 24px;
    }

    .logo .logo-text {
        gap: 0.2rem;
        line-height: 1;
    }

    .theme-switch,
    .hamburger {
        width: 38px;
        height: 38px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-btm {
        flex-direction: column;
        align-items: flex-start;
    }

    .slider-nav {
        right: 1rem;
        bottom: 1.5rem;
        gap: 0.75rem;
    }

    .slider-btn {
        width: 44px;
        height: 44px;
    }

    .registry-choice-grid,
    .registry-page-grid,
    .how-it-works-grid,
    .landing-quick-grid,
    .registry-metric-grid {
        grid-template-columns: 1fr;
    }
}

.slider-nav {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.slider-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.slider-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.slider-dots {
    display: flex;
    gap: 0.75rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-glass);
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 5px;
}

.hero-scroll-down {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-sec);
    text-decoration: none;
    z-index: 10;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.hero-scroll-down svg {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* REGISTRY SELECTOR */
.registry-selector {
    padding-top: clamp(4rem, 8vw, 7rem);
}

.registry-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 2vw, 2rem);
}

.registry-choice-card {
    background: linear-gradient(150deg, rgba(45, 212, 191, 0.08), rgba(99, 102, 241, 0.08), var(--bg-glass));
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 2.4vw, 2rem);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.registry-choice-card h3 {
    margin: 0;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.registry-choice-card p {
    margin: 0;
    color: var(--text-sec);
    line-height: 1.7;
}

.registry-choice-tag {
    align-self: flex-start;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(45, 212, 191, 0.4);
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.registry-choice-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.registry-choice-points span {
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    font-size: 0.84rem;
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--border-glass);
}

[data-theme="light"] .registry-choice-points span {
    background: rgba(248, 250, 252, 0.85);
}

/* LANDING PAGES */
.landing-page-main {
    padding-top: calc(var(--nav-height) + 1rem);
}

.registry-page-hero {
    padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.8rem, 6vw, 4.5rem);
}

.registry-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(1.2rem, 3vw, 2.5rem);
    align-items: center;
}

.registry-page-copy h1 {
    font-size: clamp(2.4rem, 5.2vw, 4.6rem);
    line-height: 1;
    margin-bottom: 1rem;
}

.registry-page-copy p {
    margin: 0;
    max-width: 62ch;
    color: var(--text-main);
    opacity: 0.92;
    line-height: 1.8;
}

.registry-page-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn.btn-ghost {
    background: transparent;
    color: var(--text-main);
    border-color: var(--border-glass);
}

.btn.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.registry-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.3rem;
}

.registry-metric {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}

.registry-metric strong {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: #f59e0b;
    font-family: var(--f-heading);
}

.registry-metric span {
    color: var(--text-sec);
    font-size: 0.88rem;
}

.registry-hero-visual {
    background: linear-gradient(145deg, rgba(45, 212, 191, 0.1), rgba(99, 102, 241, 0.1));
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--card-shadow);
}

.registry-hero-visual img {
    width: 100%;
    border-radius: calc(var(--radius-lg) - 0.4rem);
    border: 1px solid var(--border-glass);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}

.how-step {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.2rem 1rem;
    text-align: center;
}

.how-step-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--bg-dark);
    background: var(--primary);
    margin-bottom: 0.8rem;
}

.how-step h4 {
    margin-bottom: 0.5rem;
}

.how-step p {
    margin: 0;
    font-size: 0.98rem;
    color: var(--text-sec);
}

.landing-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.landing-quick-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.1rem;
}

.landing-quick-card p {
    margin: 0;
    font-size: 0.96rem;
}

/* =====================================================
   Form Mobile Compatibility — prevents horizontal scroll
   ===================================================== */

/* Prevent the page itself from scrolling sideways */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* The form container must never exceed viewport width */
#answersContainer {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Tables that need horizontal scrolling get their own scroll area */
#answersContainer .table-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

@media (max-width: 767px) {
    /* Stack 3-column and 4-column form fields to full width on mobile */
    #answersContainer .col-sm-3,
    #answersContainer .col-sm-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Keep section-nav buttons small and wrappable */
    .section-nav {
        gap: 0.3rem !important;
    }

    .section-nav .btn {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
        min-width: 0;
    }

    /* Ensure inputs are full-width inside stacked columns */
    #answersContainer .form-control,
    #answersContainer .form-select {
        width: 100%;
        box-sizing: border-box;
    }

    /* Prev/Next navigation buttons side by side on mobile */
    #answersContainer + div.d-flex {
        flex-direction: row !important;
    }
}