/**
 * Enxora QR Studio - Global Design System
 * Premium Enterprise Identity Theme & Responsive Architecture
 */

:root {
    --green: #1ad961;
    --green-dark: #15b951;
    --green-light: rgba(26, 217, 97, 0.1);
    --dark: #0f172a;
    --dark-accent: #1e293b;
    --light: #f8fafc;
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius-lg: 35px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--light);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* ════════════════════════════════════
   UTILITIES & TYPOGRAPHY
════════════════════════════════════ */
.mt { margin-top: 16px; }
.hidden { display: none !important; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; box-sizing: border-box; }

/* ════════════════════════════════════
   AD SLOTS (inactive until AdSense ID added)
════════════════════════════════════ */
.ad-slot {
    width: 100%; overflow: hidden; text-align: center;
    background: transparent; border-radius: 12px;
}
.ad-slot--header { padding: 8px 0; border-bottom: 1px solid var(--border); }
.ad-slot--footer { padding: 16px 0; }
.ad-slot--sidebar { margin-top: 20px; }

h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; font-weight: 800; }

.section { padding: 100px 0; }
.section-light { background: white; }
.section-dark { background: var(--dark); color: white; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
    display: inline-block; padding: 6px 16px; background: var(--green-light); color: var(--green);
    border-radius: 50px; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 16px;
}
.section-badge--dark { background: rgba(255,255,255,0.1); color: white; }

.section-header h2 { font-size: clamp(2rem, 5vw, 2.5rem); margin-bottom: 12px; color: var(--text-main); letter-spacing: -1px; }
.section-header p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ════════════════════════════════════
   NAVIGATION
════════════════════════════════════ */
.site-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 40px; background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--border);
    width: 100%;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo { height: 38px; width: auto; object-fit: contain; }
.nav-name { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 900; color: var(--dark); }
.nav-name span { color: var(--green); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.mobile-nav-body { display: flex; align-items: center; gap: 32px; }
.mobile-nav-body a { text-decoration: none; font-weight: 700; color: var(--text-main); font-size: 0.95rem; transition: color 0.2s; }
.mobile-nav-body a:hover, .mobile-nav-body a.active { color: var(--green); }

.mobile-nav-header, .mobile-nav-footer, .nav-cta-mobile, .nav-arrow { display: none !important; }

.nav-cta {
    display: flex; align-items: center; gap: 8px; padding: 10px 20px;
    background: var(--dark); color: white !important; border-radius: 50px;
    font-weight: 800; transition: transform 0.2s, background 0.2s; text-decoration: none;
}
.nav-cta:hover { background: var(--green); transform: translateY(-2px); color: var(--dark) !important; }

.nav-hamburger {
    display: none; background: none; border: none; cursor: pointer;
    padding: 6px; width: 40px; height: 40px; position: relative; z-index: 1002;
}
.nav-hamburger span {
    display: block; width: 100%; height: 3px; background: var(--dark);
    margin: 5px 0; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); border-radius: 3px;
    transform-origin: center;
}

/* Hamburger active transformation */
.nav-hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Overlay sits beneath fixed sidebar navigation */
.nav-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    z-index: 990; opacity: 0; transition: opacity 0.3s ease;
}
.nav-overlay.open { display: block; opacity: 1; }

/* ════════════════════════════════════
   HERO
════════════════════════════════════ */
.hero {
    position: relative; padding: 80px 40px 100px;
    display: flex; align-items: center; justify-content: center; gap: 60px;
    background: var(--light); overflow: hidden; width: 100%; box-sizing: border-box;
}
.hero-bg-glow {
    position: absolute; top: -200px; right: -200px; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(26,217,97,0.15) 0%, transparent 70%);
    border-radius: 50%; z-index: 0; pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 600px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
    background: white; border: 1px solid var(--border); border-radius: 50px;
    font-size: 0.8rem; font-weight: 800; color: var(--text-muted); margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}
