

/* 2. Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-body);
    font-family:'Inter', -apple-system, BlinkMacSystemFont,'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Atmospheric Ambient Mists */
.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 10%, var(--bg-gradient-1) 0%, transparent 40%),
        radial-gradient(circle at 80% 25%, var(--bg-gradient-2) 0%, transparent 45%),
        radial-gradient(circle at 50% 80%, var(--bg-gradient-3) 0%, transparent 50%);
    background-color: var(--bg-main);
    transition: background 0.3s ease, background-color 0.3s ease;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ==========================================================================
   BLOCK 1: GLOBAL NAVIGATION HEADER (Fixed 64px)
   ========================================================================== */
.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-standard);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-family:'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.logo-badge .material-symbols-outlined {
    font-size: 22px;
}

.nav-links {
    display: none;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 860px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-standard);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-indigo);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--box-border);
    background: var(--card-surface);
    color: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-standard);
}

.theme-toggle-btn:hover {
    color: var(--accent-indigo);
    border-color: var(--accent-indigo);
    transform: translateY(-1px);
}

.sign-in-link {
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    display: none;
}

@media (min-width: 640px) {
    .sign-in-link {
        display: inline-block;
    }
}

.btn-primary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.25rem;
    border-radius: 12px;
    background: var(--accent-gradient);
    color: #ffffff;
    text-decoration: none;
    font-family:'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: var(--btn-shadow);
    transition: var(--transition-smooth);
}

.btn-primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-hover);
}

/* ==========================================================================
   BLOCK 2: TOOL HERO HEADER
   ========================================================================== */
.hero-section {
    padding-top: 6.5rem;
    padding-bottom: 2rem;
    text-align: center;
    max-width: 896px; /* max-w-4xl per design.md Section 4.1 */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.breadcrumb-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.15rem;
    border-radius: 9999px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    font-size: 0.8125rem;
    color: var(--text-muted);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.breadcrumb-pill a {
    text-decoration: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
}

.breadcrumb-pill a:hover {
    color: var(--accent-indigo);
}

.breadcrumb-sep {
    color: var(--box-border);
}

.breadcrumb-active {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    color: var(--accent-indigo);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--emerald-dot);
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 var(--emerald-glow);
    }
    50% {
        box-shadow: 0 0 0 6px transparent;
    }
}

.hero-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-title-group {
        flex-direction: row;
    }
}

.hero-icon-box {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: var(--accent-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px var(--accent-glow);
    transition: transform 0.3s ease;
    cursor: default;
}

.hero-icon-box:hover {
    transform: scale(1.05) rotate(4deg);
}

.hero-icon-box .material-symbols-outlined {
    font-size: 2.25rem;
}

.hero-h1 {
    font-family:'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    line-height: 1.15;
}

@media (min-width: 640px) {
    .hero-h1 {
        font-size: 3rem;
    }
}

.hero-subtitle {
    max-width: 44rem;
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   BLOCK 3: INTERACTIVE TOOL WORKSPACE CANVAS
   ========================================================================== */
.workspace-wrapper {
    max-width: 1280px; /* max-w-7xl per design.md Section 4.1 Split 2-Column Workspace */
    margin: 0 auto 3.5rem auto;
    width: 100%;
}

.workspace-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px; /* rounded-3xl per design.md Section 6.2 */
    padding: 1.5rem; /* p-6 per design.md Section 6.2 */
    box-shadow: var(--card-shadow);
    transition: var(--transition-standard);
}

@media (min-width: 768px) {
    .workspace-card {
        padding: 2rem; /* sm:p-8 per design.md Section 6.2 */
    }
}

/* 3.1 Top Centered Language Control Bar */
.translator-control-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.lang-selector-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    background: var(--card-surface-subtle);
    border: 1.5px solid var(--box-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: var(--transition-standard);
}

.lang-selector-group:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.08);
}

.lang-select-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.4rem;
}

.lang-label .material-symbols-outlined {
    font-size: 18px;
    color: var(--accent-indigo);
}

.custom-select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--input-bg);
    color: var(--text-primary);
    border: 1.5px solid var(--input-border);
    border-radius: 9999px;
    padding: 0.55rem 2.25rem 0.55rem 1.1rem;
    font-family:'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    min-width: 155px;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: var(--transition-standard);
}

.lang-select:hover {
    border-color: var(--accent-indigo);
}

.lang-select:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 3.5px var(--focus-ring);
}

.select-arrow {
    position: absolute;
    right: 0.75rem;
    pointer-events: none;
    font-size: 19px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.swap-lang-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--box-border);
    background: var(--card-surface);
    color: var(--accent-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: var(--transition-standard);
}

