/* ===========================================================
   Aone Library - Landing site styles
   Palette: Purple primary, white background, dark text
   =========================================================== */

:root {
    --purple: #6d28d9;
    --purple-dark: #5b21b6;
    --purple-light: #ede9fe;
    --ink: #12101a;
    --ink-soft: #55516b;
    --line: #e8e5f2;
    --white: #ffffff;
    --bg-soft: #faf9ff;
    --amber: #b45309;
    --green: #047857;
    --red: #b91c1c;
    --radius: 18px;
    --shadow-sm: 0 1px 2px rgba(18, 16, 26, 0.06);
    --shadow: 0 10px 30px rgba(84, 47, 168, 0.08);
    --shadow-lg: 0 24px 60px rgba(84, 47, 168, 0.16);
    --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, 92%); margin-inline: auto; }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
    font-size: .95rem; font-weight: 600; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 8px 22px rgba(109, 40, 217, .28); }
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--purple); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--purple); transform: translateY(-2px); }
.btn-light { background: var(--purple-light); color: var(--purple-dark); }
.btn-light:hover { background: #e0d8fd; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: .82rem; }

/* ---------------- Header ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand-mark {
    width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
    background: linear-gradient(140deg, var(--purple), #a855f7); color: #fff; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 26px; font-size: .93rem; font-weight: 500; }
.nav-links a { position: relative; color: var(--ink-soft); transition: color .2s ease; }
.nav-links a:hover { color: var(--purple); }
.nav-links a::after {
    content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--purple); transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 84px 0 70px; overflow: hidden; background: var(--bg-soft); }
.hero::before {
    content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -260px;
    background: radial-gradient(circle, rgba(168, 85, 247, .22), transparent 68%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; position: relative; }
.pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
    background: var(--purple-light); color: var(--purple-dark); font-size: .8rem; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
}
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.15; }
.hero h1 { font-size: clamp(2.15rem, 4.4vw, 3.5rem); margin: 22px 0 18px; font-weight: 800; }
.hero h1 span { color: var(--purple); }
.hero p.lead { font-size: 1.06rem; color: var(--ink-soft); max-width: 33rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-visual {
    border-radius: 24px; padding: 14px; background: rgba(255, 255, 255, .6);
    border: 1px solid var(--line); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px);
}
.hero-visual img { border-radius: 16px; }

/* ---------------- Trust strip ---------------- */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 30px 16px; text-align: center; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--purple); }
.trust-item span { font-size: .84rem; color: var(--ink-soft); }

/* ---------------- Sections ---------------- */
section.block { padding: 84px 0; }
section.block.soft { background: var(--bg-soft); }
.section-head { max-width: 42rem; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin: 14px 0 12px; }
.section-head p { color: var(--ink-soft); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
    box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d9d2f5; }
.card .ico {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    background: var(--purple-light); color: var(--purple-dark); font-size: 1.2rem; margin-bottom: 16px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .93rem; }

/* ---------------- Pricing ---------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.price {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.price:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price.featured { border-color: var(--purple); box-shadow: var(--shadow-lg); }
.price .tag {
    position: absolute; top: -13px; left: 32px; background: var(--purple); color: #fff;
    font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 999px;
}
.price h3 { font-size: 1.15rem; }
.price .amount { font-size: 2.4rem; font-weight: 800; margin: 12px 0 4px; }
.price .amount small { font-size: .9rem; font-weight: 500; color: var(--ink-soft); }
.price ul { list-style: none; margin: 22px 0 26px; display: grid; gap: 11px; }
.price li { font-size: .93rem; color: var(--ink-soft); padding-left: 26px; position: relative; }
.price li::before {
    content: "✓"; position: absolute; left: 0; color: var(--purple); font-weight: 800;
}

/* ---------------- About / split ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 26px; }
.mini {
    border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: #fff;
}
.mini strong { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--purple-dark); }
.card .ico svg, .info-line .ico svg, .stat .ico svg { display: block; }
.mini span { font-size: .88rem; color: var(--ink-soft); }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 7px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
    font-family: inherit; font-size: .94rem; background: #fff; color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(109, 40, 217, .12);
}
.field textarea { min-height: 130px; resize: vertical; }
.info-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.info-line .ico { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--purple-light); color: var(--purple-dark); display: grid; place-items: center; }

/* ---------------- Blog ---------------- */
.blog-card img { border-radius: 14px; margin-bottom: 16px; height: 170px; object-fit: cover; width: 100%; }
.blog-card small { color: var(--purple); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; }