.pulse-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; display: inline-block; box-shadow: 0 0 0 0 rgba(26,217,97,0.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(26,217,97,0); } 100% { box-shadow: 0 0 0 0 rgba(26,217,97,0); } }

.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; letter-spacing: -2px; margin-bottom: 24px; color: var(--dark); }
.hero-title span { color: var(--green); }
.hero-sub { font-size: 1.2rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 40px; max-width: 500px; }

.hero-actions { display: flex; align-items: center; gap: 16px; margin-bottom: 50px; }
.btn-prime {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 28px; background: var(--dark); color: white; border: none; border-radius: 50px;
    font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 800; cursor: pointer;
    transition: 0.3s; text-decoration: none; text-align: center;
}
.btn-prime:hover { background: var(--green); color: var(--dark); transform: translateY(-2px); box-shadow: 0 15px 30px rgba(26,217,97,0.2); }
.btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 28px; background: white; color: var(--dark); border: 2px solid var(--border); border-radius: 50px;
    font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 800; cursor: pointer;
    transition: 0.3s; text-decoration: none; text-align: center;
}
.btn-outline:hover { border-color: var(--dark); transform: translateY(-2px); }

.hero-stats { display: flex; align-items: center; gap: 30px; }
.stat strong { display: block; font-family: 'Outfit', sans-serif; font-size: 1.8rem; color: var(--dark); line-height: 1; margin-bottom: 4px; }
.stat span { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-sep { width: 1px; height: 30px; background: var(--border); }

.hero-preview { position: relative; z-index: 1; }
.hero-qr-card {
    background: white; border-radius: 30px; padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08); border: 1px solid var(--border);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: relative; animation: float 6s ease-in-out infinite; transform-origin: center;
    max-width: 100%; box-sizing: border-box;
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-15px) rotate(-1deg); } }
.hero-qr-label { position: absolute; top: 16px; left: 24px; font-size: 0.75rem; font-weight: 800; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
#hero-qr-div { background: white; padding: 12px; border-radius: 20px; box-shadow: 0 0 0 1px var(--border); margin: 20px 0; max-width: 100%; }
#hero-qr-div canvas, #hero-qr-div svg { max-width: 100% !important; height: auto !important; }
.hero-qr-url { font-size: 0.8rem; font-weight: 800; color: var(--text-main); letter-spacing: 2px; text-transform: uppercase; background: var(--light); padding: 6px 16px; border-radius: 50px; }

/* ════════════════════════════════════
   BENTO GRID (TYPES & FEATURES)
════════════════════════════════════ */
.types-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.type-card {
    background: white; border: 1px solid var(--border); border-radius: 24px; padding: 24px;
    display: flex; align-items: flex-start; gap: 16px; text-decoration: none; color: inherit;
    transition: 0.3s; position: relative; overflow: hidden;
}
.type-card:hover { transform: translateY(-5px); border-color: var(--green); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.type-card--featured { border-color: rgba(26,217,97,0.3); background: #fdfdfd; }
.type-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; transition: transform 0.3s; }
.type-card:hover .type-icon { transform: scale(1.1) rotate(5deg); }
.type-info h4 { font-size: 1.2rem; margin-bottom: 6px; color: var(--dark); }
.type-info p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.type-arrow { position: absolute; bottom: 24px; right: 24px; color: #cbd5e1; font-size: 1.2rem; transition: 0.3s; opacity: 0; transform: translateX(-10px); }
.type-card:hover .type-arrow { opacity: 1; transform: translateX(0); color: var(--green); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.feature-card { text-align: center; }
.feature-icon { width: 72px; height: 72px; background: var(--dark); color: var(--green); font-size: 2rem; display: flex; align-items: center; justify-content: center; border-radius: 24px; margin: 0 auto 24px; }
.feature-card h4 { font-size: 1.3rem; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); line-height: 1.6; }

/* ════════════════════════════════════
   HOW IT WORKS
════════════════════════════════════ */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; padding: 40px 30px; position: relative; text-align: center; }
.step-num { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); background: var(--green); color: var(--dark); font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 900; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 4px solid var(--dark); }
.step-icon { font-size: 2.5rem; color: rgba(255,255,255,0.8); margin: 30px 0 24px; }
.step-card h4 { font-size: 1.4rem; color: white; margin-bottom: 12px; }
.step-card p { color: rgba(255,255,255,0.6); line-height: 1.6; }

/* ════════════════════════════════════
   STUDIO LAYOUT (GENERATOR PAGE)
════════════════════════════════════ */
.studio-layout {
    display: flex; min-height: calc(100vh - 81px); width: 100%; box-sizing: border-box;
}
.studio-panel { padding: 40px; box-sizing: border-box; }
.studio-panel--left { flex: 0 0 500px; background: white; border-right: 1px solid var(--border); }
.studio-panel--right { flex: 1; background: var(--light); display: flex; flex-direction: column; align-items: center; }

.preview-sticky-wrap {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.panel-block { margin-bottom: 40px; width: 100%; }
.panel-block:last-child { margin-bottom: 0; }
.panel-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--dark); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.panel-title i { color: var(--green); }

/* Tabs */
.type-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.type-tab {
    flex: 1 1 calc(33.333% - 10px); background: var(--light); border: 1px solid var(--border); border-radius: 12px;
    padding: 12px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: 0.2s;
}
.type-tab:hover { background: #f1f5f9; border-color: #cbd5e1; color: var(--dark); }
.type-tab.active { background: var(--dark); border-color: var(--dark); color: white; }
.type-tab i { font-size: 1.25rem; }
.type-tab.active i { color: var(--green); }

/* Forms */
.field-group { animation: fadeIn 0.3s ease; width: 100%; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.field-label { display: block; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.5px; margin-bottom: 8px; }
.field-input { width: 100%; background: var(--light); border: 2px solid var(--border); border-radius: 12px; padding: 14px 16px; font-family: inherit; font-size: 0.95rem; color: var(--dark); transition: 0.2s; box-sizing: border-box; }
.field-input:focus { outline: none; border-color: var(--green); background: white; box-shadow: 0 4px 15px rgba(26,217,97,0.05); }
.field-textarea { min-height: 100px; resize: vertical; }

.field-icon-wrap { position: relative; width: 100%; }
.field-icon-wrap i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.field-icon-wrap .field-input { padding-left: 44px; }
.vcard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Style Pills */
.style-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.style-pill {
    padding: 10px 16px; background: var(--light); border: 1px solid var(--border); border-radius: 50px;
    font-family: inherit; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: 0.2s;
    display: inline-flex; align-items: center; gap: 6px;
}
.style-pill:hover { border-color: var(--green); color: var(--dark); }
.style-pill.active { background: var(--dark); border-color: var(--dark); color: white; }
.style-pill.active i { color: var(--green); }

/* Colors */
.color-row-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.color-pick-row { display: flex; align-items: center; gap: 12px; }
.color-picker { -webkit-appearance: none; width: 44px; height: 44px; padding: 2px; background: white; border: 2px solid var(--border); border-radius: 10px; cursor: pointer; }
.color-hex { font-size: 0.85rem; font-family: monospace; font-weight: 700; color: var(--dark); }

/* Logo Upload */
.logo-options { background: var(--light); border: 1px solid var(--border); border-radius: 16px; padding: 20px; width: 100%; box-sizing: border-box; }
.logo-option-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.logo-upload-area { border: 2px dashed var(--border); border-radius: 12px; padding: 30px; text-align: center; color: var(--text-muted); font-weight: 600; cursor: pointer; transition: 0.2s; position: relative; }
.logo-upload-area:hover { border-color: var(--green); background: rgba(26,217,97,0.05); }
.logo-upload-area i { font-size: 2rem; color: #cbd5e1; margin-bottom: 10px; display: block; }
.logo-preview-row { display: flex; align-items: center; justify-content: space-between; background: white; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
#logo-preview-img { height: 40px; object-fit: contain; }
.logo-clear-btn { background: #fee2e2; color: #ef4444; border: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; }
.enx-slider { width: 100%; margin-top: 10px; }
.slider-row { display: flex; align-items: center; gap: 16px; }
.slider-val { font-size: 0.85rem; font-weight: 800; color: var(--green); width: 40px; }

/* Toggle */
.enx-toggle { position: relative; display: inline-block; width: 48px; height: 26px; }
.enx-toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .3s; border-radius: 30px; }
.toggle-track:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background-color: white; transition: .3s; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
input:checked + .toggle-track { background-color: var(--green); box-shadow: inset 0 2px 5px rgba(0,0,0,0.1); }
input:checked + .toggle-track:before { transform: translateX(22px); }

/* Buttons */
.btn-full { width: 100%; border-radius: 16px; }
.btn-green { background: var(--green); color: var(--dark); padding: 14px 24px; border: none; border-radius: 50px; font-weight: 800; cursor: pointer; font-family: inherit; font-size: 1rem; }

/* Studio Preview Card & Centered Box */
.preview-card {
    background: white; border: 1px solid var(--border); border-radius: 30px; padding: 36px 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05); text-align: center; width: 100%; max-width: 440px;
    box-sizing: border-box; margin: 0 auto; display: flex; flex-direction: column; align-items: center;
}
.preview-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; width: 100%; }
.preview-badge { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; }
.preview-type-tag { font-size: 0.75rem; font-weight: 800; background: var(--dark); color: white; padding: 4px 12px; border-radius: 50px; letter-spacing: 1px; }

/* Fixed QR Preview Box - no clipping, fully visible */
.qr-preview-box {
    display: flex; align-items: center; justify-content: center;
    padding: 20px; background: white; border-radius: 26px;
    box-shadow: 0 0 0 1px var(--border), 0 20px 50px rgba(0,0,0,0.08); margin-bottom: 20px;
    width: 100%; box-sizing: border-box; overflow: hidden;
}
#qr-render-div {
    display: flex; justify-content: center; align-items: center;
    width: 100%; max-width: 100%; overflow: hidden;
}
/* Force QR library SVG/canvas to be fully responsive */
#qr-render-div svg,
#qr-render-div canvas {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    border-radius: 12px;
}

.preview-url-tag { font-size: 0.8rem; font-weight: 800; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 30px; word-break: break-all; }

.download-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.download-btn {
    border: none; border-radius: 20px; padding: 18px 14px; cursor: pointer; transition: 0.3s;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    width: 100%; box-sizing: border-box;
}
.download-btn span { font-family: 'Outfit', sans-serif; font-size: 1.15rem; font-weight: 900; }
.download-btn small { font-size: 0.75rem; font-weight: 700; opacity: 0.7; }
.download-btn i { font-size: 1.4rem; margin-bottom: 2px; }
.download-btn--png { background: var(--green); color: var(--dark); }
.download-btn--png:hover { background: var(--green-dark); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(26,217,97,0.3); }
.download-btn--svg { background: var(--dark); color: white; }
.download-btn--svg:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }

