/* ==============================================================================
   HEDEF QR STUDIO — Master Design System & Motion Architecture
   Dark Luxury SaaS Theme with Sophisticated Burgundy Palette
   ============================================================================== */

:root {
    --bg-primary: #09090B;
    --bg-secondary: #101014;
    --bg-card: #151419;
    --bg-elevated: #1B191F;
    --bg-glass: rgba(21, 20, 25, 0.72);
    --bg-glass-strong: rgba(16, 16, 20, 0.88);

    --burgundy: #800020;
    --burgundy-deep: #4A0015;
    --burgundy-accent: #A32645;
    --burgundy-soft: #D14A68;
    --burgundy-glow: rgba(128, 0, 32, 0.34);
    --burgundy-tint: rgba(128, 0, 32, 0.14);

    --text-primary: #F8F5F6;
    --text-secondary: #A7A0A5;
    --text-muted: #766E74;
    --border: #30262C;
    --border-strong: #46353E;
    --border-burgundy: rgba(163, 38, 69, 0.45);

    --success: #22C55E;
    --success-bg: rgba(34, 197, 94, 0.12);
    --error: #EF4444;
    --error-bg: rgba(239, 68, 68, 0.12);
    --warning: #F59E0B;
    --warning-bg: rgba(245, 158, 11, 0.12);

    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.32);
    --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.62);
    --shadow-burgundy: 0 12px 36px rgba(128, 0, 32, 0.28);

    --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --nav-height: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; color: inherit; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: #372B32; border-radius: 999px; border: 2px solid var(--bg-secondary); }
::-webkit-scrollbar-thumb:hover { background: var(--burgundy-accent); }

/* Ambient Animated Burgundy Backdrop */
.ambient-backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.36;
    will-change: transform;
}

.ambient-orb-1 {
    width: 620px;
    height: 620px;
    top: -180px;
    right: -120px;
    background: radial-gradient(circle, rgba(163, 38, 69, 0.42) 0%, rgba(128, 0, 32, 0.14) 55%, transparent 75%);
    animation: orbDrift1 18s ease-in-out infinite alternate;
}

.ambient-orb-2 {
    width: 520px;
    height: 520px;
    bottom: -160px;
    left: -140px;
    background: radial-gradient(circle, rgba(128, 0, 32, 0.36) 0%, rgba(74, 0, 21, 0.15) 55%, transparent 75%);
    animation: orbDrift2 22s ease-in-out infinite alternate;
}

.ambient-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(248, 245, 246, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(248, 245, 246, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 20%, rgba(0,0,0,0.85) 0%, transparent 76%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 20%, rgba(0,0,0,0.85) 0%, transparent 76%);
}

@keyframes orbDrift1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-45px, 35px) scale(1.08); }
}

@keyframes orbDrift2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(55px, -35px) scale(1.1); }
}

/* Page Transition & Loading Screen */
.page-shell {
    position: relative;
    z-index: 1;
    animation: pageFadeIn 0.45s var(--ease-out);
}

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

.studio-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.studio-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-bar {
    width: 160px;
    height: 3px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    display: block;
    width: 48%;
    height: 100%;
    background: linear-gradient(90deg, var(--burgundy), var(--burgundy-soft));
    border-radius: 99px;
    animation: loaderSlide 1.1s ease-in-out infinite;
}

@keyframes loaderSlide {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(260%); }
}

/* Official Logo Placement — Always Preserves Original Aspect Ratio */
.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
}

.brand-logo-img {
    height: 38px;
    width: auto;
    max-width: 185px;
    object-fit: contain;
    background: transparent;
    display: block;
}

.brand-logo-img.brand-logo-lg {
    height: 52px;
    max-width: 240px;
}

.brand-logo-img.brand-logo-sm {
    height: 30px;
    max-width: 145px;
}

.brand-wordmark {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-wordmark strong {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text-primary);
}

.brand-wordmark span {
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--burgundy-soft);
    font-weight: 600;
}

