@charset "utf-8";

/* ========================================
   Nexus Layout - Main Stylesheet
   AI 시대의 현대적인 레이아웃
   ======================================== */

/* ----------------------------------------
   CSS Custom Properties (Variables)
   ---------------------------------------- */
:root {
    /* Colors - Dark Mode (Default) */
    --nx-bg-primary: #07101f;
    --nx-bg-secondary: #0c1728;
    --nx-bg-tertiary: #142239;
    --nx-bg-card: rgba(255, 255, 255, 0.03);
    --nx-bg-card-hover: rgba(255, 255, 255, 0.06);
    --nx-bg-glass: rgba(18, 18, 26, 0.8);

    --nx-text-primary: #f2f6ff;
    --nx-text-secondary: #a5b2c7;
    --nx-text-muted: #71809a;

    --nx-accent-1: #779cff;
    --nx-accent-2: #42c7b8;
    --nx-accent-3: #f3b457;
    --nx-gradient-primary: linear-gradient(135deg, #547ff5 0%, #5f70e8 48%, #32aa9e 100%);
    --nx-gradient-subtle: linear-gradient(135deg, rgba(84, 127, 245, 0.16) 0%, rgba(50, 170, 158, 0.12) 100%);

    --nx-border-color: rgba(255, 255, 255, 0.08);
    --nx-border-hover: rgba(255, 255, 255, 0.15);

    --nx-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --nx-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --nx-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --nx-shadow-glow: 0 0 30px rgba(84, 127, 245, 0.28);

    /* Typography */
    --nx-font-primary: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --nx-font-heading: 'Inter', var(--nx-font-primary);
    --nx-font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

    --nx-text-xs: 0.75rem;
    --nx-text-sm: 0.875rem;
    --nx-text-base: 1rem;
    --nx-text-lg: 1.125rem;
    --nx-text-xl: 1.25rem;
    --nx-text-2xl: 1.5rem;
    --nx-text-3xl: 1.875rem;
    --nx-text-4xl: 2.25rem;
    --nx-text-5xl: 3rem;
    --nx-text-6xl: 3.75rem;

    /* Spacing */
    --nx-space-1: 0.25rem;
    --nx-space-2: 0.5rem;
    --nx-space-3: 0.75rem;
    --nx-space-4: 1rem;
    --nx-space-5: 1.25rem;
    --nx-space-6: 1.5rem;
    --nx-space-8: 2rem;
    --nx-space-10: 2.5rem;
    --nx-space-12: 3rem;
    --nx-space-16: 4rem;
    --nx-space-20: 5rem;
    --nx-space-24: 6rem;

    /* Layout */
    --nx-container-max: 1400px;
    --nx-container-narrow: 1200px;
    --nx-header-height: 72px;
    --nx-header-height-scrolled: 64px;

    /* Transitions */
    --nx-transition-fast: 150ms ease;
    --nx-transition-base: 250ms ease;
    --nx-transition-slow: 400ms ease;
    --nx-transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Border Radius */
    --nx-radius-sm: 6px;
    --nx-radius-md: 10px;
    --nx-radius-lg: 16px;
    --nx-radius-xl: 24px;
    --nx-radius-full: 9999px;

    /* Z-index */
    --nx-z-dropdown: 100;
    --nx-z-sticky: 200;
    --nx-z-fixed: 300;
    --nx-z-overlay: 400;
    --nx-z-modal: 500;
}

/* Light Mode */
[data-theme="light"] {
    --nx-bg-primary: #f4f7fb;
    --nx-bg-secondary: #ffffff;
    --nx-bg-tertiary: #edf2f8;
    --nx-bg-card: rgba(255, 255, 255, 0.72);
    --nx-bg-card-hover: rgba(255, 255, 255, 0.96);
    --nx-bg-glass: rgba(255, 255, 255, 0.88);

    --nx-text-primary: #12213a;
    --nx-text-secondary: #536078;
    --nx-text-muted: #7b879b;

    --nx-accent-1: #2858d7;
    --nx-accent-2: #0c8f82;
    --nx-accent-3: #c87909;
    --nx-gradient-primary: linear-gradient(135deg, #2458d7 0%, #416fe0 48%, #108e83 100%);
    --nx-gradient-subtle: linear-gradient(135deg, rgba(36, 88, 215, 0.09) 0%, rgba(16, 142, 131, 0.08) 100%);

    --nx-border-color: rgba(30, 55, 90, 0.11);
    --nx-border-hover: rgba(36, 88, 215, 0.28);

    --nx-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --nx-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --nx-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --nx-shadow-glow: 0 14px 40px rgba(36, 88, 215, 0.18);
}

/* ----------------------------------------
   Reset & Base
   ---------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--nx-font-primary);
    font-size: var(--nx-text-base);
    line-height: 1.6;
    color: var(--nx-text-primary);
    background-color: var(--nx-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: var(--nx-font-heading);
    font-weight: 700;
    line-height: 1.3;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--nx-transition-fast);
}

a:hover {
    color: var(--nx-accent-1);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--nx-accent-1);
    outline-color: color-mix(in srgb, var(--nx-accent-1) 40%, transparent);
    outline-offset: 3px;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip Navigation */
.nx-skip-nav {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--nx-space-3) var(--nx-space-6);
    background: var(--nx-gradient-primary);
    color: white;
    font-weight: 600;
    border-radius: var(--nx-radius-md);
    z-index: var(--nx-z-modal);
    transition: top var(--nx-transition-fast);
}

.nx-skip-nav:focus {
    top: var(--nx-space-4);
}

/* ----------------------------------------
   Container
   ---------------------------------------- */
.nx-container {
    width: 100%;
    max-width: var(--nx-container-max);
    margin: 0 auto;
    padding: 0 var(--nx-space-6);
}

.nx-container--narrow {
    max-width: var(--nx-container-narrow);
}

/* ----------------------------------------
   Layout Wrapper
   ---------------------------------------- */
.nx-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nx-layout.has-fixed-header {
    padding-top: var(--nx-header-height);
}

/* ----------------------------------------
   Header
   ---------------------------------------- */
.nx-header {
    position: relative;
    width: 100%;
    height: var(--nx-header-height);
    background: var(--nx-bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nx-border-color);
    z-index: var(--nx-z-fixed);
    transition: all var(--nx-transition-base);
}

.nx-header.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.nx-header.is-scrolled {
    height: var(--nx-header-height-scrolled);
    box-shadow: var(--nx-shadow-md);
}

.nx-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--nx-space-8);
}

