/* ============================================
   MONTERRA - Modern Premium Landing
   Design: Contemporary Minimalism + Bento Grid
   ============================================ */

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

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors - Modern neutral palette */
    --bg-primary: #09090b;
    --bg-secondary: #18181b;
    --bg-tertiary: #27272a;
    --bg-card: rgba(39, 39, 42, 0.5);
    --bg-glass: rgba(255, 255, 255, 0.03);

    --border-primary: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(212, 175, 125, 0.3);

    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --accent: #d4af7d;
    --accent-light: #e8cda0;
    --accent-glow: rgba(212, 175, 125, 0.15);

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Sizing */
    --container: min(1400px, 100% - 3rem);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    overflow-x: hidden;
}

html, body {
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Page load animation */
body.loading {
    overflow: hidden;
}

body.loading .hero-content,
body.loading .header {
    opacity: 0;
}

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

img, video, iframe {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
    width: var(--container);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: clamp(80px, 12vh, 140px) 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.section-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade"] {
    transform: none;
}

[data-animate="scale"] {
    transform: scale(0.9);
}

[data-animate="scale"].visible {
    transform: scale(1);
}

[data-animate="slide-left"] {
    transform: translateX(-60px);
}

[data-animate="slide-left"].visible {
    transform: translateX(0);
}

[data-animate="slide-right"] {
    transform: translateX(60px);
}

[data-animate="slide-right"].visible {
    transform: translateX(0);
}

/* Stagger delays */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }

/* Split text animation */
.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-text.visible .char {
    opacity: 1;
    transform: translateY(0);
}

/* Counter animation */
.counter {
    display: inline-block;
}

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

.float {
    animation: float 4s ease-in-out infinite;
}

/* Gradient text animation */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}

/* Glow pulse */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 125, 0.3); }
    50% { box-shadow: 0 0 40px rgba(212, 175, 125, 0.5); }
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Reveal animation */
.reveal-wrapper {
    overflow: hidden;
}

.reveal-content {
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-wrapper.visible .reveal-content {
    transform: translateY(0);
}

/* Line draw animation */
@keyframes line-draw {
    from { width: 0; }
    to { width: 100%; }
}

.line-draw {
    width: 0;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.line-draw.visible {
    width: 100%;
}

/* Image reveal */
.img-reveal {
    position: relative;
    overflow: hidden;
}

.img-reveal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-primary);
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-reveal.visible::after {
    transform: scaleX(0);
}

.img-reveal img {
    transform: scale(1.2);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.img-reveal.visible img {
    transform: scale(1);
}

/* Parallax */
.parallax {
    will-change: transform;
}

/* Magnetic button effect */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tilt card effect */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tilt-card-inner {
    transform: translateZ(20px);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.section-title span {
    color: var(--accent);
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-top: 20px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -15px rgba(212, 175, 125, 0.4);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-primary svg {
    transition: transform var(--duration-fast) var(--ease-out);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover svg {
    transform: translateX(4px);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--duration-normal) var(--ease-out);
}

.header.scrolled {
    padding: 12px 0;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
}

/* Scroll progress bar */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    width: 0%;
    transition: width 0.1s linear;
}

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

.logo img {
    height: 52px;
    width: auto;
}

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

.nav-link {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--duration-normal) var(--ease-out);
}

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

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    margin-left: 16px;
    padding: 10px 24px;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.nav-cta:hover {
    background: var(--accent);
    transform: scale(1.02);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: all var(--duration-fast) var(--ease-out);
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    left: 0;
    transition: inherit;
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.menu-toggle.active span {
    background: transparent;
}

.menu-toggle.active span::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--text-primary);
}

.menu-toggle.active span::after {
    top: 0;
    transform: rotate(-45deg);
    background: var(--text-primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: opacity 1s var(--ease-out);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(9, 9, 11, 0.3) 0%,
        rgba(9, 9, 11, 0.6) 50%,
        rgba(9, 9, 11, 1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 32px;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 10vw, 100px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s var(--ease-out) forwards;
}

.hero-title-line:nth-child(1) { animation-delay: 0.2s; }
.hero-title-line:nth-child(2) { animation-delay: 0.35s; }

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

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

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.65s forwards;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 80px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero-stat {
    padding: 32px;
    background: var(--bg-secondary);
    text-align: center;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.hero-stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
    opacity: 0;
    animation: fadeUp 0.6s var(--ease-out) 1.2s forwards;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.6); }
}

/* Day/Night Toggle */
.hero-toggle {
    position: absolute;
    bottom: 40px;
    right: 0;
    display: flex;
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    padding: 4px;
    backdrop-filter: blur(10px);
}

.hero-toggle-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all var(--duration-fast) var(--ease-out);
}