.brand-logo-img:not(.is-missing) + .brand-wordmark.hide-when-logo-loaded {
    display: none;
}

.brand-logo-img.is-missing {
    display: none;
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
    position: relative;
}

.section-sm {
    padding: 64px 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--burgundy-tint);
    border: 1px solid var(--border-burgundy);
    color: var(--burgundy-soft);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--burgundy-soft);
    box-shadow: 0 0 10px var(--burgundy-soft);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.8); }
}

.section-title {
    font-size: clamp(1.85rem, 3.6vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.65;
}

.text-gradient {
    background: linear-gradient(135deg, #F8F5F6 15%, #E37990 60%, #A32645 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Floating Double-Pill Capsule Navbar */
.navbar {
    position: sticky;
    top: 14px;
    z-index: 900;
    padding: 0 20px;
    margin-top: 14px;
    background: transparent;
    border: none;
    pointer-events: none;
    transition: transform 0.3s var(--ease-out);
}

.navbar-inner {
    pointer-events: auto;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    height: 64px;
    padding: 8px 12px 8px 22px;
    border-radius: 999px;
    background: rgba(13, 13, 17, 0.86);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    transition: background 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}

.navbar.scrolled .navbar-inner {
    background: rgba(10, 10, 14, 0.95);
    border-color: rgba(255, 255, 255, 0.13);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(163, 38, 69, 0.15);
}

.nav-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-brand-logo {
    height: 28px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.16));
}

.nav-brand-title {
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    color: #FFFFFF;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.nav-link {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #CFCBD0;
    transition: color 0.2s, background 0.22s, box-shadow 0.22s;
    white-space: nowrap;
}

.nav-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    background: #FFFFFF;
    color: #09090B;
    font-weight: 700;
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.3);
}

.nav-link.active:hover {
    background: #FFFFFF;
    color: #09090B;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-circle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #E4DFE2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.nav-circle-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.nav-text-action {
    padding: 8px 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #D4CFD2;
    white-space: nowrap;
    transition: color 0.2s;
}

.nav-text-action:hover {
    color: #FFFFFF;
}

.nav-cta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    background: #FFFFFF;
    color: #09090B;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.22);
    transition: transform 0.2s var(--ease-out), box-shadow 0.22s, background 0.2s;
}

.nav-cta-pill:hover {
    background: #F8F5F6;
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(255, 255, 255, 0.34);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
}

.lang-switch a {
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.lang-switch a.active {
    background: var(--burgundy);
    color: var(--text-primary);
}

.nav-toggle {
    display: inline-flex;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.btn:active { transform: translateY(1px) scale(0.985); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-accent) 100%);
    color: var(--text-primary);
    border-color: rgba(209, 74, 104, 0.35);
    box-shadow: 0 8px 24px rgba(128, 0, 32, 0.34);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.18) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 0.65s var(--ease-out);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(163, 38, 69, 0.45);
}

.btn-primary:hover::after {
    transform: translateX(120%);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: #232028;
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

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

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-danger {
    background: var(--error-bg);
    color: #FCA5A5;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.22);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 0.98rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 7px 13px;
    font-size: 0.82rem;
    border-radius: var(--radius-xs);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-sm);
}

/* Cards & Glassmorphism */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    transition: border-color 0.28s var(--ease-out), transform 0.28s var(--ease-out), box-shadow 0.28s;
}

.card-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(248, 245, 246, 0.07);
    border-radius: var(--radius-lg);
}

.card-hover:hover {
    border-color: var(--border-burgundy);
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(163, 38, 69, 0.18);
}

/* Hero Section */
.hero {
    padding: 76px 0 92px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 56px;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 4.15rem);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -0.035em;
    margin: 0 0 14px;
}

.hero-kicker {
    font-size: 1rem;
    color: var(--burgundy-soft);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0 0 18px;
}

