@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root[data-theme="dark"] {
    --brand-orange: #FF6B00;
    --navy-900: #020617;
    --navy-800: #0F172A;
    --navy-700: #1E293B;
    --text-white: #FFFFFF;
    --text-gray: #94A3B8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --sidebar-bg: rgba(15, 23, 42, 0.95);
    --card-bg: rgba(15, 23, 42, 0.6);
    --input-bg: rgba(2, 6, 23, 0.5);
    --btn-gradient-start: hsl(210, 60%, 50%);
    --btn-gradient-mid: hsl(210, 60%, 25%);
    --btn-gradient-end: hsl(210, 60%, 10%);
}

:root[data-theme="light"] {
    --brand-orange: #FF6B00;
    --navy-900: #e2e8f0;
    --navy-800: #cbd5e1;
    --navy-700: #94a3b8;
    --text-white: #020617;
    --text-gray: #334155;
    --glass-border: rgba(0, 0, 0, 0.15);
    --sidebar-bg: rgba(203, 213, 225, 0.95);
    --card-bg: rgba(255, 255, 255, 0.85);
    --input-bg: rgba(255, 255, 255, 0.95);
}

/* Default to dark if no attribute set */
:root {
    --brand-orange: #FF6B00;
    --navy-900: #020617;
    --navy-800: #0F172A;
    --navy-700: #1E293B;
    --text-white: #FFFFFF;
    --text-gray: #94A3B8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --sidebar-bg: rgba(15, 23, 42, 0.95);
    --card-bg: rgba(15, 23, 42, 0.6);
    --input-bg: rgba(2, 6, 23, 0.5);
    --btn-gradient-start: hsl(210, 60%, 50%);
    --btn-gradient-mid: hsl(210, 60%, 25%);
    --btn-gradient-end: hsl(210, 60%, 10%);

    --radius-lg: 24px;
    --radius-md: 12px;
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-white);
    line-height: 1.5;
    background: var(--navy-900);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- PREMIUM UTILITIES --- */
.premium-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    padding: 3rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.premium-button {
    background: var(--brand-orange);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 52px;
    text-decoration: none;
}

.premium-button:hover:not(:disabled) {
    background: #FF8533;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 107, 0, 0.4);
}

.premium-input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    color: var(--text-white);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.premium-input::placeholder {
    color: var(--text-gray);
    opacity: 0.6;
}
.premium-input:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

/* Background Effects - Matching the Photo */
/* --- SIDEBAR --- */
.sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 70px; /* Start below Top Bar */
    height: calc(100vh - 70px);
    width: 250px;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    padding: 0 0.2rem;
}

.sidebar-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.sidebar-brand-text {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
}

.sidebar-brand-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-orange);
    letter-spacing: -0.04em;
    line-height: 1;
}

.sidebar-web-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 500;
    color: white;
    transform: translateY(0.08em);
}

:root[data-theme="light"] .sidebar-web-brand {
    color: #020617;
}

/* Clock Widget */
.clock-widget {
    margin-bottom: 4rem;
    text-align: center;
    padding: 5px 10px;
}

.clock-date {
    color: #94A3B8;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    margin-bottom: 4px;
}

:root[data-theme="light"] .clock-date {
    color: #475569;
}

.clock-time {
    color: #F8FAFC;
    font-size: 26px;
    font-weight: 700;
    font-family: 'Segoe UI', sans-serif;
}

:root[data-theme="light"] .clock-time {
    color: #1E293B;
}

.sidebar-nav {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sidebar-btn {
    appearance: none;
    border: 1px solid hsl(210, 60%, 30%);
    border-radius: 12px;
    padding: 14px 16px;
    color: white;
    text-decoration: none;
    font-family: 'Calibri', 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    background: linear-gradient(to bottom,
            hsl(210, 60%, 30%),
            hsl(210, 60%, 15%) 50%,
            hsl(210, 60%, 10%));
    transition: all 0.2s ease;
    text-align: left;
}

.sidebar-btn:hover {
    color: #fb8c0f;
}

.sidebar-btn:active {
    /* Reversed premium gradient for pressed effect */
    background: linear-gradient(to bottom,
            hsl(210, 60%, 10%),
            hsl(210, 60%, 15%) 50%,
            hsl(210, 60%, 30%));
}

.sidebar-btn.active {
    color: #fb8c0f;
    font-weight: 700;
    border: 2px solid #fb8c0f;
    background: linear-gradient(to bottom,
            hsl(210, 60%, 30%),
            hsl(210, 60%, 15%) 50%,
            hsl(210, 60%, 10%));
}

.sidebar-btn-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Theme Switcher */
.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
}

