/* ==========================================================
   PLAGIARISM REMOVER: Bold Dark Design
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

/* === LENIS SMOOTH SCROLL === */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* === DARK (DEFAULT) === */
:root {
    --primary:        #3b82f6;
    --primary-hover:  #2563eb;
    --primary-glow:   rgba(59,130,246,0.18);
    --accent:         #f59e0b;
    --accent-glow:    rgba(245,158,11,0.18);
    --success:        #10b981;
    --danger:         #f43f5e;

    --bg-page:        #060c1a;
    --bg-card:        #0d1526;
    --bg-surface:     #111d33;
    --bg-input:       #0a1120;

    --border:         #1e2d4a;
    --border-focus:   #3b82f6;

    --text-heading:   #f0f6ff;
    --text-body:      #94a9c9;
    --text-muted:     #637594;
    --text-subtle:    #3d5070;

    --shadow-sm:  0 1px 4px rgba(0,0,0,0.5);
    --shadow-md:  0 4px 24px rgba(0,0,0,0.4), 0 1px 4px rgba(59,130,246,0.08);
    --shadow-lg:  0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(59,130,246,0.06);
    --shadow-btn: 0 4px 20px rgba(59,130,246,0.35);

    --gradient-hero:  linear-gradient(135deg, #060c1a 0%, #0d1a30 100%);
    --gradient-brand: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #7c3aed 100%);
    --gradient-card:  linear-gradient(145deg, #0d1526 0%, #0a1120 100%);
    --gradient-amber: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);

    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;
    --transition: 0.25s ease;
    --navbar-h:   70px;
}

/* === LIGHT MODE OVERRIDE === */
[data-theme="light"] {
    --bg-page:        #f4f7fd;
    --bg-card:        #ffffff;
    --bg-surface:     #edf2fb;
    --bg-input:       #f8faff;
    --border:         #dce4f5;
    --border-focus:   #3b82f6;
    --text-heading:   #0d1526;
    --text-body:      #2d3f5e;
    --text-muted:     #5a7098;
    --text-subtle:    #8fa5c5;
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.07);
    --shadow-md:  0 4px 16px rgba(59,130,246,0.10);
    --shadow-lg:  0 20px 50px rgba(59,130,246,0.12);
    --shadow-btn: 0 4px 14px rgba(59,130,246,0.30);
    --gradient-hero:  linear-gradient(135deg, #eef4ff 0%, #f0f7ff 100%);
    --gradient-card:  linear-gradient(145deg, #ffffff 0%, #f4f7fd 100%);
}

/* ==========================================================
   RESET & BASE
   ========================================================== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { 
    overflow-x: hidden;
}
body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    max-width: 100vw;
}

img { max-width: 100%; display: block; }
a  { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }
ul { list-style: none; }

/* ==========================================================
   CONTAINER
   ========================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================
   TYPOGRAPHY
   ========================================================== */
h1, h2, h3, h4, h5 {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    color: var(--text-heading);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================
   NAVBAR
   ========================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--navbar-h);
    background: rgba(6,12,26,0.85);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(59,130,246,0.08);
    transition: background 0.3s ease;
}
[data-theme="light"] .navbar {
    background: rgba(244,247,253,0.9);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    flex-shrink: 0;
    text-decoration: none;
}
.logo-icon {
    width: 280px; height: 180px;
    border-radius: 9px;
    /* background: var(--gradient-brand); */
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    color: #fff;
    /* box-shadow: 0 0 14px rgba(59,130,246,0.4); */
    flex-shrink: 0;
}
.logo span { color: var(--text-heading); letter-spacing: -0.01em; }
.logo span em { font-style: normal; color: var(--primary); }

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 7px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.nav-links a:hover { color: var(--text-heading); background: rgba(255,255,255,0.06); }
.nav-links a.active {
    color: var(--primary);
    background: rgba(59,130,246,0.12);
    font-weight: 600;
}
[data-theme="light"] .nav-links a:hover { background: rgba(0,0,0,0.05); }
[data-theme="light"] .nav-links a.active { background: rgba(59,130,246,0.08); }

/* Right-side nav controls */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-cta {
    background: var(--accent) !important;
    color: #000 !important;
    font-weight: 700 !important;
    box-shadow: 0 0 16px rgba(245,158,11,0.3);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(245,158,11,0.45); }

/* Theme Toggle */
.theme-toggle {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }

.mobile-menu-btn {
    display: none;
    width: 38px; height: 38px;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: color var(--transition);
}
.mobile-menu-btn:hover { color: var(--primary); }

/* ==========================================================
   MAIN CONTENT AREA
   ========================================================== */
main { flex: 1; }

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(59,130,246,0.3);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(59,130,246,0.5);
    color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-body);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--text-heading);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(59,130,246,0.08);
}

.btn-amber {
    background: var(--accent);
    color: #000;
    font-weight: 800;
    box-shadow: 0 0 20px rgba(245,158,11,0.3);
}
.btn-amber:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 28px rgba(245,158,11,0.5);
    color: #000;
}

.btn-sm  { padding: 8px 16px; font-size: 0.83rem; border-radius: 8px; }
.btn-lg  { padding: 15px 36px; font-size: 1.05rem; border-radius: 12px; }

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero-section {
    background: var(--gradient-hero);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(99,102,241,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139,92,246,0.07) 0%, transparent 50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 1.8s ease infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.8); }
}