.hero-toggle-btn.active {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* ============================================
   BENTO GRID - ABOUT
   ============================================ */
.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.bento-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        var(--accent-glow),
        transparent 40%
    );
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
    pointer-events: none;
}

.bento-card:hover,
.bento-card[data-animate].visible:hover {
    border-color: var(--border-accent);
    transform: translateY(-8px) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 80px var(--accent-glow);
}

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

/* Bento Grid Layout */
.bento-main {
    grid-column: span 8;
    grid-row: span 2;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.bento-side {
    grid-column: span 4;
}

.bento-third {
    grid-column: span 4;
}

/* Main Card Content */
.bento-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bento-main-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    opacity: 0.3;
    mask-image: linear-gradient(to left, black, transparent);
}

.bento-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bento-main .section-title {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 20px;
}

.bento-main p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.7;
}

.bento-location {
    margin-top: auto;
    padding-top: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 15px;
}

.bento-location svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

/* Side Cards */
.bento-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.bento-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.bento-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.bento-card > p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.bento-value {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-top: auto;
}

.bento-value small {
    font-size: 20px;
    color: var(--text-muted);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.feature-card:hover,
.feature-card[data-animate].visible:hover {
    border-color: var(--border-accent);
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 60px var(--accent-glow);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: var(--accent);
}

.feature-card:hover .feature-icon svg {
    stroke: var(--bg-primary);
}

.feature-card:hover .feature-number {
    color: var(--accent);
}

.feature-number {
    position: absolute;
    top: 24px;
    transition: color var(--duration-normal) var(--ease-out);
    right: 24px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-glow), transparent);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    transition: all var(--duration-normal) var(--ease-out);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
    transition: stroke var(--duration-normal) var(--ease-out);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   STATS MARQUEE
   ============================================ */
.stats-marquee {
    padding: 60px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0 60px;
    white-space: nowrap;
}

.marquee-item span:first-child {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    color: var(--text-primary);
}

.marquee-item span:last-child {
    font-size: 16px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.marquee-divider {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

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

/* Faster marquee on mobile */
@media (max-width: 768px) {
    .marquee-track {
        animation-duration: 8s;
    }
}

@media (max-width: 480px) {
    .marquee-track {
        animation-duration: 5s;
    }
}

/* ============================================
   FLOOR PLANS
   ============================================ */
.plans-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
}

.plans-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
}

.plans-tab {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
}

.plans-tab:hover {
    color: var(--text-secondary);
}

.plans-tab.active {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.plans-tab.active .sold-badge {
    background: #dc2626;
    color: #fff;
}

.sold-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.plans-viewer {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

.plans-canvas {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.plans-canvas:hover .plans-expand {
    opacity: 1;
}

.plans-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
}

.plans-image.active {
    opacity: 1;
    position: relative;
}

.plans-expand {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    opacity: 0;
    transition: all var(--duration-fast) var(--ease-out);
}

.plans-expand svg {
    width: 18px;
    height: 18px;
}

.plans-expand:hover {
    background: var(--accent);
    transform: scale(1.02);
}

.plans-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.plans-info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: none;
}

.plans-info-card.active {
    display: block;
}

.plans-info-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}

.plans-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.plans-info-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-primary);
}

.plans-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.plans-info-item span:first-child {
    color: var(--text-muted);
    font-size: 14px;
}