/* Language flag icon in sidebar - force explicit size */
#current-lang-flag {
    display: block !important;
    width: 85px !important;
    max-width: 85px !important;
    height: auto !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
}

.theme-switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    border-radius: 99px;
    border: 1px solid var(--glass-border);
}

.theme-switch-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
}

.theme-toggle {
    position: relative;
    width: 48px;
    height: 24px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #475569;
    transition: .4s;
    border-radius: 24px;
}

.theme-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.theme-slider {
    background-color: var(--brand-orange);
}

input:checked+.theme-slider:before {
    transform: translateX(24px);
}

/* --- MAIN CONTENT --- */
.main-wrapper {
    flex-grow: 1;
    margin-left: 250px; /* Space for fixed sidebar */
    min-height: 100vh;
    padding-top: 70px; /* Space for Top Bar */
    padding-left: 2rem; /* Additional breathing room */
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
    background: var(--navy-900);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    height: 70px;
    background: var(--navy-900);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 150;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.top-bar-left {
    width: 250px; /* Match sidebar width */
    flex-shrink: 0;
}

.top-bar-center {
    flex-grow: 1;
    display: flex;
    justify-content: flex-start; /* For search bar alignment */
    align-items: center;
    position: relative; /* For absolute module title */
    height: 100%;
}

.top-bar-module-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
    pointer-events: none;
}

.top-bar-right {
    width: 250px; /* Balance the left side */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
}

.content-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem 3rem;
    background: var(--navy-900);
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-white);
    text-align: center;
    white-space: nowrap;
}

.search-container {
    position: relative;
    width: 350px;
    margin-left: 40px; /* 1cm from sidebar edge */
}

.search-input {
    width: 100%;
    background: #95a5a6;
    border: none;
    border-radius: 20px;
    padding: 10px 15px 10px 45px;
    color: white;
    font-size: 16px;
    outline: none;
}

.search-input::placeholder {
    color: #ecf0f1;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.user-profile-frame {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row; /* Avatar left, Name right */
    gap: 12px;
    padding: 5px 0;
    /* Removed horizontal padding since it's pinned right */
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
    justify-self: end;
    /* Pin to the right of the grid cell */
}

.user-profile-frame:hover {
    background: transparent;
}

.user-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-white);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--brand-orange);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- PROFILE DROPDOWN --- */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    /* Align with the right edge of the frame */
    width: 220px;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    padding: 8px;
    display: none;
    flex-direction: column;
    z-index: 200;
    animation: dropdownFade 0.2s ease;
}

.profile-dropdown.active {
    display: flex;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--text-white);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-item.logout {
    color: #ef4444;
}

.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.content-body {
    padding: 2rem 3rem;
    flex-grow: 1;
}

header {
    padding: 3rem 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-wide {
    max-width: 100%;
    padding: 0 6rem;
    /* More space to push elements to the edges */
}

.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: white;
    /* "Web" color */
    font-weight: 800;
    font-size: 3.5rem;
    /* ~3x larger than 1.6rem */
    letter-spacing: -0.05em;
}

.logo-group .brand-name {
    color: var(--brand-orange);
}

.logo-group .brand-text {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    /* Increased spacing to avoid "stuck" look */
}

.logo-group .web-brand {
    font-size: 0.5em;
    font-style: italic;
    font-weight: 500;
    transform: translateY(0.20em);
    /* Precisely lower it from the baseline */
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #CBD5E1;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: white;
}

