/* ===========================================================
   AvyScan Lab — Promotional website stylesheet
   =========================================================== */

:root {
    --bg:           #0a0a0c;
    --bg-2:         #111114;
    --bg-3:         #16161a;
    --line:         rgba(212, 175, 55, 0.18);
    --line-soft:    rgba(255, 255, 255, 0.06);
    --text:         #e8e6e0;
    --text-dim:     #9c9a93;
    --text-mute:    #6b6a64;
    --gold:         #d4af37;
    --gold-bright:  #f4cf5a;
    --gold-deep:    #8a6f1a;
    --shadow:       0 30px 60px -20px rgba(0, 0, 0, 0.7);
    --radius:       14px;
    --max:          1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold-bright); }

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #f5f3ec;
    line-height: 1.2;
    margin: 0 0 .6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

.gold { color: var(--gold); }
.muted { color: var(--text-dim); }
.micro { font-size: .82rem; color: var(--text-mute); margin: .4em 0; }

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

/* ============ HEADER / NAV ============ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: saturate(150%) blur(12px);
    -webkit-backdrop-filter: saturate(150%) blur(12px);
    border-bottom: 1px solid var(--line-soft);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand { display: flex; align-items: center; }
.brand-logo { height: 48px; width: auto; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.main-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: .94rem;
    position: relative;
}
.main-nav a:hover { color: var(--gold); }
.main-nav a.btn { color: #0a0a0c; }

/* Language switch */
.lang-switch {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    padding: 3px;
    margin-left: 8px;
}
.lang-switch button {
    background: transparent;
    border: 0;
    color: var(--text-dim);
    font: 600 .72rem 'Inter', sans-serif;
    letter-spacing: 0.06em;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: color .15s, background .15s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: #0a0a0c;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: .2s;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    text-align: center;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, background .2s, color .2s;
    letter-spacing: 0.02em;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-deep) 100%);
    color: #0a0a0c;
    box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.55);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -12px rgba(212, 175, 55, 0.7);
    color: #0a0a0c;
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: rgba(212, 175, 55, 0.4);
}
.btn-ghost:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--gold);
    color: var(--gold-bright);
}
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

/* ============ HERO ============ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 120px;
    isolation: isolate;
}
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.18), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.10), transparent 60%),
        linear-gradient(180deg, #0a0a0c 0%, #050505 100%);
}
.hero-bg::after {
    content: "";
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent 0 2px, rgba(255,255,255,0.012) 2px 3px);
    pointer-events: none;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: center;
}
.eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    background: rgba(212, 175, 55, 0.05);
}
.hero h1 { margin-bottom: 24px; }
.lead { font-size: 1.12rem; color: var(--text-dim); margin: 0 0 36px; max-width: 56ch; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-meta {
    display: flex; flex-wrap: wrap; gap: 24px;
    list-style: none; padding: 0; margin: 0;
    font-size: .88rem; color: var(--text-mute);
}
.hero-meta li::before { content: "● "; color: var(--gold); margin-right: 6px; }

.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-logo {
    max-width: 360px;
    filter: drop-shadow(0 30px 50px rgba(212, 175, 55, 0.25));
    animation: float 6s ease-in-out infinite;
}
.hero-screenshot {
    width: 100%;
    max-width: 560px;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.55),
        0 10px 25px rgba(212, 175, 55, 0.10);
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* ============ SCREENSHOT SHOWCASE ============ */
.screenshot-figure {
    margin: 0;
    display: flex;
    justify-content: center;
}
.screenshot-frame {
    width: 100%;
    max-width: 880px;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.55),
        0 10px 25px rgba(212, 175, 55, 0.10);
}

/* Click-to-zoom hint on screenshots */
.hero-screenshot,
.screenshot-frame {
    cursor: zoom-in;
    transition: transform .25s ease, box-shadow .25s ease;
}
.hero-screenshot:hover,
.screenshot-frame:hover {
    transform: translateY(-2px);
    box-shadow:
        0 36px 70px rgba(0, 0, 0, 0.6),
        0 14px 30px rgba(212, 175, 55, 0.18);
}

/* ============ LIGHTBOX ============ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4vh 4vw;
    background: rgba(0, 0, 0, 0.92);
    cursor: zoom-out;
    backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 100%;
    max-height: 92vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    user-select: none;
}
.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .2s ease;
}
.lightbox-close:hover {
    background: rgba(212, 175, 55, 0.25);
    transform: scale(1.05);
}

/* ============ TRUST STRIP ============ */
.trust-strip {
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    padding: 22px 0;
    background: var(--bg-2);
    text-align: center;
}
.trust-strip p {
    margin: 0;
    color: var(--text-dim);
    font-size: .92rem;
    letter-spacing: 0.02em;
}
.trust-strip strong { color: var(--gold); font-weight: 600; }

/* ============ SECTIONS ============ */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 70px;
}
.kicker {
    display: inline-block;
    color: var(--gold);
    font-size: .78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-weight: 600;
}
.section-head p { color: var(--text-dim); font-size: 1.05rem; }

.grid { display: grid; gap: 24px; }
.features-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
    position: relative;
    background: var(--bg-3);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.pro-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 11px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0a0a0c;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    border-radius: 999px;
    box-shadow: 0 4px 14px -4px rgba(212, 175, 55, 0.5);
    white-space: nowrap;
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.6);
}
.card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.04));
    border: 1px solid rgba(212, 175, 55, 0.25);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 22px;
}
.card h3 { color: #f5f3ec; }
.card p { margin: 0; color: var(--text-dim); font-size: .95rem; }

/* ============ PIPELINE ============ */
.pipeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    counter-reset: step;
}
.pipeline li {
    background: var(--bg-3);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.pipeline .step {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: #0a0a0c;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cinzel', serif;
}
.pipeline h4 { margin: 0 0 4px; }
.pipeline p { margin: 0; color: var(--text-dim); font-size: .88rem; }

/* ============ TWO-COL ============ */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.check-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
}
.check-list li {
    padding-left: 32px;
    position: relative;
    margin-bottom: 14px;
    color: var(--text-dim);
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0; top: 0;
    color: var(--gold);
    font-weight: 700;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: .78rem;
}