.hero-section h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-section p.lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-stats {
    display: inline-flex;
    gap: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 14px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 24px;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.hero-stat span   { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

/* ==========================================================
   TOOL CARD
   ========================================================== */
.tool-section { padding: 48px 0; }

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.tool-card-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
}
.tool-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 8px;
}
.tool-card-title i { color: var(--primary); }

.tool-body { padding: 28px; }

.tool-grid {
    display: grid;
    grid-template-columns: 1fr 50px 1fr;
    gap: 0;
    align-items: stretch;
}

.editor-pane {
    display: flex;
    flex-direction: column;
}

.pane-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.83rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
}

.pane-word-count {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

textarea {
    width: 100%;
    flex: 1;
    min-height: 280px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.7;
    resize: vertical;
    font-family: 'Inter', sans-serif;
    transition: border-color var(--transition), box-shadow var(--transition);
}
textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px var(--primary-glow);
}
textarea[readonly] {
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-input));
    cursor: default;
}
textarea::placeholder { color: var(--text-subtle); }

/* Divider between panes */
.tool-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.divider-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: var(--shadow-btn);
    flex-shrink: 0;
}

.tool-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.tool-footer-left  { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tool-footer-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* File Upload Button */
.upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    background: var(--bg-card);
}
.upload-label:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-glow);
}
.upload-label input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
}

/* Status Messages */
.status-msg {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.status-msg.error   { background: rgba(239,68,68,0.08);  border: 1px solid rgba(239,68,68,0.2);  color: var(--danger);  display: flex; }
.status-msg.success { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); color: var(--success); display: flex; }

/* Loader */
.loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================
   FEATURES SECTION
   ========================================================== */
.features-section {
    padding: 60px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); max-width: 540px; margin: 0 auto; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--primary-glow);
    border: 1px solid rgba(99,102,241,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 18px;
}

.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text-heading); }
.feature-card p  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ==========================================================
   CARDS / BLOG
   ========================================================== */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}
.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { font-size: 0.78rem; color: var(--text-subtle); margin-bottom: 10px; font-weight: 500; }
.blog-card-body h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.blog-card-body h2 a { color: var(--text-heading); }
.blog-card-body h2 a:hover { color: var(--primary); }
.blog-card-body p { color: var(--text-muted); font-size: 0.9rem; flex: 1; margin-bottom: 20px; }

/* ==========================================================
   FORM INPUTS (General)
   ========================================================== */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-body);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}
.form-control::placeholder { color: var(--text-subtle); }

/* ==========================================================
   AUTH PAGES (Login / Register)
   ========================================================== */
.auth-page {
    min-height: calc(100vh - var(--navbar-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--gradient-hero);
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    width: 100%;
    max-width: 448px;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.auth-logo i {
    font-size: 2.8rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 8px;
}
.auth-logo h2   { font-size: 1.6rem; font-weight: 800; }
.auth-logo p    { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

.auth-divider {
    text-align: center;
    color: var(--text-subtle);
    font-size: 0.85rem;
    margin: 20px 0;
    position: relative;
}
.auth-divider::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 1px;
    background: var(--border);
}
.auth-divider span {
    position: relative;
    background: var(--bg-card);
    padding: 0 12px;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 56px 0 0;
    margin-top: auto;
}

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

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 14px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-subtle);
    margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p { color: var(--text-subtle); font-size: 0.85rem; }

/* ==========================================================
   ADMIN PANEL
   ========================================================== */
.admin-layout { display: flex; min-height: 100vh; background: var(--bg-page); }

.sidebar {
    width: 250px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-heading);
}
.sidebar-header i { color: var(--primary); font-size: 1.3rem; }

.sidebar-nav { padding: 16px 12px; flex: 1; }
.sidebar-nav ul { display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all var(--transition);
}
.sidebar-nav a i { width: 18px; text-align: center; }
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: var(--primary-glow);
    color: var(--primary);
}
.sidebar-nav a.danger { color: var(--danger); }
.sidebar-nav a.danger:hover { background: rgba(239,68,68,0.08); color: var(--danger); }
.sidebar-nav .nav-divider { height: 1px; background: var(--border); margin: 12px 0; }

.admin-main {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-page);
}

.admin-topbar {
    height: 64px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-topbar h1 { font-size: 1.1rem; font-weight: 700; color: var(--text-heading); }

.admin-content { padding: 32px; }

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.stat-icon-wrap.purple { background: rgba(99,102,241,0.1); color: var(--primary); }
.stat-icon-wrap.cyan   { background: rgba(6,182,212,0.1);  color: var(--accent);  }
.stat-icon-wrap.green  { background: rgba(16,185,129,0.1); color: var(--success); }

.stat-info p  { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; margin: 0 0 4px; }
.stat-info h3 { font-size: 1.9rem; font-weight: 800; color: var(--text-heading); margin: 0; line-height: 1; }

/* Data Table */
.data-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.data-table-head {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
}
.data-table-head h2 { font-size: 1rem; font-weight: 700; color: var(--text-heading); }

table { width: 100%; border-collapse: collapse; }
th {
    padding: 12px 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-subtle);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    text-align: left;
}
td {
    padding: 16px 20px;
    font-size: 0.9rem;
    color: var(--text-body);
    border-bottom: 1px solid var(--border);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-surface); }

