/* ========================================
   Carlog Website — Digital Service Book
   Dark Theme + Orange Accent #FF6B00
   Font: Poppins
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange: #FF6B00;
    --orange-light: #FF8533;
    --orange-dark: #E05E00;
    --bg-primary: #0D0D0D;
    --bg-secondary: #1A1A1A;
    --bg-card: #242424;
    --bg-card-hover: #2A2A2A;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #666666;
    --border-color: #333333;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--orange);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--orange-light);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo svg {
    flex-shrink: 0;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--orange);
    background: rgba(255, 107, 0, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.06), transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--orange);
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero h1 .highlight {
    color: var(--orange);
    position: relative;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(255, 107, 0, 0.2);
    border-radius: 4px;
}

.hero p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--orange);
    color: #fff;
}

.btn-primary:hover {
    background: var(--orange-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Phone Mockup (Hero) --- */
.hero-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-mockup::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.08), transparent 60%);
    pointer-events: none;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    border: 2px solid #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 0 0 12px 12px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #121212;
    border-radius: 30px;
    overflow: hidden;
    padding: 30px 16px 16px;
}

.phone-frame.large {
    width: 250px;
    height: 500px;
}

/* Mockup Dashboard */
.mockup-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mockup-car-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.mockup-mileage {
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

.mockup-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mockup-stat-card {
    background: #1e1e1e;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #2a2a2a;
}

.mockup-stat-card.orange {
    border-color: rgba(255, 107, 0, 0.3);
    background: rgba(255, 107, 0, 0.05);
}

.mockup-stat-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.mockup-stat-label {
    font-size: 10px;
    color: #888;
    font-weight: 500;
}

.mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
    padding: 8px 0;
}

.chart-bar {
    flex: 1;
    background: var(--orange);
    border-radius: 4px 4px 0 0;
    min-height: 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.chart-bar:nth-child(2) { background: var(--orange-light); }
.chart-bar:nth-child(4) { background: var(--orange-dark); }

.mockup-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 8px 0;
}

.nav-item {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: #333;
    transition: all 0.3s;
}

.nav-item.active {
    width: 24px;
    background: var(--orange);
}

/* Mockup Download Screen */
.mockup-download-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 20px;
}

.mockup-status {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.mockup-progress {
    width: 80%;
}

.mockup-progress .progress-bar {
    height: 4px;
    background: #2a2a2a;
    border-radius: 2px;
    position: relative;
    margin-bottom: 8px;
    overflow: hidden;
}

.mockup-progress .progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 65%;
    background: var(--orange);
    border-radius: 2px;
}

.mockup-progress span {
    font-size: 11px;
    color: #888;
}

.mockup-checkmark {
    width: 48px;
    height: 48px;
    background: rgba(255, 107, 0, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--orange);
}

.mockup-install-btn {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: var(--orange);
    padding: 8px 24px;
    border-radius: 8px;
}

/* --- Features Section --- */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 107, 0, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 107, 0, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* --- Screenshots Section --- */
.screenshots {
    padding: 100px 0;
}

.screenshot-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.screenshot-card {
    text-align: center;
}

.screenshot-placeholder {
    width: 100%;
    aspect-ratio: 9 / 18;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    transition: all var(--transition);
}

.screenshot-card:hover .screenshot-placeholder {
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: 0 8px 32px rgba(255, 107, 0, 0.08);
}

.placeholder-icon {
    font-size: 36px;
}

.placeholder-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.screenshot-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 0 8px;
}

/* --- Download Section --- */
.download {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.download .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.download-content .section-header {
    text-align: left;
    margin-bottom: 36px;
}

.download-info {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 18px;
    font-weight: 600;
}

.btn-download {
    font-size: 16px;
    padding: 16px 32px;
    margin-bottom: 16px;
}

.download-note {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 400px;
    line-height: 1.6;
}

.download-mockup {
    display: flex;
    justify-content: center;
}

/* --- Tech Stack Section --- */
.tech-stack {
    padding: 80px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    transition: all var(--transition);
}

.tech-item:hover {
    border-color: rgba(255, 107, 0, 0.2);
    background: var(--bg-card-hover);
}

.tech-logo {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    flex-shrink: 0;
}

.tech-item span {
    font-size: 14px;
    font-weight: 500;
}

/* --- Footer --- */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 12px;
}

.footer-brand .logo span {
    font-size: 20px;
    font-weight: 700;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 280px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links a,
.footer-links p {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--orange);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 40px;
    }

    .hero .container {
        gap: 40px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshot-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(13, 13, 13, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        margin: 0 auto 36px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-mockup {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .screenshot-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .download .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .download-content .section-header {
        text-align: center;
    }

    .download-info {
        justify-content: center;
    }

    .download-note {
        margin: 0 auto;
    }

    .download-mockup {
        display: none;
    }

    .tech-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-value {
        font-size: 22px;
    }

    .screenshot-showcase {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .download-info {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
}