/* Logo */
.nx-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--nx-space-3);
}

.nx-logo__image {
    width: auto;
    height: 38px;
    object-fit: contain;
    transition: transform var(--nx-transition-base);
}

.nx-logo:hover .nx-logo__image {
    transform: scale(1.05);
}

.nx-logo__text {
    font-size: var(--nx-text-xl);
    font-weight: 700;
    background: var(--nx-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.nx-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nx-nav__list {
    display: flex;
    align-items: center;
    gap: var(--nx-space-1);
}

.nx-nav__item {
    position: relative;
}

.nx-nav__link {
    display: flex;
    align-items: center;
    gap: var(--nx-space-2);
    padding: var(--nx-space-3) var(--nx-space-4);
    font-size: var(--nx-text-sm);
    font-weight: 500;
    color: var(--nx-text-secondary);
    border-radius: var(--nx-radius-md);
    transition: all var(--nx-transition-fast);
}

.nx-nav__link:hover,
.nx-nav__link.is-active {
    color: var(--nx-text-primary);
    background: var(--nx-bg-card-hover);
}

.nx-nav__link.is-active {
    color: var(--nx-accent-1);
}

/* Dropdown Arrow */
.nx-nav__item.has-children>.nx-nav__link::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform var(--nx-transition-fast);
}

.nx-nav__item.has-children:hover>.nx-nav__link::after {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nx-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 200px;
    padding: var(--nx-space-2);
    background: var(--nx-bg-secondary);
    border: 1px solid var(--nx-border-color);
    border-radius: var(--nx-radius-lg);
    box-shadow: var(--nx-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--nx-transition-fast);
}

.nx-nav__item.has-children:hover>.nx-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nx-nav__dropdown-item {
    display: block;
    padding: var(--nx-space-3) var(--nx-space-4);
    font-size: var(--nx-text-sm);
    color: var(--nx-text-secondary);
    border-radius: var(--nx-radius-sm);
    transition: all var(--nx-transition-fast);
}

.nx-nav__dropdown-item:hover {
    color: var(--nx-text-primary);
    background: var(--nx-bg-card-hover);
}

/* Header Actions */
.nx-header__actions {
    display: flex;
    align-items: center;
    gap: var(--nx-space-2);
}

/* Icon Button */
.nx-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--nx-text-secondary);
    border-radius: var(--nx-radius-md);
    transition: all var(--nx-transition-fast);
}

.nx-icon-btn:hover {
    color: var(--nx-text-primary);
    background: var(--nx-bg-card-hover);
}

.is-service-hub .nx-services-link {
    color: var(--nx-accent-1);
    background: var(--nx-gradient-subtle);
}

.nx-icon-btn svg {
    width: 20px;
    height: 20px;
}

/* Theme Toggle */
.nx-theme-toggle {
    position: relative;
}

.nx-theme-toggle__icon--dark,
[data-theme="light"] .nx-theme-toggle__icon--light {
    display: none;
}

[data-theme="light"] .nx-theme-toggle__icon--dark {
    display: block;
}

/* User Menu */
.nx-user-menu {
    position: relative;
}

.nx-user-menu__trigger {
    display: flex;
    align-items: center;
    gap: var(--nx-space-2);
    padding: var(--nx-space-2);
    border-radius: var(--nx-radius-full);
    transition: all var(--nx-transition-fast);
}

