:root {
    --bg-color: #F2F2F7;
    /* Apple grouped background */
    --surface-color: #FFFFFF;
    --olive-green: rgb(107, 130, 76);
    --olive-green-dark: rgb(76, 97, 51);
    --olive-green-light: rgb(217, 227, 199);
    --badge-red: rgb(227, 71, 51);
    --badge-green: rgb(46, 176, 87);
    --text-primary: #1C1C1E;
    --text-secondary: rgba(60, 60, 67, 0.6);
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 64px rgba(76, 97, 51, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    font-family: 'Nunito', ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

h1,
h2,
h3,
h4,
h5 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* Glassmorphism Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--olive-green-dark);
    font-size: 22px;
    font-weight: 800;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        gap: 32px;
    }

    .desktop-nav a {
        text-decoration: none;
        color: var(--text-primary);
        font-weight: 600;
        transition: color 0.2s;
    }

    .desktop-nav a:hover {
        color: var(--olive-green);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 100px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 15px;
}

.btn-primary {
    background-color: var(--olive-green);
    color: white;
}

.btn-primary:hover {
    background-color: var(--olive-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 130, 76, 0.3);
}

.btn-app-store {
    background-color: #000;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    gap: 12px;
}

.btn-app-store:hover {
    background-color: #333;
    transform: scale(1.02);
}

.btn-app-store .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-app-store .small {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}

.btn-app-store .large {
    font-size: 18px;
    line-height: 1.1;
}

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, var(--olive-green-light) 0%, transparent 40%),
        radial-gradient(circle at bottom left, rgba(227, 71, 51, 0.05) 0%, transparent 30%);
}

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

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(107, 130, 76, 0.1);
    color: var(--olive-green-dark);
    border: 1px solid rgba(107, 130, 76, 0.2);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 24px;
}

.hero-content h1 span {
    color: var(--olive-green-dark);
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 64px;
    }
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #FFA41C;
    letter-spacing: 2px;
}

.rating-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* 3D Mockup Styling */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
    border: 8px solid #000;
    overflow: hidden;
    background: #000;
    max-width: 300px;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.phone-mockup img {
    width: 100%;
    display: block;
    border-radius: 32px;
}

.floating-mascot {
    position: absolute;
    width: 140px;
    top: -40px;
    right: -60px;
    z-index: 10;
    filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.15));
    animation: bounceFloat 4s ease-in-out infinite;
}

@keyframes bounceFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

/* Problem Section */
.problem-section {
    padding: 100px 0;
    background: var(--surface-color);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.section-title {
    font-size: 40px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 64px;
}

.threat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .threat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.threat-card {
    background: var(--bg-color);
    padding: 40px 32px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.threat-card:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.threat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.threat-icon.red-glow {
    background: rgba(227, 71, 51, 0.1);
    color: var(--badge-red);
}

.threat-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.threat-card p {
    color: var(--text-secondary);
}

/* How It Works Split Layout */
.how-it-works {
    padding: 120px 0;
    overflow: hidden;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
}

@media (min-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-list {
    list-style: none;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature-list li {
    display: flex;
    gap: 20px;
}

.list-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--olive-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
}

.feature-list h4 {
    font-size: 20px;
    margin-bottom: 6px;
}

.feature-list p {
    color: var(--text-secondary);
}

.mockup-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.floating-img {
    max-width: 300px;
    width: 100%;
    border-radius: 40px;
    border: 8px solid #000;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(10deg);
}

.backdrop-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--olive-green);
    filter: blur(80px);
    opacity: 0.3;
    z-index: 1;
}

/* Bottom CTA */
.bottom-cta {
    background: var(--olive-green-dark);
    padding: 100px 0;
    color: white;
}

.bottom-cta .section-title,
.bottom-cta h2 {
    color: white;
    font-size: 48px;
}

.bottom-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    margin-bottom: 40px;
}

.cta-mascot {
    width: 160px;
    margin-bottom: 32px;
}

.solid-cta {
    background: white !important;
    color: var(--olive-green-dark) !important;
    padding: 16px 48px;
    border-radius: 100px;
}

.solid-cta:hover {
    background: #f0f0f0 !important;
    transform: scale(1.05);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 300px;
}

.footer-links-col h4 {
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-links-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-links-col a:hover {
    color: var(--olive-green);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    color: var(--text-secondary);
    font-size: 14px;
}