/* ===================================
   InstaGrabber — Complete Redesign
   =================================== */

:root {
    --grad-1: #5b21b6;
    --grad-2: #7c3aed;
    --grad-3: #db2777;
    --grad-4: #f97316;
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #ffffff;
    --bg-body: #f1f0f7;
    --bg-white: #ffffff;
    --bg-footer: #1e1b2e;
    --success: #10b981;
    --success-hover: #059669;
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.logo span {
    background: linear-gradient(135deg, var(--grad-2), var(--grad-3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.header-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.header-link:hover {
    color: var(--accent);
}

.lang-dropdown {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--grad-1) 0%, var(--grad-2) 30%, var(--grad-3) 70%, var(--grad-4) 100%);
    padding: 80px 20px 100px;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

/* Animated background shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: white;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: float-shape 15s ease-in-out infinite;
}

.shape-2 {
    width: 250px;
    height: 250px;
    bottom: -80px;
    left: -60px;
    animation: float-shape 20s ease-in-out infinite reverse;
}

.shape-3 {
    width: 180px;
    height: 180px;
    top: 50%;
    left: 60%;
    animation: float-shape 12s ease-in-out infinite 3s;
}

@keyframes float-shape {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 15px) scale(0.95);
    }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ===== NAV TABS ===== */
.nav-tabs-wrapper {
    margin-bottom: 50px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.nav-tabs {
    display: inline-flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px;
    border-radius: 50px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-tabs .tab {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    color: rgba(255, 255, 255, 0.8);
}

.nav-tabs .tab:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.nav-tabs .tab.active {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-weight: 600;
}

/* ===== HERO TYPOGRAPHY ===== */
.hero-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 50px;
    font-weight: 400;
}

/* ===== DOWNLOAD BOX (Glassmorphism) ===== */
.download-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.input-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    padding: 6px 6px 6px 16px;
}

.input-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.input-box input {
    width: 100%;
    border: none;
    padding: 14px 8px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    color: var(--text-dark);
    background: transparent;
}

.input-box input::placeholder {
    color: #a5a5b8;
}

.input-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-paste {
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid #e2e0ef;
    border-radius: 50px;
    padding: 10px 16px;
    font-weight: 500;
}

.btn-paste:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-download {
    background: linear-gradient(135deg, var(--grad-2), var(--grad-3));
    color: var(--text-light);
    border-radius: 50px;
    padding: 10px 22px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-download:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    transform: translateY(-1px);
}

/* ===== RESULT AREA ===== */
.result-area {
    margin-top: 14px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    text-align: center;
}

/* Status messages */
.dl-message {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    padding: 6px 0;
    line-height: 1.5;
}

.dl-message--red {
    color: #ef4444;
}

.dl-message--orange {
    color: #f97316;
}

.dl-message--gray {
    color: #94a3b8;
}

/* Preview image */
.dl-preview {
    margin-bottom: 18px;
}

.dl-preview img {
    max-height: 240px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Download buttons */
.dl-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 340px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--grad-2), var(--grad-3));
    color: white;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
    transition: all 0.25s ease;
}

.dl-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}

/* Loading state */
.btn-download:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    pointer-events: none;
}

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

.spinner {
    animation: spin 0.8s linear infinite;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 70px 20px;
    text-align: center;
    background: var(--bg-white);
}

.section-heading {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.section-subheading {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 50px;
}

.steps-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 850px;
    margin: 0 auto;
}

.step-item {
    flex: 1;
    max-width: 240px;
    padding: 0 16px;
}

.step-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.08), rgba(219, 39, 119, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.step-item:hover .step-circle {
    transform: scale(1.08);
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.14), rgba(219, 39, 119, 0.14));
}

.step-item h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.step-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, rgba(139, 92, 246, 0.2), rgba(219, 39, 119, 0.2));
    margin-top: 36px;
    flex-shrink: 0;
    border-radius: 2px;
}

/* ===== PAGE CONTENT ===== */
.page-content {
    padding: 50px 20px 80px;
}

/* ===== SEO CONTENT SECTIONS ===== */
.seo-section {
    max-width: 850px;
    margin: 0 auto;
    padding: 50px 20px;
}

.seo-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 10px;
}

.seo-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
    margin-top: 28px;
}

.seo-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--grad-2), var(--grad-3));
    border: none;
    margin: 12px auto 28px;
    border-radius: 3px;
}

.seo-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 16px;
}

.seo-section p.left-text {
    text-align: left;
}