/* Hero Section */
.hero {
    padding: 13rem 0 2rem;
    /* Increased top to push content down */
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    /* Increased to avoid wrapping */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 3.8rem;
    /* Reduced from 6.5rem */
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.03em;
    /* Slightly adjusted to fit */
    word-spacing: 0.12em;
    /* Extra space but not too much */
    margin-bottom: 2rem;
    white-space: nowrap;
    /* Force on one line for desktop */
    background: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.35rem;
    /* Slightly smaller to fit better */
    color: #94A3B8;
    max-width: 1050px;
    /* Further increased to ensure 2 lines */
    margin: 0 auto 3.5rem;
    font-weight: 400;
    line-height: 1.6;
}

.hero p strong {
    color: white;
    /* Make the tailored part pop */
    font-weight: 600;
}

.btn-trial {
    background: #00ff00;
    /* Electric Green */
    color: #020617;
    /* Dark text for better contrast on neon green */
    text-decoration: none;
    padding: 1.1rem 2.8rem;
    border-radius: 12px;
    font-weight: 800;
    /* Extra bold */
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    /* Ensure it can overlap */
    z-index: 10;
    /* Sit above the mockup */
}

.btn-trial:hover {
    transform: translateY(-4px);
    background: #33ff33;
    box-shadow: 0 15px 40px rgba(0, 255, 0, 0.5);
}