.nx-user-menu__trigger:hover {
    background: var(--nx-bg-card-hover);
}

.nx-user-menu__avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--nx-radius-full);
    object-fit: cover;
    border: 2px solid var(--nx-border-color);
}

.nx-user-menu__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    padding: var(--nx-space-2);
    background: var(--nx-bg-secondary);
    border: 1px solid var(--nx-border-color);
    border-radius: var(--nx-radius-lg);
    box-shadow: var(--nx-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--nx-transition-fast);
}

.nx-user-menu:hover .nx-user-menu__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nx-user-menu__item {
    display: flex;
    align-items: center;
    gap: var(--nx-space-3);
    padding: var(--nx-space-3) var(--nx-space-4);
    font-size: var(--nx-text-sm);
    color: var(--nx-text-secondary);
    border-radius: var(--nx-radius-sm);
    transition: all var(--nx-transition-fast);
}

.nx-user-menu__item:hover {
    color: var(--nx-text-primary);
    background: var(--nx-bg-card-hover);
}

.nx-user-menu__divider {
    height: 1px;
    margin: var(--nx-space-2);
    background: var(--nx-border-color);
}

/* Mobile Menu Button */
.nx-mobile-menu-btn {
    display: none;
}

/* Search Overlay */
.nx-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nx-bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: var(--nx-z-overlay);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
    opacity: 0;
    visibility: hidden;
    transition: all var(--nx-transition-base);
}

.nx-search-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.nx-search-overlay__inner {
    width: 100%;
    max-width: 600px;
    padding: 0 var(--nx-space-6);
    transform: translateY(-20px);
    transition: transform var(--nx-transition-base);
}

.nx-search-overlay.is-active .nx-search-overlay__inner {
    transform: translateY(0);
}

.nx-search-overlay__input {
    width: 100%;
    padding: var(--nx-space-5);
    font-size: var(--nx-text-2xl);
    color: var(--nx-text-primary);
    background: var(--nx-bg-secondary);
    border: 2px solid var(--nx-border-color);
    border-radius: var(--nx-radius-xl);
    outline: none;
    transition: border-color var(--nx-transition-fast);
}

.nx-search-overlay__input:focus {
    border-color: var(--nx-accent-1);
}

.nx-search-overlay__input::placeholder {
    color: var(--nx-text-muted);
}

.nx-search-overlay__close {
    position: absolute;
    top: var(--nx-space-6);
    right: var(--nx-space-6);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nx-text-secondary);
    border-radius: var(--nx-radius-full);
    transition: all var(--nx-transition-fast);
}

.nx-search-overlay__close:hover {
    color: var(--nx-text-primary);
    background: var(--nx-bg-card-hover);
}

/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.nx-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--nx-space-24) 0;
    overflow: hidden;
}

.nx-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.nx-hero__bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

.nx-hero__bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 1px 1px, var(--nx-border-color) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.5;
}

.nx-hero__bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.nx-hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.nx-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 var(--nx-space-6);
}

.nx-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--nx-space-2);
    padding: var(--nx-space-2) var(--nx-space-4);
    margin-bottom: var(--nx-space-6);
    font-size: var(--nx-text-sm);
    font-weight: 500;
    color: var(--nx-accent-1);
    background: var(--nx-gradient-subtle);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--nx-radius-full);
}

.nx-hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--nx-accent-1);
    border-radius: var(--nx-radius-full);
    animation: pulse 2s infinite;
}

.nx-hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--nx-space-6);
    letter-spacing: -0.02em;
}

.nx-hero__title-gradient {
    background: var(--nx-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nx-hero__subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--nx-text-secondary);
    margin-bottom: var(--nx-space-10);
    line-height: 1.7;
}

.nx-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nx-space-4);
    justify-content: center;
}

/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.nx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--nx-space-2);
    padding: var(--nx-space-4) var(--nx-space-8);
    font-size: var(--nx-text-base);
    font-weight: 600;
    border-radius: var(--nx-radius-lg);
    transition: all var(--nx-transition-base);
    cursor: pointer;
    border: none;
}

.nx-btn--primary {
    color: white;
    background: var(--nx-gradient-primary);
    box-shadow: var(--nx-shadow-glow);
}

.nx-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
}

.nx-btn--secondary {
    color: var(--nx-text-primary);
    background: var(--nx-bg-card);
    border: 1px solid var(--nx-border-color);
}

.nx-btn--secondary:hover {
    background: var(--nx-bg-card-hover);
    border-color: var(--nx-border-hover);
    transform: translateY(-2px);
}

.nx-btn svg {
    width: 18px;
    height: 18px;
}

.nx-logo__wordmark {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.1;
}