.swap-lang-btn:hover {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: transparent;
    transform: rotate(180deg) scale(1.08);
    box-shadow: 0 4px 14px var(--accent-glow);
}

/* 3.2 Dual-Column Interactive Workspace Grid (Left/Right) */
.translator-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.editor-pane {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: var(--card-surface-subtle);
    border: 1.5px solid var(--box-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: border-color 0.2s ease;
    height: 390px;
    min-height: 340px;
}

@media (max-width: 768px) {
    .editor-pane {
        height: 360px;
        min-height: 320px;
    }
}

/* Convert / Translate Action CTA Button Wrapper */
.cta-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0;
    width: 100%;
}

.cta-wrapper .btn-primary-cta {
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    padding: 0.95rem 2.8rem;
    border-radius: 9999px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 25px -4px rgba(99, 102, 241, 0.45);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family:'Outfit', sans-serif;
    letter-spacing: 0.01em;
}

.cta-wrapper .btn-primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -4px rgba(99, 102, 241, 0.55);
}

.cta-wrapper .btn-primary-cta:active {
    transform: translateY(0);
}

.cta-wrapper .btn-primary-cta:disabled,
.cta-wrapper .btn-primary-cta.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 640px) {
    .cta-wrapper .btn-primary-cta {
        width: 100%;
        padding: 0.85rem 1.5rem;
    }
}

.editor-pane:focus-within {
    border-color: var(--accent-indigo);
}

.pane-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1.5px solid var(--box-border);
    background: var(--input-bg);
}

.pane-title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pane-icon {
    font-size: 20px;
    color: var(--text-muted);
}

.accent-icon {
    color: var(--accent-indigo) !important;
}

.pane-heading {
    font-family:'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Tab Switcher Pills */
.tab-pill-group {
    display: inline-flex;
    align-items: center;
    background: var(--card-surface-subtle);
    border: 1px solid var(--box-border);
    border-radius: 10px;
    padding: 2px;
    gap: 2px;
}

.tab-pill-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family:'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-standard);
}

.tab-pill-btn:hover {
    color: var(--text-primary);
}

.tab-pill-btn.active {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.pane-actions-group {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.pane-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    background: var(--card-surface-subtle);
    border: 1px solid var(--box-border);
    color: var(--text-body);
    font-family:'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-standard);
}

.pane-action-btn:hover {
    background: var(--card-surface);
    border-color: var(--accent-indigo);
    color: var(--accent-indigo);
    transform: translateY(-1px);
}

.pane-action-btn .material-symbols-outlined {
    font-size: 16px;
}

.pane-btn-danger:hover {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.hidden-input {
    display: none !important;
}

/* Dropzone & Preview Body */
.dropzone-body {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--input-bg);
    overflow: hidden;
    padding: 1.5rem;
    cursor: pointer;
}

.dropzone-body.drag-over {
    background: rgba(79, 70, 229, 0.05);
    border: 2px dashed var(--accent-indigo);
}

.empty-drop-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    max-width: 320px;
    pointer-events: none;
}

.empty-drop-circle {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--accent-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    transition: transform 0.3s ease;
}

.empty-drop-circle .material-symbols-outlined {
    font-size: 32px;
}

.dropzone-body:hover .empty-drop-circle {
    transform: scale(1.1) rotate(5deg);
}

.empty-drop-title {
    font-family:'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-primary);
}

.empty-drop-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.drop-meta-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.meta-pill {
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: var(--card-surface-subtle);
    border: 1px solid var(--box-border);
    font-family:'JetBrains Mono', monospace;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Image Preview Viewport */
.preview-viewport {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-image-element {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}

.preview-image-element.fit-mode-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.preview-toolstrip {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 20;
}

.toolstrip-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-standard);
}

.toolstrip-btn:hover {
    background: rgba(255, 255, 255, 0.20);
    transform: scale(1.1);
}

.toolstrip-btn .material-symbols-outlined {
    font-size: 18px;
}

.toolstrip-btn-danger:hover {
    background: rgba(239, 68, 68, 0.8) !important;
}

/* Processing Overlay */
.processing-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 50;
}

.spinner-ring {
    width: 44px;
    height: 44px;
    border: 3.5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spinRotate 0.8s linear infinite;
}

.processing-text {
    font-family:'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
}

/* Textarea Output Body */
.textarea-body {
    flex: 1;
    position: relative;
    background: var(--input-bg);
}

.code-textarea {
    width: 100%;
    height: 100%;
    padding: 1.25rem;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family:'Inter', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.7;
    resize: none;
    outline: none;
}

