/* ============================================
   Flameshot Official Website
   Stylesheet - Flat, Modern, Professional
   Color palette derived from Flameshot logo
   ============================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
    /* Brand palette (from logo) */
    --color-primary: #8800aa;
    --color-primary-dark: #6a0088;
    --color-primary-light: #b34dcc;
    --color-pink: #ff0066;
    --color-orange: #ff6600;
    --color-gold: #ffcc00;

    /* Neutrals */
    --color-bg: #ffffff;
    --color-bg-alt: #f8f6fb;
    --color-bg-dark: #1a0a2e;
    --color-bg-dark-alt: #2d1244;
    --color-surface: #ffffff;
    --color-border: #e8e4ef;
    --color-text: #1a0a2e;
    --color-text-soft: #4a4a68;
    --color-text-muted: #8888a0;
    --color-text-inverse: #ffffff;
    --color-text-inverse-soft: rgba(255, 255, 255, 0.78);

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #8800aa 0%, #ff0066 100%);
    --gradient-flame: linear-gradient(135deg, #ffcc00 0%, #ff6600 50%, #ff0066 100%);
    --gradient-hero: linear-gradient(135deg, #1a0a2e 0%, #2d1244 50%, #4a0066 100%);

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Roboto, sans-serif;
    --font-mono: "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --space-3xl: 96px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    /* Shadow */
    --shadow-sm: 0 1px 2px rgba(26, 10, 46, 0.05);
    --shadow-md: 0 4px 12px rgba(26, 10, 46, 0.08);
    --shadow-lg: 0 12px 32px rgba(26, 10, 46, 0.12);
    --shadow-brand: 0 8px 24px rgba(136, 0, 170, 0.25);

    /* Layout */
    --container-max: 1200px;
    --header-height: 68px;

    /* Transition */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--color-pink);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { color: var(--color-text-soft); }

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

.section {
    padding: var(--space-3xl) 0;
}

.section--tight {
    padding: var(--space-2xl) 0;
}

.section--alt {
    background-color: var(--color-bg-alt);
}

.section--dark {
    background: var(--gradient-hero);
    color: var(--color-text-inverse);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--color-text-inverse);
}

.section--dark p {
    color: var(--color-text-inverse-soft);
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto var(--space-2xl);
}

.section-header .eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(136, 0, 170, 0.1);
    color: var(--color-primary);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.section--dark .section-header .eyebrow {
    background: rgba(255, 204, 0, 0.15);
    color: var(--color-gold);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header .lead {
    font-size: 1.1rem;
    color: var(--color-text-soft);
}

.section--dark .section-header .lead {
    color: var(--color-text-inverse-soft);
}

/* ---------- 4. Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.2;
    text-decoration: none;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn--primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(136, 0, 170, 0.35);
}

.btn--flame {
    background: var(--gradient-flame);
    color: #fff;
    box-shadow: 0 8px 24px rgba(255, 102, 0, 0.3);
}

.btn--flame:hover {
    color: #fff;
    transform: translateY(-2px);
}

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

.btn--ghost:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(136, 0, 170, 0.04);
}

.btn--light {
    background: #fff;
    color: var(--color-text);
}

.btn--light:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn--block {
    width: 100%;
}

/* ---------- 5. Header / Navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.nav {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text);
}

.brand:hover {
    color: var(--color-text);
}

.brand-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

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

.nav-links a {
    color: var(--color-text-soft);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: 2px;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* ---------- 6. Hero ---------- */
.hero {
    background: var(--gradient-hero);
    color: var(--color-text-inverse);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 102, 0.25), transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -300px;
    left: -200px;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.18), transparent 60%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    color: #fff;
    margin-bottom: 20px;
}

.hero-content h1 .accent {
    background: var(--gradient-flame);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-content .lead {
    font-size: 1.2rem;
    color: var(--color-text-inverse-soft);
    margin-bottom: 32px;
    max-width: 540px;
}

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

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat .num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-gold);
    line-height: 1;
}

.hero-stat .label {
    font-size: 0.85rem;
    color: var(--color-text-inverse-soft);
    margin-top: 6px;
}

.hero-visual {
    position: relative;
}

.hero-mockup {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
    transition: transform var(--transition);
}

.hero-mockup:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.hero-mockup img {
    width: 100%;
    border-radius: var(--radius-md);
}

.hero-mockup-bar {
    display: flex;
    gap: 6px;
    padding: 0 4px 12px;
}

.hero-mockup-bar span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
}

