:root {
    --pure-white: #ffffff;
    --off-white: #f8f9fa;
    --accent-red: #E63946;
    --accent-red-light: #ffebec;
    --text-dark: #1d3557;
    --text-gray: #457b9d;
    --shadow-light: 0 20px 40px rgba(29, 53, 87, 0.08);
    --shadow-heavy: 0 30px 60px rgba(230, 57, 70, 0.15);
}

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

body {
    background-color: var(--off-white);
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

/* Aurora Background Effect */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--pure-white);
}

.aurora-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(32px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.glow-1 {
    top: -10%; left: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(230,57,70,0.1) 0%, rgba(255,255,255,0) 70%);
}

.glow-2 {
    bottom: -20%; right: -10%;
    width: 70vw; height: 70vw;
    background: radial-gradient(circle, rgba(69,123,157,0.05) 0%, rgba(255,255,255,0) 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.1); }
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-dark);
}

.logo img {
    height: 36px;
    margin-right: 12px;
}

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

.nav-item {
    position: relative;
    font-weight: 600;
    cursor: pointer;
}

.nav-item a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s;
}

.nav-item a:hover {
    color: var(--accent-red);
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pure-white);
    border-radius: 12px;
    min-width: 160px;
    flex-direction: column;
    box-shadow: var(--shadow-light);
    padding: 10px 0;
    margin-top: 15px;
}

.nav-item:hover .dropdown {
    display: flex;
}

.dropdown a {
    padding: 12px 24px;
    transition: background 0.3s, color 0.3s;
    font-weight: 500;
}

.dropdown a:hover {
    background: var(--accent-red-light);
    color: var(--accent-red);
}

.btn {
    background: var(--pure-white);
    color: var(--accent-red);
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--accent-red);
    border-radius: 30px;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.1);
}

.btn:hover {
    background: var(--accent-red);
    color: var(--pure-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-solid {
    background: var(--accent-red);
    color: var(--pure-white);
}

.btn-solid:hover {
    background: #d62828;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 5%;
    position: relative;
    z-index: 1;
}

/* Overlapping Hero Section */
.hero {
    display: flex;
    gap: 40px;
    align-items: center;
    min-height: 75vh;
    position: relative;
}

.hero-content {
    flex: 1;
    z-index: 2;
    background: rgba(255,255,255,0.8);
    padding: 40px;
    border-radius: 24px;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-light);
    margin-right: -100px; /* Overlap effect */
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

/* Dashboard UI Element */
.hero-ui {
    flex: 1.2;
    background: var(--pure-white);
    border-radius: 30px;
    padding: 50px;
    box-shadow: var(--shadow-heavy);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dashboard-meter {
    width: 200px;
    height: 100px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.meter-bg {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 15px solid var(--off-white);
    position: absolute;
    top: 0;
}

.meter-fill {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 15px solid var(--accent-red);
    border-bottom-color: transparent;
    border-right-color: transparent;
    position: absolute;
    top: 0;
    transform: rotate(45deg);
    animation: speedup 2s ease-out forwards;
}

@keyframes speedup {
    0% { transform: rotate(-135deg); }
    100% { transform: rotate(45deg); }
}

.meter-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-size: 36px;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1;
}

.ui-details {
    width: 100%;
    background: var(--off-white);
    border-radius: 16px;
    padding: 20px;
}

.ui-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-gray);
    font-weight: 500;
}

.ui-row:last-child { margin-bottom: 0; }

.ui-row strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* Trust Metrics */
.metrics {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
    margin-top: -50px;
    margin-bottom: 100px;
    position: relative;
    z-index: 3;
    background: var(--pure-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.metric-item {
    flex: 1;
    min-width: 150px;
}

.metric-num {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent-red);
    margin-bottom: 5px;
    line-height: 1;
}

/* Grid Layouts */
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 100px;
}

.grid-item {
    background: var(--pure-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s;
    position: relative;
    top: 0;
}

.grid-item:hover {
    top: -10px;
    box-shadow: var(--shadow-heavy);
}

.grid-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 100px;
    align-items: center;
}

.pricing-card {
    background: var(--pure-white);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--shadow-light);
    position: relative;
    transition: all 0.3s;
}

.featured-plan {
    transform: scale(1.05);
    box-shadow: var(--shadow-heavy);
    border: 2px solid var(--accent-red);
    z-index: 10;
    padding: 60px 40px;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-red);
    color: var(--pure-white);
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.price {
    font-size: 56px;
    font-weight: 900;
    margin: 20px 0;
    color: var(--text-dark);
    line-height: 1;
}

.price span {
    font-size: 18px;
    color: var(--text-gray);
    font-weight: 500;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
}

.pricing-card ul li {
    margin-bottom: 15px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-card ul li::before {
    content: '✓';
    color: var(--accent-red);
    font-weight: 900;
}

/* FAQ */
.faq-item {
    background: var(--pure-white);
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(29, 53, 87, 0.05);
    overflow: hidden;
}

.faq-q {
    padding: 25px 30px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
    background: var(--pure-white);
    border-bottom: 1px solid var(--off-white);
}

.faq-a {
    padding: 25px 30px;
    color: var(--text-gray);
    background: var(--off-white);
}

/* Reviews */
.review-card {
    background: var(--pure-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-light);
    position: relative;
}

.stars {
    color: var(--accent-red);
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

/* Footer */
.footer {
    background: var(--pure-white);
    padding: 80px 5% 40px;
    position: relative;
    z-index: 1;
    box-shadow: 0 -10px 30px rgba(29, 53, 87, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer h4 {
    color: var(--text-dark);
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 800;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.footer ul li a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--off-white);
    color: var(--text-gray);
    font-size: 14px;
}

.img-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin-top: 40px;
    box-shadow: var(--shadow-light);
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
    }
    .hero-content {
        margin-right: 0;
        margin-bottom: -50px;
    }
}

/* === perf-opt-2026 === */
header, .header {
  contain: layout;
}
.card-white, .scene-card, .pricing-card, .review-card, .blog-card,
.download-item, .faq-item, .download-card-custom, .trust-card {
  contain: layout style;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 980px) {
  header, .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
