/* ═══════════════════════════════════════════
   QR STUDIO — Design System
   ═══════════════════════════════════════════ */

:root {
    /* Colors */
    --bg-primary: #0a0a14;
    --bg-secondary: #0f0f1e;
    --bg-card: rgba(18, 18, 35, 0.7);
    --bg-card-hover: rgba(25, 25, 50, 0.8);
    --bg-input: rgba(255, 255, 255, 0.05);
    --bg-input-focus: rgba(255, 255, 255, 0.08);

    --text-primary: #f0f0f5;
    --text-secondary: #9898b0;
    --text-muted: #5e5e78;

    --accent-purple: #a78bfa;
    --accent-violet: #7c3aed;
    --accent-blue: #38bdf8;
    --accent-indigo: #6366f1;

    --gradient-main: linear-gradient(135deg, #a78bfa 0%, #6d28d9 50%, #38bdf8 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(56, 189, 248, 0.08));
    --gradient-card: linear-gradient(160deg, rgba(167, 139, 250, 0.06) 0%, rgba(56, 189, 248, 0.03) 100%);

    --border-color: rgba(167, 139, 250, 0.12);
    --border-hover: rgba(167, 139, 250, 0.25);

    --glass-bg: rgba(15, 15, 30, 0.6);
    --glass-border: rgba(167, 139, 250, 0.15);
    --glass-blur: 20px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(167, 139, 250, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 100px;

    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 20%, rgba(167, 139, 250, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 80%, rgba(56, 189, 248, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 80% 40% at 50% 50%, rgba(109, 40, 217, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

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

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

input,
textarea,
select {
    font-family: inherit;
}

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

/* ─── Navbar ────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-highlight {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(167, 139, 250, 0.1);
}

/* ─── Hero ──────────────────────────── */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.18), transparent 70%);
    top: -10%;
    left: 10%;
    animation: float-glow 8s ease-in-out infinite;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 70%);
    bottom: -5%;
    right: 5%;
    animation: float-glow 10s ease-in-out infinite reverse;
}

@keyframes float-glow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 15px) scale(0.95);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: var(--gradient-subtle);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-purple);
    margin-bottom: 28px;
    animation: fade-up 0.6s ease both;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    animation: fade-up 0.6s ease 0.1s both;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 36px;
    animation: fade-up 0.6s ease 0.2s both;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    background: var(--gradient-main);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-base);
    box-shadow: 0 4px 24px rgba(167, 139, 250, 0.35);
    animation: fade-up 0.6s ease 0.3s both;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(167, 139, 250, 0.5);
}

.hero-cta:active {
    transform: translateY(0);
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Floating QR decorations */
.hero-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-qr {
    position: absolute;
    border-radius: var(--radius-md);
    border: 2px solid rgba(167, 139, 250, 0.1);
    background: rgba(167, 139, 250, 0.03);
    opacity: 0.4;
}

.floating-qr-1 {
    width: 100px;
    height: 100px;
    top: 18%;
    left: 8%;
    animation: float-qr 12s ease-in-out infinite;
    transform: rotate(15deg);
}

.floating-qr-2 {
    width: 70px;
    height: 70px;
    top: 25%;
    right: 12%;
    animation: float-qr 14s ease-in-out infinite reverse;
    transform: rotate(-10deg);
}

.floating-qr-3 {
    width: 55px;
    height: 55px;
    bottom: 22%;
    left: 15%;
    animation: float-qr 10s ease-in-out infinite 2s;
    transform: rotate(25deg);
}

@keyframes float-qr {

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

    50% {
        transform: translateY(-25px) rotate(20deg);
    }
}

/* ─── Generator Section ─────────────── */
.generator-section {
    position: relative;
    z-index: 1;
    padding: 80px 24px 120px;
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.generator-grid {
    display: grid;
    grid-template-columns: 1fr 340px 1fr;
    gap: 24px;
    align-items: start;
}

/* ─── Panels ────────────────────────── */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.panel:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.panel-title svg {
    color: var(--accent-purple);
}

/* ─── QR Tabs ───────────────────────── */
.qr-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.qr-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-input);
    border: 1px solid transparent;
    transition: var(--transition-base);
    white-space: nowrap;
}

.qr-tab:hover {
    color: var(--text-primary);
    background: var(--bg-input-focus);
    border-color: var(--border-color);
}

.qr-tab.active {
    color: #fff;
    background: var(--accent-violet);
    border-color: var(--accent-purple);
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.3);
}

.qr-tab svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ─── QR Form ───────────────────────── */
.qr-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition-base);
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent-purple);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239898b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ─── Preview Panel ─────────────────── */
.preview-panel {
    position: sticky;
    top: 96px;
}

.preview-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.preview-card {
    width: 100%;
    aspect-ratio: 1;
    max-width: 280px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    padding: 20px;
    text-align: center;
}

.preview-placeholder p {
    font-size: 0.85rem;
    color: #999;
}

#qrCanvas {
    max-width: 90%;
    max-height: 90%;
    image-rendering: pixelated;
}

/* ─── Download ──────────────────────── */
.download-section {
    text-align: center;
}

.download-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.download-buttons {
    display: flex;
    gap: 8px;
}

.download-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.download-btn:hover {
    background: var(--accent-violet);
    border-color: var(--accent-purple);
    color: #fff;
    box-shadow: 0 2px 16px rgba(124, 58, 237, 0.3);
    transform: translateY(-1px);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn svg {
    width: 16px;
    height: 16px;
}

/* ─── Customize Panel ───────────────── */
.customize-panel {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(167, 139, 250, 0.2) transparent;
}

.customize-panel::-webkit-scrollbar {
    width: 4px;
}

.customize-panel::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.2);
    border-radius: 4px;
}

