/* ==========================================================================
   SSSCapcut Master Design System (Modern, High Speed, SEO & AdSense Optimized)
   ========================================================================== */

:root {
    --primary: #06b6d4;
    --primary-dark: #0891b2;
    --primary-light: #67e8f9;
    --secondary: #2563eb;
    --secondary-dark: #1d4ed8;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-subtle: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.25);
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ================= HEADER NAVBAR ================= */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.logo-icon svg {
    width: 34px;
    height: 34px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-dark);
    background: var(--bg-card-subtle);
}

.nav-cta-btn {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff !important;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.nav-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ================= HERO SECTION ================= */
.hero-section {
    padding: 3.5rem 0 2rem;
    background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.12) 0%, rgba(248, 250, 252, 0) 70%);
}

.hero-container {
    max-width: 860px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #0284c7;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* ================= DOWNLOADER COMPONENT ================= */
.downloader-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 2rem;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.downloader-card:focus-within {
    box-shadow: var(--shadow-glow), var(--shadow-xl);
    border-color: var(--primary);
}

.download-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 18px;
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    pointer-events: none;
}

.url-input {
    width: 100%;
    padding: 1.1rem 5.5rem 1.1rem 3.25rem;
    font-size: 1.05rem;
    font-family: inherit;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.url-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
}

.paste-btn {
    position: absolute;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 7px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.paste-btn svg {
    width: 16px;
    height: 16px;
}

.paste-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0891b2 100%);
    color: #ffffff;
    border: none;
    padding: 1.1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(8, 145, 178, 0.35);
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
}

.submit-btn:active {
    transform: translateY(0);
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Status Alert */
.status-alert {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
}

.status-alert.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.status-alert.info {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* ================= RESULT CARD ================= */
.result-card {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color);
    text-align: left;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.result-media {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0f172a;
    box-shadow: var(--shadow-md);
}

.result-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 9/16;
    max-height: 340px;
    object-fit: cover;
    display: block;
}

.result-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.result-meta span {
    background: var(--bg-card-subtle);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.dl-btn svg {
    width: 20px;
    height: 20px;
}

.dl-btn-hd {
    background: linear-gradient(135deg, #0f172a 0%, #0891b2 100%);
    color: #ffffff !important;
}

.dl-btn-hd:hover {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dl-btn-mp3 {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff !important;
}

.dl-btn-mp3:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Trust Signals */
.trust-signals {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ================= AD CONTAINERS (Zero CLS AdSense Ready) ================= */
.ad-container-wrapper {
    display: none;
}


/* ================= SECTION COMMONS ================= */
.section {
    padding: 4.5rem 0;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* Steps Section */
.steps-section {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-card.highlight-step {
    border-color: var(--primary);
    background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}

.step-num {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: 800;
    color: #e2e8f0;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.step-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.feature-icon-wrapper svg {
    width: 26px;
    height: 26px;
}

.grad-1 { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.grad-2 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.grad-3 { background: linear-gradient(135deg, #10b981, #059669); }
.grad-4 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.grad-5 { background: linear-gradient(135deg, #ec4899, #be185d); }
.grad-6 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Article / Prose Content */
.content-section {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.article-container {
    max-width: 900px;
}

.prose-content h2 {
    font-size: 1.85rem;
    font-weight: 800;
    margin: 2.25rem 0 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.prose-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 1.75rem 0 0.75rem;
    color: var(--text-primary);
}

.prose-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.prose-content ul, .prose-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.prose-content li {
    margin-bottom: 0.5rem;
    font-size: 1.02rem;
}

/* Comparison Table */
.table-responsive {
    overflow-x: auto;
    margin: 1.75rem 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.comparison-table th {
    background: var(--bg-card-subtle);
    padding: 14px 18px;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.comparison-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

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

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-chevron {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.25s ease;
}

.faq-item.active .faq-chevron {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ================= PAGE COMMONS ================= */
.page-main {
    padding-bottom: 4rem;
}

.page-hero {
    background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.1) 0%, rgba(248, 250, 252, 0) 70%);
    padding: 3.5rem 0 2rem;
}

.page-title {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
}

.divider {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 2.5rem 0;
}

.guide-device-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin: 1.5rem 0;
}

.guide-steps {
    margin-left: 1.25rem;
}

.guide-steps li {
    margin-bottom: 1rem;
}

.troubleshooting-card {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin: 2rem 0;
}

.troubleshooting-card h3 {
    color: #92400e;
    font-size: 1.15rem;
    margin-top: 1rem;
}

.troubleshooting-card h3:first-child {
    margin-top: 0;
}

.cta-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin: 3rem 0;
}

.cta-box h3 {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.cta-box p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff !important;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-card-subtle);
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color);
}

.btn-block {
    width: 100%;
}

/* Template Styles Grid */
.template-styles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.style-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.style-card h3 {
    margin-top: 0;
    font-size: 1.15rem;
    color: var(--text-primary);
}

/* About Tech Grid */
.about-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.tech-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

/* Contact Page Layout */
.form-container {
    max-width: 1000px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2.5rem;
}

.contact-form-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
}

.contact-form-box h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.contact-info-box {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
}

.contact-info-box h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.contact-info-item {
    display: flex;
    gap: 14px;
    margin-top: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
}

.disclaimer-mini {
    margin-top: 2rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.disclaimer-callout {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1.5rem 0;
}

.contact-box-simple {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin: 1.5rem 0;
}

/* 404 Page */
.section-404 {
    padding: 6rem 0;
}

.error-code {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.error-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ================= FOOTER ================= */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 4.5rem 0 2rem;
    border-top: 1px solid #1e293b;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-col .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    color: #94a3b8;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    background: #1e293b;
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.footer-heading {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #38bdf8;
}

.footer-disclaimer-box {
    background: #1e293b;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #64748b;
}

.footer-disclaimer-box strong {
    color: #cbd5e1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    font-size: 0.85rem;
}

.footer-bottom strong {
    color: #ffffff;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom-links a {
    color: #94a3b8;
}

.footer-bottom-links a:hover {
    color: #38bdf8;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #334155;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ================= RESPONSIVE MEDIA QUERIES ================= */
@media (max-width: 1024px) {
    .features-grid, .steps-grid, .about-tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        display: none;
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.open {
        display: flex;
    }
    .hero-title {
        font-size: 2rem;
    }
    .result-card {
        grid-template-columns: 1fr;
    }
    .result-thumb {
        max-height: 240px;
        aspect-ratio: 16/9;
    }
    .features-grid, .steps-grid, .about-tech-grid, .template-styles-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