.hero-desc {
    font-size: 1.12rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 0 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(48, 38, 44, 0.7);
}

.hero-metric strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
}

.hero-metric span {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Animated Hero QR Showcase */
.hero-visual-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-glow-ring {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(163, 38, 69, 0.35) 0%, rgba(128, 0, 32, 0.08) 55%, transparent 72%);
    filter: blur(36px);
    animation: glowBreath 5s ease-in-out infinite alternate;
}

@keyframes glowBreath {
    0% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1.08); opacity: 1; }
}

.hero-qr-card {
    position: relative;
    width: 100%;
    max-width: 390px;
    padding: 26px;
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(27, 25, 31, 0.94) 0%, rgba(16, 16, 20, 0.96) 100%);
    border: 1px solid rgba(209, 74, 104, 0.34);
    box-shadow: 0 32px 72px rgba(0, 0, 0, 0.65), 0 0 42px rgba(128, 0, 32, 0.22);
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-qr-stage {
    position: relative;
    background: #FFFFFF;
    border-radius: 18px;
    padding: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}

.hero-qr-stage canvas, .hero-qr-stage svg {
    width: 100% !important;
    height: auto !important;
    display: block;
}

.hero-scan-beam {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--burgundy-soft), #FFFFFF, var(--burgundy-soft), transparent);
    box-shadow: 0 0 16px 3px rgba(209, 74, 104, 0.75);
    border-radius: 99px;
    animation: scanBeam 3.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    pointer-events: none;
}

@keyframes scanBeam {
    0% { top: 10%; opacity: 0; }
    10% { opacity: 1; }
    50% { top: 88%; opacity: 1; }
    90% { opacity: 1; }
    100% { top: 10%; opacity: 0; }
}

.hero-qr-corners span {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: var(--burgundy-soft);
    border-style: solid;
    pointer-events: none;
}
.hero-qr-corners span:nth-child(1) { top: 10px; left: 10px; border-width: 3px 0 0 3px; border-top-left-radius: 8px; }
.hero-qr-corners span:nth-child(2) { top: 10px; right: 10px; border-width: 3px 3px 0 0; border-top-right-radius: 8px; }
.hero-qr-corners span:nth-child(3) { bottom: 10px; left: 10px; border-width: 0 0 3px 3px; border-bottom-left-radius: 8px; }
.hero-qr-corners span:nth-child(4) { bottom: 10px; right: 10px; border-width: 0 3px 3px 0; border-bottom-right-radius: 8px; }

.hero-qr-footer {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hero-qr-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-primary);
}

.hero-floating-chip {
    position: absolute;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(21, 20, 25, 0.92);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
}

.hero-floating-chip.chip-top { top: 12px; right: -16px; }
.hero-floating-chip.chip-bottom { bottom: 20px; left: -24px; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* Feature & Category Cards */
.icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.25), rgba(74, 0, 21, 0.4));
    border: 1px solid var(--border-burgundy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy-soft);
    margin-bottom: 18px;
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 1.12rem;
    font-weight: 700;
}