/* ============ CODE CARD ============ */
.code-card {
    background: #0d0d10;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.code-card-head {
    background: #15151a;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-soft);
    display: flex; align-items: center; gap: 8px;
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.code-title { margin-left: 14px; color: var(--text-mute); font-size: .82rem; font-family: monospace; }
.code-card pre {
    margin: 0;
    padding: 22px 24px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: .85rem;
    line-height: 1.7;
    color: #d8d6cf;
}
.c-com { color: #6b6a64; }
.c-fn  { color: var(--gold-bright); }
.c-str { color: #b6d685; }

/* ============ PRICING ============ */
.pricing-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.price-card {
    background: var(--bg-3);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 38px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.price-card h3 { font-size: 1.4rem; }
.price {
    margin: 16px 0 6px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.price .currency { color: var(--text-dim); font-size: .9rem; }
.price .amount {
    font-family: 'Cinzel', serif;
    font-size: 2.4rem;
    color: #f5f3ec;
    font-weight: 700;
}
.price .period { color: var(--text-mute); font-size: .85rem; }

.price-extra {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}
.price-strike {
    color: var(--text-mute);
    font-size: .85rem;
    text-decoration: line-through;
    text-decoration-color: rgba(212, 175, 55, 0.55);
    text-decoration-thickness: 1.5px;
}
.price-launch-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.18);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.45);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.price-converted {
    font-size: .82rem;
    color: var(--text-mute);
    margin: 0 0 22px;
    min-height: 1.2em;
}
.price-card ul {
    list-style: none;
    padding: 0; margin: 0 0 30px;
    flex-grow: 1;
}
.price-card li {
    padding: 10px 0 10px 26px;
    position: relative;
    border-bottom: 1px dashed var(--line-soft);
    color: var(--text-dim);
    font-size: .92rem;
}
.price-card li:last-child { border-bottom: 0; }
.price-card li::before {
    content: "✓";
    position: absolute; left: 0; top: 10px;
    color: var(--gold);
    font-weight: 700;
}
.price-card-feature {
    border-color: rgba(212, 175, 55, 0.5);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.06), var(--bg-3) 60%);
    box-shadow: 0 30px 60px -30px rgba(212, 175, 55, 0.4);
    transform: scale(1.02);
}
.ribbon {
    position: absolute;
    top: -14px; right: 24px;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: #0a0a0c;
    font-size: .72rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ============ DOWNLOAD ============ */
.download-block {
    text-align: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.06), rgba(212, 175, 55, 0.02));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--radius);
    padding: 70px 40px;
}
.download-block h2 { margin-bottom: 16px; }
.download-block p { color: var(--text-dim); max-width: 60ch; margin: 0 auto 30px; }
.download-block code {
    background: rgba(212, 175, 55, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--gold);
    font-family: monospace;
    font-size: .9em;
}

/* ============ FAQ ============ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
    background: var(--bg-3);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 22px 28px;
    margin-bottom: 14px;
    transition: border-color .2s;
}
.faq details[open] { border-color: rgba(212, 175, 55, 0.35); }
.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: #f5f3ec;
    list-style: none;
    position: relative;
    padding-right: 32px;
    font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 1.4rem;
    transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 16px 0 0; color: var(--text-dim); font-size: .94rem; }
.faq code,
.section-head p code { background: rgba(212, 175, 55, 0.1); padding: 1px 6px; border-radius: 3px; color: var(--gold); font-size: .85em; }

/* ============ CONTACT ============ */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
}
.contact-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
    color: var(--text-dim);
}
.contact-list li strong {
    display: inline-block;
    width: 100px;
    color: var(--gold);
    font-weight: 600;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contact-form {
    background: var(--bg-3);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 36px;
}
.contact-form label {
    display: block;
    margin-bottom: 18px;
}
.contact-form span {
    display: block;
    font-size: .82rem;
    color: var(--gold);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    background: #0d0d10;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 0;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.contact-form textarea { resize: vertical; }

/* ============ FOOTER ============ */
.site-footer {
    background: #050507;
    border-top: 1px solid var(--line-soft);
    padding: 60px 0 30px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-logo { height: 50px; margin-bottom: 18px; }
.footer-links h4 {
    color: var(--gold);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}
.footer-links a {
    display: block;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-size: .9rem;
}
.footer-links a:hover { color: var(--gold); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .hero { padding: 60px 0 80px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-meta { justify-content: center; }
    .lead { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-logo { max-width: 240px; margin: 0 auto; }
    .hero-screenshot { max-width: 100%; margin: 0 auto; }
    .two-col { grid-template-columns: 1fr; gap: 40px; }
    .section { padding: 70px 0; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .price-card-feature { transform: none; }
}

@media (max-width: 720px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: var(--bg-2);
        flex-direction: column;
        padding: 24px;
        gap: 18px;
        border-bottom: 1px solid var(--line-soft);
    }
    .main-nav.open { display: flex; }
    .main-nav .lang-switch { margin-left: 0; align-self: center; }
    .nav-toggle { display: flex; }
    h1 { font-size: 2rem; }
    .footer-inner { grid-template-columns: 1fr; }
    .download-block { padding: 50px 24px; }
}
