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

:root {
    --primary: #1565C0;
    --primary-dark: #0D47A1;
    --primary-light: #42a5f5;
    --secondary: #00B0FF;
    --accent: #1DE9B6;
    --success: #00C853;
    --danger: #ef5350;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 12px 20px -3px rgba(13, 71, 161, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 25px 35px -5px rgba(13, 71, 161, 0.12), 0 10px 20px -5px rgba(13, 71, 161, 0.06);
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 36px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--primary-dark);
    color: #fff;
    padding: 12px 20px;
    z-index: 2000;
    border-radius: 0 0 8px 0;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

img {
    max-width: 100%;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--gray-50); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(18px, 4vw, 24px);
}

.container-narrow {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 clamp(18px, 4vw, 24px);
}

.section {
    padding: clamp(64px, 9vw, 120px) 0;
    position: relative;
}

.section-title {
    font-size: clamp(1.85rem, 1.35rem + 2.2vw, 2.75rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    max-width: 650px;
    margin: 0 auto 56px;
    font-size: clamp(1rem, 0.92rem + 0.4vw, 1.15rem);
    font-weight: 400;
    padding: 0 4px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(21, 101, 192, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0));
    opacity: 0; transition: var(--transition);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(21, 101, 192, 0.5); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active, .btn-outline:active, .btn-live:active { transform: translateY(0) scale(0.97); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-outline:hover { background: rgba(21, 101, 192, 0.05); transform: translateY(-2px); }

.btn-live {
    background: linear-gradient(135deg, #00C853 0%, #4CAF50 100%);
    color: white !important;
    border: none;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    font-size: 0.9rem;
    padding: 12px 26px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-live:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(76, 175, 80, 0.4); filter: brightness(1.05); }

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding: 14px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 8px 30px -12px rgba(13, 71, 161, 0.15);
    border-bottom-color: rgba(226, 232, 240, 0.9);
}

.nav-container { display: flex; align-items: center; justify-content: space-between; position: relative; }

.logo { display: flex; align-items: center; text-decoration: none; z-index: 1001; }
.logo img { height: 44px; width: auto; object-fit: contain; transition: var(--transition); }

.nav-menu { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 32px; align-items: center; }

.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
    padding: 6px 0;
}

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

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--primary-dark); }

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--gray-800);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hero {
    padding: clamp(56px, 9vw, 100px) 0 clamp(64px, 10vw, 120px);
    background:
        linear-gradient(100deg, rgba(248, 250, 252, 0.97) 0%, rgba(248, 250, 252, 0.9) 32%, rgba(13, 71, 161, 0.58) 68%, rgba(13, 71, 161, 0.4) 100%),
        url('../../images/residentpe-hero-clean.jpg');
    background-size: cover;
    background-position: center 60%;
    position: relative;
    overflow: hidden;
}

.hero::before, .hero::after { display: none; }

.dot-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(rgba(21, 101, 192, 0.14) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
}

@keyframes floatBackground {
    0% { transform: translateY(0) scale(1) rotate(0deg); }
    100% { transform: translateY(40px) scale(1.15) rotate(15deg); }
}

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }

.hero-badge {
    background: rgba(0, 200, 83, 0.1);
    color: #00C853;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 28px;
    border: 1px solid rgba(0, 200, 83, 0.2);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.05);
}

.hero-badge i { animation: pulse 2s infinite; }

.hero-title { font-size: clamp(2.15rem, 1.35rem + 3.6vw, 3.75rem); font-weight: 800; line-height: 1.15; margin-bottom: 24px; color: var(--gray-800); letter-spacing: -0.03em; }

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

.hero-desc { font-size: clamp(1rem, 0.93rem + 0.3vw, 1.1rem); color: var(--gray-600); margin-bottom: 36px; max-width: 90%; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: clamp(24px, 5vw, 48px); margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--gray-200); }
.stat-item h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); font-weight: 800; color: var(--primary-dark); letter-spacing: -0.02em; }
.stat-item p { font-size: 0.85rem; color: var(--gray-600); font-weight: 500; }

