/* ===========================
   CSS Reset & Base Styles
   =========================== */

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

:root {
    /* Coffee Color Palette */
    --primary-brown: #6F4E37;
    --dark-brown: #3E2723;
    --light-brown: #2C2418;
    --cream: #FFF8F3;
    --light-cream: #FFFBF5;
    --beige: #F5E6D3;
    --border-brown: #D7CCC8;
    --gold: #FFB300;
    --gray: #9E9E9E;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 20px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Helvetica Neue", Arial, sans-serif;
    color: var(--light-brown);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Navigation Bar
   =========================== */

.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 248, 243, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-brown);
    padding: 16px 0;
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-brand .logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-brown);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-brand .logo:hover {
    color: var(--dark-brown);
}

.logo-icon {
    height: 28px;
    width: auto;
    vertical-align: middle;
    border-radius: 6px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-brown);
    margin: 3px 0;
    border-radius: 3px;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-brown);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-brown);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-brown);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Navigation CTA Button */
.nav-menu .btn-primary {
    background: white;
    color: var(--primary-brown);
    border: 2px solid var(--primary-brown);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(111, 78, 55, 0.15);
    transition: var(--transition);
}

.nav-menu .btn-primary:hover {
    background: var(--primary-brown);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 78, 55, 0.25);
}

.nav-menu .btn-primary::after {
    display: none;
}

/* ===========================
   Buttons
   =========================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--dark-brown) 100%);
    color: white;
    border-color: var(--primary-brown);
    box-shadow: 0 4px 15px rgba(111, 78, 55, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 78, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-brown);
    border-color: var(--primary-brown);
}

.btn-secondary:hover {
    background: var(--primary-brown);
    color: white;
    box-shadow: 0 4px 15px rgba(111, 78, 55, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary-brown);
    border-color: var(--border-brown);
}

.btn-outline:hover {
    background: var(--cream);
    border-color: var(--primary-brown);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    border-radius: 14px;
}

.btn .icon {
    width: 20px;
    height: 20px;
}

.btn-large .icon {
    width: 24px;
    height: 24px;
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--light-cream) 0%, var(--cream) 50%, var(--beige) 100%);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 580px;
    justify-self: start;
    padding-right: 40px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--dark-brown);
    margin-bottom: 16px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-logo-icon {
    height: 60px;
    width: auto;
    vertical-align: middle;
    border-radius: 12px;
}

.subtitle {
    display: block;
    font-size: 28px;
    color: var(--primary-brown);
    margin-top: 8px;
    width: 100%;
}

.hero-description {
    font-size: 20px;
    color: #525252;
    margin-bottom: 36px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    justify-self: end;
}

.phone-mockup {
    position: relative;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.12));
    transition: var(--transition-slow);
}

.phone-mockup:hover {
    transform: translateY(-10px);
    filter: drop-shadow(0 35px 70px rgba(0, 0, 0, 0.15));
}

.phone-frame {
    width: 320px;
    height: 640px;
    background: #1a1a1a;
    border-radius: 45px;
    padding: 3px;
    border: 10px solid #1a1a1a;
    position: relative;
    overflow: hidden;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 0 0 24px 24px;
    z-index: 10;
}

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

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--beige) 0%, var(--cream) 100%);
    color: var(--primary-brown);
    font-size: 18px;
    font-weight: 600;
}

/* ===========================
   Section Headers
   =========================== */

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

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-brown);
    margin-bottom: 16px;
}

.section-description {
    font-size: 18px;
    color: var(--primary-brown);
}

/* ===========================
   Features Section
   =========================== */

.features {
    padding: var(--section-padding);
    background: white;
}

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

.feature-card {
    padding: 36px;
    background: var(--cream);
    border-radius: 16px;
    border: 2px solid var(--border-brown);
    transition: var(--transition-slow);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(111, 78, 55, 0.15);
    border-color: var(--primary-brown);
}

.feature-icon {
    font-size: 52px;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 12px;
}

.feature-description {
    font-size: 16px;
    color: var(--light-brown);
    line-height: 1.7;
}

/* ===========================
   Screenshots Section
   =========================== */

.screenshots {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--light-cream) 0%, var(--cream) 100%);
}

.screenshot-group {
    margin-bottom: 60px;
}

