/* ──────────────────────────────────────────
   Lens Browser — style.css
   Aesthetic: Dark-tech editorial, mono grid
   ────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,400;0,500;1,400&family=Syne:wght@700;800;900&family=DM+Sans:wght@300;400;500&display=swap');

/* ── TOKENS ── */
:root {
    --ink: #0c0c12;
    --paper: #f3f1ea;
    --mid: #e6e3d8;
    --accent: #c8ff00;
    --accent2: #00c2b3;
    --dim: #6b6b78;
    --border: rgba(12, 12, 18, .10);
    --card-bg: rgba(255, 255, 255, .72);
    --glass: rgba(243, 241, 234, .82);
    --shadow-sm: 0 2px 8px rgba(12, 12, 18, .08);
    --shadow-md: 0 8px 32px rgba(12, 12, 18, .12);
    --radius: 10px;
}

/* ── RESET ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── NOISE OVERLAY ── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* ── TYPOGRAPHY ── */
h1,
h2,
h3,
h4 {
    font-family: 'Syne', sans-serif;
    line-height: 1;
    letter-spacing: -0.03em;
}

p {
    line-height: 1.65;
}

a {
    color: inherit;
}

code,
.mono {
    font-family: 'DM Mono', monospace;
}

/* ── UTILITIES ── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-family: 'DM Mono', monospace;
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--dim);
    background: white;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .28rem .85rem;
}

.tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4caf50;
    animation: blink 2.4s infinite;
}

/* ── ANIMATIONS ── */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes scanline {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(400%);
    }
}

.anim-1 {
    animation: fadeUp .7s .05s ease both;
}

.anim-2 {
    animation: fadeUp .7s .15s ease both;
}

.anim-3 {
    animation: fadeUp .7s .25s ease both;
}

.anim-4 {
    animation: fadeUp .7s .35s ease both;
}

.anim-5 {
    animation: fadeUp .7s .45s ease both;
}

/* ──────────────────────────────────────────
   NAV
   ────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2.5rem;
    backdrop-filter: blur(14px) saturate(1.4);
    background: var(--glass);
    border-bottom: 1px solid var(--border);
    z-index: 200;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -.03em;
    text-decoration: none;
    color: var(--ink);
}

.nav-logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ink);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.nav-logo-mark svg {
    width: 15px;
    height: 15px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-family: 'DM Mono', monospace;
    font-size: .75rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--dim);
    text-decoration: none;
    transition: color .18s;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-dl {
    background: var(--ink) !important;
    color: var(--accent) !important;
    padding: .45rem 1.1rem !important;
    border-radius: 5px !important;
    transition: opacity .18s !important;
}

.nav-dl:hover {
    opacity: .85;
}

/* ──────────────────────────────────────────
   HERO
   ────────────────────────────────────────── */
.hero {
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 8rem 2rem 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-h1 {
    font-size: clamp(2.8rem, 5.5vw, 5.2rem);
    font-weight: 900;
    line-height: .93;
}

.hero-h1 em {
    font-style: normal;
    color: transparent;
    -webkit-text-stroke: 2px var(--ink);
}

.hero-sub {
    font-size: 1rem;
    font-weight: 300;
    color: var(--dim);
    max-width: 400px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--ink);
    color: var(--accent);
    font-family: 'DM Mono', monospace;
    font-size: .78rem;
    font-weight: 500;
    padding: .8rem 1.6rem;
    border-radius: 6px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 3px 3px 0 rgba(12, 12, 18, .2);
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 rgba(12, 12, 18, .25);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: var(--ink);
    font-family: 'DM Mono', monospace;
    font-size: .78rem;
    font-weight: 500;
    padding: .8rem 1.6rem;
    border-radius: 6px;
    text-decoration: none;
    border: 1.5px solid var(--border);
    transition: border-color .18s, background .18s;
}

.btn-ghost:hover {
    border-color: var(--ink);
    background: rgba(12, 12, 18, .04);
}

.hero-meta {
    display: flex;
    gap: 1.5rem;
    font-family: 'DM Mono', monospace;
    font-size: .72rem;
    color: var(--dim);
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.hero-meta svg {
    width: 12px;
    height: 12px;
    opacity: .5;
}

/* ── PHONE MOCKUP ── */
.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-wrap {
    position: relative;
    animation: float 5s ease-in-out infinite;
}

.phone-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(ellipse, rgba(200, 255, 0, .18) 0%, transparent 70%);
    pointer-events: none;
}

.phone {
    width: 220px;
    background: var(--ink);
    border-radius: 40px;
    padding: 14px 10px 18px;
    box-shadow:
        0 40px 100px rgba(12, 12, 18, .3),
        0 0 0 1px rgba(255, 255, 255, .06),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    position: relative;
}