.feature-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* Badges / Pills */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.74rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-burgundy { background: var(--burgundy-tint); color: var(--burgundy-soft); border-color: var(--border-burgundy); }
.badge-success { background: var(--success-bg); color: #4ADE80; border-color: rgba(34, 197, 94, 0.28); }
.badge-error { background: var(--error-bg); color: #FCA5A5; border-color: rgba(239, 68, 68, 0.28); }
.badge-warning { background: var(--warning-bg); color: #FCD34D; border-color: rgba(245, 158, 11, 0.28); }
.badge-muted { background: rgba(255,255,255,0.05); color: var(--text-secondary); border-color: var(--border); }

/* Forms & Inputs */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 7px;
}

.form-hint {
    font-size: 0.77rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.form-control, .form-select, .form-textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-control:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--burgundy-accent);
    box-shadow: 0 0 0 3px rgba(163, 38, 69, 0.22);
    background: #131217;
}

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

.input-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* Alerts */
.alert {
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 18px;
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-error { background: var(--error-bg); border-color: rgba(239, 68, 68, 0.35); color: #FECACA; }
.alert-success { background: var(--success-bg); border-color: rgba(34, 197, 94, 0.35); color: #BBF7D0; }
.alert-info { background: var(--burgundy-tint); border-color: var(--border-burgundy); color: #F5C2CE; }

/* Pricing Cards */
.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card.is-featured {
    background: linear-gradient(180deg, rgba(128, 0, 32, 0.2) 0%, var(--bg-card) 42%);
    border-color: var(--burgundy-accent);
    box-shadow: 0 24px 60px rgba(128, 0, 32, 0.22);
}

.pricing-price {
    font-size: 2.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 18px 0 6px;
}

.pricing-price small {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 22px 0 28px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-features li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--burgundy-soft);
}

/* Billing Toggle */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    border: 1px solid var(--border);
    gap: 4px;
}

.billing-toggle button {
    padding: 8px 18px;
    border: none;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
    transition: all 0.22s;
}

.billing-toggle button.active {
    background: var(--burgundy);
    color: var(--text-primary);
}

/* FAQ Accordion */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.faq-item.open { border-color: var(--border-burgundy); }

.faq-q {
    width: 100%;
    padding: 20px 22px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.faq-q svg { transition: transform 0.25s var(--ease-out); color: var(--burgundy-soft); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s var(--ease-out);
}

.faq-a-inner {
    padding: 0 22px 20px;
    color: var(--text-secondary);
    font-size: 0.94rem;
}

/* Template Cards */
.template-card {
    display: flex;
    flex-direction: column;
    padding: 18px;
    gap: 14px;
}

.template-preview-box {
    background: #0D0C10;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 210px;
}

.template-preview-box canvas {
    max-width: 170px;
    height: auto !important;
    border-radius: 10px;
}

/* Filter Pills */
.pill-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 34px;
}

.pill-btn {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pill-btn:hover { border-color: var(--border-strong); color: var(--text-primary); }
.pill-btn.active {
    background: var(--burgundy);
    border-color: var(--burgundy-accent);
    color: var(--text-primary);
    box-shadow: 0 6px 20px rgba(128, 0, 32, 0.32);
}

/* Modals */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(5, 5, 7, 0.76);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease-out), visibility 0.25s;
}

.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    width: 100%;
    max-width: 580px;
    max-height: 92vh;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    transform: translateY(14px) scale(0.97);
    transition: transform 0.28s var(--ease-out);
}

.modal-backdrop.open .modal-dialog {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.modal-header h3 { margin: 0; font-size: 1.2rem; }

/* Toast Notifications */
.toast-stack {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
}

.toast {
    padding: 13px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-md);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s var(--ease-out);
}

.toast.toast-success { border-color: rgba(34, 197, 94, 0.45); }
.toast.toast-error { border-color: rgba(239, 68, 68, 0.45); }
.toast.toast-info { border-color: var(--border-burgundy); }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Skeleton Loader */
.skeleton {
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, #17151B 25%, #231C22 50%, #17151B 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: perspective(1200px) translateY(36px) rotateX(9deg);
    transform-origin: 50% 100%;
    transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    padding: 68px 0 32px;
    margin-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-col h4 {
    margin: 0 0 16px;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(48, 38, 44, 0.7);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* Floating Menu Drawer (anchored below pill navbar) */
.mobile-drawer {
    position: fixed;
    top: 88px;
    right: max(20px, calc(50% - 590px));
    width: min(320px, calc(100vw - 32px));
    background: rgba(15, 15, 20, 0.96);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72);
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 895;
}

.mobile-drawer.open { display: flex; animation: pageFadeIn 0.22s var(--ease-out); }

.drawer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-drawer .nav-link {
    border-radius: 12px;
    padding: 10px 14px;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
    .nav-links { display: none; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-cta, .hero-metrics { justify-content: center; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .navbar { padding: 0 12px; top: 10px; }
    .navbar-inner { height: 58px; padding: 6px 8px 6px 14px; }
    .nav-actions .desktop-only { display: none; }
    .nav-cta-pill { padding: 8px 14px; font-size: 0.82rem; }
    .nav-circle-btn { width: 36px; height: 36px; }
    .hero { padding: 48px 0 64px; }
    .section { padding: 64px 0; }
    .grid-2, .grid-3, .grid-4, .input-row { grid-template-columns: 1fr; }
    .hero-floating-chip { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* ==============================================================================
   3D Landing Experience
   ============================================================================== */

.hero-3d {
    --px: 0;
    --py: 0;
    overflow: hidden;
    isolation: isolate;
}

.hero-3d .hero-grid {
    position: relative;
    z-index: 2;
}

.hero-3d-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    perspective: 900px;
    perspective-origin: 50% 25%;
    overflow: hidden;
}

.hero-3d-floor {
    position: absolute;
    left: -40%;
    width: 180%;
    bottom: 0;
    height: 130%;
    transform-origin: 50% 100%;
    transform: rotateX(78deg);
    background-image:
        linear-gradient(rgba(209, 74, 104, 0.32) 1px, transparent 1px),
        linear-gradient(90deg, rgba(209, 74, 104, 0.32) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.55) 30%, transparent 70%);
    mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.55) 30%, transparent 70%);
    opacity: 0.5;
    animation: floorMove 2.6s linear infinite;
}

@keyframes floorMove {
    from { background-position: 0 0; }
    to { background-position: 0 72px; }
}

.float-cube {
    --s: 40px;
    position: absolute;
    width: var(--s);
    height: var(--s);
    transform-style: preserve-3d;
    translate: calc(var(--px) * var(--depth, 20px)) calc(var(--py) * var(--depth, 20px));
    transition: translate 0.6s var(--ease-out);
    animation: cubeSpin 22s linear infinite;
}

.float-cube span {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(209, 74, 104, 0.55);
    background: linear-gradient(135deg, rgba(163, 38, 69, 0.38), rgba(74, 0, 21, 0.14));
    box-shadow: inset 0 0 18px rgba(209, 74, 104, 0.25);
    border-radius: 4px;
}

.float-cube span:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.float-cube span:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.float-cube span:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.float-cube span:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.float-cube span:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.float-cube span:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }

.float-cube.cube-a { --s: 46px; --depth: -34px; top: 14%; left: 4%; }
.float-cube.cube-b { --s: 30px; --depth: 26px; bottom: 4%; left: 47%; animation-duration: 16s; animation-direction: reverse; }
.float-cube.cube-c { --s: 22px; --depth: -18px; top: 9%; left: 50%; animation-duration: 12s; }
.float-cube.cube-d { --s: 54px; --depth: 40px; bottom: 10%; right: 3%; animation-duration: 28s; animation-direction: reverse; }

@keyframes cubeSpin {
    0% { transform: rotateX(0deg) rotateY(0deg) translateY(0); }
    50% { transform: rotateX(180deg) rotateY(200deg) translateY(-18px); }
    100% { transform: rotateX(360deg) rotateY(400deg) translateY(0); }
}

.hero-3d .hero-grid > div:first-child > * {
    animation: rise3d 0.9s var(--ease-out) both;
}
.hero-3d .hero-grid > div:first-child > *:nth-child(2) { animation-delay: 0.08s; }
.hero-3d .hero-grid > div:first-child > *:nth-child(3) { animation-delay: 0.16s; }
.hero-3d .hero-grid > div:first-child > *:nth-child(4) { animation-delay: 0.24s; }
.hero-3d .hero-grid > div:first-child > *:nth-child(5) { animation-delay: 0.32s; }
.hero-3d .hero-grid > div:first-child > *:nth-child(6) { animation-delay: 0.4s; }

@keyframes rise3d {
    from { opacity: 0; transform: perspective(900px) translateY(28px) rotateX(-22deg); }
    to { opacity: 1; transform: none; }
}

.hero-3d .hero-title {
    filter: drop-shadow(0 18px 34px rgba(128, 0, 32, 0.38));
}

.hero-3d .hero-visual-wrap {
    perspective: 1300px;
    min-height: 480px;
}

.hero-orbit {
    position: absolute;
    width: 470px;
    height: 470px;
    border-radius: 50%;
    border: 1px dashed rgba(209, 74, 104, 0.38);
    transform: rotateX(74deg);
    animation: orbitSpin 16s linear infinite;
    pointer-events: none;
}

.hero-orbit span {
    position: absolute;
    top: -6px;
    left: calc(50% - 6px);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--burgundy-soft);
    box-shadow: 0 0 18px 4px rgba(209, 74, 104, 0.7);
}

