@charset "utf-8";

/* ========================================
   Nexus Layout - Main Stylesheet
   AI 시대의 현대적인 레이아웃
   ======================================== */

/* ----------------------------------------
   CSS Custom Properties (Variables)
   ---------------------------------------- */
:root {
    /* Colors - Dark Mode (Default) */
    --nx-bg-primary: #080914;
    --nx-bg-secondary: #0f1120;
    --nx-bg-tertiary: #171a2d;
    --nx-bg-card: rgba(255, 255, 255, 0.045);
    --nx-bg-card-hover: rgba(255, 255, 255, 0.075);
    --nx-bg-glass: rgba(8, 9, 20, 0.78);

    --nx-text-primary: #f3f1fb;
    --nx-text-secondary: #aaa8bc;
    --nx-text-muted: #757488;

    --nx-accent-1: #9b87f5;
    --nx-accent-2: #7257e7;
    --nx-accent-3: #59d8c2;
    --nx-gradient-primary: linear-gradient(135deg, #755be7 0%, #9a7cf0 55%, #c18bf2 100%);
    --nx-gradient-subtle: linear-gradient(135deg, rgba(155, 135, 245, 0.16) 0%, rgba(89, 216, 194, 0.08) 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 14px 45px rgba(114, 87, 231, 0.3);

    /* 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: #f7f6fb;
    --nx-bg-secondary: #ffffff;
    --nx-bg-tertiary: #f0eef8;
    --nx-bg-card: rgba(39, 30, 73, 0.035);
    --nx-bg-card-hover: rgba(39, 30, 73, 0.065);
    --nx-bg-glass: rgba(255, 255, 255, 0.9);

    --nx-text-primary: #211c35;
    --nx-text-secondary: #615d70;
    --nx-text-muted: #8b8797;

    --nx-accent-1: #6952dc;
    --nx-accent-2: #8061e8;
    --nx-accent-3: #248f7d;
    --nx-gradient-primary: linear-gradient(135deg, #624bd2 0%, #8061e8 55%, #a86ed8 100%);
    --nx-gradient-subtle: linear-gradient(135deg, rgba(105, 82, 220, 0.1) 0%, rgba(36, 143, 125, 0.06) 100%);

    --nx-border-color: rgba(0, 0, 0, 0.08);
    --nx-border-hover: rgba(0, 0, 0, 0.15);

    --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 0 30px rgba(79, 70, 229, 0.2);
}

/* ----------------------------------------
   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);
}

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 {
    height: 36px;
    width: auto;
    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);
}

.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: 100vh;
    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;
}

/* ----------------------------------------
   AI Citation Brief
   ---------------------------------------- */
.nx-ai-brief {
    position: relative;
    padding: var(--nx-space-16) 0;
    background: var(--nx-bg-secondary);
    border-top: 1px solid var(--nx-border-color);
    border-bottom: 1px solid var(--nx-border-color);
}

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

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

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

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

.nx-ai-brief__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--nx-space-6);
    margin-bottom: var(--nx-space-8);
}

.nx-ai-panel {
    padding: var(--nx-space-6);
    background: var(--nx-bg-card);
    border: 1px solid var(--nx-border-color);
    border-radius: 8px;
}

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

.nx-ai-fact-list {
    display: grid;
    gap: var(--nx-space-3);
    color: var(--nx-text-secondary);
    line-height: 1.7;
}

.nx-ai-fact-list a {
    color: var(--nx-accent-1);
    word-break: break-all;
}

.nx-ai-quote {
    margin: 0;
}

.nx-ai-quote blockquote {
    margin: 0 0 var(--nx-space-4);
    color: var(--nx-text-primary);
    font-size: var(--nx-text-lg);
    line-height: 1.8;
}

.nx-ai-quote figcaption {
    color: var(--nx-text-muted);
    font-size: var(--nx-text-sm);
}

.nx-ai-quote a {
    color: var(--nx-accent-1);
}

.nx-ai-entrypoints {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--nx-space-4);
    margin-bottom: var(--nx-space-6);
}

