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

: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;
}

* {
    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;
    overflow-x: hidden;
}

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

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: 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; }

/* ════════════════════════════════════
   NAVAIGATION
════════════════════════════════════ */
.site-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 40px; background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo { height: 40px; }
.nav-name { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 900; color: var(--dark); }
.nav-name span { color: var(--green); }

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

.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;
}
.nav-cta:hover { background: var(--green); transform: translateY(-2px); color: var(--dark) !important; }

.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 24px; height: 3px; background: var(--dark); margin: 5px 0; transition: 0.3s; border-radius: 3px; }

/* ════════════════════════════════════
   HERO
════════════════════════════════════ */
.hero {
    position: relative; padding: 80px 40px 120px;
    display: flex; align-items: center; justify-content: center; gap: 60px;
    background: var(--light); overflow: hidden;
}
.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;
}
.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: 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.25rem; 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: 60px; }
.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;
}
.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;
}
.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;
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-20px) 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; }
.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(280px, 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(300px, 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);
}
.studio-panel { padding: 40px; }
.studio-panel--left { flex: 0 0 500px; background: white; border-right: 1px solid var(--border); }
.studio-panel--right { flex: 1; background: var(--light); }

.preview-sticky-wrap {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.panel-block { margin-bottom: 40px; }
.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; }
@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; }
.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; }
.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; }
.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 */
.preview-card {
    background: white; border: 1px solid var(--border); border-radius: 30px; padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05); text-align: center; width: 100%; max-width: 440px;
}
.preview-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.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; }

.qr-preview-box {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 24px; background: white; border-radius: 30px;
    box-shadow: 0 0 0 1px var(--border), 0 20px 50px rgba(0,0,0,0.08); margin-bottom: 24px;
}
#qr-render-div svg, #qr-render-div canvas { display: block; 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: 40px; }

.download-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.download-btn {
    border: none; border-radius: 20px; padding: 20px; cursor: pointer; transition: 0.3s;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.download-btn span { font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 900; }
.download-btn small { font-size: 0.75rem; font-weight: 700; opacity: 0.7; }
.download-btn i { font-size: 1.5rem; margin-bottom: 4px; }
.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: 40px; background: #fffbe6; border: 1px solid #fef08a; padding: 24px; border-radius: 20px; color: #854d0e; text-align: left; width: 100%; max-width: 440px; }
.tips-card h5 { font-size: 1rem; margin-bottom: 12px; 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; }
.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: 50px; }
.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%); }
.cta-title { font-size: 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; }
.toast { background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border: 1px solid var(--border); border-top: 4px solid var(--green); border-radius: 12px; padding: 16px 24px; 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 (max-width: 992px) {
    .hero { flex-direction: column; text-align: center; padding: 60px 24px 80px; }
    .hero-title { font-size: 3.5rem; }
    .hero-actions { justify-content: center; flex-wrap: wrap; }
    .hero-stats { flex-wrap: wrap; justify-content: center; display: none; }
    .studio-layout { flex-direction: column; }
    .studio-panel { flex: none; width: 100%; border-right: none; padding: 30px 20px; }
    .steps-grid { grid-template-columns: 1fr; }
    .col-row-pair { grid-template-columns: 1fr; }
    .nav-links { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: white; flex-direction: column; align-items: flex-start; padding: 80px 40px; transition: 0.3s; z-index: 101; box-shadow: -10px 0 30px rgba(0,0,0,0.1); }
    .nav-links.open { right: 0; }
    .nav-hamburger { display: block; position: relative; z-index: 102; }
    .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.5); backdrop-filter: blur(4px); z-index: 100; opacity: 0; transition: 0.3s; }
    .nav-overlay.open { display: block; opacity: 1; }
    .preview-sticky-wrap { position: relative; top: auto; display: flex; flex-direction: column; align-items: center; }
}
