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

:root {
    --brand: #c2410c;
    --brand-dark: #9a3412;
    --brand-light: #fed7aa;
    --brand-lighter: #fff7ed;
    --slate-900: #292524;
    --slate-700: #44403c;
    --slate-500: #78716c;
    --slate-200: #e7e5e4;
    --slate-100: #f5f5f4;
    --slate-50: #fafaf9;
    --white: #ffffff;
    --green: #16a34a;
    --amber: #d97706;
    --red: #dc2626;
    --radius: 12px;
    --radius-lg: 20px;
    --warm-bg: #faf7f4;
    --warm-bg-alt: #f5efe8;
    --accent-glow: rgba(194, 65, 12, 0.1);
    --teal: #0d9488;
    --teal-light: #ccfbf1;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--slate-900);
    line-height: 1.6;
    background: var(--warm-bg);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
}

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

/* ===== Nav ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(41, 37, 36, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 7px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.nav-links a:hover {
    color: var(--brand);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: var(--white) !important;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--brand-dark);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* ===== Hero ===== */
.hero {
    padding: 140px 0 100px;
    background: #292524;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(194, 65, 12, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 64px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

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

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    max-width: 440px;
}

.hero-cta {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-price {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.hero-device {
    flex-shrink: 0;
}

/* Phone frame */
.phone-frame {
    width: 280px;
    background: #111;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.phone-screen {
    width: 100%;
    background: var(--white);
    border-radius: 26px;
    overflow: hidden;
}

/* Mock app screens */
.mock-app {
    padding: 20px 16px;
}

.mock-header {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-top: 24px;
    color: var(--slate-900);
}

.mock-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--slate-50);
    border-radius: var(--radius);
    margin-bottom: 12px;
    border: 1px solid var(--slate-200);
}

.mock-card-icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 10px;
    flex-shrink: 0;
}

.mock-card-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.mock-card-sub {
    font-size: 0.8rem;
    color: var(--slate-500);
    margin-top: 2px;
}

/* ===== Features ===== */
.features {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--slate-500);
    max-width: 480px;
    margin: 0 auto;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 100px;
}

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

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-visual {
    flex-shrink: 0;
}

.feature-text {
    flex: 1;
}

.feature-badge {
    display: inline-block;
    background: var(--brand-lighter);
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.feature-text h3 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.feature-text p {
    font-size: 1.05rem;
    color: var(--slate-500);
    max-width: 400px;
    line-height: 1.7;
}

/* Feature phone (smaller) */
.feature-visual {
    position: relative;
}

.feature-visual::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 0;
    bottom: -20px;
    background: var(--accent-glow);
    border-radius: 50%;
    z-index: 0;
}

.feature-row:nth-child(2) .feature-visual::before {
    background: rgba(217, 119, 6, 0.1);
}

.feature-row:nth-child(3) .feature-visual::before {
    background: rgba(194, 65, 12, 0.08);
}

.feature-phone {
    position: relative;
    z-index: 1;
    width: 240px;
    background: #111;
    border-radius: 32px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Paired phone layout */
.feature-phones {
    display: flex;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.feature-phones .feature-phone {
    position: relative;
}

.feature-phones .feature-phone-detail {
    position: relative;
    z-index: 1;
    width: 200px;
    background: #111;
    border-radius: 28px;
    padding: 8px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    margin-left: -40px;
    margin-top: 40px;
}

.feature-phones .feature-phone-detail .phone-screen-sm {
    border-radius: 22px;
}

[data-theme="dark"] .feature-phones .feature-phone-detail {
    background: #2a3045;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.phone-screen-sm {
    width: 100%;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
}

/* Breaker mock */
.mock-breaker, .mock-maintenance, .mock-contacts {
    padding: 16px 14px;
}

.mock-header-sm {
    font-size: 1.15rem;
    font-weight: 700;
    padding-top: 20px;
    margin-bottom: 16px;
    color: var(--slate-900);
}

.breaker-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.breaker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
}

.breaker-item span {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.breaker-item.on {
    background: #f0fdf4;
    color: var(--green);
}

.breaker-item.on span {
    background: var(--green);
    color: var(--white);
}

.breaker-item.off {
    background: #fef2f2;
    color: var(--red);
}

.breaker-item.off span {
    background: var(--red);
    color: var(--white);
}

/* Maintenance mock */
.maint-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    border-bottom: 1px solid var(--slate-100);
}

.maint-item:last-child {
    border-bottom: none;
}

.maint-icon {
    font-size: 1rem;
}

.maint-item strong {
    font-size: 0.85rem;
    display: block;
}

.maint-due {
    font-size: 0.75rem;
    color: var(--slate-500);
    margin-top: 2px;
}

.maint-item.due-soon strong {
    color: var(--red);
}

/* Contacts mock */
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    border-bottom: 1px solid var(--slate-100);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.contact-item strong {
    font-size: 0.85rem;
    display: block;
}

.contact-type {
    font-size: 0.75rem;
    color: var(--slate-500);
    margin-top: 2px;
}

/* ===== Privacy ===== */
.privacy-section {
    padding: 80px 0;
    background: #292524;
    color: var(--white);
}

.privacy-card {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.privacy-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.privacy-card h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.privacy-card > p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 32px;
}

.privacy-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.privacy-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pb-icon {
    font-size: 1.1rem;
}

/* ===== Mid CTA ===== */
.mid-cta {
    padding: 80px 0;
    background: var(--warm-bg);
}

.mid-cta-inner {
    text-align: center;
    background: var(--white);
    padding: 64px 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--slate-200);
}

