/* ===== CSS Variables ===== */
:root {
    /* Warm color palette inspired by app icon */
    --bg-gradient-start: #FFECD2;
    --bg-gradient-end: #FCB69F;
    --accent-peach: #FFAB8F;
    --accent-coral: #FF8A6B;
    --accent-pink: #FFD4C4;
    --text-dark: #3D2914;
    --text-body: #5A4030;
    --text-muted: #8A7060;
    --card-bg: rgba(255, 255, 255, 0.65);
    --card-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 8px 32px rgba(60, 30, 10, 0.1);
    --shadow-medium: 0 16px 48px rgba(60, 30, 10, 0.15);

    /* Sizing */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --container-max: 1100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-body);
    line-height: 1.6;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
}

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

h1,
h2,
h3 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 212, 196, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 171, 143, 0.4) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-icon {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    margin-bottom: 32px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-dark) 0%, #6B4020 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 32px;
    color: var(--text-body);
}

.hero-subtitle strong {
    color: var(--text-dark);
}

.hero-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 16px;
}

.hero-illustration {
    position: absolute;
    right: -10%;
    bottom: 5%;
    width: 45%;
    max-width: 500px;
    opacity: 0.9;
    z-index: 1;
    pointer-events: none;
}

/* ===== CTA Button ===== */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-dark);
    color: #fff;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.apple-logo {
    width: 22px;
    height: 22px;
}

.cta-large {
    padding: 20px 40px;
    font-size: 1.2rem;
}

/* ===== Section Base ===== */
.section {
    padding: 100px 24px;
}

.section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 48px;
}