.hero-mockup-bar span:nth-child(1) { background: #ff5f56; }
.hero-mockup-bar span:nth-child(2) { background: #ffbd2e; }
.hero-mockup-bar span:nth-child(3) { background: #27c93f; }

/* ---------- 7. Cards / Grid ---------- */
.grid {
    display: grid;
    gap: var(--space-lg);
}

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

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition);
    height: 100%;
}

.card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: #fff;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card-icon--purple { background: linear-gradient(135deg, #8800aa, #b34dcc); }
.card-icon--pink { background: linear-gradient(135deg, #ff0066, #ff4d8f); }
.card-icon--orange { background: linear-gradient(135deg, #ff6600, #ff944d); }
.card-icon--gold { background: linear-gradient(135deg, #ffcc00, #ffd633); }

.card h3 {
    margin-bottom: var(--space-sm);
}

.card p {
    font-size: 0.95rem;
}

/* Feature card with extra body */
.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-card-visual {
    height: 200px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.feature-card-visual svg {
    width: 80px;
    height: 80px;
    color: rgba(255, 255, 255, 0.9);
}

.feature-card-body {
    padding: var(--space-xl);
}

.feature-card-body h3 {
    margin-bottom: var(--space-sm);
}

.feature-card-body .tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(136, 0, 170, 0.08);
    color: var(--color-primary);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

/* ---------- 8. Use Cases ---------- */
.usecase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    margin-bottom: var(--space-3xl);
}

.usecase:nth-child(even) .usecase-content {
    order: 2;
}

.usecase:last-child {
    margin-bottom: 0;
}

.usecase-visual {
    height: 320px;
    border-radius: var(--radius-lg);
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.usecase-visual svg {
    width: 100px;
    height: 100px;
    color: rgba(255, 255, 255, 0.95);
    z-index: 1;
}

.usecase-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
}

.usecase-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.15), transparent 50%);
}

.usecase h3 {
    margin-bottom: var(--space-md);
    font-size: 1.8rem;
}

.usecase .lead {
    font-size: 1.05rem;
    margin-bottom: var(--space-lg);
}

.usecase-list {
    display: grid;
    gap: 12px;
}

.usecase-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--color-text-soft);
    font-size: 0.95rem;
}

.usecase-list li svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

/* ---------- 9. Testimonials ---------- */
.testimonial {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition);
    height: 100%;
}

.testimonial:hover {
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: var(--space-md);
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    color: var(--color-gold);
    fill: var(--color-gold);
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text-soft);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-left: 24px;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: -4px;
    top: -16px;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--color-primary-light);
    opacity: 0.4;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.testimonial-author-info strong {
    display: block;
    color: var(--color-text);
    font-size: 0.95rem;
}

.testimonial-author-info span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ---------- 10. Download Section ---------- */
.download-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.os-card {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition);
}

.os-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.os-card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-md);
    color: var(--color-primary);
}

.os-card-icon svg {
    width: 100%;
    height: 100%;
}

.os-card h3 {
    margin-bottom: var(--space-sm);
}

.os-card .version {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
}

.os-card .btn {
    width: 100%;
    margin-bottom: var(--space-md);
}

.os-card-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-md);
}

.os-card-meta a {
    color: var(--color-primary);
    font-weight: 500;
}

/* QR codes */
.qr-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.qr-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    transition: all var(--transition);
}

.qr-card:hover {
    box-shadow: var(--shadow-md);
}

.qr-card-img {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-md);
    background: #fff;
    padding: 8px;
    border: 1px solid var(--color-border);
    flex-shrink: 0;
}

.qr-card-img img {
    width: 100%;
    height: 100%;
}

.qr-card-body h4 {
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.qr-card-body p {
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.qr-card-body .qr-platform {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.qr-card-body .qr-platform svg {
    width: 16px;
    height: 16px;
}

/* ---------- 11. Steps / Timeline ---------- */
.steps {
    counter-reset: step;
    display: grid;
    gap: var(--space-xl);
}

.step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: var(--space-lg);
    align-items: flex-start;
}

.step-number {
    counter-increment: step;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-brand);
}

.step-number::before {
    content: counter(step);
}

.step h4 {
    margin-bottom: var(--space-xs);
    font-size: 1.2rem;
}

/* ---------- 12. Tables ---------- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 600px;
}

th, td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    background: var(--color-bg-alt);
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9rem;
}

td {
    font-size: 0.95rem;
    color: var(--color-text-soft);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: rgba(136, 0, 170, 0.02);
}

/* keyboard shortcut table */
.kbd {
    display: inline-block;
    padding: 3px 10px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-bottom-width: 2px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-text);
    min-width: 28px;
    text-align: center;
}

/* ---------- 13. FAQ ---------- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    background: #fff;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-question .toggle {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform var(--transition);
    color: var(--color-primary);
}

.faq-item.open .faq-question .toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--color-text-soft);
    line-height: 1.75;
}

/* ---------- 14. Code Block ---------- */
.code-block {
    background: var(--color-bg-dark);
    color: #e8e8f0;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.7;
    overflow-x: auto;
    position: relative;
    margin: var(--space-md) 0;
}

.code-block::before {
    content: '$';
    color: var(--color-gold);
    margin-right: 8px;
    font-weight: 700;
}

.code-block .cmt { color: #8888a0; }
.code-block .ok { color: #27c93f; }
.code-block .str { color: #ffcc00; }
.code-block .var { color: #ff6600; }

/* ---------- 15. CTA Banner ---------- */
.cta-banner {
    background: var(--gradient-brand);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-brand);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.3), transparent 70%);
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 102, 0.3), transparent 70%);
}