.nx-logo__wordmark strong {
    color: var(--nx-text-primary);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.nx-logo__wordmark small {
    margin-top: 4px;
    color: var(--nx-text-muted);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    white-space: nowrap;
}

/* ----------------------------------------
   Search-first Home
   ---------------------------------------- */
.nx-home {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 88px 0 34px;
    background: linear-gradient(180deg, var(--nx-bg-primary) 0%, var(--nx-bg-primary) 70%, var(--nx-bg-secondary) 100%);
}

.nx-home::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(var(--nx-border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--nx-border-color) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.34), transparent 72%);
    content: '';
    opacity: 0.34;
    pointer-events: none;
}

.nx-home__orb {
    position: absolute;
    z-index: -1;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.18;
    pointer-events: none;
}

.nx-home__orb--one {
    top: -310px;
    left: -110px;
    background: var(--nx-accent-1);
}

.nx-home__orb--two {
    right: -180px;
    bottom: -320px;
    background: var(--nx-accent-2);
}

.nx-home__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(490px, 0.95fr);
    align-items: center;
    gap: clamp(48px, 7vw, 104px);
}

.nx-home__copy {
    min-width: 0;
    padding-bottom: var(--nx-space-3);
}

.nx-home__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--nx-accent-1);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.nx-home__eyebrow > span {
    width: 8px;
    height: 8px;
    background: var(--nx-accent-2);
    border: 2px solid color-mix(in srgb, var(--nx-accent-2) 28%, transparent);
    border-radius: 50%;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--nx-accent-2) 12%, transparent);
}

.nx-home__title {
    max-width: 720px;
    margin-bottom: 24px;
    color: var(--nx-text-primary);
    font-size: clamp(3.15rem, 5.1vw, 4.85rem);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.nx-home__title em {
    color: var(--nx-accent-1);
    font-style: normal;
    background: var(--nx-gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nx-home__description {
    max-width: 660px;
    margin-bottom: 34px;
    color: var(--nx-text-secondary);
    font-size: clamp(1.05rem, 1.45vw, 1.24rem);
    line-height: 1.75;
    word-break: keep-all;
}

.nx-home-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(100%, 680px);
    min-height: 68px;
    padding: 7px 7px 7px 58px;
    background: var(--nx-bg-secondary);
    border: 1px solid var(--nx-border-color);
    border-radius: 20px;
    box-shadow: var(--nx-shadow-lg);
    transition: border-color var(--nx-transition-base), box-shadow var(--nx-transition-base), transform var(--nx-transition-base);
}

.nx-home-search:focus-within {
    border-color: color-mix(in srgb, var(--nx-accent-1) 55%, transparent);
    box-shadow: var(--nx-shadow-lg), 0 0 0 4px color-mix(in srgb, var(--nx-accent-1) 10%, transparent);
    transform: translateY(-1px);
}

.nx-home-search__icon {
    position: absolute;
    left: 23px;
    width: 23px;
    height: 23px;
    color: var(--nx-text-muted);
}

.nx-home-search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 14px 0 0;
    color: var(--nx-text-primary);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 1rem;
}

.nx-home-search input[type="search"]::placeholder {
    color: var(--nx-text-muted);
}

.nx-home-search input[type="search"]::-webkit-search-cancel-button {
    opacity: 0.5;
}

.nx-home-search button {
    align-self: stretch;
    min-width: 92px;
    padding: 0 24px;
    color: #fff;
    background: var(--nx-gradient-primary);
    border-radius: 15px;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--nx-accent-1) 24%, transparent);
    font-size: 0.95rem;
    font-weight: 750;
    transition: transform var(--nx-transition-fast), box-shadow var(--nx-transition-fast);
}

.nx-home-search button:hover {
    box-shadow: 0 12px 28px color-mix(in srgb, var(--nx-accent-1) 34%, transparent);
    transform: translateY(-1px);
}

.nx-home__popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 17px;
    color: var(--nx-text-muted);
    font-size: 0.78rem;
}

.nx-home__popular > span {
    margin-right: 2px;
    font-weight: 650;
}

.nx-home__popular a {
    padding: 6px 10px;
    color: var(--nx-text-secondary);
    background: var(--nx-bg-secondary);
    background: color-mix(in srgb, var(--nx-bg-secondary) 72%, transparent);
    border: 1px solid var(--nx-border-color);
    border-radius: var(--nx-radius-full);
}

.nx-home__popular a:hover {
    color: var(--nx-accent-1);
    border-color: var(--nx-border-hover);
}

.nx-quick {
    position: relative;
    padding: 26px;
    background: var(--nx-bg-secondary);
    background: color-mix(in srgb, var(--nx-bg-secondary) 91%, transparent);
    border: 1px solid var(--nx-border-color);
    border-radius: 26px;
    box-shadow: 0 28px 80px rgba(5, 16, 35, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nx-quick::before {
    position: absolute;
    inset: -1px;
    z-index: -1;
    padding: 1px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--nx-accent-1) 26%, transparent), transparent 42%, color-mix(in srgb, var(--nx-accent-2) 18%, transparent));
    border-radius: inherit;
    content: '';
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.nx-quick__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--nx-space-4);
    margin-bottom: 20px;
}