/* ==========================================================
   TAGS / BADGES
   ========================================================== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-primary { background: var(--primary-glow); color: var(--primary); }
.badge-success { background: rgba(16,185,129,0.1); color: var(--success); }
.badge-danger  { background: rgba(239,68,68,0.1);  color: var(--danger);  }

/* ==========================================================
   FAQ PAGE
   ========================================================== */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
    transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--primary); }
.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-heading);
    user-select: none;
}
.faq-question i { color: var(--primary); font-size: 0.85rem; flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
    border-top: 1px solid var(--border);
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.35s ease;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 20px 24px; }

/* ==========================================================
   ACTION LINK / ICON BUTTONS
   ========================================================== */
.action-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.83rem;
    font-weight: 600;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all var(--transition);
    cursor: pointer;
    background: none;
    font-family: 'Inter', sans-serif;
}
.action-link:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }
.action-link.danger:hover { border-color: var(--danger); color: var(--danger); background: rgba(239,68,68,0.08); }

/* ==========================================================
   PAGE HERO (Non-index)
   ========================================================== */
.page-hero {
    background: var(--gradient-hero);
    border-bottom: 1px solid var(--border);
    padding: 56px 0;
    text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p  { color: var(--text-muted); font-size: 1rem; max-width: 550px; margin: 0 auto; }

/* ==========================================================
   UTILITY CLASSES
   ========================================================== */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.section-pad { padding: 64px 0; }
.mb-0 { margin-bottom: 0 !important; }

/* Badge Utilities */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}
.badge-primary { background: var(--primary-glow); color: var(--primary); border: 1px solid rgba(99,102,241,0.2); }
.badge-success { background: rgba(16,185,129,0.08); color: var(--success); border: 1px solid rgba(16,185,129,0.2); }
.badge-warning { background: rgba(245,158,11,0.08); color: #f59e0b; border: 1px solid rgba(245,158,11,0.2); }
.badge-danger  { background: rgba(239,68,68,0.08); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.badge-info    { background: rgba(6,182,212,0.08); color: #06b6d4; border: 1px solid rgba(6,182,212,0.2); }


/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
    .features-grid   { grid-template-columns: repeat(2, 1fr); }
    .footer-grid     { grid-template-columns: 1fr 1fr; }
    .stats-grid      { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .tool-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .tool-divider { transform: rotate(90deg); }
    .nav-links    { display: none; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--navbar-h);
        left: 0; right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: 12px;
        box-shadow: var(--shadow-md);
    }

    .mobile-menu-btn { display: flex; }
    .hero-stats  { flex-direction: column; gap:16px; }
}

@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid   { grid-template-columns: 1fr; }
    .stats-grid    { grid-template-columns: 1fr; }
    .auth-card     { padding: 32px 24px; }
    .admin-content { padding: 20px 16px; }
    .admin-layout  { flex-direction: column; }
    .sidebar       { width: 100%; }
}

/* ==========================================================
   HOME PAGE HERO (Two-Column Service Layout)
   ========================================================== */
.home-hero {
    background: var(--gradient-hero);
    border-bottom: 1px solid var(--border);
    padding: 60px 0 72px;
    position: relative;
    overflow: hidden;
}
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 40%, rgba(99,102,241,0.07) 0%, transparent 50%),
        radial-gradient(circle at 90% 20%, rgba(139,92,246,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.home-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

/* Left hero column */
.hero-left { padding-top: 8px; }

.hero-left h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.hero-lead {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 28px;
}
.hero-lead strong { color: var(--primary); font-weight: 700; }

/* Feature checklist */
.hero-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}
.hero-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-body);
    font-weight: 500;
}
.hero-features-list li i {
    color: var(--success);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Trust badges row */
.hero-trust-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-body);
    box-shadow: var(--shadow-sm);
}
.trust-badge i { color: var(--primary); }

/* ==========================================================
   QUOTE CARD (Right column of hero)
   ========================================================== */
.quote-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.quote-card-header {
    padding: 24px 28px;
    background: var(--gradient-brand);
    color: #fff;
}
.quote-card-header h2 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.quote-card-header p { color: rgba(255,255,255,0.8); font-size: 0.875rem; margin: 0; }

.quote-card-body { padding: 24px 28px; }

/* Two-column form row */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Required star */
.req { color: #f43f5e; font-weight: 700; }

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

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

.form-control {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: var(--text-body);
    width: 100%;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

.phone-input-wrap {
    display: flex;
    gap: 8px;
}

/* File drop zone / upload area */
.file-mini-upload {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border: 2px dashed var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.file-mini-upload:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.04);
}

.upload-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
}

.upload-text {
    display: flex;
    flex-direction: column;
}

.upload-text span {
    font-weight: 600;
    color: var(--text-heading);
    font-size: 0.95rem;
}

.upload-text small {
    color: var(--text-subtle);
    font-size: 0.8rem;
    margin-top: 2px;
}

/* ==========================================================
   COST CALCULATOR
   ========================================================== */
