:root {
    /* Brand Colors */
    --brand-green: #0A3C2F;
    --brand-gold: #DDBA6C;

    /* Apple System Colors - Light Mode Defaults */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F2F2F7;
    --text-primary: #000000;
    --text-secondary: #86868b;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.8);

    /* Layout */
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Apple System Colors - Dark Mode Overrides */
        --bg-primary: #000000;
        --bg-secondary: #1C1C1E;
        --text-primary: #FFFFFF;
        --text-secondary: #98989d;
        --card-bg: rgba(28, 28, 30, 0.6);
        --card-border: rgba(255, 255, 255, 0.1);
        --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.3);
        --nav-bg: rgba(0, 0, 0, 0.8);
    }
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

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

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--brand-green);
    color: #FFFFFF;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(10, 60, 47, 0.4);
}

.btn-gold {
    background-color: var(--brand-gold);
    color: var(--brand-green);
}

.btn-gold:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(221, 186, 108, 0.4);
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
}

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

.logo img {
    height: 40px;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.subheadline {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 340px;
    border-radius: 48px;
    box-shadow: var(--shadow-soft);
    display: block;
    margin: 0 auto;
    border: 4px solid var(--bg-primary);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Sections - Seamless Flow */
.section {
    padding: 120px 0;
    position: relative;
}

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

/* Cards (Glassmorphism) */
.step-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-soft);
    border-color: var(--brand-gold);
}

.step-image {
    width: 100%;
    max-width: 200px;
    height: 200px;
    /* Fixed height to force cropping */
    object-fit: cover;
    /* Ensure image covers the area */
    object-position: top;
    /* Show only the top part */
    margin-bottom: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.step-card:hover .step-image {
    transform: scale(1.05);
}

.steps-grid {
    display: grid;
    gap: 30px;
}

.steps-grid.four-steps {
    grid-template-columns: repeat(4, 1fr);
}

/* App Preview */
.screenshots-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 40px 20px;
    margin: 0 -20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.screenshots-scroll::-webkit-scrollbar {
    display: none;
}

.screenshots-scroll img {
    height: 500px;
    width: auto;
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
    flex-shrink: 0;
    transition: var(--transition);
    border: 4px solid var(--bg-primary);
}

.screenshots-scroll img:hover {
    transform: translateY(-15px) scale(1.02);
    z-index: 10;
}

/* Why PrimePlates */
.features-grid {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 60px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.features-list li {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-primary);
}

.check-icon {
    color: var(--brand-gold);
    font-weight: 800;
    font-size: 1.2rem;
    background: rgba(221, 186, 108, 0.1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--brand-green) 0%, #05221a 100%);
    margin: 0 20px 60px;
    border-radius: 40px;
    padding: 100px 20px;
    text-align: center;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.cta .container {
    position: relative;
    z-index: 5;
}

.cta h2 {
    color: #FFFFFF;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.cta .btn {
    position: relative;
    z-index: 2;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(221, 186, 108, 0.2), transparent 50%);
    z-index: 1;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--card-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.footer-logo img {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
}

.footer-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.footer-social a {
    margin-left: 30px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Animations */
.fade-in,
.slide-in-left,
.slide-in-right,
.scale-up {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in {
    transform: translateY(40px);
}

.slide-in-left {
    transform: translateX(-60px);
}

.slide-in-right {
    transform: translateX(60px);
}

.scale-up {
    transform: scale(0.9);
}

.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-image img {
        max-width: 280px;
    }

    .steps-grid.four-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .steps-grid.four-steps {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 20px;
        margin: 0 -20px;
        /* Negative margin to allow full-width scroll */
        padding-left: 20px;
        /* Restore padding */
        padding-right: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .steps-grid.four-steps::-webkit-scrollbar {
        display: none;
    }

    .step-card {
        min-width: 280px;
        /* Fixed width for cards */
        scroll-snap-align: center;
        margin-bottom: 0;
        /* Remove bottom margin from grid gap fallback */
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-social a {
        margin: 0 15px;
    }
}

@media (max-width: 576px) {
    .features-list {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-social a {
        margin: 0 15px;
    }
}