.nx-quick__head > div > span {
    display: block;
    margin-bottom: 5px;
    color: var(--nx-accent-1);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.nx-quick__head h2 {
    color: var(--nx-text-primary);
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

.nx-quick__status {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: var(--nx-text-muted);
    font-size: 0.69rem;
    white-space: nowrap;
}

.nx-quick__status i {
    width: 7px;
    height: 7px;
    background: #21b985;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(33, 185, 133, 0.12);
}

.nx-quick__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.nx-quick__item {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    min-height: 86px;
    padding: 13px;
    color: var(--nx-text-primary);
    background: var(--nx-bg-primary);
    border: 1px solid var(--nx-border-color);
    border-radius: 16px;
    transition: border-color var(--nx-transition-base), box-shadow var(--nx-transition-base), transform var(--nx-transition-base);
}

.nx-quick__item:hover {
    color: var(--nx-text-primary);
    border-color: var(--nx-border-hover);
    box-shadow: var(--nx-shadow-md);
    transform: translateY(-3px);
}

.nx-quick__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
}

.nx-quick__icon svg {
    width: 22px;
    height: 22px;
}

.nx-quick__icon--blue {
    color: #3e6ee8;
    background: rgba(62, 110, 232, 0.12);
}

.nx-quick__icon--violet {
    color: #7959d8;
    background: rgba(121, 89, 216, 0.12);
}

.nx-quick__icon--teal {
    color: #088f82;
    background: rgba(8, 143, 130, 0.12);
}

.nx-quick__icon--amber {
    color: #c87909;
    background: rgba(200, 121, 9, 0.12);
}

.nx-quick__item > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.nx-quick__item strong {
    overflow: hidden;
    color: var(--nx-text-primary);
    font-size: 0.89rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nx-quick__item small {
    overflow: hidden;
    margin-top: 4px;
    color: var(--nx-text-muted);
    font-size: 0.69rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nx-quick__arrow {
    color: var(--nx-text-muted);
    font-size: 1rem;
    font-style: normal;
    transition: color var(--nx-transition-fast), transform var(--nx-transition-fast);
}

.nx-quick__item:hover .nx-quick__arrow {
    color: var(--nx-accent-1);
    transform: translateX(3px);
}

.nx-quick__wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 10px;
    padding: 13px 16px;
    color: var(--nx-text-secondary);
    background: var(--nx-gradient-subtle);
    border: 1px solid color-mix(in srgb, var(--nx-accent-1) 18%, transparent);
    border-radius: 14px;
    font-size: 0.77rem;
}

.nx-quick__wide:hover {
    color: var(--nx-text-primary);
    border-color: color-mix(in srgb, var(--nx-accent-1) 35%, transparent);
}

.nx-quick__wide b {
    color: var(--nx-text-primary);
}

.nx-quick__wide strong {
    flex-shrink: 0;
    color: var(--nx-accent-1);
    font-size: 0.75rem;
}

.nx-quick__wide i {
    font-style: normal;
}

.nx-home__proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 5vw, 64px);
    margin-top: 64px;
    padding: 23px 24px 0;
    border-top: 1px solid var(--nx-border-color);
}

.nx-home__proof > span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--nx-text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.nx-home__proof svg {
    width: 17px;
    height: 17px;
    color: var(--nx-accent-2);
}

/* ----------------------------------------
   AI Knowledge Map
   ---------------------------------------- */
.nx-ai-map {
    position: relative;
    padding: var(--nx-space-20) 0;
    background: var(--nx-bg-secondary);
    border-top: 1px solid var(--nx-border-color);
    border-bottom: 1px solid var(--nx-border-color);
}

.nx-ai-map__header {
    max-width: 760px;
    margin-bottom: var(--nx-space-10);
}

.nx-ai-map__eyebrow {
    margin-bottom: var(--nx-space-3);
    color: var(--nx-accent-1);
    font-size: var(--nx-text-sm);
    font-weight: 700;
    text-transform: uppercase;
}

.nx-ai-map__title {
    margin-bottom: var(--nx-space-4);
    color: var(--nx-text-primary);
    font-size: var(--nx-text-4xl);
}

.nx-ai-map__description {
    color: var(--nx-text-secondary);
    font-size: var(--nx-text-lg);
    line-height: 1.7;
}

.nx-ai-map__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--nx-space-4);
}

.nx-ai-map__item {
    min-height: 178px;
    padding: var(--nx-space-6);
    background: var(--nx-bg-card);
    border: 1px solid var(--nx-border-color);
    border-radius: var(--nx-radius-sm);
    transition: background var(--nx-transition-base), border-color var(--nx-transition-base), transform var(--nx-transition-base);
}