.screenshot-group:last-child {
    margin-bottom: 0;
}

.screenshot-group-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-brown);
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 16px;
}

.screenshot-group-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-brown), var(--gold));
    border-radius: 2px;
}

.screenshots-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.screenshot-item {
    text-align: center;
    transition: var(--transition);
}

/* Screenshot Phone Mockup */
.screenshot-phone-mockup {
    display: inline-block;
    margin-bottom: 16px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
    transition: var(--transition-slow);
}

.screenshot-item:hover .screenshot-phone-mockup {
    transform: translateY(-8px);
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.2));
}

.screenshot-phone-frame {
    width: 260px;
    height: 520px;
    background: #1a1a1a;
    border-radius: 35px;
    padding: 3px;
    border: 8px solid #1a1a1a;
    position: relative;
    overflow: hidden;
}

.screenshot-phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 20px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.screenshot-phone-screen {
    width: 100%;
    height: 100%;
    background: var(--cream);
    border-radius: 27px;
    overflow: hidden;
}

.screenshot-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
}

.screenshot-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--beige) 0%, var(--cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-brown);
}

.screenshot-caption {
    font-size: 16px;
    color: var(--primary-brown);
    font-weight: 600;
}

/* ===========================
   Pricing Section
   =========================== */

.pricing {
    padding: var(--section-padding);
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-cream) 100%);
    border: 2px solid var(--border-brown);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: var(--transition-slow);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(111, 78, 55, 0.15);
    border-color: var(--primary-brown);
}

.pricing-card.featured {
    border-color: var(--primary-brown);
    border-width: 3px;
    background: linear-gradient(135deg, var(--light-cream) 0%, var(--cream) 50%, var(--beige) 100%);
    box-shadow: 0 10px 30px rgba(111, 78, 55, 0.15);
}

.pricing-card.featured:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(111, 78, 55, 0.2);
}

.pricing-card .badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold) 0%, #FFA000 100%);
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 179, 0, 0.3);
}

.pricing-header {
    margin-bottom: 32px;
}

.pricing-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-brown);
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price {
    font-size: 52px;
    font-weight: 800;
    color: var(--primary-brown);
}

.period {
    font-size: 18px;
    color: var(--gray);
}

.pricing-save {
    margin-top: 8px;
    color: var(--gold);
    font-weight: 700;
    font-size: 14px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-brown);
    color: var(--light-brown);
    font-size: 16px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* ===========================
   Download Section
   =========================== */

.download {
    padding: 120px 20px;
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--dark-brown) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '✨';
    position: absolute;
    font-size: 250px;
    opacity: 0.06;
    top: -50px;
    left: 5%;
    filter: blur(2px);
}

.download::after {
    content: '☕';
    position: absolute;
    font-size: 250px;
    opacity: 0.06;
    bottom: -50px;
    right: 5%;
    filter: blur(2px);
}

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

.download-title {
    font-size: 46px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.download-description {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.download .btn-primary {
    background: white;
    color: var(--primary-brown);
    border-color: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.download .btn-primary:hover {
    background: var(--cream);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.download-note {
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

/* ===========================
   Footer
   =========================== */

.footer {
    background: linear-gradient(180deg, var(--dark-brown) 0%, #2C2418 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 26px;
    color: white;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 16px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px;
}

.footer-column h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 968px) {
    .hero {
        padding: 60px 20px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-text {
        max-width: 100%;
        justify-self: center;
        padding-right: 0;
    }

    .hero-image {
        justify-self: center;
        justify-content: center;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-logo-icon {
        height: 45px;
    }

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

    .phone-frame {
        width: 280px;
        height: 560px;
    }

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

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

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-logo-icon {
        height: 38px;
    }

    .subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 18px;
    }

    .screenshot-phone-frame {
        width: 240px;
        height: 480px;
    }

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

    .features-grid,
    .screenshots-slider,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

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

    .download-description {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-logo-icon {
        height: 38px;
    }

    .hero-description {
        font-size: 17px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .phone-frame {
        width: 240px;
        height: 480px;
    }

    .screenshot-phone-frame {
        width: 220px;
        height: 440px;
    }

    .dot {
        font-size: 18px;
    }

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

    .feature-card {
        padding: 28px;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .price {
        font-size: 42px;
    }

    .download-title {
        font-size: 28px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