/* Inner-page hero banner */
.page-hero {
    padding: clamp(48px, 8vw, 64px) 0 clamp(56px, 9vw, 72px);
    background:
        radial-gradient(circle at 85% 15%, rgba(0, 176, 255, 0.12) 0%, rgba(255, 255, 255, 0) 50%),
        linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(1.85rem, 1.35rem + 2.2vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 12px 0 16px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.page-hero p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--gray-600);
    font-size: clamp(1rem, 0.93rem + 0.3vw, 1.1rem);
}

.dashboard-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
    background: #ffffff;
    padding: 8px 24px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.toggle-label { font-size: 0.9rem; font-weight: 700; color: var(--gray-600); transition: var(--transition); }
.toggle-switch { position: relative; display: inline-block; width: 60px; height: 30px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

input:checked + .toggle-slider { background: var(--secondary); }
input:checked + .toggle-slider:before { transform: translateX(30px); }

.dashboard-icon { font-size: 1.1rem; transition: var(--transition); }

.dashboard-showcase { position: relative; display: flex; flex-direction: column; align-items: center; }

.dashboard-showcase::before {
    content: '';
    position: absolute;
    top: 52%;
    left: 50%;
    width: min(420px, 90vw);
    height: min(420px, 90vw);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(21, 101, 192, 0.18) 0%, rgba(0, 176, 255, 0.09) 45%, transparent 72%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(6px);
}

.shifting-badge {
    position: absolute;
    top: 66px;
    right: -10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dashboard-card {
    background: linear-gradient(160deg, #1e293b 0%, #0b1220 100%);
    border-radius: 44px;
    box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: var(--transition);
    max-width: 300px;
    padding: 14px;
    position: relative;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 20px;
    background: #0b1220;
    border-radius: 0 0 14px 14px;
    z-index: 3;
}

.dashboard-card-screen { border-radius: 32px; overflow: hidden; position: relative; }
.dashboard-card-screen img { width: 100%; height: auto; display: block; transition: transform 0.5s ease, opacity 0.3s ease; }
.dashboard-card:hover { transform: translateY(-8px) scale(1.015); box-shadow: 0 30px 60px -15px rgba(13, 71, 161, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }

.dashboard-caption {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.features-section { background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 50%, #F8FAFC 100%); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; margin-top: 16px; }

.feature-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: var(--transition);
    border: 1px solid rgba(21, 101, 192, 0.05);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: var(--transition);
    transform-origin: bottom;
}

.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::before { transform: scaleY(1); }

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(21, 101, 192, 0.06);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon { background: var(--primary); transform: rotate(-5deg) scale(1.05); }
.feature-icon i { font-size: 24px; color: var(--primary); transition: var(--transition); }
.feature-card:hover .feature-icon i { color: #ffffff; }

.feature-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 12px; color: var(--gray-800); letter-spacing: -0.01em; }
.feature-card p { color: var(--gray-600); line-height: 1.6; font-size: 0.95rem; }
a.feature-card { text-decoration: none; color: inherit; }

.tabs-wrapper { display: flex; justify-content: center; margin-bottom: 48px; }

.tabs-container {
    background: var(--gray-200);
    border-radius: 50px;
    padding: 6px;
    display: inline-flex;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.tab-btn {
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn.active { background: #ffffff; color: var(--primary-dark); box-shadow: var(--shadow-md); }
.features-tab-content { display: none; }
.features-tab-content.active-tab { display: block; }

.legal-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 56px 48px;
    max-width: 850px;
    margin: 0 auto;
    border: 1px solid var(--gray-100);
}

.legal-card h2 { font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.25rem); font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; }
.legal-card h3 { font-size: 1.25rem; font-weight: 700; margin: 32px 0 16px; color: var(--gray-800); }
.legal-card ul { padding-left: 20px; margin-bottom: 24px; }
.legal-card li { margin-bottom: 8px; color: var(--gray-600); }
.legal-card p { margin-bottom: 4px; }

.breadcrumb { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 28px; font-weight: 500; }
.breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

.notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    margin: 24px 0;
    font-weight: 500;
    line-height: 1.5;
}

.notice.warn { background: #fff5f5; border-left: 4px solid #f56565; color: #c53030; }
.notice.info { background: #eff6ff; border-left: 4px solid var(--primary); color: var(--primary-dark); }

.step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.step:hover { border-color: var(--gray-200); transform: translateX(4px); }

.step-num {
    background: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); }
.permission-table { width: 100%; min-width: 480px; border-collapse: collapse; }
.permission-table th, .permission-table td { padding: 14px 18px; text-align: left; font-size: 0.9rem; white-space: nowrap; }
.permission-table td { white-space: normal; }
.permission-table th { background: var(--gray-100); font-weight: 700; color: var(--gray-800); }
.permission-table tr:not(:last-child) td { border-bottom: 1px solid var(--gray-200); }

.stats-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    color: white;
    margin: 40px 0;
    box-shadow: 0 20px 40px rgba(13, 71, 161, 0.15);
    position: relative;
    overflow: hidden;
}

.stats-banner::after { content: ''; position: absolute; top: -50%; right: -20%; width: 300px; height: 300px; background: rgba(255,255,255,0.06); border-radius: 50%; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; position: relative; z-index: 2; }
.stats-grid h3 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 800; margin-bottom: 6px; letter-spacing: -0.02em; }
.stats-grid p { font-size: 1rem; color: rgba(255, 255, 255, 0.85); font-weight: 500; }

/* Value / why-us cards */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; margin-top: 16px; }
.why-card { text-align: center; padding: 32px 20px; }
.why-card .feature-icon { margin: 0 auto 20px; }
.why-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.why-card p { color: var(--gray-600); font-size: 0.95rem; }

/* Steps / how it works */
.howitworks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; counter-reset: step-counter; }
.howitworks-card { text-align: center; position: relative; padding: 8px; }
.howitworks-num {
    counter-increment: step-counter;
    width: 52px; height: 52px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.2rem;
    box-shadow: var(--shadow-md);
}
.howitworks-num::before { content: counter(step-counter); }
.howitworks-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.howitworks-card p { color: var(--gray-600); font-size: 0.95rem; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
.blog-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card-body { padding: 28px; }
.blog-card-tag { color: var(--primary); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.blog-card h2, .blog-card h3 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.25rem); font-weight: 700; margin: 10px 0 10px; color: var(--gray-800); }
.blog-card p { color: var(--gray-600); font-size: 0.95rem; }
.blog-card-meta { margin-top: 16px; font-size: 0.82rem; color: var(--gray-600); display: flex; gap: 10px; align-items: center; }

.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { font-size: clamp(1.35rem, 1.15rem + 1vw, 1.6rem); font-weight: 800; margin: 40px 0 16px; color: var(--gray-800); letter-spacing: -0.01em; }
.article-body h3 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 12px; color: var(--gray-800); }
.article-body p { margin-bottom: 18px; color: var(--gray-600); font-size: clamp(0.98rem, 0.93rem + 0.25vw, 1.05rem); }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 18px; color: var(--gray-600); }
.article-body li { margin-bottom: 8px; }
.article-meta { display: flex; gap: 16px; align-items: center; color: var(--gray-600); font-size: 0.9rem; margin-bottom: 32px; flex-wrap: wrap; }

