/* ============================================
   Joice Website — Warm Parchment Aesthetic
   ============================================ */

:root {
    --primary: #C17F59;
    --primary-light: #d4a07a;
    --primary-dark: #a56a45;
    --accent: #B8860B;
    --bg-warm: #F7F3E9;
    --bg-parchment: #F1E9D2;
    --bg-cream: #FFFDF8;
    --bg-dark: #17150F;
    --bg-dark-surface: #252218;
    --text-primary: #17150F;
    --text-secondary: #585342;
    --text-tertiary: #7D765F;
    --text-light: #F1E9D2;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --max-width: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-cream);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* ============================================
   Nav
   ============================================ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 253, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(193, 127, 89, 0.1);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.btn-nav {
    background: var(--primary) !important;
    color: white !important;
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 600 !important;
    transition: background 0.2s !important;
}

.btn-nav:hover { background: var(--primary-dark) !important; }

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

.hero {
    padding: 140px 24px 80px;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 90vh;
}

.hero-badge {
    display: inline-block;
    background: rgba(193, 127, 89, 0.12);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.highlight { color: var(--primary); }

.hero-sub {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-cta { margin-bottom: 12px; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(193, 127, 89, 0.3);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

.hero-note {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--bg-dark);
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 30px 80px rgba(23, 21, 15, 0.2),
        0 0 0 1px rgba(193, 127, 89, 0.15);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1e1b14 0%, #252218 100%);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    overflow: hidden;
}

.mock-status-bar {
    position: absolute;
    top: 20px;
    width: 100px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.mock-greeting {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-light);
    opacity: 0.9;
}

.mock-wave {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 20px;
}

.wave-bar {
    width: 4px;
    border-radius: 2px;
    background: var(--primary);
    opacity: 0.7;
    animation: wave 1.5s ease-in-out infinite;
}

.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; }
.wave-bar:nth-child(7) { animation-delay: 0.6s; }
.wave-bar:nth-child(8) { animation-delay: 0.7s; }
.wave-bar:nth-child(9) { animation-delay: 0.8s; }
.wave-bar:nth-child(10) { animation-delay: 0.9s; }
.wave-bar:nth-child(11) { animation-delay: 1.0s; }
.wave-bar:nth-child(12) { animation-delay: 1.1s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 0.8; }
}

.mock-timer {
    font-size: 32px;
    font-weight: 300;
    color: var(--text-light);
    opacity: 0.6;
    font-variant-numeric: tabular-nums;
}

.mock-end-btn {
    background: #e74c3c;
    color: white;
    padding: 12px 40px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
}

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

.features {
    background: var(--bg-warm);
    padding: 100px 24px;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.features h2,
.how-it-works h2,
.cta-section h2 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 56px;
    line-height: 1.15;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-cream);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(193, 127, 89, 0.08);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(23, 21, 15, 0.08);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   How It Works
   ============================================ */

.how-it-works {
    padding: 100px 24px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.step { text-align: center; }

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 300px;
    margin: 0 auto;
}

/* ============================================
   Testimonial
   ============================================ */

.testimonial-section {
    background: var(--bg-dark);
    padding: 80px 24px;
}

blockquote p {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-light);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-style: italic;
}

/* ============================================
   CTA
   ============================================ */

.cta-section {
    padding: 100px 24px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-parchment) 100%);
}

.cta-section p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
}

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

footer {
    background: var(--bg-dark);
    padding: 60px 24px 32px;
    color: var(--text-light);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-brand {
    margin-bottom: 40px;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 14px;
    color: #7D765F;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #7D765F;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 10px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-col a:hover { opacity: 1; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
}

.footer-bottom p {
    font-size: 13px;
    color: #7D765F;
}

/* ============================================
   Legal Pages
   ============================================ */

.legal-page {
    padding: 120px 24px 80px;
    max-width: 760px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.legal-meta {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-page h3 {
    font-size: 17px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-page p,
.legal-page li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-page ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-page li { margin-bottom: 8px; }

.legal-page a {
    color: var(--primary);
    text-decoration: none;
}

.legal-page a:hover { text-decoration: underline; }

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

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 120px 24px 60px;
        text-align: center;
        min-height: auto;
    }

    .hero h1 { font-size: 36px; }
    .hero-sub { margin: 0 auto 32px; }
    .hero-visual { display: none; }

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

    .mock-greeting { font-size: 14px; }
    .mock-timer { font-size: 24px; }
    .mock-end-btn { padding: 10px 32px; font-size: 13px; }

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

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

    .features h2,
    .how-it-works h2,
    .cta-section h2 { font-size: 28px; }

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

    .nav-links a:not(.btn-nav) { display: none; }

    blockquote p { font-size: 18px; }
}