.mid-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.mid-cta p {
    font-size: 1.05rem;
    color: var(--slate-500);
    margin-bottom: 28px;
}

/* ===== FAQ ===== */
.faq {
    padding: 80px 0;
    background: var(--warm-bg);
}

.faq h2 {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.02em;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--slate-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
    padding: 48px 0;
    background: var(--slate-900);
    color: var(--white);
    border-top: none;
}

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

.footer-brand {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.footer-by {
    width: 100%;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 28px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

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

/* ===== Carousel ===== */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    position: relative;
}

.carousel .carousel-slide {
    display: none;
    animation: carouselFade 0.4s ease;
}

.carousel .carousel-slide.active {
    display: block;
}

@keyframes carouselFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.25);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* ===== Screen images ===== */
.screen-img {
    width: 100%;
    display: block;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 48px;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .feature-text p {
        margin: 0 auto;
    }

    .feature-phones .feature-phone-detail {
        display: none;
    }

    .feature-phones {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .feature-text h3 {
        font-size: 1.6rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .nav-links a:not(.btn) {
        display: none;
    }

    .privacy-badges {
        flex-direction: column;
        align-items: center;
    }

    .theme-toggle {
        width: 44px;
        height: 24px;
    }

    .theme-toggle-slider {
        width: 18px;
        height: 18px;
    }

    [data-theme="dark"] .theme-toggle-slider {
        transform: translateX(20px);
    }
}

/* ===== Theme Toggle ===== */
.theme-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.theme-toggle-icon {
    font-size: 0.7rem;
    z-index: 1;
    padding: 0 4px;
    line-height: 1;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.theme-toggle-slider {
    position: absolute;
    left: 3px;
    width: 22px;
    height: 22px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle-slider {
    transform: translateX(24px);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ===== Dark Theme ===== */
/* Colors extracted from the app's dark mode screenshots */
[data-theme="dark"] {
    --warm-bg: #1a1f2e;
    --warm-bg-alt: #232838;
    --slate-900: #FFFFFF;
    --slate-700: #c9d1d9;
    --slate-500: #8A8F9E;
    --slate-200: #353b4e;
    --slate-100: #232838;
    --slate-50: #232838;
    --white: #1a1f2e;
    --brand-lighter: rgba(10, 132, 255, 0.12);
    --accent-glow: rgba(10, 132, 255, 0.1);
}

[data-theme="dark"] body {
    background: #1a1f2e;
    color: #FFFFFF;
}

[data-theme="dark"] .nav {
    background: rgba(20, 24, 37, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Hero & privacy & footer are dark in both themes — force white text */
[data-theme="dark"] .hero,
[data-theme="dark"] .privacy-section,
[data-theme="dark"] .footer {
    color: #FFFFFF;
}

[data-theme="dark"] .hero {
    background: #141825;
}

[data-theme="dark"] .hero-text h1 {
    color: #FFFFFF;
}

[data-theme="dark"] .hero-sub {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .hero-price {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .hero::before {
    background: radial-gradient(circle, rgba(10, 132, 255, 0.12) 0%, transparent 70%);
}

[data-theme="dark"] .hero::after {
    background: radial-gradient(circle, rgba(255, 159, 10, 0.08) 0%, transparent 70%);
}

[data-theme="dark"] .features {
    background: #1e2335;
}

[data-theme="dark"] .feature-visual::before {
    background: rgba(10, 132, 255, 0.08) !important;
}

[data-theme="dark"] .phone-frame {
    background: #2a3045;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .phone-screen,
[data-theme="dark"] .phone-screen-sm {
    background: #141825;
}

[data-theme="dark"] .feature-phone {
    background: #2a3045;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .feature-badge {
    background: rgba(10, 132, 255, 0.12);
    color: #0A84FF;
}

[data-theme="dark"] .section-header h2,
[data-theme="dark"] .feature-text h3,
[data-theme="dark"] .mid-cta h2,
[data-theme="dark"] .faq h2 {
    color: #FFFFFF;
}

[data-theme="dark"] .section-header p,
[data-theme="dark"] .feature-text p,
[data-theme="dark"] .mid-cta p {
    color: #8A8F9E;
}

[data-theme="dark"] .privacy-section {
    background: #141825;
}

[data-theme="dark"] .privacy-card h2 {
    color: #FFFFFF;
}

[data-theme="dark"] .privacy-card > p {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .privacy-badge {
    background: rgba(10, 132, 255, 0.12);
    border-color: rgba(10, 132, 255, 0.25);
    color: #FFFFFF;
}

[data-theme="dark"] .mid-cta {
    background: #1a1f2e;
}

[data-theme="dark"] .mid-cta-inner {
    background: #272d40;
    border-color: #353b4e;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .faq {
    background: #1e2335;
}

[data-theme="dark"] .faq-item {
    background: #272d40;
    border-color: #353b4e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .faq-item h4 {
    color: #FFFFFF;
}

[data-theme="dark"] .faq-item p {
    color: #8A8F9E;
}

[data-theme="dark"] .footer {
    background: #141825;
}

[data-theme="dark"] .footer-by {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .footer-links {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .nav-links {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .nav-brand {
    color: #FFFFFF;
}

[data-theme="dark"] .btn {
    color: #fff !important;
}

[data-theme="dark"] .carousel-dot {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .carousel-dot.active {
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .carousel-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .theme-toggle-slider {
    background: #e6edf3;
}