.customize-group {
    margin-bottom: 22px;
}

.customize-group:last-child {
    margin-bottom: 0;
}

.customize-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

/* Color picker row */
.color-picker-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-input {
    width: 44px;
    height: 44px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2px;
    cursor: pointer;
    background: transparent;
    transition: var(--transition-base);
}

.color-input:hover {
    border-color: var(--accent-purple);
}

.color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-input::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

.color-input::-moz-color-swatch {
    border: none;
    border-radius: 6px;
}

.color-hex-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Space Grotesk', monospace;
    text-transform: uppercase;
    outline: none;
    transition: var(--transition-base);
}

.color-hex-input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.12);
}

/* Style options (corner) */
.style-options {
    display: flex;
    gap: 8px;
}

.style-btn {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-muted);
    transition: var(--transition-base);
}

.style-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-secondary);
}

.style-btn.active {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    background: rgba(167, 139, 250, 0.1);
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.15);
}

/* EC level buttons */
.ec-options {
    display: flex;
    gap: 8px;
}

.ec-btn {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    transition: var(--transition-base);
}

.ec-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.ec-btn.active {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    background: rgba(167, 139, 250, 0.1);
}

/* Range slider */
.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    transition: var(--transition-base);
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-purple);
    box-shadow: 0 2px 8px rgba(167, 139, 250, 0.4);
    cursor: pointer;
    transition: var(--transition-base);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 16px rgba(167, 139, 250, 0.55);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: var(--accent-purple);
    box-shadow: 0 2px 8px rgba(167, 139, 250, 0.4);
    cursor: pointer;
}

/* Logo upload */
.logo-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    cursor: pointer;
}

.logo-upload-area:hover {
    border-color: var(--accent-purple);
    background: rgba(167, 139, 250, 0.04);
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.logo-placeholder svg {
    opacity: 0.5;
}

.logo-preview-wrap {
    position: relative;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-preview-wrap img {
    max-width: 80px;
    max-height: 80px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.remove-logo-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.remove-logo-btn:hover {
    background: #ef4444;
    transform: scale(1.1);
}

/* ─── Features Section ──────────────── */
.features-section {
    position: relative;
    z-index: 1;
    padding: 80px 24px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: var(--transition-base);
}

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

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--gradient-subtle);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--accent-purple);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── FAQ Section ───────────────────── */
.faq-section {
    position: relative;
    z-index: 1;
    padding: 60px 24px 100px;
    max-width: 760px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-base);
}

.faq-item[open] {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-base);
    color: var(--text-primary);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--accent-purple);
    font-weight: 300;
    transition: var(--transition-base);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] .faq-question::after {
    content: '−';
}

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

.faq-answer {
    padding: 0 24px 18px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ─── Footer ────────────────────────── */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-color);
    padding: 48px 24px 32px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    text-align: center;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 8px;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

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

.footer-disclaimer {
    width: 100%;
    max-width: 700px;
    text-align: center;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
}

.disclaimer-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
}

.disclaimer-text:last-child {
    margin-bottom: 0;
}

.disclaimer-text strong {
    color: var(--text-secondary);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    width: 100%;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ─── Responsive ────────────────────── */
@media (max-width: 1100px) {
    .generator-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .content-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .generator-grid {
        grid-template-columns: 1fr;
    }

    .preview-panel {
        position: static;
        order: -1;
    }

    .nav-links {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 120px 20px 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: row;
    }

    .panel {
        padding: 22px;
    }

    .qr-tab {
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .qr-tab svg {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        width: 100%;
        justify-content: center;
    }

    .style-options {
        flex-wrap: wrap;
    }
}

/* ─── Animations for scroll reveal ──── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Toast notification ────────────── */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent-violet);
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4);
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ─── Pulse animation on generate ──── */
@keyframes qr-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

.qr-generated {
    animation: qr-pulse 0.35s ease;
}

/* ─── Animated QR Tornado Background ─── */
.qr-tornado-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    /* Behind everything */
    pointer-events: none;
    overflow: hidden;
    perspective: 1000px;
}

.tornado-qr-wrapper {
    position: absolute;
    left: var(--start-x);
    top: 110vh;
    /* Start below screen */
    opacity: 0;
    animation: swirlUp var(--duration) ease-in var(--delay) infinite;
    transform-style: preserve-3d;
}

.tornado-qr-inner {
    width: var(--size);
    height: var(--size);
    /* Simple SVG QR code, encoded for performance */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23a78BFA"><path d="M3 3h8v8H3zm2 2v4h4V5zM13 3h8v8h-8zm2 2v4h4V5zM3 13h8v8H3zm2 2v4h4v-4z"/><path d="M14 14h2v2h-2zm4-1h-2v2h2zm-2 3h-2v2h2zm2 0h2v2h-2zm-4 2h2v2h-2z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: var(--max-opacity);
    filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.2));
    animation: spin var(--spin-duration) linear var(--delay) infinite;
}

@keyframes swirlUp {
    0% {
        transform: translate3d(0, 0, 0) scale(var(--start-scale));
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        transform: translate3d(var(--end-x), -140vh, var(--end-z)) scale(var(--end-scale));
        opacity: 0;
    }
}

@keyframes spin {
    0% {
        transform: rotate3d(var(--rx), var(--ry), var(--rz), 0deg);
    }

    100% {
        transform: rotate3d(var(--rx), var(--ry), var(--rz), 360deg);
    }
}