/* FAQ accordion */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}
.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 22px 26px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-800);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq-question i { color: var(--primary); transition: var(--transition); flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner { padding: 0 26px 22px; color: var(--gray-600); font-size: 0.98rem; line-height: 1.7; }
.faq-item.open { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }

/* Forms */
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 48px; border: 1px solid var(--gray-100); }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--gray-800); font-size: 0.92rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-200);
    font-family: inherit;
    font-size: 1rem;
    min-height: 48px;
    transition: var(--transition);
    background: var(--gray-50);
}

.form-group textarea { min-height: unset; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.08);
}
.contact-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-bottom: 56px; }
.contact-method { text-align: center; padding: 32px 20px; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); }
.contact-method .feature-icon { margin: 0 auto 18px; }
.contact-method a { color: var(--primary); text-decoration: none; font-weight: 700; }
.contact-method a:hover { text-decoration: underline; }

.footer { background: var(--gray-800); color: white; padding: 80px 0 32px; margin-top: 100px; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 48px; }
.footer-col h4 { font-size: 1rem; font-weight: 700; margin-bottom: 18px; color: #fff; }
.footer-logo { font-size: 1.75rem; font-weight: 800; color: white; letter-spacing: -0.03em; margin-bottom: 12px; display: inline-block; text-decoration: none; }
.footer-desc { color: var(--gray-300); font-size: 0.92rem; max-width: 300px; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--gray-300); text-decoration: none; font-size: 0.95rem; transition: var(--transition); font-weight: 500; }
.footer-links a:hover { color: white; }
.copyright { text-align: center; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: #94a3b8; font-size: 0.85rem; }

.mobile-cta-bar {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1200;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--gray-200);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(13, 71, 161, 0.1);
    gap: 10px;
}