.plans-info-item span:last-child {
    font-weight: 500;
}

.plans-cta {
    margin-top: auto;
}

/* ============================================
   VIDEO GALLERY (Vertical/Reels Format)
   ============================================ */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.video-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
}

/* Glow effect on hover like bento cards */
.video-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        var(--accent-glow),
        transparent 40%
    );
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
    pointer-events: none;
    z-index: 1;
}

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

.video-card:hover {
    border-color: var(--border-accent);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 80px var(--accent-glow);
    transform: translateY(-8px);
}

.video-wrapper {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: var(--bg-primary);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    z-index: 2;
}

.video-play-btn svg {
    width: 24px;
    height: 24px;
    color: var(--bg-primary);
    margin-left: 3px;
}

.video-play-btn:hover {
    background: var(--accent);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 10px 40px rgba(212, 175, 125, 0.4);
}

.video-card.playing .video-play-btn {
    opacity: 0;
    pointer-events: none;
}

.video-card:hover .video-play-btn {
    opacity: 1;
}

.video-card.playing:hover .video-play-btn {
    opacity: 0.9;
    pointer-events: auto;
}

.video-card.playing:hover .video-play-btn svg {
    display: none;
}

.video-card.playing:hover .video-play-btn::before {
    content: '';
    width: 6px;
    height: 20px;
    background: var(--bg-primary);
    border-radius: 2px;
    margin-right: 5px;
}

.video-card.playing:hover .video-play-btn::after {
    content: '';
    width: 6px;
    height: 20px;
    background: var(--bg-primary);
    border-radius: 2px;
}

.video-info {
    padding: 16px 20px;
}

.video-info h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-info p {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1200px) {
    .video-gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

@media (max-width: 992px) {
    .video-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .video-gallery-wrapper {
        margin: 0 calc(-1 * (50vw - 50%));
        padding: 0 calc(50vw - 50%);
        overflow: hidden;
        position: relative;
    }

    .video-gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding: 8px 16px 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .video-gallery::-webkit-scrollbar {
        display: none;
    }

    .video-card {
        flex: 0 0 75vw;
        max-width: 75vw;
        scroll-snap-align: start;
    }

    .video-card:first-child {
        margin-left: 16px;
    }

    .video-card:last-child {
        margin-right: 16px;
    }

    /* Scroll indicator for video gallery */
    .video-gallery-wrapper::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 16px;
        width: 60px;
        background: linear-gradient(to right, transparent, var(--bg-primary) 80%);
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    .video-gallery-wrapper.scrolled::after {
        opacity: 0;
    }

    .video-play-btn {
        width: 56px;
        height: 56px;
    }

    .video-play-btn svg {
        width: 22px;
        height: 22px;
    }

    .video-info {
        padding: 14px 16px;
    }

    .video-info h4 {
        font-size: 15px;
    }

    .video-info p {
        font-size: 12px;
    }
}

/* ============================================
   TECH SECTION - Interactive Building
   ============================================ */
.building-interactive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.building-svg-wrapper {
    position: relative;
}

.building-svg {
    width: 100%;
    height: auto;
    max-height: 500px;
}

.building-zone {
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
}

.building-zone:hover {
    filter: brightness(1.2);
}

.building-zone .window {
    transition: all var(--duration-fast) var(--ease-out);
}

.building-zone:hover .window {
    fill: #1a4a6a;
    stroke: #6ab0c4;
    filter: drop-shadow(0 0 10px rgba(74, 144, 164, 0.5));
}

.zone-icon {
    opacity: 0.6;
    transition: all var(--duration-normal) var(--ease-out);
}

.building-zone:hover .zone-icon {
    opacity: 1;
}

.zone-highlight {
    transition: opacity var(--duration-fast) var(--ease-out);
    pointer-events: none;
}

/* Fan animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vent-fan {
    transform-origin: center;
    transform-box: fill-box;
}

.building-zone[data-zone="vent"]:hover .vent-fan {
    animation: spin 2s linear infinite;
}

/* Heat lines animation */
@keyframes heatFlow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -24; }
}