.calc-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: flex-start;
}

.calc-controls {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.calc-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.calc-table { width: 100%; border-collapse: collapse; }
.calc-table thead th {
    padding: 14px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-subtle);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.calc-table tbody td {
    padding: 13px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-body);
    transition: background var(--transition);
}
.calc-table tbody tr:last-child td { border-bottom: none; }
.calc-table tbody tr:hover td      { background: var(--bg-surface); }
.calc-table tbody tr.selected-row td {
    background: var(--primary-glow);
    color: var(--primary);
    font-weight: 700;
}

.calc-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--bg-surface);
    border-top: 2px solid var(--primary);
    flex-wrap: wrap;
    gap: 16px;
}
.calc-label  { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-subtle); margin-bottom: 4px; font-weight: 600; }
.calc-amount { font-size: 1.8rem; font-weight: 800; color: var(--primary); font-family: 'Sora', sans-serif; }
.calc-timeline { font-size: 1rem; font-weight: 600; color: var(--success); }

/* ==========================================================
   PROCESS STEPS
   ========================================================== */
.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    position: relative;
}
.process-step:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--primary); }

.step-num {
    font-family: 'Sora', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-glow);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 100px;
    padding: 3px 10px;
    display: inline-block;
    margin-bottom: 16px;
    letter-spacing: 0.08em;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--primary-glow);
    border: 1px solid rgba(99,102,241,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 auto 16px;
}

.process-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.process-step p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    flex-shrink: 0;
    color: var(--text-subtle);
    font-size: 1rem;
    padding-top: 60px;
}

/* ==========================================================
   TWO-COLUMN INFO (Causes / How to Avoid)
   ========================================================== */
.two-col-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.info-col h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }

.info-list { display: flex; flex-direction: column; gap: 20px; }

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.info-item i {
    font-size: 1rem;
    color: var(--danger);
    flex-shrink: 0;
    margin-top: 4px;
}
.info-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 4px;
}
.info-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================
   TESTIMONIALS
   ========================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all var(--transition);
}
.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--primary);
}

.stars      { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; }

.testimonial-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}
.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--text-heading); }
.testimonial-author span   { font-size: 0.78rem; color: var(--text-subtle); }

/* ==========================================================
   BLOG REDESIGN
   ========================================================== */
.blog-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 64px;
}
.blog-header h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; font-family: 'Sora', sans-serif; }
.blog-header p  { font-size: 1.1rem; color: var(--text-muted); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary); }

.blog-card-img {
    height: 220px;
    overflow: hidden;
    background: var(--bg-surface);
    position: relative;
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}
.blog-card:hover .blog-card-img img { transform: scale(1.1); }

.blog-card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.blog-card-meta span { color: var(--text-subtle); font-weight: 400; }

.blog-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-heading);
}

.blog-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    gap: 6px;
    transition: gap 0.2s;
}
.blog-card:hover .blog-card-footer { gap: 10px; }

/* SINGLE POST */
.post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}
.post-header { margin-bottom: 40px; text-align: center; }
.post-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}
.post-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    font-family: 'Sora', sans-serif;
}
.post-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--text-subtle);
    font-size: 0.9rem;
}
.post-meta-top span { display: flex; align-items: center; gap: 8px; }

.post-hero-img {
    width: 100%;
    height: 480px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: var(--shadow-lg);
}
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-body);
}
.post-content p { margin-bottom: 24px; }
.post-content h2 { font-size: 1.8rem; font-weight: 800; margin-top: 48px; margin-bottom: 20px; color: var(--text-heading); }
.post-content h3 { font-size: 1.4rem; font-weight: 700; margin-top: 32px; margin-bottom: 16px; color: var(--text-heading); }
.post-content ul, .post-content ol { margin-bottom: 24px; padding-left: 24px; }
.post-content li { margin-bottom: 12px; }

