/* -----------------------------
   Brand colors & CSS variables
   ----------------------------- */
:root {
    --primary: #6F4E37;
    /* Primary color */
    --primary-text: #FFFDD0;
    /* Primary text color */
    --bg: #ffffff;
    /* page base */
    --muted: #f4f3f2;
    --card: #fffaf5;
    --shadow: 0 8px 30px rgba(15, 15, 15, 0.06);
    --glass: rgba(255, 255, 255, 0.6);
    --max-width: 1120px;
    --radius: 14px;
    --fw-regular: 400;
    --fw-medium: 600;
    --fw-bold: 700;
}

/* -----------------------------
   Base styles
   ----------------------------- */
* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--bg);
    color: #222;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none
}

/* -----------------------------
   Header / Nav
   ----------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    backdrop-filter: blur(6px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.35));
    border-bottom: 1px solid rgba(111, 78, 55, 0.04);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), #8b614f);
    box-shadow: var(--shadow);
}

.logo svg {
    width: 26px;
    height: 26px;
    fill: var(--primary-text)
}

.brand h1 {
    font-size: 16px;
    margin: 0;
    color: var(--primary);
    letter-spacing: 0.2px;
    font-weight: 700;
}

nav a {
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #555
}

nav a:hover {
    background: rgba(111, 78, 55, 0.06);
    color: var(--primary)
}

/* -----------------------------
   Hero Section (fullscreen)
   ----------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    overflow: visible;
    background: linear-gradient(180deg, var(--bg) 0%, #fbfaf9 100%);
}

/* Wavy background layers (SVGs) */
.wave-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.wave {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 180%;
    height: 100%;
    opacity: 0.65;
    mix-blend-mode: multiply;
}

/* Multiple animated waves with different speeds and blur */
.wave.wave-1 {
    top: -5%;
    animation: floatX 20s linear infinite;
    filter: blur(20px);
    opacity: 0.08;
}

.wave.wave-2 {
    top: 10%;
    animation: floatX 28s linear infinite reverse;
    filter: blur(12px);
    opacity: 0.06;
}

.wave.wave-3 {
    bottom: -10%;
    animation: floatX 36s linear infinite;
    filter: blur(6px);
    opacity: 0.08;
}

@keyframes floatX {
    0% {
        transform: translateX(-60%) translateY(0)
    }

    50% {
        transform: translateX(-40%) translateY(4%)
    }

    100% {
        transform: translateX(-60%) translateY(0)
    }
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 920px;
    margin: 0 auto;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
}

.hero .app-name {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.app-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(111, 78, 55, 0.06), rgba(111, 78, 55, 0.02));
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.app-badge .logomark {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--primary), #8b614f);
    display: grid;
    place-items: center;
    box-shadow: 0 6px 20px rgba(111, 78, 55, 0.14);
}

.app-badge svg {
    width: 30px;
    height: 30px;
    fill: var(--primary-text)
}

h2.tagline {
    margin: 0;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.05;
    color: var(--primary);
}

p.lead {
    margin: 0;
    max-width: 760px;
    color: #333;
    font-size: 16px;
    opacity: 0.95;
}

/* Download buttons */
.downloads {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    flex-wrap: wrap;
}

.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    min-width: 190px;
    background: linear-gradient(180deg, var(--primary), #845b44);
    color: var(--primary-text);
    box-shadow: 0 10px 30px rgba(111, 78, 55, 0.14);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
    text-decoration: none;
}

.dl-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(111, 78, 55, 0.18);
}

.dl-btn .store {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.dl-btn small {
    font-size: 11px;
    opacity: 0.85;
    font-weight: 400
}

.dl-btn .big {
    font-size: 15px;
    font-weight: 700;
    margin-top: 2px;
}

/* pulsing glow (will be toggled by JS every 10s) */
.dl-btn.pulse {
    animation: glowPulse 1.8s ease-in-out forwards;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 6px 24px rgba(111, 78, 55, 0.12);
        transform: translateY(0) scale(1);
    }

    50% {
        box-shadow: 0 28px 60px rgba(111, 78, 55, 0.26);
        transform: translateY(-4px) scale(1.02);
    }

    100% {
        box-shadow: 0 6px 24px rgba(111, 78, 55, 0.12);
        transform: translateY(0) scale(1);
    }
}