.tips-card { margin-top: 30px; background: #fffbe6; border: 1px solid #fef08a; padding: 20px 24px; border-radius: 20px; color: #854d0e; text-align: left; width: 100%; max-width: 440px; box-sizing: border-box; }
.tips-card h5 { font-size: 1rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.tips-card ul { margin-left: 20px; font-size: 0.85rem; line-height: 1.6; }

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.site-footer { background: var(--dark); color: white; padding: 80px 40px 40px; width: 100%; box-sizing: border-box; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 60px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo { height: 46px; }
.footer-name { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 900; }
.footer-name span { color: var(--green); }
.footer-tagline { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-top: 4px; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h6 { font-size: 0.8rem; font-weight: 800; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; }
.footer-col a { display: block; color: white; text-decoration: none; font-size: 0.95rem; margin-bottom: 12px; font-weight: 600; transition: color 0.2s; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { text-align: center; color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.footer-bottom a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-bottom a:hover { color: white; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--light); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 24px; font-family: inherit; font-size: 1.05rem; font-weight: 800; color: var(--dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-icon { color: var(--green); transition: 0.3s; }
.faq-a { padding: 0 24px; max-height: 0; opacity: 0; transition: 0.3s; font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-item.open .faq-a { max-height: 200px; padding: 0 24px 24px; opacity: 1; }

.cta-banner { padding: 80px 24px; background: var(--dark); text-align: center; position: relative; overflow: hidden; }
.cta-glow { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(26,217,97,0.15) 0%, transparent 60%); pointer-events: none; }
.cta-title { font-size: clamp(2rem, 5vw, 3rem); color: white; margin-bottom: 16px; letter-spacing: -1px; }
.cta-sub { font-size: 1.1rem; color: rgba(255,255,255,0.6); margin-bottom: 40px; }

/* ════════════════════════════════════
   TOAST
════════════════════════════════════ */
.toast-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 10px; width: 90%; max-width: 400px; }
.toast { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border); border-top: 4px solid var(--green); border-radius: 12px; padding: 16px 20px; display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 0.9rem; color: var(--dark); box-shadow: 0 20px 40px rgba(0,0,0,0.1); animation: slideDown 0.4s cubic-bezier(0.16,1,0.3,1); }
.toast--error { border-top-color: #ef4444; } .toast--error i { color: #ef4444; }
.toast--success { border-top-color: var(--green); } .toast--success i { color: var(--green); }
.toast i { font-size: 1.2rem; }
.toast.out { animation: slideUp 0.4s cubic-bezier(0.16,1,0.3,1) forwards; }
@keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideUp { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-20px); opacity: 0; } }

/* ════════════════════════════════════
   RESPONSIVE MEDIA QUERIES
════════════════════════════════════ */
@media (max-width: 992px) {
    .site-nav { padding: 14px 20px; }
    .nav-hamburger { display: block; }
    .nav-cta { display: none !important; }

    /* Mobile Sidebar Header */
    .mobile-nav-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }
    .mobile-nav-header .nav-name { color: white !important; }
    .mobile-nav-close {
        background: rgba(255, 255, 255, 0.12);
        border: none;
        color: white;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        cursor: pointer;
        transition: 0.2s;
    }
    .mobile-nav-close:hover { background: var(--green); color: var(--dark); }

    /* Mobile Navigation Drawer: Sleek Dark High-Contrast Theme */
    .nav-links {
        position: fixed; top: 0; right: 0;
        width: 320px; max-width: 85vw; height: 100vh; height: 100dvh;
        background: #0f172a; color: white;
        flex-direction: column; align-items: stretch; justify-content: space-between;
        padding: 24px 20px;
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
        z-index: 1001; box-shadow: -10px 0 30px rgba(0,0,0,0.4);
        overflow-y: auto; gap: 16px;
    }
    .nav-links.open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-nav-body {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        flex: 1;
    }
    .mobile-nav-body a {
        font-size: 1rem;
        font-weight: 700;
        padding: 14px 18px;
        border-radius: 16px;
        background: #1e293b;
        color: white !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-decoration: none;
        transition: 0.2s;
        border: 1px solid rgba(255, 255, 255, 0.06);
    }
    .mobile-nav-body a span {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .mobile-nav-body a span i {
        color: var(--green);
        font-size: 1.1rem;
    }
    .nav-arrow {
        display: block !important;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.4);
    }
    .mobile-nav-body a:hover,
    .mobile-nav-body a.active {
        background: rgba(26, 217, 97, 0.15);
        border-color: var(--green);
        color: white !important;
    }
    .mobile-nav-body a.active .nav-arrow { color: var(--green); }

    .nav-cta-mobile {
        display: flex !important;
        background: var(--green) !important;
        color: var(--dark) !important;
        font-weight: 800 !important;
        font-family: 'Outfit', sans-serif;
        font-size: 1.05rem !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 16px !important;
        margin-top: 10px;
        border-radius: 50px !important;
        box-shadow: 0 10px 25px rgba(26, 217, 97, 0.3);
        border: none !important;
    }
    .nav-cta-mobile i { color: var(--dark) !important; }

    .mobile-nav-footer {
        display: block !important;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.5);
    }
    .mobile-nav-footer i { color: var(--green); margin-right: 4px; }

    /* Hero section responsive tweaks */
    .hero { flex-direction: column; text-align: center; padding: 45px 20px 60px; gap: 40px; }
    .hero-content { max-width: 100%; }
    .hero-actions { justify-content: center; flex-direction: column; width: 100%; max-width: 360px; margin: 0 auto 35px auto; }
    .hero-actions .btn-prime, .hero-actions .btn-outline { width: 100%; }
    .hero-stats { flex-wrap: wrap; justify-content: center; gap: 16px; }
    .stat-sep { display: none; }
    .stat { flex: 1 1 calc(50% - 16px); min-width: 120px; background: white; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--border); text-align: center; }

    /* Studio layout on mobile */
    .studio-layout { flex-direction: column; width: 100%; overflow-x: hidden; }
    .studio-panel { flex: none; width: 100%; max-width: 100%; border-right: none; padding: 24px 16px; box-sizing: border-box; }
    .studio-panel--left { border-bottom: 1px solid var(--border); }
    .studio-panel--right { padding: 30px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; }

    /* Preview wrap centered */
    .preview-sticky-wrap {
        position: relative; top: auto; width: 100%;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        margin: 0 auto; box-sizing: border-box; padding: 0 8px;
    }
    .preview-card {
        padding: 24px 16px; width: 100%; box-sizing: border-box;
        border-radius: 24px; margin: 0 auto; display: flex; flex-direction: column; align-items: center;
    }
    /* Allow the preview box to be as wide as the card; the SVG will scale inside it */
    .qr-preview-box {
        padding: 16px; border-radius: 22px; width: 100%; max-width: 100%;
        margin: 0 auto 20px auto; overflow: visible; box-sizing: border-box;
    }
    #qr-render-div svg, #qr-render-div canvas {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
    }

    .steps-grid { grid-template-columns: 1fr; gap: 32px; }
    .features-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
    .types-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

    .footer-inner { flex-direction: column; gap: 30px; padding-bottom: 40px; }
    .footer-links { flex-direction: column; gap: 24px; }
    .site-footer { padding: 50px 20px 30px; }
}

