/* ==============================================================
   SAAS EDITOR - GLOBAL STYLESHEET
   ============================================================== */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary: #64748b;
    --dark: #0f172a;
    --dark-surface: #1e293b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --border-dark: #334155;
    --text: #1e293b;
    --text-muted: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 10px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background-color: #f1f5f9;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: var(--primary-hover);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #0f172a;
    font-weight: 700;
    line-height: 1.25;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.2;
}
.btn:hover {
    transform: translateY(-1px);
}
.btn-primary {
    background-color: var(--primary);
    color: #ffffff !important;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
}
.btn-secondary {
    background-color: #e2e8f0;
    color: #334155 !important;
}
.btn-secondary:hover {
    background-color: #cbd5e1;
}
.btn-success {
    background-color: var(--success);
    color: #ffffff !important;
}
.btn-success:hover {
    background-color: #059669;
}
.btn-danger {
    background-color: var(--danger);
    color: #ffffff !important;
}
.btn-danger:hover {
    background-color: #dc2626;
}
.btn-warning {
    background-color: var(--warning);
    color: #ffffff !important;
}
.btn-dark {
    background-color: var(--dark);
    color: #ffffff !important;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}
.btn-lg {
    padding: 13px 26px;
    font-size: 16px;
    border-radius: 12px;
}
.btn-outline-primary {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary) !important;
}
.btn-outline-primary:hover {
    background: var(--primary-light);
}

/* Form Controls */
.form-group {
    margin-bottom: 16px;
}
.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.form-control, .form-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: #1e293b;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }

/* Demo Login Bar (Localhost Only) */
.demo-login-bar {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: #e0e7ff;
    padding: 12px 20px;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.demo-login-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.demo-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.btn-demo {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.btn-demo:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-demo-superadmin { background: #dc2626; }
.btn-demo-admin { background: #2563eb; }
.btn-demo-dev { background: #7c3aed; }
.btn-demo-user { background: #059669; }

/* Landing Page Styles */
.landing-nav {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.landing-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.brand-badge {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}

.hero-section {
    padding: 70px 20px 50px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}
.hero-container {
    max-width: 860px;
    margin: 0 auto;
}
.hero-title {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    color: #0f172a;
}
.hero-highlight {
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.6;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 40px auto 60px;
    padding: 0 20px;
}
.feature-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}
.feature-icon-video { background: #eff6ff; color: #2563eb; }
.feature-icon-collage { background: #fdf2f8; color: #db2777; }
.feature-icon-privacy { background: #ecfdf5; color: #059669; }
.feature-icon-speed { background: #fef3c7; color: #d97706; }

/* Auth Pages (Login & Register) */
.auth-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}
.auth-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 36px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.auth-header {
    text-align: center;
    margin-bottom: 26px;
}
.auth-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}
.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==============================================================
   SUPPORTED BY SECTION (Desktop 4 Kolom, Mobile 2 Kolom Bergerak)
   ============================================================== */
.supported-by-section {
    padding: 30px 20px;
    background: #ffffff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.supported-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.supported-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 20px;
}
.supported-grid-desktop {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: center;
}
.supported-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    color: #334155;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.supported-card:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #2563eb;
    transform: translateY(-2px);
}
.supported-marquee-mobile {
    display: none;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.supported-marquee-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: marqueeScroll 12s linear infinite;
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .supported-grid-desktop {
        display: none;
    }
    .supported-marquee-mobile {
        display: block;
    }
    .supported-card-mobile {
        min-width: 160px;
        flex-shrink: 0;
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ==============================================================
   SHOWCASE SECTION (Video Watermark & Image Collage)
   ============================================================== */
.showcase-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.showcase-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 70px;
}
.showcase-block.reverse {
    direction: rtl;
}
.showcase-block.reverse > * {
    direction: ltr;
}
@media (max-width: 900px) {
    .showcase-block, .showcase-block.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 30px;
    }
}
.showcase-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 16px;
}
.showcase-content p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 20px;
}
.showcase-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.showcase-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}
.showcase-feature-item span.icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.showcase-mockup {
    background: #0f172a;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
    border: 1px solid #334155;
    position: relative;
    overflow: hidden;
}

/* Interactive Watermark Demo Animation */
.watermark-demo-box {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 40px;
}
.floating-watermark-demo {
    position: absolute;
    background: rgba(15, 23, 42, 0.75);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    animation: bounceWatermark 6s ease-in-out infinite alternate;
}
@keyframes bounceWatermark {
    0%   { top: 15px; left: 15px; }
    33%  { top: 200px; left: 60%; }
    66%  { top: 40px; left: 55%; }
    100% { top: 210px; left: 20px; }
}

/* Interactive Collage Mockup Grid */
.collage-demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 120px);
    gap: 8px;
}
.collage-demo-cell {
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 8px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.collage-demo-cell:nth-child(1) {
    grid-column: span 2;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.collage-demo-cell:nth-child(2) {
    background: linear-gradient(135deg, #ec4899, #be185d);
}
.collage-demo-cell:nth-child(3) {
    background: linear-gradient(135deg, #10b981, #047857);
}
.collage-demo-cell:nth-child(4) {
    grid-column: span 2;
    background: linear-gradient(135deg, #f59e0b, #b45309);
}

/* ==============================================================
   PRICING SECTION (TOKEN CREDIT SYSTEM)
   ============================================================== */
.pricing-section {
    padding: 70px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-top: 1px solid var(--border);
}
.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.pricing-badge {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 14px;
}
.pricing-title {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}
.pricing-subtitle {
    font-size: 16px;
    color: #64748b;
    max-width: 650px;
    margin: 0 auto 48px;
    line-height: 1.6;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    text-align: left;
}
.pricing-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.pricing-card.featured {
    border: 2px solid #2563eb;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.12);
}
.pricing-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 999px;
}
.pricing-tokens-count {
    font-size: 38px;
    font-weight: 900;
    color: #2563eb;
    line-height: 1;
}
.pricing-tokens-unit {
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
}
.pricing-price {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 14px 0 18px 0;
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    color: #475569;
}
.pricing-features li {
    display: flex;
    gap: 8px;
}
.pricing-features li span.check {
    color: #10b981;
    font-weight: bold;
}