/* Arrow down indicator */
.down-arrow {
    margin-top: 20px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(111, 78, 55, 0.06), rgba(111, 78, 55, 0.02));
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .18s ease;
}

.down-arrow:hover {
    transform: translateY(-6px)
}

.chev {
    animation: bounceDown 2s infinite;
    color: var(--primary);
    width: 18px;
    height: 18px;
}

@keyframes bounceDown {
    0% {
        transform: translateY(-4px)
    }

    50% {
        transform: translateY(6px)
    }

    100% {
        transform: translateY(-4px)
    }
}

/* -----------------------------
   About Section
   ----------------------------- */
section {
    padding: 80px 0;
    position: relative;
}

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
    align-content: center;
    text-align: left;
}

.about .illus {
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff7f2, #fffbf9);
    box-shadow: var(--shadow);
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* simple inline illustration wrapper */
.illus svg {
    width: 100%;
    height: auto;
    max-width: 420px;
    display: block
}

.about h3 {
    margin: 0 0 10px 0;
    color: var(--primary);
    font-size: 22px
}

.about p {
    margin: 0;
    color: #333;
    line-height: 1.6;
    text-align: justify;
}

/* SEO content section paragraphs */
article p {
    text-align: justify !important;
    margin-bottom: 1em;
}

/* SEO content section - ensure proper mobile margins */
article div {
    padding: 0 20px;
}

@media (max-width: 520px) {
    article div {
        padding: 0 15px;
        max-width: 100% !important;
    }
}

/* fade-in / slide-in handled via .reveal classes */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: all .8s cubic-bezier(.16, .9, .39, 1);
    will-change: opacity, transform;
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}

/* -----------------------------
   Features Section
   ----------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 18px;
}

.feature-card {
    background: linear-gradient(180deg, var(--card), #fffaf3);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow);
    transition: transform .28s cubic-bezier(.2, .9, .3, 1), box-shadow .28s;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 26px 60px rgba(111, 78, 55, 0.12);
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), #8b614f);
    color: var(--primary-text);
    flex-shrink: 0;
}

.feature-body h4 {
    margin: 0;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 16px
}

.feature-body p {
    margin: 0;
    font-size: 14px;
    color: #333;
    opacity: 0.95
}

/* -----------------------------
   CTA Section
   ----------------------------- */
.cta {
    position: relative;
    border-radius: 18px;
    overflow: visible;
    padding: 64px 20px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, #fffaf7, #fff8f4);
    box-shadow: 0 10px 45px rgba(111, 78, 55, 0.06);
}

.cta .cta-inner {
    max-width: 900px;
}

.cta h3 {
    margin: 0;
    font-size: 26px;
    color: var(--primary)
}

.cta p {
    margin: 8px 0 0 0;
    color: #333;
    opacity: 0.95
}

/* subtle animated wavy overlay in CTA */
.cta .cta-wave {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.06;
}

/* -----------------------------
   Footer
   ----------------------------- */
footer {
    padding: 28px 0;
    background: transparent;
    border-top: 1px solid rgba(111, 78, 55, 0.04);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.socials {
    display: flex;
    gap: 10px;
    align-items: center
}

.socials a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--muted);
    color: var(--primary);
}

/* -----------------------------
   Responsive rules
   ----------------------------- */
@media (max-width: 900px) {
    .about {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about .illus {
        order: -1
    }

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

    .nav-inner {
        height: 64px
    }

    h2.tagline {
        font-size: 26px
    }
}

@media (max-width: 520px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .dl-btn {
        min-width: 160px;
        padding: 10px 12px
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 40px
    }

    .app-badge .logomark {
        width: 48px;
        height: 48px
    }

    .logo {
        width: 40px;
        height: 40px
    }
}

/* -----------------------------
   SEO & Accessibility Improvements
   ----------------------------- */

/* Improve text readability for SEO */
p,
li,
div {
    line-height: 1.6;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
.dl-btn:focus,
.down-arrow:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: var(--primary-text);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Ensure sufficient color contrast */
small {
    color: #FFFDD0;
}

/* Optimize images for performance */
img {
    height: auto;
    max-width: 100%;
}

/* Print styles for better content accessibility */
@media print {

    .nav-inner,
    .downloads,
    .socials,
    .down-arrow,
    .wave-wrap {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    a:after {
        content: " (" attr(href) ")";
    }
}