:root {
    --color-cream: #FFF9F5;
    --color-blush: #FFE8E0;
    --color-rose: #E8A598;
    --color-coral: #D4736A;
    --color-wine: #8B4A5E;
    --color-deep: #4A2C3D;
    --color-text: #3D2A35;
    --color-text-soft: #7A6470;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;

    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--color-cream);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grain Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: rgba(255, 249, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(232, 165, 152, 0.2);
    transition: all 0.3s var(--ease-smooth);
}

nav.scrolled {
    padding: 0.75rem 2rem;
    box-shadow: 0 4px 30px rgba(139, 74, 94, 0.08);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-wine);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-soft);
    text-decoration: none;
    transition: color 0.2s var(--ease-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-coral);
    border-radius: 1px;
    transition: width 0.3s var(--ease-smooth);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-wine);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--color-wine);
    border-radius: 2px;
    transition: all 0.3s var(--ease-smooth);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 60px;
    transition: all 0.3s var(--ease-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-coral) 0%, var(--color-wine) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 74, 94, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 74, 94, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--color-wine);
    border: 1px solid rgba(139, 74, 94, 0.2);
}

.btn-secondary:hover {
    background: var(--color-blush);
    border-color: var(--color-rose);
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Page Header (for inner pages) */
.page-header {
    padding: 140px 2rem 60px;
    text-align: center;
    background: white;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-rose), transparent);
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: var(--color-deep);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-header .icon {
    width: 56px;
    height: 56px;
}

.page-header .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.page-header .updated {
    font-size: 0.9rem;
    color: var(--color-text-soft);
}

/* Legal Content */
.legal-section {
    padding: 4rem 2rem 6rem;
    background: var(--color-cream);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--color-wine);
    margin: 2.5rem 0 1rem;
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--color-text);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.legal-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--color-text);
}

.legal-content li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.legal-content a {
    color: var(--color-coral);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.legal-content a:hover {
    border-bottom-color: var(--color-coral);
}

/* Contact Section */
.contact-section {
    padding: 4rem 2rem 6rem;
    background: var(--color-cream);
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(139, 74, 94, 0.08);
    border: 1px solid rgba(232, 165, 152, 0.2);
}

.contact-methods {
    display: grid;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--color-cream);
    border-radius: 16px;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s var(--ease-smooth);
}

.contact-method:hover {
    background: var(--color-blush);
    transform: translateX(8px);
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.contact-method-label {
    font-size: 0.85rem;
    color: var(--color-text-soft);
    margin-bottom: 0.25rem;
}

.contact-method-value {
    font-weight: 500;
    color: var(--color-wine);
}

/* Footer */
footer {
    background: var(--color-deep);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.footer-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

/* Hero Section (index only) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255, 232, 224, 0.8) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 20% 80%, rgba(232, 165, 152, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 90% 70%, rgba(212, 115, 106, 0.15) 0%, transparent 50%);
}

.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--color-blush) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(232, 165, 152, 0.4) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(212, 115, 106, 0.3) 0%, transparent 70%);
    top: 40%;
    right: 15%;
    animation: float 6s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(232, 165, 152, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--color-wine);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s var(--ease-smooth);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-deep);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s var(--ease-smooth) 0.1s backwards;
}

.hero h1 em {
    font-style: italic;
    color: var(--color-coral);
}

.hero-text {
    font-size: 1.25rem;
    color: var(--color-text-soft);
    max-width: 540px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.8s var(--ease-smooth) 0.2s backwards;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s var(--ease-smooth) 0.3s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Features Preview */
.features-preview {
    padding: 6rem 2rem;
    background: white;
    position: relative;
}

.features-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-rose), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: var(--color-deep);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--color-text-soft);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    background: var(--color-cream);
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s var(--ease-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 74, 94, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-deep);
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-soft);
}

/* Showcase Sections */
.showcase {
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
    background: var(--color-cream);
}

.showcase:nth-child(even) {
    background: white;
}

.showcase-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.showcase-reverse .showcase-container .showcase-text {
    order: 2;
}

.showcase-reverse .showcase-container .showcase-phones {
    order: 1;
}

.showcase-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(212, 115, 106, 0.12) 0%, rgba(139, 74, 94, 0.08) 100%);
    border: 1px solid rgba(212, 115, 106, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-coral);
    margin-bottom: 1.5rem;
}

.showcase-text h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--color-deep);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.showcase-text h2 em {
    font-style: italic;
    color: var(--color-coral);
}

.showcase-text > p {
    font-size: 1.1rem;
    color: var(--color-text-soft);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.showcase-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.showcase-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--color-text);
}

.showcase-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-coral), var(--color-wine));
    flex-shrink: 0;
}

/* Phone Mockups */
.showcase-phones {
    position: relative;
    height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone {
    position: absolute;
    width: 260px;
    transition: transform 0.5s var(--ease-smooth), opacity 0.5s var(--ease-smooth);
}

.phone img {
    width: 100%;
    height: auto;
    display: block;
}

.phone-front {
    z-index: 2;
    right: 10%;
    transform: translateY(20px);
}

.phone-back {
    z-index: 1;
    left: 5%;
    transform: translateY(-20px) scale(0.92);
}

/* Showcase scroll animation */
.showcase .showcase-text {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.showcase-reverse .showcase-text {
    transform: translateX(30px);
}

.showcase .showcase-phones .phone-front {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease-out 0.3s, transform 1.2s ease-out 0.3s;
}

.showcase .showcase-phones .phone-back {
    opacity: 0;
    transform: translateY(-30px) scale(0.92);
    transition: opacity 1.2s ease-out 0.5s, transform 1.2s ease-out 0.5s;
}

.showcase.visible .showcase-text {
    opacity: 1;
    transform: translateX(0);
}

.showcase.visible .showcase-phones .phone-front {
    opacity: 1;
    transform: translateY(20px);
}

.showcase.visible .showcase-phones .phone-back {
    opacity: 1;
    transform: translateY(-20px) scale(0.92);
}

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--color-deep) 0%, var(--color-wine) 50%, var(--color-coral) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.cta-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
}

.cta-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.cta-content h2 em {
    font-style: italic;
    color: var(--color-blush);
}

.cta-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
}

.cta-content .btn-primary {
    background: white;
    color: var(--color-wine);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(232, 165, 152, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

    .footer-top {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .legal-section {
        padding: 3rem 1.5rem 5rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

    .page-header {
        padding: 120px 1.5rem 40px;
    }

    .page-header h1 {
        flex-direction: column;
        gap: 0.5rem;
    }

    .showcase {
        padding: 5rem 1.5rem;
    }

    .showcase-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .showcase-reverse .showcase-container .showcase-text,
    .showcase-reverse .showcase-container .showcase-phones {
        order: unset;
    }

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

    .showcase-features li {
        justify-content: center;
    }

    .showcase-phones {
        height: 480px;
    }

    .phone {
        width: 210px;
    }

    .phone-front {
        right: 5%;
    }

    .phone-back {
        left: 0%;
    }

    .cta-section {
        padding: 4rem 1.5rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
