/* ZenvyTools — playful, bright theme inspired by Duolingo + Slack */

:root {
    /* Brand */
    --green:        #10B981;
    --green-dark:   #059669;
    --green-darker: #047857;
    --green-soft:   #D1FAE5;

    /* Accent palette */
    --yellow:       #FBBF24;
    --yellow-soft:  #FEF3C7;
    --pink:         #EC4899;
    --pink-soft:    #FCE7F3;
    --blue:         #3B82F6;
    --blue-soft:    #DBEAFE;
    --purple:       #8B5CF6;
    --purple-soft:  #EDE9FE;

    /* Neutrals */
    --ink:          #0F172A;
    --ink-soft:     #475569;
    --ink-muted:    #94A3B8;
    --bg:           #FEFFF9;       /* warm off-white */
    --bg-soft:      #F8FAFC;
    --border:       #E2E8F0;
    --white:        #FFFFFF;

    /* Shape */
    --radius-sm:    10px;
    --radius:       18px;
    --radius-lg:    28px;
    --radius-pill:  999px;

    /* Shadows */
    --shadow-sm:    0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow:       0 4px 14px rgba(15, 23, 42, 0.08);
    --shadow-lg:    0 12px 40px rgba(15, 23, 42, 0.12);
    --shadow-3d-green: 0 6px 0 var(--green-darker);
    --shadow-3d-yellow: 0 6px 0 #D97706;
    --shadow-3d-pink:  0 6px 0 #BE185D;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green-darker); }

/* ─── Container ──────────────────────────────────────────────────── */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Buttons (chunky 3D Duolingo style) ─────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.3px;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
    position: relative;
    text-decoration: none;
}
.btn:active { transform: translateY(3px); }

.btn-primary {
    background: var(--green);
    color: var(--white);
    box-shadow: var(--shadow-3d-green);
}
.btn-primary:hover { background: var(--green-dark); color: var(--white); }
.btn-primary:active { box-shadow: 0 0 0 var(--green-darker); }

.btn-secondary {
    background: var(--white);
    color: var(--ink);
    border: 2px solid var(--border);
    box-shadow: 0 4px 0 var(--border);
}
.btn-secondary:hover { background: var(--bg-soft); }

.btn-yellow {
    background: var(--yellow);
    color: var(--ink);
    box-shadow: var(--shadow-3d-yellow);
}
.btn-yellow:hover { filter: brightness(1.05); }

/* ─── Top nav ────────────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(254, 255, 249, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 900;
    font-size: 22px;
    color: var(--ink);
    letter-spacing: -0.5px;
}
.brand-mark {
    width: 36px; height: 36px;
    background: var(--green);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 3px 0 var(--green-darker);
}
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}
.nav-links a {
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 15px;
    transition: color 0.15s;
}
.nav-links a:hover { color: var(--green-dark); }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--ink);
    cursor: pointer;
}
@media (max-width: 800px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column;
        background: var(--white);
        padding: 22px;
        gap: 18px;
        box-shadow: var(--shadow);
    
}

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
    padding: 90px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at 20% 30%, var(--green-soft) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 50%, var(--yellow-soft) 0%, transparent 60%),
        radial-gradient(ellipse 60% 30% at 50% 100%, var(--pink-soft) 0%, transparent 50%);
    z-index: -1;
}
.hero-eyebrow {
    display: inline-block;
    padding: 8px 18px;
    background: var(--white);
    border: 2px solid var(--green-soft);
    color: var(--green-dark);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    margin-bottom: 22px;
}
.hero h1 {
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: var(--ink);
}
.hero h1 .accent {
    background: linear-gradient(135deg, var(--green), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p.lead {
    font-size: 22px;
    color: var(--ink-soft);
    max-width: 660px;
    margin: 0 auto 36px;
    line-height: 1.5;
}
.hero-actions {
    display: flex; gap: 14px; justify-content: center;
    flex-wrap: wrap;
}
.hero-stats {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-stats .stat {
    text-align: center;
}
.hero-stats .stat-num {
    font-size: 36px;
    font-weight: 900;
    color: var(--green-dark);
    letter-spacing: -1px;
}
.hero-stats .stat-label {
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 14px;
    margin-top: 4px;
}
@media (max-width: 600px) {
    .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
    .hero-stats .stat-num { font-size: 28px; }
}

/* ─── Floating doodles around hero ───────────────────────────────── */
.doodle {
    position: absolute;
    z-index: -1;
    opacity: 0.7;
}
.doodle-1 { top: 14%; left: 6%; width: 60px; height: 60px;
    background: var(--yellow); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(-15deg);
    animation: float 6s ease-in-out infinite; }
.doodle-2 { top: 22%; right: 8%; width: 50px; height: 50px;
    background: var(--pink); border-radius: 50%;
    animation: float 7s ease-in-out infinite reverse; }
.doodle-3 { bottom: 18%; left: 12%; width: 40px; height: 40px;
    background: var(--blue); border-radius: 12px;
    transform: rotate(20deg);
    animation: float 8s ease-in-out infinite; }
.doodle-4 { bottom: 30%; right: 14%; width: 55px; height: 55px;
    background: var(--purple); border-radius: 50% 50% 30% 70%;
    transform: rotate(-30deg);
    animation: float 9s ease-in-out infinite reverse; }
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50%      { transform: translateY(-20px) rotate(var(--r, 0deg)); }
}

/* ─── Section header ─────────────────────────────────────────────── */
.section {
    padding: 80px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-header h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 14px;
}
.section-header p {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 600px;
    margin: 0 auto;
}