.nx-ai-map__item:hover {
    background: var(--nx-bg-card-hover);
    border-color: var(--nx-border-hover);
    transform: translateY(-2px);
}

.nx-ai-map__tag {
    display: inline-flex;
    margin-bottom: var(--nx-space-4);
    padding: var(--nx-space-1) var(--nx-space-3);
    color: var(--nx-text-secondary);
    font-size: var(--nx-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    background: var(--nx-bg-tertiary);
    border: 1px solid var(--nx-border-color);
    border-radius: var(--nx-radius-sm);
}

.nx-ai-map__item-title {
    margin-bottom: var(--nx-space-3);
    font-size: var(--nx-text-xl);
}

.nx-ai-map__item-title a {
    color: var(--nx-text-primary);
}

.nx-ai-map__item-title a:hover {
    color: var(--nx-accent-1);
}

.nx-ai-map__item-desc {
    color: var(--nx-text-secondary);
    font-size: var(--nx-text-sm);
    line-height: 1.7;
}

.nx-ai-map__refs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nx-space-3);
    margin-top: var(--nx-space-8);
}

.nx-ai-map__refs a {
    padding: var(--nx-space-2) var(--nx-space-3);
    color: var(--nx-text-secondary);
    font-size: var(--nx-text-sm);
    font-family: var(--nx-font-mono);
    background: var(--nx-bg-tertiary);
    border: 1px solid var(--nx-border-color);
    border-radius: var(--nx-radius-sm);
}

.nx-ai-map__refs a:hover {
    color: var(--nx-text-primary);
    border-color: var(--nx-border-hover);
}

/* ----------------------------------------
   Sub Header
   ---------------------------------------- */
.nx-sub-header {
    position: relative;
    padding: var(--nx-space-10) 0;
    background: var(--nx-bg-secondary);
    border-bottom: 1px solid var(--nx-border-color);
}

.nx-sub-header__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nx-gradient-subtle);
    opacity: 0.5;
}

.nx-sub-header__content {
    position: relative;
    z-index: 1;
}

.nx-sub-header__title {
    font-size: var(--nx-text-3xl);
    font-weight: 700;
    margin-bottom: var(--nx-space-3);
}

.nx-sub-header__breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--nx-space-2);
    font-size: var(--nx-text-sm);
    color: var(--nx-text-muted);
}

.nx-sub-header__breadcrumb a:hover {
    color: var(--nx-accent-1);
}

.nx-sub-header__breadcrumb-separator {
    color: var(--nx-text-muted);
}

/* ----------------------------------------
   Main Content Area
   ---------------------------------------- */
.nx-main {
    flex: 1;
    padding: var(--nx-space-8) 0;
}

.is-law-page .nx-main {
    padding: 52px 0 72px;
    background: var(--nx-bg-secondary);
}

.nx-main__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--nx-space-6);
}

.nx-main__inner.has-sidebar {
    grid-template-columns: 1fr 280px;
}

.nx-main__inner.has-sidebar--left {
    grid-template-columns: 280px 1fr;
}

.nx-content {
    min-width: 0;
}

.nx-workspace-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--nx-space-8);
    margin-bottom: 22px;
}

.nx-workspace-heading__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--nx-accent-1);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.nx-workspace-heading h2 {
    color: var(--nx-text-primary);
    font-size: clamp(1.65rem, 2.5vw, 2.2rem);
    letter-spacing: -0.035em;
}

.nx-workspace-heading p {
    max-width: 540px;
    color: var(--nx-text-secondary);
    font-size: 0.88rem;
    text-align: right;
    word-break: keep-all;
}

.is-law-page .nx-content {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--nx-border-color);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(16, 35, 65, 0.08);
}

.is-law-page .wisetpl_content {
    min-width: 0;
    color: #26364e;
    border-radius: inherit;
}

/* Sidebar */
.nx-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-6);
}

.nx-sidebar__widget {
    padding: var(--nx-space-6);
    background: var(--nx-bg-card);
    border: 1px solid var(--nx-border-color);
    border-radius: var(--nx-radius-lg);
}

.nx-sidebar__widget-title {
    font-size: var(--nx-text-lg);
    font-weight: 600;
    margin-bottom: var(--nx-space-4);
    padding-bottom: var(--nx-space-3);
    border-bottom: 1px solid var(--nx-border-color);
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.nx-footer {
    background: var(--nx-bg-secondary);
    border-top: 1px solid var(--nx-border-color);
}

.nx-footer__main {
    padding: var(--nx-space-16) 0;
}

.nx-footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--nx-space-12);
}

.nx-footer__brand {
    max-width: 300px;
}

.nx-footer__logo {
    margin-bottom: var(--nx-space-4);
}

.nx-footer__logo-img {
    height: 32px;
    width: auto;
}