.post-footer {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .blog-header h1 { font-size: 2rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .post-header h1 { font-size: 2rem; }
    .post-hero-img { height: 300px; }
}

/* ==========================================================
   ABOUT PAGE
   ========================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 56px;
    align-items: center;
}

/* ==========================================================
   HOME PAGE RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
    .home-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .calc-wrapper    { grid-template-columns: 1fr; }
    .two-col-info    { grid-template-columns: 1fr; gap: 40px; }
    .about-grid      { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .process-steps { flex-direction: column; gap: 16px; }
    .process-arrow { transform: rotate(90deg); padding-top: 0; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .form-row-2    { grid-template-columns: 1fr; }
    .hero-trust-badges { flex-direction: column; }
}

/* ==========================================================
   MODERN UI ENHANCEMENTS (Animations & Glassmorphism)
   ========================================================== */

/* Glassmorphism Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08) !important;
}

[data-theme="dark"] .glass-card {
    background: rgba(20, 23, 38, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4) !important;
}

/* Decorative Background Blobs */
.bg-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
    animation: blob-float 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.bg-blob-1 { top: -100px; right: -50px; background: var(--primary); }
.bg-blob-2 { bottom: -100px; left: -50px; background: var(--accent); animation-delay: -5s; }
.bg-blob-3 { top: 40%; left: 10%; background: var(--success); opacity: 0.1; animation-duration: 25s; }

@keyframes blob-float {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(30px, -50px) scale(1.1); }
    66%  { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Scroll Reveal Utility */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: var(--delay, 0s);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Reveal Delays */
.reveal-1 { --delay: 0.1s; }
.reveal-2 { --delay: 0.2s; }
.reveal-3 { --delay: 0.3s; }
.reveal-4 { --delay: 0.4s; }

/* Enhanced Hover Effects */
.feature-card:hover, .process-step:hover, .testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px var(--primary-glow);
    border-color: var(--primary);
}

.btn:hover {
    box-shadow: 0 10px 20px -5px var(--primary-glow);
    transform: translateY(-2px);
}

/* Modern Gradient Text Shine */
.gradient-text-shine {
    background: linear-gradient(
        to right,
        var(--primary) 20%,
        var(--accent) 40%,
        var(--accent) 60%,
        var(--primary) 80%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shine 5s linear infinite;
}

@keyframes text-shine {
    to { background-position: 200% center; }
}

/* ==========================================================
   ANNOUNCEMENT BAR
   ========================================================== */
.announcement-bar {
    background: var(--gradient-brand);
    color: #fff;
    font-size: 0.875rem;
    padding: 10px 0;
    text-align: center;
    font-weight: 500;
}
.announcement-bar strong { font-weight: 700; }
.ann-dot {
    display: inline-block;
    width: 7px; height: 7px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.8s ease infinite;
    opacity: 0.9;
}
.ann-cta {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff !important;
    border-radius: 100px;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: background var(--transition);
}
.ann-cta:hover { background: rgba(255,255,255,0.35); color: #fff !important; }

/* ==========================================================
   HERO CTA GROUP
   ========================================================== */
.hero-cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

/* ==========================================================
   SECTION EYEBROW LABEL
   ========================================================== */
.section-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    background: var(--primary-glow);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 100px;
    padding: 4px 14px;
    margin-bottom: 14px;
}

/* ==========================================================
   STATS BAR
   ========================================================== */
.stats-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    box-shadow: var(--shadow-sm);
}

.stats-bar-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.stat-bar-item {
    text-align: center;
    flex: 1;
    min-width: 100px;
}
.stat-num {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.stat-num-suffix {
    font-family: 'Sora', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}
.stat-bar-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 4px;
}
.stat-bar-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
    flex-shrink: 0;
}

/* ==========================================================
   RISK SECTION
   ========================================================== */
.risk-section { background: var(--bg-page); }

.risk-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.risk-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.risk-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(239,68,68,0.3);
}
.risk-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 16px;
}
.danger-icon {
    background: rgba(239,68,68,0.08);
    color: var(--danger);
    border: 1px solid rgba(239,68,68,0.15);
}
.risk-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text-heading); }
.risk-card p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

.risk-solution-banner {
    background: linear-gradient(135deg, var(--primary-glow) 0%, rgba(6,182,212,0.06) 100%);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.rsb-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.rsb-left > i {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}
.rsb-left strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 4px;
}
.rsb-left p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ==========================================================
   COMPARISON TABLE
   ========================================================== */
.comparison-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}
.comparison-table thead th {
    padding: 16px 22px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--bg-surface);
    border-bottom: 2px solid var(--border);
    color: var(--text-muted);
    text-align: center;
}
.comparison-table thead th:first-child { text-align: left; }
.comparison-table thead th.us-col {
    background: var(--primary-glow);
    color: var(--primary);
}
.comparison-table tbody td {
    padding: 14px 22px;
    font-size: 0.9rem;
    color: var(--text-body);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.comparison-table tbody td:first-child { text-align: left; font-weight: 500; }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover td { background: var(--bg-surface); }
.comparison-table .us-col { background: rgba(99,102,241,0.04); }
.comparison-table .check { color: var(--success); font-weight: 700; }
.comparison-table .cross  { color: var(--danger); }

/* ==========================================================
   SUBJECTS GRID
   ========================================================== */
.subjects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.subject-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-body);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    cursor: default;
}
.subject-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-glow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.subject-chip i { color: var(--primary); font-size: 0.9rem; }

/* ==========================================================
   CTA SECTION
   ========================================================== */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-brand);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.cta-bg-effect {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(255,255,255,0.10) 0%, transparent 60%),
                radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.cta-section h2 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 16px;
}
.cta-section p {
    color: rgba(255,255,255,0.82);
    max-width: 540px;
    margin: 0 auto 36px;
    font-size: 1.05rem;
    line-height: 1.7;
}
.cta-btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.cta-btn-white {
    background: #fff;
    color: var(--primary) !important;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.cta-btn-white:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.25); color: var(--primary) !important; }
.cta-btn-outline-white {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,0.7);
    font-weight: 700;
    padding: 16px 40px;
    border-radius: var(--radius-lg);
    font-size: 1rem;
}
.cta-btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff !important; transform: translateY(-3px); }
.cta-trust-note {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7) !important;
    margin: 0 !important;
}
.cta-trust-note i { margin-right: 4px; }

/* ==========================================================
   FAQ SECTION
   ========================================================== */
.faq-list .faq-item { margin-bottom: 10px; }

/* ==========================================================
   RESPONSIVE: NEW SECTIONS
   ========================================================== */
