/* ============================================================================
   Pentest Assessment Tool, product site styles
   Dark-first, monospace accents, inspired by the app itself.
   ============================================================================ */

:root {
    --bg: #0a0a0f;
    --bg-alt: #11111a;
    --card: #18182a;
    --card-hover: #1f1f32;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f1f5f9;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    --accent: #6366f1;
    --accent-2: #8b5cf6;
    --accent-grad: linear-gradient(135deg, #6366f1, #8b5cf6);
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent-2); }

code {
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.55;
}

pre code {
    background: none;
    padding: 0;
    color: var(--text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.muted { color: var(--text-muted); }
.small { font-size: 0.85rem; }

/* ==================== HEADER ==================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.brand-logo {
    height: 36px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 12px rgba(99, 146, 241, 0.25));
}

.brand-name {
    font-size: 0.95rem;
    color: var(--text-dim);
}

@media (max-width: 560px) {
    .brand-name { display: none; }
}

.site-nav {
    display: flex;
    gap: 28px;
    align-items: center;
    font-size: 0.9rem;
}

.site-nav a { color: var(--text-dim); transition: color 0.15s; }
.site-nav a:hover { color: var(--text); }

.nav-cta {
    padding: 7px 16px;
    border-radius: 7px;
    background: var(--accent-grad);
    color: white !important;
    font-weight: 500;
}

/* ==================== BUTTONS ==================== */

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-grad);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(99, 102, 241, 0.5);
    color: white;
}

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

.btn-ghost:hover {
    background: var(--card);
    color: var(--text);
}

/* ==================== HERO ==================== */

.hero {
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(closest-side, rgba(99, 102, 241, 0.15), transparent);
    z-index: 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-logo {
    display: block;
    height: 64px;
    width: auto;
    margin: 0 0 20px 0;
    filter: drop-shadow(0 0 30px rgba(99, 146, 241, 0.35));
}

.hero-badge,
.access-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--warning);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-family: var(--font-mono);
    margin-bottom: 16px;
    width: fit-content;
}

.access-tag {
    margin: 0 auto 12px auto;
}

.badge-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--warning);
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.7);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.download-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 0 24px 0;
}

.access-note {
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-2);
    margin: 0 0 20px 0;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin: 0 0 20px 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lede {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin: 0 0 32px 0;
    max-width: 520px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-stats li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stats strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    font-family: var(--font-mono);
}

.hero-stats span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

.hero-shot {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    background: var(--card);
    min-height: 360px;
}

.hero-shot img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-shot .hero-shot-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.hero-shot:not(.no-shot) .hero-shot-placeholder { display: none; }

/* ==================== SECTIONS ==================== */

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section h2 {
    font-size: 2rem;
    margin: 0 0 12px 0;
}

.section-lede {
    color: var(--text-dim);
    max-width: 720px;
    margin: 0 0 40px 0;
}

/* ==================== FEATURE GRID ==================== */

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

.feature-card {
    padding: 28px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
    background: var(--card-hover);
}

.feature-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.15rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* ==================== ASSESSMENT TYPES ==================== */

.assessment-types {
    margin-top: 48px;
    padding: 32px 32px 28px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.06), rgba(139, 92, 246, 0.03));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius);
}

.assessment-types h3 {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
}

.assessment-types-lede {
    margin: 0 0 20px 0;
    color: var(--text-dim);
    font-size: 0.9rem;
    max-width: 720px;
}

.assessment-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.assessment-pills li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text);
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.assessment-pills li:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.pill-icon {
    font-size: 1rem;
    filter: saturate(0.9);
}

/* ==================== GALLERY ==================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.15s, border-color 0.15s;
}

.gallery-item:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
}

.gallery-item img {
    width: 100%;
    display: block;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    min-height: 180px;
}

.gallery-item.no-shot {
    position: relative;
}

.gallery-item.no-shot img { display: none; }

.gallery-item.no-shot::before {
    content: "Screenshot pending";
    display: block;
    height: 220px;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.02) 0 8px,
        rgba(255, 255, 255, 0.04) 8px 16px
    );
    border-bottom: 1px solid var(--border);
    text-align: center;
    line-height: 220px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.gallery-caption {
    padding: 16px 20px;
}

.gallery-caption h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
}

.gallery-caption p {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ==================== SETUP ==================== */

.setup-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* ==================== DOWNLOAD ==================== */

.download-panel {
    text-align: center;
    padding: 50px 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--card), var(--bg-alt));
}

.download-panel h2 { margin-top: 0; }

.download-panel p {
    max-width: 560px;
    margin: 0 auto 24px auto;
    color: var(--text-dim);
}

/* ==================== FOOTER ==================== */

.site-footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-inner p { margin: 0 0 6px 0; }

/* ==================== LIGHTBOX ==================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(5, 5, 10, 0.92);
    backdrop-filter: blur(6px);
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: center;
    justify-items: center;
    padding: 32px;
    overflow: hidden;
    animation: lbFade 0.18s ease-out;
}

.lightbox[hidden] { display: none; }

/* Zoomed mode: the whole lightbox scrolls and content flows from the top */
.lightbox.is-zoomed {
    overflow: auto;
    align-items: start;
    justify-items: start;
    padding: 0;
    overscroll-behavior: contain;
}

@keyframes lbFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-frame {
    margin: 0;
    max-width: min(1800px, 95vw);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.lightbox.is-zoomed .lightbox-frame {
    max-width: none;
    max-height: none;
    padding: 40px 40px 80px;
    align-items: flex-start;
    min-width: 100vw;
}

.lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 160px);
    width: auto;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(99, 102, 241, 0.2);
    background: var(--bg);
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.15s ease;
    user-select: none;
}

.lightbox-image.is-zoomed {
    cursor: grab;
    max-width: none;
    max-height: none;
    border-radius: 4px;
}

.lightbox-image.is-grabbing {
    cursor: grabbing;
}

.lightbox-caption {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 16px;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.lightbox-counter {
    font-family: var(--font-mono);
    color: var(--accent-2);
    font-weight: 600;
}

.lightbox-title {
    color: var(--text);
    font-weight: 500;
}

.lightbox-hint {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.lightbox-close,
.lightbox-nav {
    position: fixed;
    background: rgba(18, 18, 28, 0.85);
    backdrop-filter: blur(4px);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.15s, border-color 0.15s;
    font-family: inherit;
    user-select: none;
    z-index: 10;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    line-height: 1;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 64px;
    font-size: 2rem;
    line-height: 1;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.gallery-item img,
.hero-shot img {
    cursor: zoom-in;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 880px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 2.2rem; }
    .site-nav { display: none; }
    .section { padding: 60px 0; }
    .lightbox-nav { width: 40px; height: 56px; font-size: 1.5rem; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 1.3rem; }
    .lightbox-hint { display: none; }
}