.code-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Custom Sleek Scrollbar */
.code-textarea::-webkit-scrollbar {
    width: 7px;
}

.code-textarea::-webkit-scrollbar-track {
    background: transparent;
}

.code-textarea::-webkit-scrollbar-thumb {
    background: var(--box-border);
    border-radius: 10px;
}

.code-textarea::-webkit-scrollbar-thumb:hover {
    background: var(--accent-indigo);
}

/* Pane Footer */
.pane-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-top: 1.5px solid var(--box-border);
    background: var(--input-bg);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.stats-counter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-pill strong {
    color: var(--text-primary);
    font-family:'JetBrains Mono', monospace;
}

.badge-confidence strong {
    color: var(--accent-indigo);
}

.footer-telemetry {
    font-family:'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   BLOCK 4: EDUCATIONAL CONTENT & SEO SECTION
   ========================================================================== */
.seo-content-section {
    max-width: 1280px;
    margin: 0 auto 4rem auto;
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
}

.section-title-wrap {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2.5rem auto;
}

.section-h2 {
    font-family:'Outfit', sans-serif;
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
    letter-spacing: -0.02em;
}

@media (min-width: 640px) {
    .section-h2 {
        font-size: 2.25rem;
    }
}

.section-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 1. Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    backdrop-filter: blur(16px);
    box-shadow: var(--card-shadow);
    transition: var(--transition-standard);
    display: flex;
    flex-direction: column;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent-indigo);
}

.step-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.08);
    color: var(--accent-indigo);
    font-family:'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 18px var(--accent-glow);
}

.step-icon-wrap .material-symbols-outlined {
    font-size: 26px;
}

.step-title {
    font-family:'Outfit', sans-serif;
    font-size: 1.1875rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
}

.step-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 2. Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.75rem;
    backdrop-filter: blur(16px);
    box-shadow: var(--card-shadow);
    transition: var(--transition-standard);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent-indigo);
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--accent-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.25s ease;
}

.feature-card:hover .feature-icon-box {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent-gradient);
    color: #ffffff;
}

.feature-icon-box .material-symbols-outlined {
    font-size: 24px;
}

.feature-title {
    font-family:'Outfit', sans-serif;
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 3. FAQ Accordion */
.faq-accordion {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    box-shadow: var(--card-shadow);
    transition: var(--transition-standard);
}

.faq-item:hover {
    border-color: var(--accent-indigo);
}

.faq-trigger {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
}

.faq-question {
    font-family:'Outfit', sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
}

.faq-chevron {
    font-size: 22px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.is-open .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent-indigo);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-surface-subtle);
    border-top: 1px solid transparent;
}

.faq-item.is-open .faq-answer {
    border-top-color: var(--box-border);
}

.faq-answer p {
    padding: 1.25rem 1.5rem;
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* ==========================================================================
   BLOCK 5: RELATED TOOLS CAROUSEL & FOOTER
   ========================================================================== */
.related-tools-section {
    max-width: 1280px;
    margin: 0 auto 5rem auto;
}

.tools-carousel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .tools-carousel {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tools-carousel {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tool-card {
    text-decoration: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(16px);
    box-shadow: var(--card-shadow);
    transition: var(--transition-standard);
    min-height: 190px;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent-indigo);
}

.tool-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 6px 14px var(--accent-glow);
}

.tool-card-icon .material-symbols-outlined {
    font-size: 22px;
}

.tool-card-title {
    font-family:'Outfit', sans-serif;
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.tool-card-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.tool-card-arrow {
    align-self: flex-end;
    font-size: 20px;
    color: var(--accent-indigo);
    margin-top: 1rem;
    transition: transform 0.2s ease;
}

.tool-card:hover .tool-card-arrow {
    transform: translateX(4px);
}

/* Master Universal Footer */
.global-footer {
    background: var(--card-surface);
    border-top: 1px solid var(--box-border);
    padding: 4rem 0 2rem 0;
    margin-top: auto;
    transition: var(--transition-standard);
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 900px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.footer-brand {
    max-width: 340px;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

@media (min-width: 640px) {
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-col-title {
    font-family:'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-col a {
    text-decoration: none;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--accent-indigo);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--box-border);
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        text-align: left;
    }
}

.footer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 0.75rem;
    font-weight: 700;
    color: #10B981;
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    animation: pulseGlow 1.8s infinite;
}

/* ==========================================================================
   TOAST NOTIFICATION COMPONENT
   ========================================================================== */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.4rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    color: #ffffff;
    font-family:'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.toast-notification.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-notification .material-symbols-outlined {
    font-size: 20px;
    color: #10B981;
}