.nx-footer__logo-text {
    font-size: var(--nx-text-xl);
    font-weight: 700;
    background: var(--nx-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nx-footer__description {
    color: var(--nx-text-secondary);
    font-size: var(--nx-text-sm);
    line-height: 1.7;
    margin-bottom: var(--nx-space-6);
}

.nx-footer__social {
    display: flex;
    gap: var(--nx-space-3);
}

.nx-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--nx-text-muted);
    background: var(--nx-bg-card);
    border-radius: var(--nx-radius-md);
    transition: all var(--nx-transition-fast);
}

.nx-footer__social-link:hover {
    color: var(--nx-text-primary);
    background: var(--nx-bg-card-hover);
    transform: translateY(-2px);
}

.nx-footer__social-link svg {
    width: 18px;
    height: 18px;
}

.nx-footer__column-title {
    font-size: var(--nx-text-sm);
    font-weight: 600;
    color: var(--nx-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--nx-space-5);
}

.nx-footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-3);
}

.nx-footer__link {
    font-size: var(--nx-text-sm);
    color: var(--nx-text-secondary);
    transition: color var(--nx-transition-fast);
}

.nx-footer__link:hover {
    color: var(--nx-accent-1);
}

.nx-footer__bottom {
    padding: var(--nx-space-6) 0;
    border-top: 1px solid var(--nx-border-color);
}

.nx-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--nx-space-4);
}

.nx-footer__copyright {
    font-size: var(--nx-text-sm);
    color: var(--nx-text-muted);
}

.nx-footer__bottom-links {
    display: flex;
    gap: var(--nx-space-6);
}

.nx-footer__bottom-link {
    font-size: var(--nx-text-sm);
    color: var(--nx-text-muted);
}

.nx-footer__bottom-link:hover {
    color: var(--nx-accent-1);
}

/* ----------------------------------------
   Back to Top Button
   ---------------------------------------- */
.nx-back-to-top {
    position: fixed;
    bottom: var(--nx-space-8);
    right: var(--nx-space-8);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: var(--nx-gradient-primary);
    border-radius: var(--nx-radius-full);
    box-shadow: var(--nx-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--nx-transition-base);
    z-index: var(--nx-z-sticky);
}

.nx-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nx-back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--nx-shadow-glow);
}

.nx-back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ----------------------------------------
   Mobile Menu Overlay
   ---------------------------------------- */
.nx-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nx-bg-primary);
    z-index: var(--nx-z-overlay);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all var(--nx-transition-base);
}

.nx-mobile-menu.is-active {
    opacity: 1;
    visibility: visible;
}

.nx-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--nx-space-4) var(--nx-space-6);
    border-bottom: 1px solid var(--nx-border-color);
}

.nx-mobile-menu__nav {
    flex: 1;
    overflow-y: auto;
    padding: var(--nx-space-6);
}

.nx-mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-2);
}

.nx-mobile-menu__link {
    display: block;
    padding: var(--nx-space-4);
    font-size: var(--nx-text-lg);
    font-weight: 500;
    color: var(--nx-text-secondary);
    border-radius: var(--nx-radius-md);
    transition: all var(--nx-transition-fast);
}

.nx-mobile-menu__link:hover,
.nx-mobile-menu__link.is-active {
    color: var(--nx-text-primary);
    background: var(--nx-bg-card-hover);
}

.nx-mobile-menu__submenu {
    padding-left: var(--nx-space-6);
    margin-top: var(--nx-space-2);
}

.nx-mobile-menu__submenu-link {
    display: block;
    padding: var(--nx-space-3) var(--nx-space-4);
    font-size: var(--nx-text-base);
    color: var(--nx-text-muted);
}

/* ----------------------------------------
   Animations
   ---------------------------------------- */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.nx-animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.nx-animate-delay-1 {
    animation-delay: 0.1s;
}

.nx-animate-delay-2 {
    animation-delay: 0.2s;
}

.nx-animate-delay-3 {
    animation-delay: 0.3s;
}

.nx-animate-delay-4 {
    animation-delay: 0.4s;
}

/* ----------------------------------------
   Responsive Design
   ---------------------------------------- */
@media (max-width: 1200px) {
    .nx-header__inner {
        gap: var(--nx-space-4);
    }

    .nx-nav__link {
        padding-right: 11px;
        padding-left: 11px;
    }

    .nx-home__grid {
        grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
        gap: 42px;
    }

    .nx-ai-map__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nx-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--nx-space-8);
    }

    .nx-footer__brand {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .nx-nav {
        display: none;
    }

    .nx-mobile-menu-btn {
        display: flex;
    }

    .nx-main__inner.has-sidebar,
    .nx-main__inner.has-sidebar--left {
        grid-template-columns: 1fr;
    }

    .nx-sidebar {
        order: 2;
    }

    .nx-home {
        padding-top: 66px;
    }

    .nx-home__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .nx-home__copy {
        max-width: 760px;
    }

    .nx-quick {
        max-width: 760px;
    }

    .nx-home__proof {
        justify-content: flex-start;
        margin-top: 48px;
    }
}