/* Steps Grid (in SEO content) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.step-card {
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2) 50%, var(--grad-3));
    border-radius: 18px;
    padding: 32px 22px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(91, 33, 182, 0.2);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.step-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    color: white;
    line-height: 1.5;
}

/* Feature Cards (in SEO content) */
.feature-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg-white);
    border-radius: 16px;
    padding: 28px 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin: 20px 0;
    border-left: 3px solid var(--accent);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.feature-card .feature-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 0.95rem;
    text-align: left;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* FAQ SEO Section */
.seo-faq-list {
    margin-top: 20px;
    text-align: left;
}

.seo-faq-item {
    margin-bottom: 24px;
    padding: 20px 24px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
}

.seo-faq-item h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 6px;
    margin-top: 0;
}

.seo-faq-item p {
    text-align: left;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ===== FOOTER (Dark) ===== */
.site-footer {
    background: var(--bg-footer);
    padding: 50px 20px 30px;
    text-align: center;
}

.footer-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-links {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    gap: 28px;
    font-weight: 500;
    font-size: 0.9rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* ===== THEME SWITCH ===== */
.theme-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.switch-track {
    width: 58px;
    height: 32px;
    background: #d4d2e0;
    border-radius: 50px;
    position: relative;
    transition: background 0.35s ease;
}

.switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s ease;
}

/* Show sun by default, hide moon */
.switch-thumb .icon-sun {
    display: block;
}

.switch-thumb .icon-moon {
    display: none;
}

/* Dark mode active — track goes near-black */
.theme-switch input:checked+.switch-track {
    background: #2a2a2e;
}

.theme-switch input:checked+.switch-track .switch-thumb {
    transform: translateX(26px);
    background: #3a3a40;
}

/* Show moon, hide sun in dark mode */
.theme-switch input:checked+.switch-track .icon-sun {
    display: none;
}

.theme-switch input:checked+.switch-track .icon-moon {
    display: block;
}

/* ===== SMOOTH TRANSITIONS FOR THEME CHANGE ===== */
body,
.site-header,
.how-it-works,
.feature-card,
.seo-faq-item,
.site-footer,
.input-box,
.result-box,
.download-container,
.step-circle,
.step-connector {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.logo,
.header-link,
.lang-dropdown,
.section-heading,
.section-subheading,
.step-item h4,
.step-item p,
.seo-section h2,
.seo-section p,
.feature-card h4,
.feature-card p,
.seo-faq-item h3,
.seo-faq-item p,
.footer-brand,
.footer-links a,
.copyright {
    transition: color 0.35s ease;
}

.btn-paste {
    transition: all 0.25s ease, border-color 0.35s ease, color 0.35s ease;
}

/* ===== DARK MODE OVERRIDES ===== */
[data-theme="dark"] {
    --text-dark: #e2e8f0;
    --text-muted: #94a3b8;
    --bg-body: #0f0e17;
    --bg-white: #1a1825;
    --bg-footer: #0a0914;
}

[data-theme="dark"] body {
    background-color: var(--bg-body);
    color: var(--text-dark);
}

[data-theme="dark"] .site-header {
    background: rgba(26, 24, 37, 0.92);
    border-bottom-color: rgba(139, 92, 246, 0.12);
}

[data-theme="dark"] .logo {
    color: #e2e8f0;
}

[data-theme="dark"] .header-link {
    color: #94a3b8;
}

[data-theme="dark"] .header-link:hover {
    color: #a78bfa;
}

[data-theme="dark"] .lang-dropdown {
    color: #94a3b8;
}

/* Download box — SOLID dark background instead of transparent */
[data-theme="dark"] .download-container {
    background: rgba(30, 28, 45, 0.8);
    border-color: rgba(139, 92, 246, 0.2);
}

[data-theme="dark"] .input-box {
    background: #1e1c2d;
    border: 1px solid #2d2a3e;
}

[data-theme="dark"] .input-box input {
    color: #e2e8f0;
}

[data-theme="dark"] .input-box input::placeholder {
    color: #555370;
}

[data-theme="dark"] .input-icon {
    color: #555370;
}

[data-theme="dark"] .btn-paste {
    border-color: #3d3856;
    color: #94a3b8;
    background: transparent;
}

[data-theme="dark"] .btn-paste:hover {
    border-color: #8b5cf6;
    color: #a78bfa;
}

[data-theme="dark"] .result-area {
    background: #1e1c2d;
}

[data-theme="dark"] .dl-btn {
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.15);
}

[data-theme="dark"] .dl-preview img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* How It Works */
[data-theme="dark"] .how-it-works {
    background: var(--bg-white);
}

[data-theme="dark"] .section-heading {
    color: #e2e8f0;
}

[data-theme="dark"] .section-subheading {
    color: #94a3b8;
}

[data-theme="dark"] .step-circle {
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.2), rgba(219, 39, 119, 0.2));
}

[data-theme="dark"] .step-item h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .step-item p {
    color: #94a3b8;
}