.nx-ai-entrypoint {
    display: flex;
    min-height: 132px;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--nx-space-5);
    background: var(--nx-bg-tertiary);
    border: 1px solid var(--nx-border-color);
    border-radius: 8px;
}

.nx-ai-entrypoint:hover {
    border-color: var(--nx-border-hover);
    background: var(--nx-bg-card-hover);
}

.nx-ai-entrypoint__label {
    margin-bottom: var(--nx-space-3);
    font-weight: 700;
    color: var(--nx-text-primary);
}

.nx-ai-entrypoint__desc {
    color: var(--nx-text-secondary);
    font-size: var(--nx-text-sm);
    line-height: 1.6;
}

.nx-ai-machine-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nx-space-3);
}

.nx-ai-machine-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 var(--nx-space-4);
    color: var(--nx-text-secondary);
    background: var(--nx-bg-card);
    border: 1px solid var(--nx-border-color);
    border-radius: 8px;
    font-size: var(--nx-text-sm);
}

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

/* ----------------------------------------
   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;
}

/* ----------------------------------------
   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-top: var(--nx-space-3);
}

.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;
}

/* 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-ai-entrypoints {
        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;
    }
}

@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-ai-brief {
        padding: var(--nx-space-12) 0;
    }

    .nx-ai-brief__grid,
    .nx-ai-entrypoints {
        grid-template-columns: 1fr;
    }

    .nx-ai-brief__title {
        font-size: var(--nx-text-2xl);
    }

    .nx-ai-brief__lead,
    .nx-ai-quote blockquote {
        font-size: var(--nx-text-base);
    }

    .nx-btn {
        width: 100%;
        max-width: 300px;
    }

    .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-sub-header {
        padding: var(--nx-space-8) 0;
    }

    .nx-main {
        padding: var(--nx-space-5) 0;
    }
}

/* ----------------------------------------
   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;
}

/* ========================================
   Dream Service Experience
   ======================================== */

.nx-container {
    max-width: 1280px;
}

.nx-header {
    background: rgba(8, 9, 20, 0.76) !important;
    border-bottom-color: rgba(255, 255, 255, 0.065) !important;
}

[data-theme="light"] .nx-header {
    background: rgba(255, 255, 255, 0.84) !important;
    border-bottom-color: rgba(39, 30, 73, 0.08) !important;
}

.nx-header.is-scrolled {
    box-shadow: 0 10px 35px rgba(3, 4, 12, 0.22);
}

.nx-logo__image {
    height: 38px;
}

.nx-logo__wordmark {
    color: var(--nx-text-primary);
    font-size: 1.08rem;
    font-weight: 750;
    letter-spacing: -0.035em;
}

.nx-nav__list {
    gap: 0.15rem;
}

.nx-nav__link {
    padding: 0.7rem 0.95rem;
    font-weight: 600;
}

.nx-nav__link.is-active {
    color: var(--nx-text-primary);
    background: rgba(155, 135, 245, 0.1);
}

.nx-icon-btn:focus-visible,
.nx-nav__link:focus-visible,
.nx-dream-search__button:focus-visible,
.nx-dream-search__input:focus-visible,
.nx-home-service:focus-visible,
.nx-home-services__all:focus-visible {
    outline: 3px solid rgba(155, 135, 245, 0.45);
    outline-offset: 3px;
}

.nx-hero {
    min-height: 680px;
    padding: 68px 0 76px;
    align-items: center;
    justify-content: initial;
    isolation: isolate;
}

.nx-hero::after {
    position: absolute;
    z-index: 0;
    right: -14%;
    bottom: -45%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(104, 77, 215, 0.14), transparent 67%);
    content: "";
    pointer-events: none;
}