.building-zone[data-zone="heat"]:hover .heat-lines {
    animation: heatFlow 1s linear infinite;
    opacity: 0.8;
}

/* Info Cards */
.building-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.building-info-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    opacity: 0.5;
    transform: translateX(20px);
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
}

.building-info-card:hover,
.building-info-card.active {
    opacity: 1;
    transform: translateX(0);
    border-color: var(--border-accent);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--accent-glow);
}

.info-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-muted);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

.info-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.building-info-card:hover .info-card-icon,
.building-info-card.active .info-card-icon {
    background: var(--accent);
}

.building-info-card:hover .info-card-icon svg,
.building-info-card.active .info-card-icon svg {
    color: var(--bg-primary);
}

.info-card-content {
    flex: 1;
}

.info-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.info-card-header h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
}

.tech-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    background: var(--accent-muted);
    color: var(--accent);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
}

.building-info-card:hover .tech-badge,
.building-info-card.active .tech-badge {
    background: var(--accent);
    color: var(--bg-primary);
}

.info-card-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .building-interactive {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .building-svg {
        max-height: 350px;
    }

    .building-info-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .building-info-card {
        opacity: 1;
        transform: none;
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .building-info-cards {
        grid-template-columns: 1fr;
    }

    .building-info-card {
        flex-direction: row;
    }

    .info-card-icon {
        width: 44px;
        height: 44px;
    }

    .info-card-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 20s ease-in-out infinite alternate;
    opacity: 0.2;
}

.cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--bg-primary) 70%);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content .section-title {
    margin-bottom: 20px;
}

.cta-content .section-desc {
    margin: 0 auto 40px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.contact-item-text strong {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
}

.contact-item-text span,
.contact-item-text a {
    font-size: 15px;
    color: var(--text-secondary);
}

.contact-item-text a:hover {
    color: var(--accent);
}

.contact-form-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 16px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 16px;
    color: var(--text-primary);
    transition: all var(--duration-fast) var(--ease-out);
    resize: none;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d4af7d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 48px;
}

.form-group select:hover {
    border-color: var(--border-hover);
    background-color: var(--bg-secondary);
}

.form-group select option {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 12px;
}

.form-group select option:hover,
.form-group select option:checked {
    background: var(--accent);
    color: var(--bg-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-note {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
    background: var(--bg-primary);
}

.map-wrapper {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.map-wrapper:hover {
    border-color: var(--border-accent);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 80px var(--accent-glow);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 500px;
    /* Инвертируем карту в тёмную тему */
    filter: invert(92%) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(0.3);
    transition: filter var(--duration-normal) var(--ease-out);
}

.map-wrapper:hover iframe {
    filter: invert(92%) hue-rotate(180deg) brightness(1) contrast(0.95) saturate(0.5);
}

.map-fullscreen-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(24, 24, 27, 0.95);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    z-index: 10;
}

.map-fullscreen-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 125, 0.3);
}

.map-fullscreen-btn svg {
    width: 18px;
    height: 18px;
}

.map-fullscreen-btn .icon-collapse,
.map-fullscreen-btn .btn-text-collapse {
    display: none;
}

/* Fullscreen Mode */
.map-wrapper.fullscreen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    border-radius: 0;
    background: var(--bg-primary);
    border: none;
}

.map-wrapper.fullscreen iframe {
    height: 100vh !important;
    filter: invert(92%) hue-rotate(180deg) brightness(1) contrast(0.95) saturate(0.5);
}

.map-wrapper.fullscreen .map-fullscreen-btn {
    position: fixed;
    top: 24px;
    right: 24px;
    bottom: auto;
}

.map-wrapper.fullscreen .map-fullscreen-btn .icon-expand,
.map-wrapper.fullscreen .map-fullscreen-btn .btn-text-expand {
    display: none;
}

.map-wrapper.fullscreen .map-fullscreen-btn .icon-collapse,
.map-wrapper.fullscreen .map-fullscreen-btn .btn-text-collapse {
    display: inline;
}