@keyframes orbitSpin {
    from { transform: rotateX(74deg) rotateZ(0deg); }
    to { transform: rotateX(74deg) rotateZ(360deg); }
}

.hero-scene {
    position: relative;
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    transform-style: preserve-3d;
    transform: rotateY(calc(-10deg + var(--px) * 8deg)) rotateX(calc(4deg - var(--py) * 6deg));
    transition: transform 0.7s var(--ease-out);
}

.hero-3d .hero-qr-card {
    transform-style: preserve-3d;
}

.hero-3d .hero-qr-card::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(128, 0, 32, 0.55), rgba(45, 0, 12, 0.85));
    transform: translateZ(-46px);
    filter: blur(2px);
    pointer-events: none;
}

.hero-3d .hero-floating-chip.chip-top { transform: translateZ(90px); top: 6px; right: -34px; }
.hero-3d .hero-floating-chip.chip-bottom { transform: translateZ(120px); bottom: 26px; left: -40px; }

.hero-qr-stage .hero-3d-canvas { display: none !important; }

.hero-qr-stage.has-3d {
    padding: 0;
    background: radial-gradient(circle at 50% 38%, #2A1D24 0%, #120E12 62%, #0B090C 100%);
}

.hero-qr-stage.has-3d .hero-3d-canvas {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.hero-qr-stage.has-3d .hero-flat-canvas { display: none !important; }
.hero-qr-stage .hero-qr-corners span,
.hero-qr-stage .hero-scan-beam { z-index: 2; }

/* 3D Tilt Cards */
.tilt-ready {
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 0.5s var(--ease-out), border-color 0.28s var(--ease-out), box-shadow 0.28s;
}

.card-hover.tilt-ready:hover,
.tilt-ready.is-tilting {
    transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(163, 38, 69, 0.22), 0 18px 40px rgba(128, 0, 32, 0.18);
}

.tilt-ready.is-tilting { transition: transform 0.1s linear, border-color 0.28s, box-shadow 0.28s; }

.tilt-ready::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.11), transparent 58%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tilt-ready.is-tilting::after { opacity: 1; }
.feature-card.tilt-ready, .template-card.tilt-ready { position: relative; }
.tilt-ready .icon-box { transform: translateZ(34px); transition: transform 0.4s var(--ease-out); }
.tilt-ready h3 { transform: translateZ(22px); }
.tilt-ready .template-preview-box { transform: translateZ(26px); }

.icon-box {
    box-shadow: 0 10px 22px rgba(128, 0, 32, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (max-width: 1024px) {
    .hero-3d .hero-visual-wrap { min-height: 0; }
    .hero-orbit { width: 380px; height: 380px; }
}

@media (max-width: 820px) {
    .hero-scene { transform: none; }
    .float-cube.cube-a, .float-cube.cube-c, .float-cube.cube-d { display: none; }
    .hero-orbit { width: 300px; height: 300px; }
    .hero-3d .hero-qr-card::before { display: none; }
}