@media (max-width: 900px) {
    .risk-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-bar-grid { gap: 16px; }
    .stat-bar-divider { display: none; }
}
@media (max-width: 600px) {
    .risk-grid { grid-template-columns: 1fr; }
    .risk-solution-banner { flex-direction: column; align-items: flex-start; }
    .hero-cta-group { flex-direction: column; }
    .cta-btn-group  { flex-direction: column; align-items: center; }
    .stat-num { font-size: 1.5rem; }
}

/* =================================================================
   V2 REDESIGN: BOLD DARK SYSTEM
   ================================================================= */

/* --- Hero --- */
.v2-hero {
    position: relative;
    padding: 80px 0 70px;
    background: var(--bg-page);
    overflow: hidden;
}
.v2-hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59,130,246,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.v2-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}
.v2-glow-1 {
    width: 500px; height: 500px;
    background: rgba(59,130,246,0.12);
    top: -150px; right: -100px;
}
.v2-glow-2 {
    width: 400px; height: 400px;
    background: rgba(245,158,11,0.07);
    bottom: -100px; left: -80px;
}
.v2-hero .container { position: relative; z-index: 1; }
/* --- Hero V3 --- */
.v2-hero-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: flex-start;
    padding-top: 20px;
}

.v2-hero-labels {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.v2-trust-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.v2-hero-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px 0 48px;
}

.v2-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.v2-feature-item i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 3px;
}

.v2-feature-item span {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.4;
}

.v2-feature-item strong {
    color: var(--text-heading);
}

.v2-typing-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--primary);
    border-radius: 4px 12px 12px 4px;
}

.v2-typing-icon {
    color: var(--primary);
    font-size: 1.1rem;
}

.v2-typing-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    min-height: 1.5em;
    display: flex;
    align-items: center;
}

.v2-typing-text::after {
    content: '|';
    margin-left: 2px;
    color: var(--primary);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.v2-hero-visual-snippet {
    position: relative;
    margin-bottom: 32px;
}

.v2-hero-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.v2-floating-success {
    position: absolute;
    bottom: -15px;
    right: 20px;
    background: var(--bg-card);
    padding: 10px 18px;
    border-radius: 100px;
    border: 1px solid var(--success);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--success);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 10;
}

.v2-float {
    animation: floating 4s ease-in-out infinite;
}

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

.v2-hero-trust-footer {
    border-top: 1px solid var(--border);
    padding-top: 32px;
}

.v2-student-count {
    display: flex;
    align-items: center;
    gap: 16px;
}

.v2-student-count p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
}

.v2-student-count strong {
    color: var(--text-heading);
}

.v2-avatars {
    display: flex;
    align-items: center;
}

.v2-avatars img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--bg-page);
    margin-left: -12px;
}

.v2-avatars img:first-child {
    margin-left: 0;
}

.v2-more-avatars {
    width: 36px;
    height: 36px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    margin-left: -12px;
}

@keyframes meshScroll {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(20px, 10px); }
}

.v2-hero-content { position: relative; z-index: 2; }

.v2-hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.v2-mockup-wrapper {
    position: relative;
    max-width: 100%;
}

.v2-hero-mockup {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(59,130,246,0.15);
    border: 1px solid rgba(255,255,255,0.1);
}

.v2-floating-badge {
    position: absolute;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 12px 20px;
    border-radius: 100px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 3;
}

.v2-floating-badge.top-right { top: 10%; right: -20px; border-left: 3px solid var(--success); }
.v2-floating-badge.bottom-left { bottom: 10%; left: -20px; border-right: 3px solid var(--primary); }

.v2-floating-badge i { color: var(--primary); font-size: 1rem; }
.v2-floating-badge.top-right i { color: #10b981; }

.v2-float {
    animation: floating 6s ease-in-out infinite;
}

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

.v2-hero-trust { margin-top: 40px; }
.v2-trust-pill {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.v2-trust-pill i { color: var(--primary); }

@media (max-width: 1100px) {
    .v2-hero-split { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .v2-hero-content { display: flex; flex-direction: column; align-items: center; }
    .v2-floating-badge { position: relative; top: auto !important; right: auto !important; left: auto !important; bottom: auto !important; margin-top: 20px; display: inline-flex; }
}
.v2-form-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.v2-form-header p { color: var(--text-muted); font-size: 0.875rem; margin: 0; }
.v2-form-body { padding: 24px 28px; }

/* --- Stats Row --- */
.v2-stats-row {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}
.v2-stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.v2-stat-pill {
    text-align: center;
    padding: 12px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.v2-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}
.v2-stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
}
.v2-stat-icon {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary);
    margin-top: -2px;
}
.v2-stat-num.v2-gold, .v2-stat-icon.v2-gold { color: #f59e0b; }
.v2-stat-pill small {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
    margin-top: 4px;
}
.v2-stat-divider { width: 1px; height: 44px; background: var(--border); }

/* --- Sections --- */
.v2-section {
    padding: 80px 0;
}
.v2-dark-surface {
    background: var(--bg-surface);
}
[data-theme="light"] .v2-dark-surface { background: #edf2fb; }

.v2-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 52px;
}
.v2-section-header h2 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
}
.v2-section-header p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; margin: 0; }
.v2-text-blue {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.v2-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 100px;
    padding: 5px 14px;
    margin-bottom: 14px;
}
.v2-eyebrow.danger {
    color: var(--danger);
    background: rgba(244,63,94,0.1);
    border-color: rgba(244,63,94,0.25);
}