.section-text {
    font-size: 1.15rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Problem Section - Chaotic Sticky Notes ===== */
.problem {
    overflow: hidden;
}

.sticky-chaos {
    position: relative;
    height: 320px;
    max-width: 800px;
    margin: 0 auto;
}

.sticky-note {
    background: linear-gradient(135deg, #fff9e6 0%, #fffef5 100%);
    border: none;
    border-radius: 4px;
    padding: 20px 16px;
    width: 180px;
    box-shadow: 2px 4px 12px rgba(60, 30, 10, 0.2);
    text-align: left;
    position: absolute;
    transition: transform 0.2s ease, z-index 0.1s;
}

.sticky-note:hover {
    z-index: 20 !important;
    transform: scale(1.05) !important;
}

.sticky-note::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 16px;
    background: rgba(255, 171, 143, 0.6);
    border-radius: 2px;
}

.sticky-icon {
    font-size: 1.3rem;
    margin-bottom: 6px;
    display: block;
}

.sticky-note p {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0;
}

/* Chaotic positions - overlapping */
.pos-1 {
    left: 5%;
    top: 20px;
    transform: rotate(-4deg);
    z-index: 5;
}

.pos-2 {
    left: 25%;
    top: 80px;
    transform: rotate(3deg);
    z-index: 8;
}

.pos-3 {
    left: 48%;
    top: 10px;
    transform: rotate(-2deg);
    z-index: 3;
}

.pos-4 {
    left: 42%;
    top: 140px;
    transform: rotate(5deg);
    z-index: 12;
}

/* strongly overlaps pos-3 */
.pos-5 {
    right: 8%;
    top: 60px;
    transform: rotate(-3deg);
    z-index: 6;
}

.pos-6 {
    right: 5%;
    top: 180px;
    transform: rotate(8deg);
    z-index: 4;
}

/* Ink-stained sticky note */
.sticky-note.ink-stained {
    background: linear-gradient(135deg, #fff9e6 0%, #fffef5 100%);
}

.sticky-note.ink-stained::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60px 40px at 30% 40%, rgba(20, 30, 80, 0.7) 0%, transparent 70%),
        radial-gradient(ellipse 40px 50px at 70% 60%, rgba(30, 20, 70, 0.6) 0%, transparent 65%),
        radial-gradient(ellipse 30px 25px at 50% 25%, rgba(40, 30, 90, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse 25px 35px at 20% 70%, rgba(25, 25, 80, 0.4) 0%, transparent 55%);
    border-radius: inherit;
    pointer-events: none;
}

.sticky-note.ink-stained p {
    opacity: 0.3;
    font-size: 0.75rem;
}

/* Shredded paper pieces */
.sticky-shreds {
    position: absolute;
    width: 100px;
    height: 80px;
}

.shred {
    position: absolute;
    background: linear-gradient(135deg, #fff9e6 0%, #fffef5 100%);
    box-shadow: 1px 2px 4px rgba(60, 30, 10, 0.15);
}

.shred-1 {
    width: 35px;
    height: 18px;
    top: 0;
    left: 10px;
    transform: rotate(-15deg);
    clip-path: polygon(0 20%, 100% 0, 95% 100%, 5% 80%);
}

.shred-2 {
    width: 28px;
    height: 22px;
    top: 25px;
    left: 50px;
    transform: rotate(25deg);
    clip-path: polygon(10% 0, 100% 10%, 90% 100%, 0 85%);
}

.shred-3 {
    width: 40px;
    height: 15px;
    top: 50px;
    left: 5px;
    transform: rotate(-8deg);
    clip-path: polygon(0 0, 100% 15%, 95% 100%, 8% 90%);
}

.shred-4 {
    width: 25px;
    height: 20px;
    top: 45px;
    left: 55px;
    transform: rotate(12deg);
    clip-path: polygon(5% 10%, 100% 0, 90% 100%, 0 95%);
}

.sticky-note .faded {
    opacity: 0.4;
    font-size: 0.7rem;
    margin-top: 4px;
}

/* ===== Promise Section ===== */
.promise {
    background: rgba(255, 255, 255, 0.3);
}

.promise-text {
    font-size: 1.2rem;
    text-align: center;
    max-width: 650px;
    margin: 0 auto 40px;
}

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

.badge {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    padding: 12px 20px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--shadow-soft);
}

/* ===== Features Section - Horizontal Strip ===== */
.features {
    overflow: hidden;
}

.feature-strip {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0 30px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.feature-strip::-webkit-scrollbar {
    display: none;
}

.feature-strip::before,
.feature-strip::after {
    content: '';
    flex-shrink: 0;
    width: calc((100vw - 1100px) / 2);
}

@media (max-width: 1100px) {

    .feature-strip::before,
    .feature-strip::after {
        width: 24px;
    }
}

.feature-card {
    flex-shrink: 0;
    width: 220px;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    scroll-snap-align: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ===== Cross-Device Section ===== */
.cross-device {
    background: radial-gradient(ellipse at center, rgba(255, 212, 196, 0.5) 0%, transparent 70%);
}

/* ===== Trust Section ===== */
.trust {
    background: rgba(255, 255, 255, 0.25);
}

.trust-list {
    list-style: none;
    max-width: 500px;
    margin: 0 auto 32px;
}

.trust-list li {
    font-size: 1.1rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(100, 60, 30, 0.1);
}

.trust-note {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* ===== Final CTA Section ===== */
.final-cta {
    text-align: center;
    padding: 120px 24px;
    background: radial-gradient(ellipse at 50% 100%, rgba(255, 171, 143, 0.4) 0%, transparent 60%);
}

.final-subtitle {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 40px;
}

/* ===== App Preview Section ===== */
.app-preview {
    text-align: center;
}

.preview-container {
    max-width: 500px;
    margin: 0 auto;
}

.app-mockup-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 48px 24px;
    background: rgba(255, 255, 255, 0.2);
}

.footer p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.footer-copyright {
    margin-top: 12px;
    font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 60px 20px 80px;
    }

    .hero-illustration {
        position: relative;
        right: auto;
        bottom: auto;
        width: 80%;
        max-width: 350px;
        margin: 40px auto 0;
        opacity: 0.85;
    }

    .hero-icon {
        width: 90px;
        height: 90px;
    }

    .section {
        padding: 60px 20px;
    }

    .card-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

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

    .cta-button {
        padding: 14px 28px;
        font-size: 1rem;
    }
}