.phone-camera {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1e1e30;
    border: 2px solid #2a2a42;
    margin: 0 auto 10px;
}

.phone-screen {
    background: #f7f6f2;
    border-radius: 28px;
    overflow: hidden;
    height: 390px;
    display: flex;
    flex-direction: column;
}

.phone-topbar {
    background: white;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.phone-shield {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.phone-url-pill {
    flex: 1;
    background: #f0f0ee;
    border-radius: 6px;
    height: 20px;
    display: flex;
    align-items: center;
    padding: 0 7px;
    font-family: 'DM Mono', monospace;
    font-size: 6.5px;
    color: #999;
    overflow: hidden;
    white-space: nowrap;
}

.phone-body {
    flex: 1;
    padding: 10px 10px 6px;
    overflow: hidden;
}

.phone-blocked-badge {
    background: #fff3cd;
    border: 1px solid #ffe08a;
    border-radius: 5px;
    padding: 5px 8px;
    font-size: 6.5px;
    font-family: 'DM Mono', monospace;
    color: #7a5c00;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.phone-skeleton {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.phone-skel {
    height: 8px;
    border-radius: 4px;
    background: #e8e8e4;
}

.phone-skel.w90 {
    width: 90%;
}

.phone-skel.w70 {
    width: 70%;
}

.phone-skel.w80 {
    width: 80%;
}

.phone-skel.w50 {
    width: 50%;
}

.phone-img-skel {
    height: 100px;
    background: #e0e0db;
    border-radius: 8px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.phone-img-skel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    opacity: .8;
    animation: scanline 2s linear infinite;
}

.phone-bottombar {
    background: white;
    border-top: 1px solid #eee;
    padding: 7px 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-shrink: 0;
}

.pbb-btn {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #f0f0ee;
    display: grid;
    place-items: center;
}

.pbb-btn svg {
    width: 10px;
    height: 10px;
}

.pbb-home {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--ink);
    display: grid;
    place-items: center;
}

.pbb-home svg {
    width: 12px;
    height: 12px;
}

/* ──────────────────────────────────────────
   STATS BAR
   ────────────────────────────────────────── */
.statsbar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
}

.statsbar-inner {
    display: flex;
    white-space: nowrap;
    animation: ticker 18s linear infinite;
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.stats-item {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    font-family: 'DM Mono', monospace;
    font-size: .75rem;
    border-right: 1px solid rgba(243, 241, 234, .08);
    flex-shrink: 0;
}

.stats-item strong {
    color: var(--accent);
    font-size: 1.05rem;
}

.stats-sep {
    color: rgba(243, 241, 234, .2);
}

/* ──────────────────────────────────────────
   FEATURES
   ────────────────────────────────────────── */
.features {
    padding: 6rem 0;
}

.section-label {
    font-family: 'DM Mono', monospace;
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 1rem;
}

.section-h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 3.5rem;
    max-width: 520px;
}

.section-h2 em {
    font-style: normal;
    color: var(--dim);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.feat-card {
    background: var(--card-bg);
    padding: 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: background .2s;
    backdrop-filter: blur(6px);
}

.feat-card:hover {
    background: white;
}

.feat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--ink);
    display: grid;
    place-items: center;
}

.feat-icon svg {
    width: 20px;
    height: 20px;
}

.feat-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.feat-card p {
    font-size: .88rem;
    color: var(--dim);
    line-height: 1.6;
}

.feat-card .feat-badge {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: .65rem;
    letter-spacing: .08em;
    background: var(--mid);
    color: var(--dim);
    padding: .15rem .5rem;
    border-radius: 4px;
    text-transform: uppercase;
    margin-top: auto;
}

.feat-card.hero-feat {
    grid-column: span 2;
    background: var(--ink);
    color: var(--paper);
}

.feat-card.hero-feat p {
    color: rgba(243, 241, 234, .55);
}

.feat-card.hero-feat .feat-icon {
    background: var(--accent);
}

.feat-card.hero-feat .feat-icon svg path,
.feat-card.hero-feat .feat-icon svg rect,
.feat-card.hero-feat .feat-icon svg circle {
    fill: var(--ink) !important;
}

.feat-card.hero-feat h3 {
    font-size: 1.3rem;
}

.feat-card.hero-feat .feat-badge {
    background: rgba(200, 255, 0, .15);
    color: var(--accent);
}

/* ──────────────────────────────────────────
   CHANGELOG / VERSIONS
   ────────────────────────────────────────── */
.changelog {
    padding: 6rem 0;
    background: var(--ink);
    color: var(--paper);
}

