/* ========================================
   ThisYear - Landing Page
   Design System: Analog Warmth
   "A private journal crossed with a vintage polaroid board"
   ======================================== */

/* ========== CSS Variables ========== */
:root {
    /* Paper Tones */
    --paper-cream: #F7F3EB;
    --paper-warm: #EDE8DD;
    --paper-aged: #E3DCD0;

    /* Ink Colors */
    --ink-deep: #2C2825;
    --ink-soft: #5C5650;
    --ink-faded: #9A928A;

    /* Accent Colors */
    --terracotta: #C4785E;
    --terracotta-light: #D4917A;
    --moss-green: #7A9E7E;
    --dusty-rose: #C9A5A0;

    /* Shadows */
    --shadow-paper: 0 2px 8px rgba(44, 40, 37, 0.06);
    --shadow-elevated: 0 4px 16px rgba(44, 40, 37, 0.12);

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    background: var(--paper-cream);
    color: var(--ink-deep);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========== Typography ========== */
.display-font {
    font-family: 'Caveat', cursive;
}

h1, h2, h3 {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    line-height: 1.2;
}

/* ========== Fixed Header ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(247, 243, 235, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(44, 40, 37, 0.06);
    padding: 1rem 2rem;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.header-logo:hover {
    opacity: 0.8;
}

.header-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-paper);
}

.header-brand-name {
    font-family: 'Caveat', cursive;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ink-deep);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.header-nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: var(--ink-deep);
}

.header-badges {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-badges a {
    height: 40px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.header-badges a:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.header-store-badge {
    height: 40px !important;
    width: auto;
    object-fit: contain;
}

/* ========== Hero Section ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
    background: linear-gradient(180deg, var(--paper-cream) 0%, var(--paper-warm) 100%);
}

/* Paper texture overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1400px;
    width: 100%;
    z-index: 10;
}

.hero-left {
    flex: 1;
    max-width: 600px;
}

.hero-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 600px;
}

.hero-title {
    font-family: 'Caveat', cursive;
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--ink-deep);
}

.hero-title .crossed-out {
    text-decoration: line-through;
    text-decoration-color: var(--terracotta);
    text-decoration-thickness: 4px;
    color: var(--ink-faded);
    opacity: 0.6;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: var(--ink-soft);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.store-badge {
    height: 54px !important;
    width: auto;
    transition: all 0.3s ease;
    display: inline-block;
}

.store-badge:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.hero-buttons a {
    display: inline-flex;
    align-items: center;
}

/* ========== Feature Badge ========== */
.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--paper-warm);
    border-radius: 50px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-paper);
    font-size: 0.9rem;
    color: var(--ink-soft);
    border: 1px solid rgba(44, 40, 37, 0.06);
}

.feature-badge-icon {
    display: flex;
    align-items: center;
    color: var(--terracotta);
}

.feature-badge-text {
    white-space: nowrap;
}

.feature-badge-divider {
    width: 4px;
    height: 4px;
    background: var(--ink-faded);
    border-radius: 50%;
}

/* ========== Features List ========== */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--ink-soft);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--paper-warm);
    border-radius: var(--radius-md);
    color: var(--terracotta);
    flex-shrink: 0;
    border: 1px solid rgba(44, 40, 37, 0.04);
}

/* ========== Phone Mockup (Polaroid Style) ========== */
.phone-mockup-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockups-container {
    display: flex;
    gap: -20px;
    align-items: center;
    justify-content: center;
}

.phone-mockup {
    width: 260px;
    height: 540px;
    background: var(--paper-warm);
    border-radius: 40px;
    padding: 10px;
    box-shadow: var(--shadow-elevated), 0 30px 60px rgba(44, 40, 37, 0.15);
    transition: transform 0.4s ease;
    border: 1px solid rgba(44, 40, 37, 0.08);
}

.phone-mockup.phone-left {
    transform: rotate(-4deg);
    z-index: 1;
}

.phone-mockup.phone-right {
    transform: rotate(4deg);
    z-index: 2;
    margin-left: -30px;
}

.phone-mockup:hover {
    transform: rotate(0deg) scale(1.02);
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--paper-cream);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.phone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.phone-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    text-align: center;
}

.placeholder-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    box-shadow: var(--shadow-paper);
}

.placeholder-text {
    font-size: 0.875rem;
    color: var(--ink-faded);
}

/* Mobile-only phone mockups (hidden by default, shown on mobile) */
.phone-mockups-mobile {
    display: none;
}

/* ========== Footer ========== */
.footer {
    position: relative;
    padding: 3rem 2rem 2rem;
    text-align: center;
    z-index: 10;
    margin-top: 4rem;
    border-top: 1px solid rgba(44, 40, 37, 0.08);
    background: var(--paper-warm);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-company {
    margin-bottom: 0.5rem;
}

.footer-company-name {
    font-family: 'Caveat', cursive;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink-deep);
    margin-bottom: 0.25rem;
}

.footer-location {
    font-size: 0.95rem;
    color: var(--ink-faded);
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--ink-faded);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--ink-deep);
}

.footer-copy {
    color: var(--ink-faded);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .header {
        padding: 0.75rem 1.5rem;
    }

    .header-nav {
        gap: 1.5rem;
    }

    .header-nav a {
        font-size: 0.9rem;
    }

    .header-store-badge {
        height: 36px;
    }

    .header-badges a {
        height: 36px;
    }

    .hero-content {
        gap: 3rem;
    }

    .phone-mockup {
        width: 230px;
        height: 480px;
    }

    .phone-mockup.phone-right {
        margin-left: -25px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.75rem 1rem;
    }

    .header-nav {
        display: none;
    }

    .header-badges {
        display: none;
    }

    .header-icon {
        width: 40px;
        height: 40px;
    }

    .header-brand-name {
        font-size: 1.5rem;
    }

    .hero {
        min-height: auto;
        padding: 5rem 1.5rem 3rem;
    }

    .hero-content {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .hero-left {
        max-width: 100%;
    }

    .hero-right {
        display: none;
    }

    .phone-mockups-mobile {
        display: block;
        margin: 2rem 0;
    }

    .hero-subtitle {
        max-width: 100%;
    }

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

    .feature-badge {
        flex-wrap: wrap;
        justify-content: center;
    }

    .features-list {
        align-items: center;
    }

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

    .phone-mockups-container {
        flex-direction: row;
        gap: 0;
    }

    .phone-mockup {
        width: 180px;
        height: 380px;
    }

    .phone-mockup.phone-left {
        transform: rotate(-3deg);
    }

    .phone-mockup.phone-right {
        transform: rotate(3deg);
        margin-left: -20px;
    }
}

@media (max-width: 640px) {
    .header {
        padding: 0.5rem 1rem;
    }

    .hero {
        padding: 4.5rem 1rem 2rem;
    }

    .hero-right {
        min-height: 450px;
    }

    .hero-title {
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        margin-bottom: 1.5rem;
    }

    .feature-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .store-badge {
        height: 48px !important;
    }

    .phone-mockup {
        width: 150px;
        height: 320px;
    }

    .phone-mockup.phone-left,
    .phone-mockup.phone-right {
        transform: rotate(0deg);
    }

    .phone-mockup.phone-right {
        margin-left: -15px;
    }

    .placeholder-icon {
        width: 80px;
        height: 80px;
    }

    .footer {
        padding: 2rem 1rem 1.5rem;
    }

    .footer-links {
        gap: 1rem;
        font-size: 0.85rem;
    }
}
