/* === PRISMA Website Stylesheet === */
:root {
    --ink: #101413;
    --ink-light: #1a1f1e;
    --paper: #f4f3ed;
    --acid: #e6ff62;
    --acid-dark: #c5db3a;
    --muted: #9da49d;
    --line-dark: rgba(244, 243, 237, 0.14);
    --line-darker: rgba(244, 243, 237, 0.06);
    --display: 'Space Grotesk', sans-serif;
    --body: 'DM Sans', sans-serif;
    --radius: 20px;
    --radius-sm: 12px;
    --max-width: 1200px;
    --nav-height: 82px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 16px);
}

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

a { color: inherit; text-decoration: none; }

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

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    background: var(--acid);
    color: var(--ink);
    padding: 12px 18px;
    font-weight: 700;
    z-index: 1000;
    border-radius: var(--radius-sm);
    transition: top 0.2s;
}

.skip-link:focus { top: 16px; }

/* === Typography === */
.eyebrow, .section-number {
    font: 600 12px/1.4 var(--body);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--acid-dark);
}

h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; }

.section-heading { margin-bottom: 64px; }
.section-heading h2 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
    margin-top: 16px;
    font-weight: 600;
}
.section-heading h2 span { color: var(--acid-dark); }
.section-heading.centered { text-align: center; }

/* === Navigation === */
.navbar {
    height: var(--nav-height);
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(244, 243, 237, 0.88);
    backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(16, 20, 19, 0.08);
    transition: background 0.3s;
}

.nav-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font: 700 20px var(--display);
    letter-spacing: 0.12em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: var(--acid);
    color: var(--ink);
    font: 700 18px var(--display);
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--acid);
    transition: width 0.25s ease;
}

.nav-links a:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font: 600 15px var(--body);
    padding: 14px 26px;
    border-radius: var(--radius-sm);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    border: 1.5px solid transparent;
    cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--acid);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(230, 255, 98, 0.28);
}

.btn-primary:hover { box-shadow: 0 12px 32px rgba(230, 255, 98, 0.38); }

.btn-ghost {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}

.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-lg { padding: 17px 30px; font-size: 16px; }

/* === Hero === */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    animation: float 10s ease-in-out infinite;
}

.orb-1 {
    width: 500px; height: 500px;
    background: var(--acid);
    top: -120px; right: -80px;
    animation-delay: 0s;
}

.orb-2 {
    width: 360px; height: 360px;
    background: #4ecdc4;
    bottom: -80px; left: -60px;
    opacity: 0.22;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -30px); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line-darker) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-darker) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(circle at 70% 30%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 70% 30%, black 0%, transparent 70%);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 100px;
}

.hero-copy .eyebrow { color: var(--acid); margin-bottom: 20px; }

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 1.05;
    font-weight: 600;
    margin-bottom: 28px;
}

.hero h1 em {
    font-style: normal;
    color: var(--acid);
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 560px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-trust {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(244, 243, 237, 0.08);
    border: 1px solid var(--line-dark);
    color: var(--paper);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.pulse {
    width: 8px; height: 8px;
    background: var(--acid);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(230, 255, 98, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 255, 98, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(230, 255, 98, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 255, 98, 0); }
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: linear-gradient(145deg, #1c211f, #0f1312);
    border-radius: 44px;
    padding: 14px;
    box-shadow:
        0 50px 120px rgba(0,0,0,0.55),
        0 0 0 1px rgba(255,255,255,0.06);
    position: relative;
    transform: rotate(-6deg);
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: rotate(-6deg) translateY(0); }
    50% { transform: rotate(-4deg) translateY(-12px); }
}

.phone-notch {
    width: 100px; height: 22px;
    background: #000;
    border-radius: 0 0 14px 14px;
    margin: 0 auto 12px;
}

.phone-screen {
    background: #0a0a0a;
    border-radius: 32px;
    height: calc(100% - 34px);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
}

.chat-bubble {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.45;
    animation: bubbleIn 0.6s ease backwards;
}

.chat-bubble:nth-child(1) { animation-delay: 0.2s; }
.chat-bubble:nth-child(2) { animation-delay: 0.6s; align-self: flex-end; background: var(--acid); color: var(--ink); }
.chat-bubble:nth-child(3) { animation-delay: 1s; }

.bubble-left {
    align-self: flex-start;
    background: rgba(255,255,255,0.08);
    color: var(--paper);
}

.bubble-right {
    align-self: flex-end;
    background: var(--acid);
    color: var(--ink);
}

.chat-bubble.accent {
    border: 1px solid rgba(230,255,98,0.35);
    color: var(--acid);
    background: rgba(230,255,98,0.08);
}

@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-index {
    position: absolute;
    right: 40px;
    bottom: 40px;
    font: 600 13px var(--display);
    letter-spacing: 0.15em;
    color: rgba(244,243,237,0.35);
}

/* === Sections === */
section {
    padding: 110px 0;
}

.features { background: var(--paper); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: #fff;
    border: 1px solid rgba(16,20,19,0.08);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(16,20,19,0.08);
}

.feature-card.large { grid-column: span 2; }

.feature-icon {
    width: 48px; height: 48px;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: var(--acid);
    border-radius: 12px;
    font-size: 22px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.feature-card p { color: #4b524b; }

/* === Extensions === */
.extensions { background: var(--ink); color: var(--paper); }
.extensions .section-heading h2 span { color: var(--acid); }
.extensions .section-number { color: var(--acid); }

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

.extension-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.25s, border-color 0.25s;
}

.extension-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230,255,98,0.35);
}

.ext-header { display: flex; gap: 16px; align-items: center; }

.ext-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font: 700 22px var(--display);
    background: var(--ext-color, var(--acid));
    color: var(--ink);
    flex-shrink: 0;
}