.cta-banner .container {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    color: #fff;
    margin-bottom: var(--space-md);
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
}

.cta-banner .btn {
    margin: 0 8px;
}

/* ---------- 16. Footer ---------- */
.site-footer {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse-soft);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .brand {
    color: #fff;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: var(--color-text-inverse-soft);
    font-size: 0.9rem;
    max-width: 320px;
    margin-bottom: var(--space-md);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-inverse-soft);
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-col h5 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-md);
}

.footer-col ul {
    display: grid;
    gap: 10px;
}

.footer-col a {
    color: var(--color-text-inverse-soft);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: 0.85rem;
    color: var(--color-text-inverse-soft);
}

.footer-bottom a {
    color: var(--color-text-inverse-soft);
}

.footer-bottom a:hover {
    color: var(--color-gold);
}

/* ---------- 17. Page Header (inner pages) ---------- */
.page-header {
    background: var(--gradient-hero);
    color: #fff;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 102, 0.2), transparent 60%);
}

.page-header .container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 760px;
}

.page-header h1 {
    color: #fff;
    margin-bottom: var(--space-md);
}

.page-header p {
    color: var(--color-text-inverse-soft);
    font-size: 1.15rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-inverse-soft);
    margin-bottom: var(--space-md);
}

.breadcrumb a {
    color: var(--color-gold);
}

.breadcrumb span {
    opacity: 0.6;
}

/* ---------- 18. Modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 10, 46, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition);
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal {
    background: #fff;
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    padding: var(--space-lg);
    position: relative;
    transform: scale(0.95);
    transition: transform var(--transition);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-overlay.show .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    color: var(--color-text-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--color-primary);
    color: #fff;
    transform: rotate(90deg);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
}

.modal h3 {
    text-align: center;
    margin-bottom: var(--space-sm);
    font-size: 1.6rem;
}

.modal .modal-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    font-size: 0.95rem;
}

.modal-platforms {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.modal-platform {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.modal-platform:hover {
    border-color: var(--color-primary);
    background: rgba(136, 0, 170, 0.03);
    color: inherit;
}

.modal-platform-icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.modal-platform-icon svg {
    width: 100%;
    height: 100%;
}

.modal-platform-info {
    flex: 1;
}

.modal-platform-info strong {
    display: block;
    color: var(--color-text);
    font-size: 0.95rem;
}

.modal-platform-info span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.modal-platform-arrow {
    color: var(--color-text-muted);
    transition: transform var(--transition);
}

.modal-platform:hover .modal-platform-arrow {
    color: var(--color-primary);
    transform: translateX(4px);
}

.modal-platform-arrow svg {
    width: 20px;
    height: 20px;
}

.modal-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.modal-footer a {
    color: var(--color-primary);
    font-weight: 500;
}

/* QR section inside modal */
.modal-qr-section {
    margin-bottom: var(--space-lg);
    padding: var(--space-lg);
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    text-align: center;
}

.modal-qr-title {
    font-size: 0.9rem;
    color: var(--color-text-soft);
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.modal-qr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.modal-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.modal-qr-item img {
    width: 160px;
    height: 160px;
    background: #fff;
    padding: 6px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.modal-qr-item span {
    font-size: 0.85rem;
    color: var(--color-text-soft);
    font-weight: 500;
}

/* ---------- 19. Misc utilities ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-0 { margin-top: 0; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-soft);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(136, 0, 170, 0.08);
    color: var(--color-primary);
}

.badge--success {
    background: rgba(39, 201, 63, 0.1);
    color: #1a8e2a;
}

.badge--gold {
    background: rgba(255, 204, 0, 0.15);
    color: #c79100;
}

/* Content prose for docs pages */
.prose {
    max-width: 800px;
    margin: 0 auto;
}

.prose h2 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.prose h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.prose p {
    margin-bottom: var(--space-md);
}

.prose ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: var(--space-md);
}

.prose ul li {
    margin-bottom: 8px;
    color: var(--color-text-soft);
}

.prose code {
    font-family: var(--font-mono);
    background: var(--color-bg-alt);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--color-pink);
}

/* ---------- 20. Responsive ---------- */
@media (max-width: 960px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
    .hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
    .usecase { grid-template-columns: 1fr; gap: var(--space-lg); }
    .usecase:nth-child(even) .usecase-content { order: 0; }
    .download-options { grid-template-columns: 1fr; }
    .qr-section { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .section { padding: var(--space-2xl) 0; }
    .nav-links { display: none; }
    .nav-cta .btn-text { display: none; }
    .menu-toggle { display: flex; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #fff;
        padding: var(--space-lg);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        gap: var(--space-md);
    }

    .nav-links.open a {
        width: 100%;
        padding: 12px 0;
    }

    .hero { padding: 56px 0 72px; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .hero-stat .num { font-size: 1.6rem; }

    .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }

    .cta-banner { padding: var(--space-xl); }
    .cta-banner .btn { width: 100%; margin: 4px 0; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .modal { padding: var(--space-xl); }
}

/* ---------- 21. Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out backwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