.nx-hero__bg-gradient {
    background:
        radial-gradient(ellipse at 15% 28%, rgba(114, 87, 231, 0.16) 0%, transparent 44%),
        radial-gradient(ellipse at 80% 18%, rgba(89, 216, 194, 0.06) 0%, transparent 38%),
        linear-gradient(145deg, #0c0e1e 0%, #080914 52%, #0c0915 100%);
}

[data-theme="light"] .nx-hero__bg-gradient {
    background:
        radial-gradient(ellipse at 15% 28%, rgba(114, 87, 231, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 82% 22%, rgba(89, 216, 194, 0.1) 0%, transparent 40%),
        linear-gradient(145deg, #faf9fd 0%, #f4f1fb 60%, #f8f5fa 100%);
}

.nx-hero__bg-pattern {
    background-image:
        radial-gradient(circle at 1px 1px, rgba(188, 179, 229, 0.22) 1px, transparent 0);
    background-size: 38px 38px;
    opacity: 0.22;
    -webkit-mask-image: linear-gradient(to right, black, transparent 75%);
    mask-image: linear-gradient(to right, black, transparent 75%);
}

.nx-hero__container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(400px, 0.9fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
}

.nx-hero__content {
    max-width: 720px;
    padding: 0;
    text-align: left;
}

.nx-hero__badge {
    padding: 0.48rem 0.85rem;
    margin-bottom: 1.35rem;
    color: #c9bcff;
    background: rgba(155, 135, 245, 0.08);
    border-color: rgba(155, 135, 245, 0.23);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.035em;
}

[data-theme="light"] .nx-hero__badge {
    color: #6049c7;
}

.nx-hero__badge-dot {
    width: 6px;
    height: 6px;
    background: #6de5d1;
    box-shadow: 0 0 0 5px rgba(89, 216, 194, 0.09);
}

.nx-hero__title {
    margin-bottom: 1.25rem;
    color: var(--nx-text-primary);
    font-size: clamp(3.25rem, 5.2vw, 5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.065em;
}

.nx-hero__title-gradient {
    background: linear-gradient(100deg, #f6f2ff 0%, #c8b9ff 45%, #8fe1d2 105%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .nx-hero__title-gradient {
    background: linear-gradient(100deg, #5640bd 0%, #7f5dd9 55%, #258a78 110%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nx-hero__subtitle {
    max-width: 640px;
    margin-bottom: 1.75rem;
    color: var(--nx-text-secondary);
    font-size: clamp(1rem, 1.35vw, 1.14rem);
    line-height: 1.82;
    letter-spacing: -0.02em;
}

.nx-dream-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 680px;
    min-height: 72px;
    padding: 7px 7px 7px 54px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 18px;
    box-shadow:
        0 20px 60px rgba(2, 3, 12, 0.34),
        0 0 0 1px rgba(155, 135, 245, 0.08);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nx-dream-search:focus-within {
    border-color: rgba(155, 135, 245, 0.68);
    box-shadow:
        0 24px 70px rgba(2, 3, 12, 0.4),
        0 0 0 4px rgba(155, 135, 245, 0.11);
    transform: translateY(-2px);
}

[data-theme="light"] .nx-dream-search {
    border-color: rgba(75, 55, 145, 0.08);
    box-shadow:
        0 20px 55px rgba(54, 40, 100, 0.14),
        0 0 0 1px rgba(105, 82, 220, 0.06);
}

.nx-dream-search__icon {
    position: absolute;
    left: 21px;
    width: 22px;
    height: 22px;
    color: #777184;
}

.nx-dream-search__input {
    min-width: 0;
    flex: 1;
    padding: 0 0.8rem 0 0;
    color: #292435;
    background: transparent;
    border: 0;
    outline: 0 !important;
    font-size: 1rem;
    font-weight: 500;
}

.nx-dream-search__input::placeholder {
    color: #8e8998;
    opacity: 1;
}

.nx-dream-search__input::-webkit-search-cancel-button {
    display: none;
}

.nx-dream-search__button {
    display: inline-flex;
    min-width: 132px;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0 1.35rem;
    color: #fff;
    background: linear-gradient(135deg, #6d52dd 0%, #8c6be9 100%);
    border-radius: 13px;
    box-shadow: 0 9px 24px rgba(105, 76, 216, 0.25);
    font-size: 0.94rem;
    font-weight: 750;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.nx-dream-search__button:hover {
    box-shadow: 0 12px 30px rgba(105, 76, 216, 0.36);
    transform: translateY(-1px);
}

.nx-dream-search__button svg {
    width: 17px;
    height: 17px;
}

.nx-hero__keywords {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.15rem;
    color: var(--nx-text-muted);
    font-size: 0.82rem;
}

.nx-hero__keywords > span {
    margin-right: 0.15rem;
    font-weight: 700;
}

.nx-hero__keywords a {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 0.7rem;
    color: var(--nx-text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--nx-border-color);
    border-radius: 999px;
    font-weight: 600;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nx-hero__keywords a:hover {
    color: var(--nx-text-primary);
    background: rgba(155, 135, 245, 0.1);
    border-color: rgba(155, 135, 245, 0.32);
}

.nx-dreamscape {
    position: relative;
    width: min(100%, 500px);
    aspect-ratio: 1;
    justify-self: end;
}

.nx-dreamscape__glow {
    position: absolute;
    inset: 12%;
    background: radial-gradient(circle, rgba(143, 115, 242, 0.2), transparent 65%);
    filter: blur(8px);
}

.nx-dreamscape__orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(188, 177, 234, 0.13);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-18deg);
}

.nx-dreamscape__orbit::before {
    position: absolute;
    left: 12%;
    top: 12%;
    width: 7px;
    height: 7px;
    background: #6de5d1;
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(89, 216, 194, 0.75);
    content: "";
}

.nx-dreamscape__orbit--outer {
    width: 96%;
    height: 68%;
}

.nx-dreamscape__orbit--inner {
    width: 70%;
    height: 48%;
    transform: translate(-50%, -50%) rotate(31deg);
}

.nx-dreamscape__moon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 245px;
    height: 245px;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.18) 2%, transparent 12%),
        radial-gradient(circle at 38% 35%, #e4dcff 0%, #baaaf0 35%, #7d67ce 70%, #4e3c9c 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    box-shadow:
        inset -28px -25px 55px rgba(32, 19, 82, 0.46),
        inset 20px 17px 40px rgba(255, 255, 255, 0.19),
        0 0 80px rgba(134, 105, 232, 0.3);
    transform: translate(-50%, -50%);
}

.nx-dreamscape__moon::after {
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(205, 194, 250, 0.1);
    border-radius: 50%;
    content: "";
}

.nx-dreamscape__crater {
    position: absolute;
    background: rgba(79, 59, 145, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow: inset 4px 4px 10px rgba(42, 27, 99, 0.22);
}

.nx-dreamscape__crater--one {
    left: 35px;
    top: 110px;
    width: 44px;
    height: 44px;
}

.nx-dreamscape__crater--two {
    right: 48px;
    top: 58px;
    width: 28px;
    height: 28px;
}

.nx-dreamscape__crater--three {
    right: 64px;
    bottom: 34px;
    width: 52px;
    height: 52px;
}

.nx-dreamscape__star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 14px #fff;
}

.nx-dreamscape__star--one {
    left: 15%;
    top: 24%;
}

.nx-dreamscape__star--two {
    right: 10%;
    top: 34%;
    width: 6px;
    height: 6px;
    background: #73e6d2;
    box-shadow: 0 0 16px #59d8c2;
}

.nx-dreamscape__star--three {
    left: 26%;
    bottom: 17%;
    background: #c9bcff;
}

.nx-dreamscape__card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 190px;
    padding: 0.85rem 1rem;
    color: #f5f3ff;
    background: rgba(20, 21, 41, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 15px;
    box-shadow: 0 18px 48px rgba(2, 3, 12, 0.28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

[data-theme="light"] .nx-dreamscape__card {
    color: #2b2440;
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(71, 53, 139, 0.1);
    box-shadow: 0 18px 48px rgba(64, 45, 125, 0.14);
}

.nx-dreamscape__card small,
.nx-dreamscape__card strong {
    display: block;
}

.nx-dreamscape__card small {
    margin-bottom: 0.1rem;
    color: #9e98b4;
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.nx-dreamscape__card strong {
    font-size: 0.84rem;
    letter-spacing: -0.02em;
}

.nx-dreamscape__card-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #785ce2, #a277ec);
    border-radius: 11px;
    box-shadow: 0 7px 17px rgba(107, 78, 218, 0.28);
}

.nx-dreamscape__card--symbol {
    left: 0;
    top: 23%;
    animation: nxDreamFloat 6s ease-in-out infinite;
}

.nx-dreamscape__card--insight {
    right: -2%;
    bottom: 21%;
    animation: nxDreamFloat 6.8s ease-in-out 0.8s infinite;
}

.nx-dreamscape__pulse {
    position: relative;
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    background: #59d8c2;
    border-radius: 50%;
    box-shadow: 0 0 0 7px rgba(89, 216, 194, 0.1);
}

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

.nx-home-services {
    padding: 70px 0 76px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 40%),
        var(--nx-bg-secondary);
    border-top: 1px solid var(--nx-border-color);
    border-bottom: 1px solid var(--nx-border-color);
}

.nx-home-services__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.75rem;
}

.nx-home-services__eyebrow {
    margin-bottom: 0.45rem;
    color: var(--nx-accent-1);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

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

.nx-home-services__all {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding-bottom: 0.2rem;
    color: var(--nx-text-secondary);
    border-bottom: 1px solid var(--nx-border-color);
    font-size: 0.86rem;
    font-weight: 650;
}

.nx-home-services__all:hover {
    color: var(--nx-text-primary);
    border-color: var(--nx-accent-1);
}

.nx-home-services__all svg {
    width: 16px;
    height: 16px;
}

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

.nx-home-service {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 1rem;
    min-height: 176px;
    padding: 1.45rem;
    color: var(--nx-text-primary);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--nx-border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.nx-home-service::after {
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(155, 135, 245, 0.12), transparent 68%);
    content: "";
    transition: transform 240ms ease;
}

.nx-home-service:hover {
    color: var(--nx-text-primary);
    background: var(--nx-bg-card-hover);
    border-color: rgba(155, 135, 245, 0.25);
    box-shadow: 0 18px 40px rgba(2, 3, 12, 0.16);
    transform: translateY(-5px);
}

.nx-home-service:hover::after {
    transform: scale(1.2);
}

.nx-home-service--featured {
    background: linear-gradient(145deg, rgba(114, 87, 231, 0.16), rgba(155, 135, 245, 0.055));
    border-color: rgba(155, 135, 245, 0.19);
}

.nx-home-service__icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    color: #cfc4ff;
    background: rgba(155, 135, 245, 0.1);
    border: 1px solid rgba(155, 135, 245, 0.17);
    border-radius: 14px;
}

.nx-home-service__icon svg {
    width: 24px;
    height: 24px;
}

.nx-home-service__copy {
    display: block;
    min-width: 0;
}

.nx-home-service__copy small,
.nx-home-service__copy strong,
.nx-home-service__copy > span {
    display: block;
}

.nx-home-service__copy small {
    margin: 0.05rem 0 0.25rem;
    color: var(--nx-text-muted);
    font-size: 0.72rem;
    font-weight: 650;
}

.nx-home-service__copy strong {
    margin-bottom: 0.55rem;
    font-size: 1.12rem;
    letter-spacing: -0.035em;
}

.nx-home-service__copy > span {
    color: var(--nx-text-secondary);
    font-size: 0.84rem;
    line-height: 1.65;
    letter-spacing: -0.015em;
}

.nx-home-service__arrow {
    position: relative;
    z-index: 1;
    color: var(--nx-text-muted);
    font-size: 1rem;
    transition: color 180ms ease, transform 180ms ease;
}

.nx-home-service:hover .nx-home-service__arrow {
    color: var(--nx-accent-1);
    transform: translate(2px, -2px);
}

.is-main-page .nx-main {
    padding: 74px 0 90px;
}

.nx-footer__main {
    padding: 3.5rem 0;
}

.nx-footer__grid {
    gap: 2.5rem;
}

.nx-footer__description {
    max-width: 290px;
}

@media (max-width: 1100px) {
    .nx-hero__container {
        grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
        gap: 2rem;
    }

    .nx-dreamscape__moon {
        width: 210px;
        height: 210px;
    }

    .nx-dreamscape__card--symbol {
        left: -2%;
    }

    .nx-dreamscape__card--insight {
        right: -4%;
    }
}

@media (max-width: 900px) {
    .nx-hero {
        min-height: auto;
        padding: 80px 0 86px;
    }

    .nx-hero__container {
        display: block;
    }

    .nx-hero__content {
        max-width: 720px;
        margin: 0 auto;
        text-align: center;
    }

    .nx-hero__subtitle {
        margin-right: auto;
        margin-left: auto;
    }

    .nx-dream-search {
        margin-right: auto;
        margin-left: auto;
        text-align: left;
    }

    .nx-hero__keywords {
        justify-content: center;
    }

    .nx-dreamscape {
        display: none;
    }

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

    .nx-home-service {
        min-height: 144px;
    }
}

@media (max-width: 640px) {
    .nx-logo__wordmark {
        display: none;
    }

    .nx-header__actions {
        gap: 0;
    }

    .nx-header__actions .nx-search-open {
        display: none;
    }

    .nx-hero {
        padding: 58px 0 66px;
    }

    .nx-hero__badge {
        margin-bottom: 1.1rem;
    }

    .nx-hero__title {
        margin-bottom: 1rem;
        font-size: clamp(2.15rem, 9vw, 2.65rem);
    }

    .nx-hero__desktop-break {
        display: none;
    }

    .nx-hero__subtitle {
        margin-bottom: 1.4rem;
        font-size: 0.96rem;
        line-height: 1.72;
    }

    .nx-dream-search {
        min-height: 62px;
        padding: 5px 5px 5px 45px;
        border-radius: 15px;
    }

    .nx-dream-search__icon {
        left: 16px;
        width: 19px;
        height: 19px;
    }

    .nx-dream-search__input {
        font-size: 0.91rem;
    }

    .nx-dream-search__button {
        min-width: 52px;
        width: 52px;
        min-height: 52px;
        padding: 0;
        border-radius: 11px;
    }

    .nx-dream-search__button span {
        display: none;
    }

    .nx-hero__keywords {
        gap: 0.4rem;
        margin-top: 1rem;
    }

    .nx-hero__keywords > span {
        width: 100%;
        margin-bottom: 0.15rem;
    }

    .nx-home-services {
        padding: 52px 0 58px;
    }

    .nx-home-services__heading {
        display: block;
        margin-bottom: 1.35rem;
    }

    .nx-home-services__all {
        margin-top: 0.85rem;
    }

    .nx-home-service {
        grid-template-columns: auto minmax(0, 1fr);
        min-height: 0;
        padding: 1.2rem;
        border-radius: 17px;
    }

    .nx-home-service__arrow {
        display: none;
    }

    .nx-home-service__icon {
        width: 43px;
        height: 43px;
    }

    .nx-home-service__copy > span {
        font-size: 0.8rem;
    }

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

@media (prefers-reduced-motion: reduce) {
    .nx-dreamscape__card {
        animation: none;
    }

    .nx-home-service,
    .nx-dream-search {
        transition: none;
    }
}