/* ─── App cards grid ─────────────────────────────────────────────── */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.app-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.app-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green);
    color: inherit;
}
.app-card-blob {
    position: absolute;
    top: -30px; right: -30px;
    width: 100px; height: 100px;
    border-radius: 50%;
    opacity: 0.08;
    transition: transform 0.4s;
    pointer-events: none;
}
.app-card:hover .app-card-blob { transform: scale(1.3); }
.app-card:hover .app-card-blob { transform: scale(1.4); }
.app-icon {
    width: 72px; height: 72px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.app-icon-emoji {
    font-size: 38px;
    color: white;
}
.app-card h3 {
    font-size: 24px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.5px;
}
.app-card .tagline {
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.5;
    flex: 1;
}
.app-card .arrow {
    font-weight: 800;
    color: var(--green-dark);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.app-card:hover .arrow { gap: 10px; }
.app-card .arrow svg { width: 16px; height: 16px; transition: transform 0.2s; }
.app-card:hover .arrow svg { transform: translateX(4px); }

/* ─── About section ──────────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
.about-blob {
    height: 380px;
    background: linear-gradient(135deg, var(--green-soft), var(--yellow-soft), var(--pink-soft));
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    box-shadow: var(--shadow-lg);
    animation: blob 12s ease-in-out infinite;
}
@keyframes blob {
    0%, 100% { border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%; }
    50%      { border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; }
}
.about-text h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -1px;
    margin-bottom: 18px;
    line-height: 1.15;
}
.about-text p {
    font-size: 17px;
    color: var(--ink-soft);
    margin-bottom: 18px;
}
.value-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.value-pill {
    background: var(--green-soft);
    color: var(--green-darker);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 14px;
}

/* ─── Contact section ────────────────────────────────────────────── */
.contact-card {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.contact-card::before, .contact-card::after {
    content:'';
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    background: var(--white);
}
.contact-card::before { width: 200px; height: 200px; top: -80px; left: -60px; }
.contact-card::after  { width: 280px; height: 280px; bottom: -120px; right: -80px; }
.contact-card h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    margin-bottom: 14px;
    position: relative;
    letter-spacing: -1px;
}
.contact-card p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 30px;
    position: relative;
}
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
    position: relative;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    background: var(--white);
}
.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}
.contact-form button {
    width: 100%;
    margin-top: 6px;
    background: var(--white);
    color: var(--green-darker);
    box-shadow: 0 6px 0 rgba(0,0,0,0.18);
    justify-content: center;
}

/* ─── Flash messages ─────────────────────────────────────────────── */
.flash-area {
    position: fixed;
    top: 86px;
    right: 24px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.flash {
    background: var(--white);
    border-left: 5px solid var(--green);
    padding: 14px 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-weight: 700;
    color: var(--ink);
    max-width: 360px;
    animation: slideIn 0.3s ease;
}
.flash.error { border-left-color: var(--pink); }
.flash.success { border-left-color: var(--green); }
@keyframes slideIn {
    from { transform: translateX(20px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer {
    background: var(--ink);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ink-muted);
    margin-bottom: 16px;
    font-weight: 800;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a {
    color: rgba(255,255,255,0.78);
    font-weight: 600;
    font-size: 15px;
}
.footer a:hover { color: var(--white); }
.footer-brand-tagline {
    color: rgba(255,255,255,0.68);
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
}
.footer .brand { color: var(--white); }
.footer .brand-mark { box-shadow: none; }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: var(--ink-muted);
    text-align: center;
}

/* ─── Single app page ────────────────────────────────────────────── */
.app-hero {
    padding: 60px 0 40px;
    background: linear-gradient(180deg, var(--green-soft), transparent);
}
.app-hero-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 700px) {
    .app-hero-grid { grid-template-columns: 1fr; text-align: center; }
}
.app-hero .app-icon {
    width: 120px; height: 120px;
    border-radius: 28px;
    margin: 0 auto;
    object-fit: cover;
    background-size: cover !important;
    background-position: center !important;
}
.app-hero .app-icon-emoji { font-size: 70px; }
.app-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
}
.app-hero .tagline {
    font-size: 20px;
    color: var(--ink-soft);
    margin-bottom: 20px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 30px;
}
.feature-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.feature-card:hover {
    border-color: var(--green);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.feature-emoji {
    font-size: 36px;
    margin-bottom: 14px;
    display: block;
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}
.feature-card p {
    color: var(--ink-soft);
    font-size: 15px;
}
.screenshots-rail {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 14px 4px 30px;
    scroll-snap-type: x mandatory;
}
.screenshots-rail img {
    width: 240px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* ─── Privacy / static pages ─────────────────────────────────────── */
.prose {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 24px;
}
.prose h1 {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 8px;
    color: var(--ink);
}
.prose .meta {
    color: var(--ink-muted);
    font-size: 14px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.prose h2 {
    font-size: 22px;
    font-weight: 800;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--ink);
}
.prose h3 {
    font-size: 17px;
    font-weight: 800;
    margin-top: 20px;
    margin-bottom: 8px;
}
.prose p, .prose li {
    color: var(--ink-soft);
    font-size: 16px;
    margin-bottom: 12px;
}
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 14px; }
.prose code {
    background: var(--bg-soft);
    padding: 2px 6px;
    border-radius: 6px;
    font-family: ui-monospace, monospace;
    font-size: 14px;
}
.prose .callout {
    background: var(--green-soft);
    border-left: 5px solid var(--green);
    padding: 18px 22px;
    border-radius: var(--radius);
    margin: 22px 0;
    font-size: 15px;
    color: var(--green-darker);
    font-weight: 600;
}