.ext-meta h3 { font-size: 1.2rem; margin-bottom: 4px; }

.ext-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.extension-card p { color: var(--muted); font-size: 15px; flex: 1; }

.ext-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--acid);
    font-weight: 700;
    font-size: 14px;
    margin-top: auto;
}

.ext-link::after {
    content: '→';
    transition: transform 0.2s;
}

.ext-link:hover::after { transform: translateX(4px); }

/* === How it works === */
.how-it-works { background: #f0efe9; }

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 28px;
    border: 1px solid rgba(16,20,19,0.06);
    position: relative;
}

.step-no {
    font: 700 52px var(--display);
    color: var(--acid-dark);
    opacity: 0.45;
    line-height: 1;
    margin-bottom: 18px;
    display: block;
}

.step h3 { font-size: 1.25rem; margin-bottom: 12px; }
.step p { color: #4b524b; font-size: 15px; }

/* === Security === */
.security { background: var(--paper); }

.security-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}

.security h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 20px; }
.security p { color: #4b524b; margin-bottom: 28px; max-width: 560px; }

.security-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.security-list li {
    padding-left: 32px;
    position: relative;
    font-weight: 500;
}

.security-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    background: var(--acid);
    color: var(--ink);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.security-card {
    background: var(--ink);
    border-radius: var(--radius);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--paper);
    box-shadow: 0 32px 64px rgba(0,0,0,0.18);
}

.shield {
    width: 110px; height: 110px;
    border-radius: 50%;
    background: rgba(230,255,98,0.12);
    color: var(--acid);
    display: grid;
    place-items: center;
    animation: pulse 3s infinite;
}

.shield-label {
    font: 600 14px var(--display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* === Download === */
.download { background: var(--ink); color: var(--paper); }
.download .section-number { color: var(--acid); }

.download-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.download-info h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 20px; }
.download-info h2 span { color: var(--acid); }
.download-info p { color: var(--muted); margin-bottom: 24px; max-width: 480px; }

.download-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.dot { color: var(--acid); }

.download-panel {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    padding: 34px;
}

.download-top {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 28px;
}

.app-symbol {
    width: 64px; height: 64px;
    background: var(--acid);
    color: var(--ink);
    border-radius: 16px;
    display: grid;
    place-items: center;
    font: 700 30px var(--display);
}

.download-top .eyebrow { color: var(--acid); margin-bottom: 6px; }
.download-top h3 { font-size: 1.5rem; margin-bottom: 4px; }
.file-info { color: var(--muted); font-size: 14px; }

.download-button {
    width: 100%;
    margin-bottom: 16px;
}

.download-footnote {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

/* === Announcements === */
.announcements { background: #f0efe9; }

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

.news-card {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 26px;
    border: 1px solid rgba(16,20,19,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(16,20,19,0.06);
}

.news-tag {
    display: inline-block;
    background: var(--acid);
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.news-date {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.news-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.news-card p { color: #4b524b; font-size: 14px; }

.loading-news, .no-news {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    padding: 40px;
}

/* === Footer === */
.footer {
    background: var(--ink);
    color: var(--paper);
    padding: 60px 0 30px;
    border-top: 1px solid var(--line-dark);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-brand p { color: var(--muted); margin-top: 8px; font-size: 14px; }

.footer-links {
    display: flex;
    gap: 28px;
    font-size: 14px;
    font-weight: 600;
}

.footer-links a { color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--acid); }

.copyright {
    color: rgba(244,243,237,0.35);
    font-size: 13px;
    margin-top: 8px;
}

/* === Responsive === */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-visual { display: none; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card.large { grid-column: span 1; }
    .steps { grid-template-columns: 1fr; }
    .security-layout, .download-layout { grid-template-columns: 1fr; }
    .security-card { order: -1; padding: 40px 24px; }
}

@media (max-width: 720px) {
    .nav-links {
        position: fixed;
        inset: var(--nav-height) 0 auto 0;
        background: rgba(244,243,237,0.97);
        backdrop-filter: blur(18px);
        flex-direction: column;
        gap: 0;
        padding: 16px 24px;
        border-bottom: 1px solid rgba(16,20,19,0.08);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.3s, opacity 0.3s;
        pointer-events: none;
    }

    .nav-links.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        padding: 14px 0;
        width: 100%;
        border-bottom: 1px solid rgba(16,20,19,0.06);
    }

    .nav-links a:last-child { border-bottom: none; }
    .nav-toggle { display: flex; }

    section { padding: 80px 0; }
    .extensions-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
}
