/*
 * Global styles for the Incognito Reopen & History marketing site.
 * Theme: cool near-black slate background with an indigo -> violet accent,
 * echoing the extension's incognito (private) feel. Fresh, not borrowed.
 */

:root {
    --bg: #0e1016;
    --bg-elevated: #161a23;
    --bg-card: #1b2030;
    --border: #2a3142;
    --text: #e8eaf2;
    --text-muted: #aab1c5;
    --text-dim: #7e879d;
    --accent: #8b7cf6;
    --accent-strong: #6f5cf0;
    --accent-soft: rgba(139, 124, 246, 0.14);
    --slate: #9aa3b0;
    --max-width: 1180px;
    --radius: 14px;

    font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(1100px 520px at 50% -120px, rgba(139, 124, 246, 0.22), transparent 70%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a:hover {
    text-decoration: underline;
}

img,
video {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3 {
    line-height: 1.15;
    margin: 0;
}

/* ---------- Header ---------- */

.header {
    max-width: var(--max-width);
    margin: auto;
    padding: 28px 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-brand:hover {
    text-decoration: none;
}

.header-logo {
    width: 44px;
    height: 44px;
    flex: none;
}

.header-name {
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-tab {
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 15px;
}

.nav-tab:hover {
    color: var(--text);
    background: var(--accent-soft);
    text-decoration: none;
}

.nav-tab_active {
    color: var(--text);
    background: var(--accent-soft);
}

.nav-cta {
    color: #fff;
    background: var(--accent-strong);
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
}

.nav-cta:hover {
    background: var(--accent);
    text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
    max-width: var(--max-width);
    margin: auto;
    padding: 60px 20px 30px;
    display: grid;
    gap: 50px;
    align-items: center;
}

@media (min-width: 900px) {
    .hero {
        grid-template-columns: 1.05fr 0.95fr;
        padding-top: 80px;
    }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 22px;
}

.hero-title {
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-title .accent {
    color: var(--accent);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 19px;
    margin: 22px 0 30px;
    max-width: 36ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
}

.hero-visual {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(160deg, var(--bg-elevated), var(--bg-card));
    padding: 18px;
    box-shadow: 0 30px 80px -40px rgba(111, 92, 240, 0.55);
}

.hero-visual img,
.feature-media img,
.shot-panel img {
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.65);
}

/* Landscape shots (e.g. the auto-delete controls) can sit a little wider. */
.hero-visual img.shot-wide,
.feature-media img.shot-wide,
.shot-panel img.shot-wide {
    max-width: 460px;
}

/* ---------- Call to action button ---------- */

.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-strong);
    color: #fff;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 17px;
    box-shadow: 0 12px 30px -12px rgba(111, 92, 240, 0.9);
}

.cta:hover {
    background: var(--accent);
    text-decoration: none;
    transform: translateY(-1px);
}

.cta svg {
    width: 22px;
    height: 22px;
}

.cta-sub {
    font-weight: 500;
    opacity: 0.85;
    font-size: 15px;
}

/* ---------- Rating ---------- */

.rating {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 15px;
}

.rating-stars {
    display: inline-flex;
    gap: 2px;
    color: #f5b94a;
}

/* ---------- Content / features ---------- */

.content {
    max-width: var(--max-width);
    margin: auto;
    padding: 40px 20px;
}

.section-heading {
    text-align: center;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 60px auto 12px;
    max-width: 22ch;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    max-width: 56ch;
    margin: 0 auto 10px;
}

.feature {
    display: grid;
    gap: 32px;
    align-items: center;
    padding: 44px 0;
}

@media (min-width: 860px) {
    .feature {
        grid-template-columns: 1fr 1fr;
    }

    .feature.flipped .feature-media {
        order: -1;
    }
}

.feature-heading {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 18px;
    margin: 0 0 16px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 12px;
}

.feature-list li {
    position: relative;
    padding-left: 32px;
    color: var(--text-muted);
    font-size: 16px;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--accent-soft);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b7cf6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 13px;
}

.feature-media {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(160deg, var(--bg-elevated), var(--bg-card));
    padding: 14px;
}

kbd {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 6px;
    padding: 2px 8px;
    font-family: inherit;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text);
}

/* Keep a keyboard shortcut (e.g. Ctrl+Shift+T) on one line; only break between combos. */
.keys {
    white-space: nowrap;
}

.inline-cta {
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    margin: 22px auto 0;
    max-width: 60ch;
}

/* Privacy band */

.band {
    background: linear-gradient(160deg, rgba(139, 124, 246, 0.12), rgba(111, 92, 240, 0.04));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 60px;
}

.band-inner {
    max-width: var(--max-width);
    margin: auto;
    padding: 64px 20px;
    text-align: center;
}

.band-inner p {
    color: var(--text-muted);
    font-size: 19px;
    max-width: 60ch;
    margin: 16px auto 0;
}

/* Closing CTA */

.closing {
    text-align: center;
    padding: 80px 20px 40px;
}

.closing h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 26px;
}

.closing .hero-actions {
    justify-content: center;
}

/* ---------- Footer ---------- */

.footer {
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: auto;
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 15px;
}

.footer-brand img {
    width: 30px;
    height: 30px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--text);
}

/* ---------- Dividers ---------- */

.divider {
    height: 1px;
    max-width: var(--max-width);
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ---------- Screenshot panels ---------- */

/* Gradient backdrop the popup screenshots float on inside blog articles. The
   homepage reuses .hero-visual / .feature-media for the same effect. */
.shot-panel {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(160deg, var(--bg-elevated), var(--bg-card));
    padding: 22px;
    margin: 28px auto;
    display: flex;
    justify-content: center;
}