[data-theme="dark"] .step-connector {
    background: linear-gradient(to right, rgba(139, 92, 246, 0.3), rgba(219, 39, 119, 0.3));
}

/* SEO sections */
[data-theme="dark"] .seo-section h2 {
    color: #e2e8f0;
}

[data-theme="dark"] .seo-section p {
    color: #94a3b8;
}

/* Feature cards */
[data-theme="dark"] .feature-card {
    background: #1a1825;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    border-left-color: #7c3aed;
}

[data-theme="dark"] .feature-card h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .feature-card p {
    color: #94a3b8;
}

/* FAQ items */
[data-theme="dark"] .seo-faq-item {
    background: #1a1825;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .seo-faq-item h3 {
    color: #c4b5fd;
}

[data-theme="dark"] .seo-faq-item p {
    color: #94a3b8;
}

/* Footer */
[data-theme="dark"] .site-footer {
    background: var(--bg-footer);
    border-top-color: rgba(139, 92, 246, 0.1);
}

/* ===================================
   MOBILE RESPONSIVENESS
   =================================== */

/* Tablet (max 768px) */
@media (max-width: 768px) {

    /* Header */
    .header-container {
        height: 58px;
        padding: 0 16px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .header-right {
        gap: 14px;
    }

    /* Hero */
    .hero-section {
        padding: 50px 16px 70px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 36px;
    }

    .nav-tabs-wrapper {
        margin-bottom: 36px;
    }

    .nav-tabs .tab {
        padding: 9px 16px;
        font-size: 0.82rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Download box */
    .download-container {
        margin: 0 4px;
        padding: 6px;
    }

    .input-box {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }

    .input-wrapper {
        width: 100%;
    }

    .input-icon {
        display: none;
    }

    .input-box input {
        padding: 14px 12px;
        text-align: center;
        font-size: 0.95rem;
    }

    .input-buttons {
        width: 100%;
        gap: 8px;
    }

    .btn-paste,
    .btn-download {
        flex: 1;
        justify-content: center;
        padding: 14px 12px;
        min-height: 48px;
        font-size: 0.9rem;
    }

    .dl-preview img {
        max-height: 180px;
    }

    .dl-btn {
        max-width: 100%;
    }

    .result-area {
        padding: 16px;
    }

    /* How It Works */
    .how-it-works {
        padding: 50px 16px;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .steps-row {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .step-connector {
        width: 2px;
        height: 30px;
        margin: 0;
    }

    .step-item {
        max-width: 300px;
    }

    /* SEO sections */
    .seo-section {
        padding: 35px 16px;
    }

    .seo-section h2 {
        font-size: 1.35rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .feature-card {
        flex-direction: column;
        text-align: center;
        padding: 22px 18px;
        gap: 14px;
    }

    .feature-card p {
        text-align: center;
    }

    .seo-faq-item {
        padding: 16px 18px;
    }

    /* Footer */
    .footer-links {
        gap: 18px;
        font-size: 0.85rem;
    }

    .site-footer {
        padding: 36px 16px 24px;
    }

    .page-content {
        padding: 30px 16px 60px;
    }

    /* Background shapes smaller */
    .shape-1 {
        width: 200px;
        height: 200px;
    }

    .shape-2 {
        width: 150px;
        height: 150px;
    }

    .shape-3 {
        width: 100px;
        height: 100px;
    }
}

/* Small phones (max 480px) */
@media (max-width: 480px) {
    .header-container {
        height: 52px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .header-right {
        gap: 10px;
        font-size: 0.85rem;
    }

    .hero-section {
        padding: 36px 12px 56px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
        margin-bottom: 28px;
    }

    .nav-tabs .tab {
        padding: 8px 12px;
        font-size: 0.78rem;
    }

    .download-container {
        margin: 0;
        border-radius: 14px;
    }

    .input-box input {
        font-size: 0.9rem;
        padding: 12px 10px;
    }

    .section-heading {
        font-size: 1.3rem;
    }

    .section-subheading {
        font-size: 0.9rem;
        margin-bottom: 36px;
    }

    .step-circle {
        width: 60px;
        height: 60px;
    }

    .step-circle svg {
        width: 22px;
        height: 22px;
    }

    .seo-section h2 {
        font-size: 1.2rem;
    }

    .seo-section p {
        font-size: 0.9rem;
    }

    .step-card {
        padding: 24px 16px;
    }

    .feature-card {
        padding: 18px 14px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 12px 20px;
    }
}

/* Notched phone safe areas */
@supports (padding: env(safe-area-inset-bottom)) {
    .site-footer {
        padding-bottom: calc(30px + env(safe-area-inset-bottom));
    }

    .site-header {
        padding-top: env(safe-area-inset-top);
    }
}