/* --- Danger Cards --- */
.v2-bento-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.v2-danger-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.v2-danger-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(244,63,94,0.04) 0%, transparent 60%);
    pointer-events: none;
}
.v2-danger-card:hover {
    transform: translateY(-5px);
    border-color: rgba(244,63,94,0.35);
    box-shadow: 0 12px 40px rgba(244,63,94,0.12);
}
.v2-danger-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(244,63,94,0.12);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -0.04em;
}
.v2-danger-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--text-heading); }
.v2-danger-card p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* Solution strip */
.v2-solution-strip {
    background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(59,130,246,0.04) 100%);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 14px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.v2-ss-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.v2-ss-left > i { font-size: 2rem; color: #10b981; }
.v2-ss-left strong { display: block; font-size: 1rem; font-weight: 700; color: var(--text-heading); margin-bottom: 4px; }
.v2-ss-left p { margin: 0; font-size: 0.875rem; color: var(--text-muted); }

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.22s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59,130,246,0.35);
    box-shadow: 0 12px 40px rgba(59,130,246,0.1);
}
.feature-icon {
    width: 52px; height: 52px;
    border-radius: 13px;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.2);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.v2-amber-icon {
    background: rgba(245,158,11,0.12);
    border-color: rgba(245,158,11,0.2);
    color: var(--accent);
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text-heading); }
.feature-card p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* CTA Section */
.v2-cta-section {
    padding: 90px 0;
    background: var(--gradient-brand);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.v2-cta-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(255,255,255,0.1) 0%, transparent 55%),
                radial-gradient(circle at 20% 80%, rgba(245,158,11,0.15) 0%, transparent 50%);
    pointer-events: none;
}
.v2-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    border-radius: 100px;
    padding: 7px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 22px;
}
.v2-cta-section h2 {
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}
.v2-cta-section p {
    color: rgba(255,255,255,0.78);
    max-width: 500px;
    margin: 0 auto 36px;
    font-size: 1.05rem;
    line-height: 1.65;
}
.v2-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.v2-cta-main {
    background: #fff !important;
    color: #1d4ed8 !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.v2-cta-main:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); color: #1d4ed8 !important; }
.v2-cta-phone {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,0.6) !important;
}
.v2-cta-phone:hover { background: rgba(255,255,255,0.12) !important; border-color: #fff !important; color: #fff !important; }

/* --- V2 Responsive --- */
@media (max-width: 1100px) {
    .v2-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .v2-bento-4    { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .v2-trust-bento { max-width: 100%; }
}
@media (max-width: 768px) {
    .v2-hero { padding: 50px 0; }
    .v2-section { padding: 56px 0; }
    .v2-bento-4    { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .v2-cta-buttons { flex-direction: column; align-items: center; }
    .v2-solution-strip { flex-direction: column; align-items: flex-start; }
    .v2-stats-inner { gap: 8px; }
    .v2-stat-divider { display: none; }
    .v2-h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
    .mobile-menu-btn { 
        display: flex; 
        z-index: 2001; 
        font-size: 1.4rem; 
        width: 44px;
        height: 44px;
        margin-right: -10px;
    }
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    nav .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 290px;
        height: 100vh;
        background: var(--bg-card);
        border-left: 1px solid var(--border);
        padding: 80px 24px 40px;
        gap: 8px;
        z-index: 2000;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.5);
        border-bottom: none;
    }

    nav .nav-links.open {
        transform: translateX(0);
    }

    .nav-links li { width: 100%; }

    .nav-links a {
        display: block;
        padding: 12px 20px;
        font-size: 1.05rem;
        font-weight: 600;
        border-radius: 12px;
        text-align: left;
    }

    .nav-links a:hover {
        background: rgba(59,130,246,0.08);
        padding-left: 24px;
    }

    /* Mobile Only CTA */
    .nav-mobile-only {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border);
    }

    .nav-mobile-cta {
        background: var(--accent) !important;
        color: #000 !important;
        text-align: center !important;
        font-weight: 800 !important;
        padding: 14px !important;
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
    }

    /* Backdrop overlay when menu is open */
    body.menu-open .navbar {
        z-index: 2002;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 2001;
        animation: fadeIn 0.3s ease;
    }
}

/* RESPONSIVE UTILITIES */
.v2-grid-responsive-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.v2-grid-responsive-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.v2-card-responsive {
    padding: 48px;
}

@media (max-width: 991px) {
    .v2-grid-responsive-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .v2-grid-responsive-2,
    .v2-grid-responsive-3 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .v2-card-responsive {
        padding: 24px !important;
    }
    .v2-h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hide mobile CTA on desktop */
@media (min-width: 769px) {
    .nav-mobile-only { display: none; }
}

@media (max-width: 480px) {
    .v2-cta-row { flex-direction: column; }
    .v2-trust-bento { flex-wrap: wrap; }
    .v2-trust-sep { display: none; }
}

/* ===================== LOGO CAROUSEL (Infinite Loop) ===================== */
.v2-logo-carousel-section {
    padding: 60px 0;
    background: var(--bg-page);
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.v2-logo-carousel-wrapper {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

.v2-logo-track {
    display: flex;
    width: calc(250px * 10); /* 5 logos duplicated */
    animation: scroll 30s linear infinite;
    gap: 100px;
}

.v2-logo-item {
    flex-shrink: 0;
    width: 200px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-logo-item img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.v2-logo-item img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5 - 500px)); }
}