.mobile-cta-bar-row { display: flex; gap: 10px; }
.mobile-cta-bar .btn-live, .mobile-cta-bar .btn-demo { flex: 1; justify-content: center; padding: 12px 14px; font-size: 0.88rem; white-space: nowrap; }

body.has-mobile-cta { padding-bottom: 0; }

.btn-demo {
    background: linear-gradient(135deg, #1e293b 0%, #0b1220 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3);
}

.btn-demo:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(15, 23, 42, 0.4); }
.btn-demo i { color: var(--accent); }

.whatsapp-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    z-index: 1300;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55); }
.whatsapp-fab i { animation: pulse 2.5s infinite; }

.category-block { margin-bottom: 72px; scroll-margin-top: 90px; }
.category-block:last-child { margin-bottom: 0; }
.category-header { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.category-header .category-icon {
    width: 52px; height: 52px; flex-shrink: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    box-shadow: var(--shadow-md);
}
.category-header h2 {
    font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem);
    font-weight: 800;
    color: var(--gray-800);
    letter-spacing: -0.01em;
}
.category-header p { color: var(--gray-600); font-size: 0.95rem; margin-top: 2px; }

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

.apartment-showcase {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.apartment-illustration-wrap {
    animation: illustrationFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(13, 71, 161, 0.12));
}

.apartment-illustration { width: 100%; height: auto; border-radius: var(--radius-lg); overflow: visible; }

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

.og-window { animation: ogWindowGlow 3.6s ease-in-out infinite; transform-origin: center; }
@keyframes ogWindowGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.og-cloud { animation: ogCloudDrift 7s ease-in-out infinite alternate; }
@keyframes ogCloudDrift {
    0% { transform: translateX(0); }
    100% { transform: translateX(18px); }
}

.og-tree { animation: ogTreeSway 4.5s ease-in-out infinite; transform-origin: 409px 360px; }
@keyframes ogTreeSway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

.og-sun { animation: pulse 4s ease-in-out infinite; transform-origin: 410px 70px; }

.og-bubble { animation: ogBubbleFloat 3.2s ease-in-out infinite; transform-origin: center; }
@keyframes ogBubbleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hero-skyline {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    height: auto;
    z-index: -1;
    opacity: 0.55;
    pointer-events: none;
}

.page-illustration-wrap {
    max-width: 560px;
    margin: 40px auto 0;
    animation: illustrationFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 16px 24px rgba(13, 71, 161, 0.1));
}

.page-illustration-wrap svg { width: 100%; height: auto; }

.contact-illustration-wrap {
    max-width: 420px;
    margin: 0 auto 8px;
    animation: illustrationFloat 6s ease-in-out infinite;
}

