/* =====================================================
   Wavoria — Main Stylesheet
   ===================================================== */

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

:root {
    --teal:       #3DD9C0;
    --purple:     #7C3AED;
    --magenta:    #E040FB;
    --grad:       linear-gradient(135deg, var(--teal) 0%, var(--purple) 55%, var(--magenta) 100%);
    --grad-text:  linear-gradient(90deg, var(--teal) 0%, var(--purple) 60%, var(--magenta) 100%);
    --bg:         #ffffff;
    --bg-alt:     #f6f5f9;
    --text:       #1a1a2e;
    --muted:      #6b7280;
    --border:     #e5e7eb;
    --radius:     12px;
    --shadow:     0 2px 12px rgba(0,0,0,.07);
    --shadow-lg:  0 8px 32px rgba(0,0,0,.10);
    --font:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max-w:      1100px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ----- Layout ----- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- Gradient text utility ----- */
.grad-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity .2s, transform .15s;
    text-decoration: none;
}
.btn:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--grad);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--purple);
    border: 2px solid var(--purple);
}
.btn-outline:hover { background: var(--purple); color: #fff; }

.btn-disabled,
.btn[disabled] {
    background: var(--border);
    color: var(--muted);
    cursor: not-allowed;
    pointer-events: none;
    opacity: 1;
    transform: none;
}

/* ----- NAV ----- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.nav-logo img {
    height: 68px;
    width: auto;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}
.nav-links a {
    padding: 6px 14px;
    border-radius: 6px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    transition: background .15s, color .15s;
    text-decoration: none;
}
.nav-links a:hover { background: var(--bg-alt); color: var(--purple); }
.nav-links a.active { color: var(--purple); font-weight: 600; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language switcher */
.lang-switch {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
}
.lang-switch a {
    padding: 5px 10px;
    color: var(--muted);
    text-decoration: none;
    transition: background .15s, color .15s;
}
.lang-switch a:hover { background: var(--bg-alt); color: var(--text); }
.lang-switch a.active {
    background: var(--purple);
    color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text);
}

/* ----- HERO ----- */
.hero {
    padding: 88px 0 80px;
    text-align: center;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 16px;
    background: rgba(124,58,237,.08);
    padding: 4px 14px;
    border-radius: 999px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -.02em;
}
.hero-sub {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 580px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ----- SECTION COMMON ----- */
section { padding: 80px 0; }
section.alt { background: var(--bg-alt); }

.section-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -.02em;
}
.section-sub {
    color: var(--muted);
    max-width: 520px;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 48px;
}

/* ----- WORKFLOW IMAGE ----- */
.workflow-img-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.workflow-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* ----- FEATURE CARDS ----- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; fill: #fff; }

.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.card p  { font-size: .93rem; color: var(--muted); line-height: 1.6; }

/* ----- VALUES GRID ----- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.value-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.value-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grad);
    margin-top: 8px;
}
.value-item h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.value-item p  { font-size: .88rem; color: var(--muted); line-height: 1.55; }

/* ----- UPCOMING ----- */
.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px;
}
.upcoming-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.upcoming-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: rgba(124,58,237,.1);
    color: var(--purple);
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 2px;
}
.upcoming-item h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.upcoming-item p  { font-size: .88rem; color: var(--muted); line-height: 1.55; }

/* ----- CTA BAND ----- */
.cta-band {
    background: var(--grad);
    padding: 64px 0;
    text-align: center;
    color: #fff;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 12px; letter-spacing: -.02em; }
.cta-band p  { font-size: 1rem; margin-bottom: 28px; opacity: .88; }
.btn-white {
    background: #fff;
    color: var(--purple);
    font-weight: 700;
}
.btn-white:hover { opacity: .92; }

/* ----- FOOTER ----- */
footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 40px 0 28px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.footer-brand img  { height: 32px; margin-bottom: 10px; }
.footer-brand p    { font-size: .85rem; color: var(--muted); max-width: 240px; line-height: 1.6; }
.footer-links h5   { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.footer-links ul   { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-links a    { font-size: .88rem; color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--purple); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .82rem;
    color: var(--muted);
}

/* ----- DOWNLOAD PAGE ----- */
.download-hero { padding: 72px 0 48px; }
.download-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 14px; letter-spacing: -.02em; }
.download-hero p { color: var(--muted); font-size: 1.05rem; max-width: 500px; }

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 56px;
}
.dl-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    background: var(--bg);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.dl-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}
.dl-card-header svg { width: 36px; height: 36px; }
.dl-card-header h2 { font-size: 1.2rem; font-weight: 800; }
.dl-card-header p  { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.dl-card .reqs { font-size: .83rem; color: var(--muted); line-height: 1.6; padding-top: 8px; border-top: 1px solid var(--border); }
.dl-card .reqs strong { color: var(--text); }

.coming-soon-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    color: var(--muted);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 12px;
    margin-top: 4px;
}

/* ----- DOCS PAGE ----- */
.docs-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    padding: 48px 0 80px;
    align-items: start;
}
.docs-sidebar {
    position: sticky;
    top: 80px;
}
.docs-sidebar h4 {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: 10px;
}
.docs-sidebar ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.docs-sidebar a {
    display: block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: .9rem;
    color: var(--text);
    text-decoration: none;
    transition: background .15s;
}
.docs-sidebar a:hover { background: var(--bg-alt); color: var(--purple); }
.docs-sidebar a.active { background: rgba(124,58,237,.1); color: var(--purple); font-weight: 600; }

.docs-content h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -.02em; }
.docs-content .lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 36px; line-height: 1.7; }
.docs-content h2 { font-size: 1.25rem; font-weight: 700; margin: 32px 0 12px; padding-top: 32px; border-top: 1px solid var(--border); }
.docs-content h2:first-of-type { border-top: none; padding-top: 0; }
.docs-content p  { margin-bottom: 14px; line-height: 1.7; color: var(--muted); font-size: .95rem; }
.docs-wip {
    background: rgba(124,58,237,.06);
    border: 1.5px dashed rgba(124,58,237,.3);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    color: var(--muted);
    font-size: .93rem;
    line-height: 1.7;
    margin-top: 24px;
}
.docs-wip strong { color: var(--purple); }

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 12px 24px 16px;
        gap: 4px;
    }
    .nav-toggle { display: block; }

    .hero { padding: 56px 0 48px; }
    section { padding: 56px 0; }

    .docs-layout { grid-template-columns: 1fr; }
    .docs-sidebar { position: static; }

    .footer-inner { flex-direction: column; gap: 24px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