/* App Mockup Display */
.app-display {
    margin-top: -1.3rem;
    /* Only 1/3 of the button overlaps now */
    margin-bottom: 2rem;
    /* Reduced space before features */
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.main-laptop {
    width: 65vw;
    max-width: 1300px;
    z-index: 5;
    transform: translateZ(50px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.main-laptop:hover {
    transform: translateZ(70px) translateY(-5px);
    box-shadow: 0 60px 120px rgba(0, 0, 0, 0.8);
}

/* Modules Carousel Section */
.features-band {
    background-color: #030816;
    padding: 3rem 0 3.5rem;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--glass-border);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFF 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.carousel-container {
    padding: 0 4rem;
    position: relative;
    /* overflow: hidden; */
    /* Removed to allow buttons to sit outside/on edge */
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    color: white;
}

.carousel-nav:hover {
    background: rgba(255, 107, 0, 0.2);
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    box-shadow: 0 0 25px rgba(255, 107, 0, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: -2rem;
}

.carousel-nav.next {
    right: -2rem;
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
}

.modules-carousel {
    display: flex;
    gap: 2.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 2rem 1rem 4rem;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.modules-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.module-card {
    flex: 0 0 320px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    scroll-snap-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.module-card:hover,
.module-card.is-active {
    transform: translateY(-12px) scale(1.02);
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: 0 25px 50px -12px rgba(255, 107, 0, 0.15);
}

.module-icon-wrapper {
    width: 90px;
    height: 90px;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    transition: all 0.4s ease;
}

.module-card:hover .module-icon-wrapper,
.module-card.is-active .module-icon-wrapper {
    background: rgba(255, 107, 0, 0.1);
    transform: rotate(5deg);
}

.icon-orange {
    width: 56px;
    height: 56px;
    object-fit: contain;
    /* Filter to turn any color into TaskNest Orange (#FF6B00) */
    filter: brightness(0) saturate(100%) invert(48%) sepia(93%) saturate(3475%) hue-rotate(1deg) brightness(101%) contrast(105%);
}

.module-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: white;
}

.module-card p {
    font-size: 1rem;
    color: #94A3B8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.module-highlights {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}

.badge-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: #CBD5E1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.module-card:hover .badge-tag,
.module-card.is-active .badge-tag {
    border-color: rgba(255, 107, 0, 0.2);
    color: white;
}

/* Custom Module Special Highlight */
.module-card.custom-highlight {
    border-color: rgba(0, 255, 0, 0.2);
}

.module-card.custom-highlight.is-active,
.module-card.custom-highlight:hover {
    border-color: #00ff00;
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.25);
}

.module-card.custom-highlight.is-active .module-icon-wrapper,
.module-card.custom-highlight:hover .module-icon-wrapper {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.module-card.custom-highlight.is-active .badge-tag,
.module-card.custom-highlight:hover .badge-tag {
    border-color: rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

/* Footer Section */
footer {
    padding: 5rem 0 3rem;
    border-top: 1px solid var(--glass-border);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: #64748B;
    font-size: 0.9rem;
}

.trust-badges {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.trust-badge {
    height: 32px;
    opacity: 0.8;
}

.manufacturer {
    margin-top: 5rem;
    display: flex;
    justify-content: flex-end;
}

.mfr-logo {
    height: 50px;
    opacity: 0.9;
}

/* --- MODALS & POPUPS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5), inset 0 1px 0 var(--glass-border);
    border-radius: 28px;
    width: 100%;
    max-width: 800px;
    padding: 3rem;
    position: relative;
    transform: translateY(30px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-white);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--glass-border);
    border: none;
    color: var(--text-white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: var(--brand-orange);
    color: white;
}

.modal-header {
    text-align: left;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white);
    margin: 0;
}

.modal-header p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.auth-form .form-row {
    display: flex;
    gap: 1rem;
}

.auth-form .half {
    flex: 1;
}

.auth-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #CBD5E1;
    margin-bottom: 0.5rem;
}

.auth-form label span {
    color: var(--brand-orange);
}

.auth-form input,
.auth-form select {
    width: 100%;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.auth-form input::placeholder {
    color: #475569;
}

/* Force white text on all input types (includes tel, text, email) */
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form input[type="password"] {
    color: white;
}

/* Override browser autofill style that turns text dark */
.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0 1000px rgba(2, 6, 23, 0.9) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 0.4rem;
}

.btn-submit {
    background: var(--brand-orange);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 52px;
    min-width: 220px;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
}

.btn-submit:hover:not(:disabled) {
    background: #FF8533;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}

.btn-submit.green {
    background: #00ff00;
    color: #020617;
}

.btn-submit.green:hover:not(:disabled) {
    background: #33ff33;
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.25);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loader Animation */
.loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

.error-msg {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.85rem;
    text-align: center;
}

.success-msg {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.85rem;
    text-align: center;
}

/* Success UI */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 255, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

#trialSuccessContainer h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

#trialSuccessContainer p {
    color: var(--text-gray);
    line-height: 1.6;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
}

/* Configurator Specific Styles */
.module-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.module-checkbox:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 0, 0.3);
}

.module-checkbox input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.module-checkbox input[type="checkbox"]:checked {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
}

.module-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.module-checkbox:has(input[type="checkbox"]:checked) {
    border-color: var(--brand-orange);
    background: rgba(255, 107, 0, 0.05);
}

.cycle-radio {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.cycle-radio:has(input[type="radio"]:checked) {
    border-color: var(--brand-orange);
    background: rgba(255, 107, 0, 0.05);
}

.cycle-radio input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.cycle-radio input[type="radio"]:checked {
    border-color: var(--brand-orange);
}

.cycle-radio input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--brand-orange);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.8rem;
        white-space: normal;
    }

    .features-band {
        margin-top: 0;
        padding-top: 4rem;
    }
}

/* --- MODULE CHIPS (Configurator) --- */
.mod-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: default;
    user-select: none;
    min-width: 6rem;
    transition: all 0.15s ease;
}

.mod-chip input[type="checkbox"] {
    display: none;
}

.mod-chip--included {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.mod-chip--included::before {
    content: '✓';
    font-size: 0.7rem;
}

.mod-chip--opt {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    cursor: pointer;
}

.mod-chip--opt:hover {
    border-color: rgba(255, 107, 0, 0.4);
    color: white;
}

.mod-chip--opt:has(input:checked) {
    background: rgba(255, 107, 0, 0.12);
    border-color: rgba(255, 107, 0, 0.5);
    color: var(--brand-orange);
}

.mod-chip--opt:has(input:checked)::before {
    content: '✓ ';
    font-size: 0.7rem;
}

.mod-custom-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.06), rgba(255, 107, 0, 0.02));
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.mod-custom-card:hover {
    border-color: rgba(255, 107, 0, 0.5);
    background: rgba(255, 107, 0, 0.08);
}

.mod-custom-card strong {
    display: block;
    font-size: 0.85rem;
    color: white;
}

.mod-custom-card span {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.mod-custom-icon {
    font-size: 1.1rem;
    color: var(--brand-orange);
    flex-shrink: 0;
}

.mod-custom-arrow {
    margin-left: auto;
    color: var(--brand-orange);
    font-size: 1rem;
}

.mod-custom-card--green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.02));
    border-color: rgba(34, 197, 94, 0.25);
}