@media (max-width: 768px) {
    :root {
        --nx-header-height: 64px;
    }

    .nx-hero {
        min-height: auto;
        padding: var(--nx-space-16) 0;
    }

    .nx-hero__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .nx-hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .nx-btn {
        width: 100%;
        max-width: 300px;
    }

    .nx-home {
        padding: 54px 0 28px;
    }

    .nx-home__title {
        font-size: clamp(2.55rem, 10vw, 3.65rem);
    }

    .nx-home__description {
        margin-bottom: 28px;
        font-size: 1rem;
    }

    .nx-home__proof {
        flex-wrap: wrap;
        gap: 16px 28px;
        padding-right: 0;
        padding-left: 0;
    }

    .nx-workspace-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .nx-workspace-heading p {
        text-align: left;
    }

    .is-law-page .nx-main {
        padding: 38px 0 54px;
    }

    .is-law-page .nx-content {
        border-radius: 16px;
    }

    .nx-ai-map {
        padding: var(--nx-space-14) 0;
    }

    .nx-ai-map__title {
        font-size: var(--nx-text-3xl);
    }

    .nx-ai-map__grid {
        grid-template-columns: 1fr;
    }

    .nx-footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nx-footer__brand {
        margin: 0 auto;
    }

    .nx-footer__social {
        justify-content: center;
    }

    .nx-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nx-container {
        padding: 0 var(--nx-space-4);
    }

    .nx-header__inner {
        gap: 8px;
    }

    .nx-logo {
        gap: 8px;
    }

    .nx-logo__image {
        height: 34px;
    }

    .nx-logo__wordmark strong {
        font-size: 0.9rem;
    }

    .nx-logo__wordmark small,
    .nx-user-menu {
        display: none;
    }

    .nx-header__actions {
        gap: 0;
    }

    .nx-icon-btn {
        width: 38px;
        height: 38px;
    }

    .nx-home {
        padding-top: 42px;
    }

    .nx-home__grid {
        gap: 38px;
    }

    .nx-home__eyebrow {
        margin-bottom: 17px;
        font-size: 0.7rem;
        letter-spacing: 0.055em;
    }

    .nx-home__title {
        margin-bottom: 18px;
        font-size: clamp(2.32rem, 11.5vw, 3rem);
        letter-spacing: -0.06em;
    }

    .nx-home-search {
        min-height: 62px;
        padding: 6px 6px 6px 47px;
        border-radius: 17px;
    }

    .nx-home-search__icon {
        left: 17px;
        width: 20px;
        height: 20px;
    }

    .nx-home-search input[type="search"] {
        height: 48px;
        font-size: 0.9rem;
    }

    .nx-home-search button {
        min-width: 72px;
        padding: 0 17px;
        border-radius: 13px;
        font-size: 0.86rem;
    }

    .nx-home__popular {
        align-items: flex-start;
    }

    .nx-home__popular > span {
        flex-basis: 100%;
    }

    .nx-quick {
        padding: 17px;
        border-radius: 21px;
    }

    .nx-quick__head {
        margin-bottom: 16px;
    }

    .nx-quick__head h2 {
        font-size: 1.2rem;
    }

    .nx-quick__status {
        display: none;
    }

    .nx-quick__grid {
        grid-template-columns: 1fr;
    }

    .nx-quick__item {
        min-height: 78px;
    }

    .nx-quick__item strong {
        font-size: 0.92rem;
    }

    .nx-quick__item small {
        font-size: 0.72rem;
    }

    .nx-quick__wide {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .nx-home__proof {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 36px;
        padding-top: 20px;
    }

    .nx-home__proof > span {
        white-space: normal;
    }

    .nx-sub-header {
        padding: var(--nx-space-8) 0;
    }

    .nx-main {
        padding: var(--nx-space-5) 0;
    }

    .is-law-page .nx-main {
        padding: 32px 0 46px;
    }

    .nx-workspace-heading {
        margin-bottom: 16px;
    }

    .nx-workspace-heading p {
        font-size: 0.8rem;
    }
}

/* ----------------------------------------
   Utility Classes
   ---------------------------------------- */
.nx-text-gradient {
    background: var(--nx-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nx-glass {
    background: var(--nx-bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}



/* Clearfix */
.nx-clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* ========================================
   Nexus Layout Improvements (Added)
   ======================================== */

/* Refined Header Glassmorphism */
.nx-header {
    background: rgba(10, 10, 15, 0.7) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

[data-theme="light"] .nx-header {
    background: rgba(255, 255, 255, 0.7) !important;
}

/* Better Mobile Menu Spacing */
.nx-mobile-menu__link {
    padding: 1rem 1.5rem !important;
    font-size: 1.1rem !important;
}

/* User Menu Enhancements */
.nx-user-menu__dropdown {
    background: var(--nx-bg-secondary) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}