@media (max-width: 576px) {
    .container { padding: 0 16px; }
    .section { padding: 50px 0; }
    .panel-block { margin-bottom: 30px; }
    
    .type-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .type-tab { padding: 10px 4px; font-size: 0.75rem; border-radius: 10px; }
    .type-tab i { font-size: 1.1rem; }
    
    .style-pills { gap: 6px; }
    .style-pill { padding: 8px 12px; font-size: 0.8rem; }
    
    .vcard-grid { grid-template-columns: 1fr; gap: 12px; }
    .color-row-pair { grid-template-columns: 1fr; gap: 16px; }
    
    .download-row { grid-template-columns: 1fr 1fr; gap: 10px; }
    .download-btn { padding: 14px 10px; border-radius: 16px; }
    .download-btn i { font-size: 1.2rem; }
    .download-btn span { font-size: 1rem; }
    
    .logo-options { padding: 16px; }
    .logo-upload-area { padding: 20px 14px; font-size: 0.85rem; }
}

@media (max-width: 360px) {
    .type-tabs { grid-template-columns: repeat(2, 1fr); }
    .download-row { grid-template-columns: 1fr; }
    .preview-card { padding: 16px 12px; }
    .qr-preview-box { padding: 10px; }
    #qr-render-div svg, #qr-render-div canvas { max-width: 100% !important; width: auto !important; }
}