/* ---------------- CTA banner ---------------- */
.cta-band {
    background: linear-gradient(135deg, var(--purple), #8b5cf6); color: #fff;
    border-radius: 26px; padding: 52px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.cta-band p { opacity: .92; margin-bottom: 26px; }
.cta-band .btn-ghost { background: #fff; border-color: #fff; }

/* ---------------- Footer ---------------- */
.site-footer { background: #100e18; color: #cbc6dd; padding: 60px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { display: block; font-size: .9rem; padding: 5px 0; color: #a9a2c2; transition: color .2s ease; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid #262133; margin-top: 34px; padding-top: 20px;
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem;
}

/* ---------------- Auth pages ---------------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
    background: linear-gradient(150deg, #2a1259, var(--purple) 55%, #a855f7);
    color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; position: relative;
}
.auth-side h2 { font-size: 2.1rem; margin-bottom: 14px; }
.auth-side p { opacity: .9; max-width: 26rem; }
.auth-side ul { list-style: none; margin-top: 30px; display: grid; gap: 12px; }
.auth-side li { padding-left: 28px; position: relative; opacity: .95; }
.auth-side li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg-soft); }
.auth-card {
    width: min(560px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 22px;
    padding: 36px; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-card .muted { color: var(--ink-soft); font-size: .93rem; margin-bottom: 24px; }
.tabs { display: flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin-bottom: 26px; }
.tabs button {
    flex: 1; padding: 10px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
    font-family: inherit; font-weight: 600; font-size: .92rem; color: var(--ink-soft);
    transition: background-color .2s ease, color .2s ease;
}
.tabs button.active { background: var(--purple); color: #fff; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hidden { display: none !important; }
.demo-box { margin-top: 22px; border: 1px dashed var(--line); border-radius: 14px; padding: 14px; font-size: .84rem; color: var(--ink-soft); }

/* ---------------- Alerts / badges ---------------- */
.alert { border-radius: 12px; padding: 12px 16px; font-size: .9rem; margin-bottom: 18px; border: 1px solid; }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: var(--green); }
.alert-error { background: #fef2f2; border-color: #fecaca; color: var(--red); }
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.badge-green { background: #ecfdf5; color: var(--green); }
.badge-amber { background: #fffbeb; color: var(--amber); }
.badge-red { background: #fef2f2; color: var(--red); }
.badge-grey { background: #f3f4f6; color: #4b5563; }

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
    .hero-grid, .split, .contact-grid, .auth-wrap { grid-template-columns: 1fr; }
    .cards, .price-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .auth-side { display: none; }
    .nav-links {
        position: absolute; top: 74px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
        flex-direction: column; align-items: flex-start; padding: 18px 5%; gap: 14px; display: none;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: inline-flex; }
    .nav-actions .hide-sm { display: none; }
}

@media (max-width: 700px) {
    .cards, .price-grid, .trust-grid, .grid-2, .mini-grid, .footer-grid { grid-template-columns: 1fr; }
    .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
    section.block { padding: 58px 0; }
    .hero { padding: 54px 0 44px; }
    .cta-band { padding: 34px 22px; }
    .auth-card { padding: 26px 20px; }
}

/* =========================================================
   FINAL LANDING-PAGE MOBILE RESPONSIVE OVERRIDES
   ========================================================= */
@media (max-width: 767px) {
    html, body {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    .container {
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        min-width: 0 !important;
        margin-inline: auto !important;
    }

    .nav {
        height: auto !important;
        min-height: 64px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .nav-links {
        display: none !important;
    }

    .nav-actions {
        min-width: 0 !important;
    }

    .nav-actions .btn {
        padding: 8px 12px !important;
        font-size: .78rem !important;
    }

    .nav-toggle {
        display: inline-flex !important;
    }

    .hero {
        padding: 54px 0 42px !important;
    }

    .hero-grid,
    .split,
    .contact-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 28px !important;
    }

    .hero-grid > *,
    .split > *,
    .contact-grid > * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 3rem) !important;
    }

    .hero p.lead {
        max-width: 100% !important;
    }

    .hero-actions {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-visual {
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px !important;
        overflow: hidden !important;
    }

    .hero-visual img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .cards,
    .price-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .card,
    .price,
    .panel {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    img, svg, video, canvas, iframe {
        max-width: 100% !important;
    }

    table {
        max-width: 100% !important;
    }
}
@media (max-width: 420px) {
    .container {
        width: calc(100% - 18px) !important;
        max-width: calc(100% - 18px) !important;
    }

    .trust-grid {
        grid-template-columns: 1fr !important;
    }
}