.mod-custom-card--green:hover {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.1);
}

/* --- BILLING CYCLE TOGGLE SWITCH --- */
.cycle-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cycle-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
    transition: color 0.2s;
}

.cycle-label.active {
    color: white;
}

.cycle-toggle {
    position: relative;
    cursor: pointer;
}

.cycle-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.cycle-track {
    display: block;
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    position: relative;
    transition: background 0.25s;
}

.cycle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: var(--brand-orange);
    border-radius: 50%;
    transition: transform 0.25s;
}

.cycle-toggle input:checked~.cycle-track {
    background: rgba(255, 107, 0, 0.2);
    border-color: rgba(255, 107, 0, 0.4);
}

.cycle-toggle input:checked~.cycle-track .cycle-thumb {
    transform: translateX(20px);
}



/* --- UNIVERSAL BRANDED FOOTER --- */
.universal-footer {
    width: 100%;
    padding: 0.15rem 1.5rem;
    margin: 0;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--navy-900);
    flex-shrink: 0;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-version {
    font-size: 0.75rem;
    color: #94A3B8;
    font-weight: 500;
}

:root[data-theme="light"] .footer-version {
    color: #475569;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: #94A3B8;
    justify-content: flex-end;
}

:root[data-theme="light"] .footer-content {
    color: #475569;
}

.footer-brand {
    font-weight: 800;
    color: var(--brand-orange);
    letter-spacing: -0.02em;
}

.brand-web {
    color: white;
    font-style: italic;
    font-size: 0.9em;
    font-weight: 500;
    margin-left: 0.1rem;
}

:root[data-theme="light"] .brand-web {
    color: #020617;
}

.footer-logo {
    height: 14px;
    width: auto;
    opacity: 0.9;
}

.footer-divider {
    opacity: 0.3;
    margin: 0 0.1rem;
}

@media (max-width: 768px) {
    .universal-footer {
        position: relative;
        padding: 1.5rem 1rem;
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
        text-align: center;
        right: auto;
        bottom: auto;
    }
    
    .footer-content {
        justify-content: center;
        flex-wrap: wrap;
    }
}
/* ==========================================================================
   SETTINGS PAGE STYLES
   ========================================================================== */

.settings-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    height: calc(100vh - 180px);
    margin-top: 1rem;
    margin-left: -3rem;
    margin-right: -3rem;
}

.settings-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-group-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.settings-group-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.settings-group-header .group-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.settings-group-header .arrow-icon {
    margin-left: auto;
    border: solid var(--text-gray);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.settings-group.active .arrow-icon {
    transform: rotate(-135deg);
}

.settings-submenu {
    display: none;
    flex-direction: column;
    padding-left: 2.5rem;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.settings-group.active .settings-submenu {
    display: flex;
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.submenu-item:hover {
    color: var(--brand-orange);
    background: rgba(255, 107, 0, 0.08);
}

.submenu-item.active {
    color: var(--brand-orange);
    background: rgba(255, 107, 0, 0.12);
}

.submenu-item .sub-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: grayscale(0.5);
    transition: filter 0.2s ease;
}

.submenu-item:hover .sub-icon,
.submenu-item.active .sub-icon {
    filter: grayscale(0);
}

.settings-detail {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    backdrop-filter: blur(12px);
    overflow-y: auto;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 107, 0, 0.3) rgba(0, 0, 0, 0.2);
}

.settings-detail::-webkit-scrollbar {
    width: 8px;
}

.settings-detail::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.settings-detail::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 0, 0.3);
    border-radius: 4px;
}

.settings-detail::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 0, 0.5);
}

.settings-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    gap: 1rem;
    opacity: 0.6;
}