.contact-illustration-wrap svg { width: 100%; height: auto; }

@media (max-width: 1024px) {
    .apartment-showcase { grid-template-columns: 1fr; text-align: center; }
    .apartment-showcase-text { max-width: 520px; margin: 0 auto; }
    .apartment-showcase-text p { margin-left: auto; margin-right: auto; }
    .apartment-showcase-text .section-title { text-align: center !important; }
    .apartment-illustration-wrap { max-width: 420px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
    .apartment-illustration-wrap, .og-window, .og-cloud, .og-tree, .og-sun, .og-bubble,
    .page-illustration-wrap, .contact-illustration-wrap,
    .hero-badge i, .whatsapp-fab i, .hero::before, .hero::after {
        animation: none !important;
    }
}

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 48px; }
    .hero-desc { margin: 0 auto 36px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .shifting-badge { right: 20px; }
    .footer-content { gap: 48px 64px; }

    .hero {
        background:
            linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(248, 250, 252, 0.9) 45%, rgba(13, 71, 161, 0.5) 100%),
            url('../../images/residentpe-hero-clean.jpg');
        background-size: cover;
        background-position: center 55%;
    }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .mobile-cta-bar { display: block; }
    body.has-mobile-cta { padding-bottom: 84px; }
    body.has-mobile-cta .whatsapp-fab { bottom: 96px; }

    .nav-links a, .btn-primary, .btn-outline, .btn-live, .btn-demo { min-height: 44px; }
    .tab-btn { min-height: 44px; }

    .whatsapp-fab { width: 52px; height: 52px; font-size: 1.4rem; right: 16px; bottom: 16px; }

    .dashboard-toggle { gap: 8px; padding: 8px 14px; }
    .dashboard-toggle .toggle-label { font-size: 0.78rem; }

    .nav-menu {
        position: fixed;
        top: 74px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        box-shadow: 0 20px 40px rgba(13, 71, 161, 0.1);
        border-top: 1px solid var(--gray-200);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0 28px;
        gap: 24px;
        transition: max-height 0.4s ease, padding 0.4s ease;
        z-index: 999;
        overflow: hidden;
        pointer-events: none;
        visibility: hidden;
    }

    .nav-menu.active {
        max-height: 80vh;
        padding: 28px;
        overflow-y: auto;
        pointer-events: auto;
        visibility: visible;
    }
    .nav-links { flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; }
    .nav-links a { font-size: 1.2rem; width: 100%; padding: 10px 0; }
    .btn-live { width: 100%; justify-content: center; }

    .nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    .legal-card { padding: 36px 24px; }
    .form-card { padding: 32px 22px; }
    .stats-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-content { flex-direction: column; text-align: center; gap: 36px; }
    .footer-desc { max-width: 100%; margin: 0 auto; }
    .footer-links { align-items: center; }

    .dashboard-card { max-width: 240px; }
    .dashboard-showcase::before { width: min(320px, 85vw); height: min(320px, 85vw); }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn-primary, .hero-buttons .btn-outline, .hero-buttons .btn-demo { justify-content: center; }
    .hero-stats { gap: 20px; flex-wrap: wrap; row-gap: 20px; }
    .why-grid, .features-grid, .howitworks-grid, .blog-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 28px 22px; }
    .tabs-container { padding: 5px; }
    .tab-btn { padding: 10px 18px; font-size: 0.88rem; }
    .contact-methods { grid-template-columns: 1fr; }
    .form-card { padding: 26px 18px; }
    .stats-banner { padding: 40px 24px; }
    .category-header { gap: 12px; }
    .category-header .category-icon { width: 44px; height: 44px; font-size: 18px; }

    .dashboard-toggle { gap: 6px; padding: 8px 10px; }
    .dashboard-toggle .toggle-label { display: none; }

    .mobile-cta-bar .btn-live, .mobile-cta-bar .btn-demo { font-size: 0.8rem; padding: 12px 8px; gap: 6px; }
}