.changelog .section-label {
    color: rgba(243, 241, 234, .35);
}

.changelog .section-h2 {
    color: var(--paper);
}

.changelog .section-h2 em {
    color: rgba(243, 241, 234, .35);
}

.versions {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.version-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    border-top: 1px solid rgba(243, 241, 234, .08);
    padding: 2rem 0;
    position: relative;
}

.version-row:last-child {
    border-bottom: 1px solid rgba(243, 241, 234, .08);
}

.version-num {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: rgba(243, 241, 234, .18);
    letter-spacing: -.04em;
    line-height: 1;
    transition: color .2s;
}

.version-row:hover .version-num {
    color: var(--accent);
}

.version-tag {
    font-family: 'DM Mono', monospace;
    font-size: .65rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-top: .3rem;
}

.version-content {}

.version-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.version-items li {
    font-size: .9rem;
    color: rgba(243, 241, 234, .7);
    display: flex;
    align-items: baseline;
    gap: .75rem;
    line-height: 1.5;
}

.item-type {
    font-family: 'DM Mono', monospace;
    font-size: .62rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .1rem .45rem;
    border-radius: 3px;
    flex-shrink: 0;
}

.type-add {
    background: rgba(200, 255, 0, .12);
    color: var(--accent);
}

.type-fix {
    background: rgba(0, 194, 179, .12);
    color: var(--accent2);
}

.type-upd {
    background: rgba(255, 200, 80, .12);
    color: #ffc850;
}

/* ──────────────────────────────────────────
   LANGUAGES / I18N
   ────────────────────────────────────────── */
.langs {
    padding: 6rem 0;
}

.langs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 2.5rem;
}

.lang-chip {
    font-family: 'DM Mono', monospace;
    font-size: .75rem;
    padding: .45rem 1rem;
    border-radius: 999px;
    background: white;
    border: 1px solid var(--border);
    color: var(--dim);
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: border-color .18s, color .18s;
}

.lang-chip:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.lang-flag {
    font-size: .95rem;
}

/* ──────────────────────────────────────────
   TECH STACK
   ────────────────────────────────────────── */
.techstack {
    padding: 6rem 0;
    background: var(--mid);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 3rem;
}

.tech-card {
    background: var(--paper);
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    transition: background .18s;
}

.tech-card:hover {
    background: white;
}

.tech-card h4 {
    font-size: .9rem;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
}

.tech-card p {
    font-size: .78rem;
    color: var(--dim);
}

.tech-badge {
    font-family: 'DM Mono', monospace;
    font-size: .62rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--ink);
    color: var(--accent);
    padding: .18rem .5rem;
    border-radius: 3px;
}

/* ──────────────────────────────────────────
   CTA
   ────────────────────────────────────────── */
.cta-section {
    padding: 6rem 2rem;
    text-align: center;
    background: var(--ink);
    color: var(--paper);
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(200, 255, 0, .07) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    max-width: 600px;
    margin: 0 auto 1.2rem;
}

.cta-section p {
    color: rgba(243, 241, 234, .5);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.cta-section .btn-primary {
    font-size: .85rem;
    padding: 1rem 2.2rem;
}

.cta-note {
    margin-top: 1.2rem;
    font-family: 'DM Mono', monospace;
    font-size: .7rem;
    color: rgba(243, 241, 234, .28);
    letter-spacing: .05em;
}

/* ──────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────── */
footer {
    background: #080810;
    color: rgba(243, 241, 234, .35);
    padding: 2.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: .95rem;
    color: rgba(243, 241, 234, .6);
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    font-family: 'DM Mono', monospace;
    font-size: .7rem;
    color: rgba(243, 241, 234, .3);
    text-decoration: none;
    transition: color .18s;
    letter-spacing: .05em;
}

.footer-links a:hover {
    color: rgba(243, 241, 234, .7);
}

.footer-copy {
    font-family: 'DM Mono', monospace;
    font-size: .68rem;
    letter-spacing: .04em;
    width: 100%;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(243, 241, 234, .05);
    margin-top: .5rem;
}

/* ──────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 7rem;
    }

    .hero-right {
        order: -1;
    }

    .hero-sub {
        margin: 0 auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-meta {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feat-card.hero-feat {
        grid-column: span 2;
    }

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

    .version-row {
        grid-template-columns: 90px 1fr;
    }
}

@media (max-width: 600px) {
    .nav {
        padding: 1rem 1.25rem;
    }

    .nav-links {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feat-card.hero-feat {
        grid-column: span 1;
    }

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

    .version-row {
        grid-template-columns: 1fr;
        gap: .5rem;
    }

    .version-num {
        font-size: 1.2rem;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
    }
}