/* Dijitalgru QR — Premium Dark Glassmorphism CSS */
:root {
    --bg-dark: #0b0e14;
    --card-bg: rgba(21, 25, 34, 0.85);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --accent: #06b6d4;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.12) 0%, transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
}

.hamburger-btn {
    display: none;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    cursor: pointer;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--card-border);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Layout Containers */
.main-container {
    flex: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px 40px 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 40%, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 36px auto;
    line-height: 1.6;
}

/* Studio & Generator Grid */
.studio-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    margin-top: 30px;
    align-items: start;
}

@media (max-width: 960px) {
    .studio-grid { grid-template-columns: 1fr; }
    .phone-simulator { position: relative !important; top: 0 !important; }
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 28px;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
}

.type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.type-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.type-btn:hover, .type-btn.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
}

.type-btn .icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.type-btn .title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
}

/* Mobile Simulator & Live Preview */
.phone-simulator {
    background: #111827;
    border: 12px solid #1f2937;
    border-radius: 44px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    position: sticky;
    top: 90px;
    align-self: start;
    z-index: 10;
    will-change: transform;
}

.phone-screen {
    background: #0f172a;
    border-radius: 26px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 560px;
    height: 580px;
    overflow: hidden;
    position: relative;
}

/* Full-bleed landing page mode inside simulator screen */
#preview-mode-landing-box {
    padding: 0 !important;
    display: none;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    border-radius: 26px;
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
}

#mockup-landing-content {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.qr-preview-img {
    max-width: 240px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 32px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.pricing-price {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin: 16px 0;
}

.pricing-features {
    list-style: none;
    margin: 24px 0;
    flex: 1;
}

.pricing-features li {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Cycle Buttons */
.cycle-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cycle-btn:hover {
    color: var(--text-main);
}

.cycle-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #151922;
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
}

/* Toggle Switch Controls */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}
.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--primary);
}
input:checked + .slider:before {
  transform: translateX(22px);
}

.filter-tab-btn {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter-tab-btn:hover, .filter-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE INFRASTRUCTURE
   ========================================================================== */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.responsive-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.responsive-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.hero-btn-group {
    display: flex;
    justify-content: center;
    gap: 16px;
}

@media (max-width: 960px) {
    .studio-grid {
        grid-template-columns: 1fr !important;
    }
    .phone-simulator {
        position: relative;
        top: 0;
        width: 100%;
        max-width: 380px;
        margin: 20px auto 0 auto;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 16px;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative;
    }
    
    .brand {
        font-size: 17px;
        white-space: nowrap;
    }

    .hamburger-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid var(--card-border);
        color: #ffffff;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 20px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .hamburger-btn:hover {
        background: rgba(99, 102, 241, 0.2);
        border-color: var(--primary);
    }

    .nav-links {
        display: none !important;
    }

    .nav-links.open {
        display: flex !important;
        flex-direction: column !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0f172a;
        border-bottom: 1px solid var(--card-border);
        padding: 18px 16px;
        gap: 10px;
        align-items: stretch;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.95);
        z-index: 999;
        animation: mobileNavSlideDown 0.2s ease-out forwards;
    }

    .nav-links.open .nav-link {
        font-size: 14px;
        padding: 12px 16px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        text-align: left;
        white-space: nowrap;
        width: 100%;
        color: var(--text-muted);
    }

    .nav-links.open .nav-link:hover, .nav-links.open .nav-link.active {
        background: rgba(99, 102, 241, 0.15);
        border-color: rgba(99, 102, 241, 0.4);
        color: #ffffff;
    }

    .nav-links.open .btn-primary {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 12px;
        font-size: 14px;
        white-space: nowrap;
        margin-top: 4px;
    }

    .main-container {
        padding: 16px 12px;
    }

    .hero {
        padding: 30px 12px 20px 12px;
    }

    .hero-title {
        font-size: 26px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-btn-group {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .hero-btn-group button {
        width: 100%;
        padding: 14px 20px !important;
        font-size: 15px !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .glass-card {
        padding: 18px 14px;
        border-radius: 18px;
    }

    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .pricing-card {
        padding: 20px 16px;
    }

    .modal-content {
        padding: 20px 14px !important;
        width: 95% !important;
        max-height: 90vh !important;
        border-radius: 18px;
    }

    footer {
        padding: 24px 16px !important;
    }

    .footer-top-row {
        flex-direction: column !important;
        text-align: center !important;
        gap: 16px !important;
    }

    .footer-top-row div {
        text-align: center !important;
    }

    .footer-legal-links {
        justify-content: center !important;
        gap: 10px !important;
    }
}

@media (max-width: 640px) {
    .responsive-grid-2, .responsive-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .type-selector {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .type-btn {
        padding: 10px 8px !important;
        font-size: 12px !important;
    }

    .cycle-selector-container {
        flex-direction: column !important;
        width: 100% !important;
    }

    .cycle-btn {
        width: 100% !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    .color-swatch {
        width: 28px;
        height: 28px;
    }

    .filter-tab-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
}

/* ==========================================================================
   INTERACTIVE ACCORDION FAQ STYLES
   ========================================================================== */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-item.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
    gap: 16px;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-icon {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    transition: transform 0.3s ease;
    shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: #ef4444;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    padding: 0 24px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 250px;
    padding: 0 24px 20px 24px;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 14px 16px;
        font-size: 14px;
    }
    .faq-answer {
        font-size: 13px;
        padding: 0 16px;
    }
    .faq-item.active .faq-answer {
        padding: 0 16px 16px 16px;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