/* Pause animation on hover */
.v2-logo-track:hover {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .v2-logo-track {
        gap: 60px;
        width: calc(180px * 10);
        animation: scroll 20s linear infinite;
    }
    .v2-logo-item {
        width: 140px;
    }
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-180px * 5 - 300px)); }
    }
}

/* --- Hero Form V3 Refinements --- */
.v2-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 40px rgba(59,130,246,0.1);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}
.v2-form-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}
.v2-form-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.v2-form-header p { color: var(--text-muted); font-size: 0.875rem; margin: 0; }
.v2-form-body { padding: 24px 28px; }

.v2-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
@media (max-width: 480px) {
    .v2-form-grid { grid-template-columns: 1fr; }
    .v2-form-header { padding: 20px; }
    .v2-form-body { padding: 20px; }
    .nav-cta { display: none; }
}

.file-mini-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed var(--border);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}
.file-mini-upload:hover {
    border-color: var(--primary);
    background: rgba(59,130,246,0.05);
    color: var(--text-body);
}
.file-mini-upload i { color: var(--primary); }

.v2-hero-visual {
    position: relative;
}

.v2-hero-mini-visual {
    position: absolute;
    bottom: -40px;
    right: -20px;
    z-index: 5;
}


@media (max-width: 1100px) {
    .v2-hero-mini-visual { display: none; }
}

/* --- LOGO SLIDER (RECURSIVE) --- */
.v2-logo-section {
    padding: 60px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.v2-logo-track-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.v2-logo-track {
    display: flex;
    width: max-content;
    animation: logo-scroll 40s linear infinite;
}

.v2-logo-track:hover {
    animation-play-state: paused;
}

.v2-logo-item {
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-logo-item img {
    height: 40px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.6);
    transition: all 0.4s ease;
}

.v2-logo-item img:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.1);
}

@keyframes logo-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .v2-logo-section { padding: 40px 0; }
    .v2-logo-item { padding: 0 30px; }
    .v2-logo-item img { height: 30px; }
}

/* --- TESTIMONIAL CAROUSEL (Infinite Scroll) --- */
.v2-testimonial-section {
    padding: 80px 0;
    overflow: hidden;
    background: var(--bg-page);
    border-top: 1px solid var(--border);
}

.v2-testimonial-track-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    width: 100%;
}

.v2-testimonial-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    list-style: none;
    padding: 0;
    margin: 0;
    animation: testimonial-scroll 60s linear infinite;
}

.v2-testimonial-track:hover {
    animation-play-state: paused;
}

.v2-testimonial-item {
    width: 450px !important;
    padding: 15px !important;
    flex-shrink: 0 !important;
    display: block !important;
}

.v2-testimonial-item .testimonial-card {
    height: 100%;
    margin: 0;
}

@keyframes testimonial-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .v2-testimonial-section { padding: 50px 0; }
    .v2-testimonial-item { width: 320px !important; }
    .v2-testimonial-track { animation-duration: 40s; }
}

/* --- WhatsApp Floating Button --- */
.v2-whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.v2-whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.v2-whatsapp-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: wa-pulse 2s infinite;
    z-index: -1;
}

@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.v2-wa-tooltip {
    position: absolute;
    right: 75px;
    background: #000;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.v2-wa-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid #000;
}

.v2-whatsapp-float:hover .v2-wa-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

@media (max-width: 768px) {
    .v2-whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    .v2-wa-tooltip { display: none; }
}

/* ==========================================================
   VIDEO TUTORIAL SECTION
   ========================================================== */
.video-container-wrapper {
    max-width: 900px; margin: 0 auto;
    border-radius: var(--radius-xl); padding: 8px;
    background: linear-gradient(145deg, rgba(59,130,246,0.2) 0%, rgba(59,130,246,0.02) 100%);
    box-shadow: var(--shadow-lg); position: relative;
}
.video-player-box {
    position: relative; width: 100%; padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: var(--radius-lg); overflow: hidden;
    background: #000; border: 1px solid var(--border);
}
.tutorial-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
}
.video-overlay {
    position: absolute; inset: 0;
    background: rgba(6,12,26,0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity var(--transition); z-index: 2; cursor: pointer;
}
.video-overlay.hidden { opacity: 0; pointer-events: none; }
.play-btn {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--primary); color: #fff; border: none;
    font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 0 30px rgba(59,130,246,0.6);
    transition: all 0.3s ease; margin-bottom: 16px; padding-left: 6px;
}
.video-overlay:hover .play-btn {
    transform: scale(1.1); background: var(--primary-hover);
    box-shadow: 0 0 40px rgba(59,130,246,0.8);
}
.video-overlay h3 { color: #fff; font-size: 1.2rem; font-weight: 600; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