.settings-welcome .welcome-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.settings-welcome h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
}

.settings-welcome p {
    font-size: 1rem;
    color: var(--text-gray);
    max-width: 300px;
}

.settings-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.settings-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.settings-detail .section-header {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.settings-detail .section-header .premium-button {
    margin-left: auto;
    flex-shrink: 0;
}

.settings-detail .section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
    margin: 0;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
}

.section-title-icon {
    width: 108px;
    height: 108px;
    object-fit: contain;
    flex-shrink: 0;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.settings-form-group {
    margin-bottom: 1.5rem;
}

.settings-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-gray);
    margin-bottom: 0.6rem;
}

.bank-card {
    grid-column: span 2;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1rem;
}

.bank-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.logo-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border: 2px dashed var(--glass-border);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    align-self: flex-start;
}

.premium-input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.3);
}

.logo-upload-container:hover {
    border-color: var(--brand-orange);
}

.logo-preview-box {
    width: 160px;
    height: 160px;
    background: var(--navy-900);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.logo-preview-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.btn-upload-text {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.admin-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 99px;
    margin-left: 8px;
    vertical-align: middle;
}

/* --- PREMIUM TOGGLE SWITCH --- */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1a2a3a;
  transition: .4s;
  border: 1px solid var(--glass-border);
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

input:checked + .slider {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.slider.round {
  border-radius: 22px;
}

.slider.round:before {
  border-radius: 50%;
}

/* ==========================================================================
   WEBSITE RESPONSIVE LAYER
   ========================================================================== */

.site-header {
    padding: 2rem 0;
    position: absolute;
    inset: 0 0 auto 0;
    width: 100%;
    z-index: 100;
}

.website-page .hero-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-trial-secondary {
    background: transparent;
    border: 1px solid var(--brand-orange);
    color: var(--brand-orange);
    box-shadow: none;
}

.btn-trial-secondary:hover {
    background: rgba(255, 107, 0, 0.08);
}

.nav-muted-link {
    color: var(--text-gray) !important;
}

.mobile-nav-toggle {
    display: none;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: white;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1200px) {
    .container-wide {
        padding: 0 3rem;
    }

    .hero {
        padding-top: 11rem;
    }

    .hero h1 {
        white-space: normal;
        font-size: 3.4rem;
    }

    .hero p {
        max-width: 820px;
        font-size: 1.15rem;
    }

    .main-laptop {
        width: min(88vw, 1050px);
    }
}

@media (max-width: 900px) {
    .container-wide {
        padding: 0 1.4rem;
    }

    .site-header {
        padding: 1.2rem 0;
    }

    .logo-group {
        font-size: 2.3rem;
        gap: 0.9rem;
    }

    .logo-group img {
        height: 66px;
        width: auto;
    }

    .mobile-nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 12px);
        right: 1.4rem;
        left: 1.4rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(15, 23, 42, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 24px;
        backdrop-filter: blur(12px);
        padding: 0.75rem;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.95rem 1rem;
        border-radius: 14px;
    }

    .hero {
        padding: 8.6rem 0 1.5rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.7rem;
        margin-bottom: 1.25rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .app-display {
        margin-top: 1rem;
    }

    .main-laptop {
        width: 100%;
        max-width: 100%;
        border-radius: 20px;
    }

    .carousel-container {
        padding: 0;
    }

    .carousel-nav {
        display: none;
    }

    .modules-carousel {
        gap: 1.25rem;
        padding: 1rem 0.25rem 2rem;
    }

    .module-card {
        flex-basis: 280px;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .logo-group {
        font-size: 1.7rem;
    }

    .logo-group img {
        height: 48px;
    }

    .hero {
        padding-top: 7.5rem;
    }

    .hero h1 {
        font-size: 2.15rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-actions {
        width: 100%;
    }

    .btn-trial,
    .btn-trial-secondary {
        width: 100%;
        justify-content: center;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .module-card {
        flex-basis: 86vw;
    }

    .universal-footer {
        padding: 1.1rem 1rem;
    }

    .footer-content {
        gap: 0.35rem;
    }
}