@media (max-width: 768px) {
    .map-wrapper iframe {
        height: 400px;
    }

    .map-fullscreen-btn {
        bottom: 16px;
        right: 16px;
        padding: 12px 20px;
        font-size: 13px;
    }

    .map-wrapper.fullscreen .map-fullscreen-btn {
        top: 16px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    .map-wrapper iframe {
        height: 350px;
    }

    .map-fullscreen-btn span {
        display: none;
    }

    .map-fullscreen-btn {
        padding: 14px;
    }

    .map-wrapper.fullscreen .map-fullscreen-btn .icon-collapse {
        display: inline;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-primary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-primary);
    margin-bottom: 30px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 280px;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--duration-fast) var(--ease-out);
}

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

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

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-out);
}

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

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-fast) var(--ease-out);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: all var(--duration-fast) var(--ease-out);
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: all var(--duration-fast) var(--ease-out);
    z-index: 10;
}

.lightbox-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 80vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    transition: transform 0.3s var(--ease-out);
    cursor: grab;
}

.lightbox-image:active {
    cursor: grabbing;
}

.lightbox-caption {
    text-align: center;
    margin-top: 24px;
}

.lightbox-caption h4 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--accent);
}

.lightbox-caption p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.lightbox-thumbs {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
}

.lightbox-thumb {
    width: 72px;
    height: 54px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    opacity: 0.4;
    transition: all var(--duration-fast) var(--ease-out);
    border: 2px solid transparent;
    padding: 0;
}

.lightbox-thumb:hover {
    opacity: 0.7;
}

.lightbox-thumb.active {
    opacity: 1;
    border-color: var(--accent);
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-zoom {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
}

.lightbox-zoom-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-out);
}

.lightbox-zoom-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
}

.lightbox-zoom-btn svg {
    width: 18px;
    height: 18px;
}

.lightbox-zoom-level {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    min-width: 48px;
    text-align: center;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-fast) var(--ease-out);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    max-width: 400px;
    transform: scale(0.95);
    transition: transform var(--duration-fast) var(--ease-spring);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 24px;
    transition: color var(--duration-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    color: var(--accent);
}

.modal-icon svg {
    width: 100%;
    height: 100%;
}

.modal-content h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.modal-content p {
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .bento-main { grid-column: span 7; }
    .bento-side { grid-column: span 5; }
    .bento-third { grid-column: span 4; }

    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .bento { grid-template-columns: 1fr; }
    .bento-main,
    .bento-side,
    .bento-third { grid-column: span 1; }
    .bento-main { min-height: 400px; }

    .plans-viewer { grid-template-columns: 1fr; }
    .plans-info { order: -1; }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .gallery-item:first-child { grid-row: auto; }
    .gallery-item { height: 300px; }

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

    .hero-stats {
        grid-template-columns: 1fr;
        margin-bottom: 40px;
    }

    .hero {
        min-height: auto;
        padding-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-primary);
        border-left: 1px solid var(--border-primary);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 32px;
        gap: 8px;
        transition: right var(--duration-normal) var(--ease-out);
    }

    .nav.active { right: 0; }

    .nav-link {
        width: 100%;
        padding: 16px;
        font-size: 18px;
    }

    .nav-cta {
        width: 100%;
        margin: 24px 0 0;
        text-align: center;
    }

    .menu-toggle { display: flex; }

    .features-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: 1fr; }

    .plans-header { flex-direction: column; gap: 24px; align-items: flex-start; }
    .plans-tabs { width: 100%; overflow-x: auto; }

    .footer-content { flex-direction: column; gap: 32px; }
    .footer-links { flex-wrap: wrap; gap: 24px; }

    .hero-toggle { position: static; margin-top: 40px; }
    .hero-scroll { display: none; }

    .lightbox-thumbs { display: none; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 40px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }

    .section-title { font-size: 32px; }

    .plans-tab { padding: 10px 16px; font-size: 13px; }
}
