@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #FBFBFE;
    --bg-lavender: #F7F7FF;
    --surface: #FFFFFF;
    --surface-section: #F5F5FD;
    --text-primary: #10172D;
    --text-secondary: #59677F;
    --text-muted: #8995AA;
    --border: #E3E5F0;
    --border-purple: #DDD9FF;
    
    --purple: #5B4FE8;
    --violet: #7A38E8;
    --pink: #D82BA6;
    
    --gradient-text: linear-gradient(90deg, #5146E5 0%, #7B35E8 48%, #D72AA6 100%);
    
    --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 16px 48px rgba(91, 79, 232, 0.06);
    
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-pill: 100px;
}

[data-theme="dark"] {
    --bg: #0B1020;
    --bg-lavender: #0D1224;
    --surface: #151C30;
    --surface-section: #11172A;
    --text-primary: #F4F5FA;
    --text-secondary: #AAB4CA;
    --text-muted: #8995AA;
    --border: #232B42;
    --border-purple: #3A3275;
    
    --purple: #8D80FF;
    --violet: #9A6CFF;
    --pink: #E65BC2;
    
    --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    background-image: 
        radial-gradient(circle at 100% 0%, rgba(245, 166, 35, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 0% 100%, rgba(123, 53, 232, 0.08) 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography Scale */
h1, h2, h3, h4 {
    margin: 0;
    color: var(--text-primary);
}

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

/* Header */
.ed-header {
    background: var(--surface);
    height: 82px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.ed-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.ed-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ed-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ed-nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.ed-nav-link:hover {
    color: var(--purple);
}

.ed-nav-link.active {
    color: var(--purple);
    background: var(--bg-lavender);
}

/* Dropdown */
.ed-dropdown {
    position: relative;
}

.ed-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    padding: 24px;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1001;
    pointer-events: none;
}

.ed-dropdown:hover .ed-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.ed-dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    margin-bottom: 4px;
}

.ed-dropdown-item:hover {
    background: var(--bg-lavender);
    color: var(--purple);
}

/* Theme Toggle */
.ed-theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ed-theme-toggle:hover {
    color: var(--purple);
    background: var(--bg-lavender);
}

/* Mobile Nav */
.ed-mobile-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

@media (max-width: 992px) {
    .ed-nav { display: none; }
    .ed-mobile-btn { display: block; }
}

/* Homepage Hero */
.ed-hero {
    padding: 120px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ed-hero-eyebrow {
    color: var(--purple);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.ed-hero h1 {
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2.5px;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.ed-hero p {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

/* Unified Downloader Interface (Input) */
.ed-input-group {
    background: var(--surface);
    border: 1px solid var(--border-purple);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    padding: 8px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.ed-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 24px;
    font-size: 16px;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
}

.ed-input-group input::placeholder {
    color: var(--text-muted);
}

.ed-input-btn {
    background: var(--purple);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.ed-input-btn:hover {
    background: var(--violet);
}

.ed-issue-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
}

/* Animations */
.ed-floating-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1000px;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.ed-float-item {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 24px;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: var(--shadow-soft);
    opacity: 0.8;
    animation: ed-float 8s ease-in-out infinite;
}

.edf-1 { top: 20%; left: 10%; animation-delay: 0s; }
.edf-2 { bottom: 30%; left: 15%; animation-delay: 2s; }
.edf-3 { top: 30%; right: 10%; animation-delay: 4s; }
.edf-4 { bottom: 20%; right: 15%; animation-delay: 6s; }

@keyframes ed-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@media (max-width: 768px) {
    .ed-float-item { display: none; }
}

/* Editorial Category Section */
.ed-section {
    padding: 120px 24px;
    background: var(--surface-section);
}

.ed-section-title {
    text-align: center;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 80px;
}

.ed-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    max-width: 1240px;
    margin: 0 auto;
}

.ed-cat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
    min-height: 320px;
}

.ed-cat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-purple);
    box-shadow: var(--shadow-soft);
}

.ed-cat-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.ed-cat-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.ed-cat-list li {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.ed-cat-arrow {
    color: var(--purple);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Steps (How it Works) */
.ed-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 900px;
    margin: 60px auto 0 auto;
}

.ed-steps::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--border-purple);
    z-index: 1;
}

.ed-step {
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 0 20px;
    text-align: center;
    flex: 1;
}

.ed-step-num {
    width: 64px;
    height: 64px;
    background: var(--surface);
    border: 1px solid var(--border-purple);
    color: var(--purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 24px auto;
    box-shadow: var(--shadow-soft);
}

.ed-step h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ed-step p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .ed-steps { flex-direction: column; gap: 48px; }
    .ed-steps::before { display: none; }
}

/* FAQ Accordion */
.ed-faq {
    max-width: 800px;
    margin: 0 auto;
}

.ed-faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}

.ed-faq-header {
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    color: var(--text-primary);
}

.ed-faq-icon {
    width: 32px;
    height: 32px;
    background: var(--bg-lavender);
    color: var(--purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.ed-faq-content {
    padding: 0 32px 24px 32px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* Footer (Cinematic Deep Hero-Gradient Theme) */
.ed-footer {
    position: relative;
    overflow: hidden;
    background-color: #0A071B;
    background-image: 
        radial-gradient(circle at 12% 15%, rgba(124, 58, 237, 0.40) 0%, transparent 45%),
        radial-gradient(circle at 88% 25%, rgba(245, 166, 35, 0.25) 0%, transparent 42%),
        radial-gradient(circle at 50% 90%, rgba(192, 38, 211, 0.30) 0%, transparent 48%),
        radial-gradient(circle at 35% 80%, rgba(99, 102, 241, 0.25) 0%, transparent 45%),
        linear-gradient(165deg, #0D0824 0%, #160D38 45%, #0B071A 100%);
    border-top: 1px solid rgba(168, 85, 247, 0.28);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
    padding: 84px 24px 44px 24px;
    margin-top: 40px;
    color: #E2E8F0;
}

.ed-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.35) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.ed-footer > * {
    position: relative;
    z-index: 1;
}

.ed-footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}

@media (max-width: 992px) {
    .ed-footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
    .ed-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .home-faq-section {
        padding-bottom: 24px !important;
    }
    .ed-footer {
        padding: 56px 20px 32px 20px !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 576px) {
    .ed-footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

.ed-footer .ed-logo {
    color: #FFFFFF !important;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.ed-footer .ed-logo svg {
    filter: drop-shadow(0 4px 12px rgba(124, 58, 237, 0.5));
}

.ed-footer-brand p {
    color: #94A3B8;
    line-height: 1.68;
    margin-top: 18px;
    max-width: 320px;
    font-size: 14.5px;
    font-family: 'Inter', -apple-system, sans-serif;
}

.ed-footer-col h4 {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.ed-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ed-footer-col li {
    margin-bottom: 14px;
}

.ed-footer-link {
    color: #94A3B8;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    transition: all 0.22s ease;
    display: inline-block;
}

.ed-footer-link:hover {
    color: #FBBF24;
    transform: translateX(3px);
}

.ed-footer-bottom {
    max-width: 1240px;
    margin: 64px auto 0 auto;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748B;
    font-size: 13px;
    align-items: flex-end;
}

.ed-footer-bottom div:first-child {
    font-size: 11px;
    line-height: 1.5;
    max-width: 750px;
}

.ed-footer-bottom a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ed-footer-bottom a:hover {
    color: #FBBF24;
}

[data-theme="dark"] .ed-footer {
    background-color: #060412;
    background-image: 
        radial-gradient(circle at 12% 15%, rgba(124, 58, 237, 0.45) 0%, transparent 45%),
        radial-gradient(circle at 88% 25%, rgba(245, 166, 35, 0.28) 0%, transparent 42%),
        radial-gradient(circle at 50% 90%, rgba(192, 38, 211, 0.32) 0%, transparent 48%),
        radial-gradient(circle at 35% 80%, rgba(99, 102, 241, 0.28) 0%, transparent 45%),
        linear-gradient(165deg, #090518 0%, #120A2E 45%, #060410 100%);
    border-top: 1px solid rgba(168, 85, 247, 0.35);
}

/* Tool Overrides to match editorial vibe */
.card, .tool-card-main {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 40px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 12px;
}

input, select, textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: inherit;
    font-size: 16px;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--purple);
    outline: none;
}

.btn-primary {
    background: var(--purple);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 16px 24px;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--violet);
}

/* Page specific specific */
.ed-page-hero {
    padding: 100px 24px 80px 24px;
    text-align: center;
    max-width: 1240px;
    margin: 0 auto;
}

.ed-page-hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #7B35E8 0%, #E87A38 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.ed-page-hero h1 .gradient-text {
    /* Reset any inner span so it inherits the parent's gradient clip perfectly */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: inherit;
}
[data-theme="dark"] .ed-page-hero h1 {
    background: linear-gradient(90deg, #9A6CFF 0%, #FF9D5C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ed-page-hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}


/* Fix space above hero section & below FAQ on main page */
.main-content:has(.home-hero-v3),
main:has(.home-hero-v3) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.home-faq-section {
    position: relative;
    padding-bottom: 40px !important;
    overflow: hidden;
}

.home-faq-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    background: radial-gradient(circle at 100% 0%, rgba(245,166,35,0.12) 0%, transparent 45%),
                radial-gradient(circle at 0% 100%, rgba(123,53,232,0.12) 0%, transparent 45%);
    pointer-events: none;
}

.home-faq-section > * {
    position: relative;
    z-index: 1;
}

.home-faq-section .ed-faq-item {
    background: #FFFFFF;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.02);
}

[data-theme="dark"] .home-faq-section .ed-faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: none;
}

.home-faq-section .ed-faq-item:last-child {
    margin-bottom: 0 !important;
}

.main-content:has(.home-hero-v3) + .ed-footer,
main:has(.home-hero-v3) + .ed-footer {
    margin-top: 0 !important;
}

/* --- V3 Hero Styling (4K Cristiano Full-Bleed Edition) --- */
.home-hero-v3 {
    position: relative;
    padding: 0;
    min-height: 720px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #FBFBFD;
}

[data-theme="dark"] .home-hero-v3 {
    background-color: #0B1120;
}

/* Full-bleed right and top visual */
.hh3-fullbleed-visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 58%;
    min-width: 640px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hh3-fullbleed-img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: right center;
    display: block;
}

.hh3-container {
    position: relative;
    z-index: 10;
    max-width: 1360px;
    margin: 0 auto;
    width: 100%;
    padding: 60px 32px 80px 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hh3-content {
    max-width: 560px;
    z-index: 12;
}

/* Badge */
.hh3-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 999px;
    padding: 5px 18px 5px 6px;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hh3-badge-popular {
    background: #6D28D9;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 999px;
    letter-spacing: 0.2px;
}

.hh3-badge-sub {
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    letter-spacing: -0.1px;
}

[data-theme="dark"] .hh3-badge-pill {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(168, 85, 247, 0.35);
}
[data-theme="dark"] .hh3-badge-sub {
    color: #CBD5E1;
}

/* Headline */
.hh3-hero-title {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    font-size: clamp(2.8rem, 4.6vw, 4.3rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -2px;
    margin: 0 0 20px 0;
}

.hh3-title-gradient {
    display: block;
    background: linear-gradient(90deg, #7C3AED 0%, #C026D3 45%, #F97316 95%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hh3-title-dark {
    display: block;
    color: #0F172A;
}

[data-theme="dark"] .hh3-title-dark {
    color: #FFFFFF;
}

/* Description */
.hh3-hero-desc {
    font-size: 16.5px;
    line-height: 1.62;
    color: #64748B;
    margin: 0 0 32px 0;
    max-width: 500px;
    font-weight: 400;
}

[data-theme="dark"] .hh3-hero-desc {
    color: #94A3B8;
}

/* Form Search Bar */
.hh3-input-wrapper {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1.5px solid rgba(192, 132, 252, 0.35);
    border-radius: 999px;
    padding: 7px 7px 7px 22px;
    box-shadow: 0 16px 36px -8px rgba(99, 102, 241, 0.18), 0 4px 14px rgba(0, 0, 0, 0.04);
    max-width: 530px;
    transition: all 0.25s ease;
}

.hh3-input-wrapper:focus-within {
    border-color: #8B5CF6;
    box-shadow: 0 20px 42px -6px rgba(124, 58, 237, 0.25), 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.hh3-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #64748B;
    flex-shrink: 0;
}

.hh3-link-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15.5px;
    color: #0F172A;
    font-family: inherit;
}

.hh3-link-input::placeholder {
    color: #94A3B8;
}

.hh3-submit-btn {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: #FFFFFF;
    border: none;
    outline: none;
    font-size: 15.5px;
    font-weight: 600;
    padding: 14px 34px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.4);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.hh3-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #5A5EED 0%, #4338CA 100%);
}

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

/* Quick Tools */
.hh3-quick-tools {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.hh3-tool-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 10px 18px 10px 12px;
    text-decoration: none;
    color: #1E293B;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.hh3-tool-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #CBD5E1;
}

.hh3-chip-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chip-icon-thumb {
    background: #FEE2E2;
    color: #EF4444;
}

.chip-icon-audio {
    background: #DCFCE7;
    color: #16A34A;
}

.hh3-chip-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.hh3-chip-arrow {
    color: #64748B;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.hh3-tool-chip:hover .hh3-chip-arrow {
    transform: translateX(3px);
    color: #0F172A;
}

/* --- Mobile-Only Bookmark CTA (Completely Hidden on Desktop) --- */
.mob-bookmark-cta {
    display: none !important;
}

/* Responsive (Mobile Cinematic Hero Edition - Taller & Balanced) */
@media (max-width: 1024px) {
    .home-hero-v3 {
        position: relative !important;
        min-height: 560px !important;
        padding: 30px 18px 56px 18px !important;
        display: block !important;
        background-color: #FBFBFD !important;
        overflow: hidden !important;
    }

    .hh3-container {
        position: relative !important;
        max-width: 600px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: block !important;
    }

    .hh3-content {
        max-width: 100% !important;
        padding: 0 !important;
        display: block !important;
        text-align: left !important;
    }

    /* Cinematic Mobile Visual: Placed at top-right with taller height */
    .hh3-fullbleed-visual {
        position: absolute !important;
        top: 4px !important;
        right: -8px !important;
        bottom: auto !important;
        width: 58% !important;
        min-width: 230px !important;
        max-width: 380px !important;
        height: 345px !important;
        z-index: 1 !important;
        pointer-events: none !important;
        overflow: visible !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-end !important;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 12%, black 28%, black 100%) !important;
        mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 12%, black 28%, black 100%) !important;
    }

    .hh3-fullbleed-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: right top !important;
        display: block !important;
        filter: drop-shadow(0 12px 28px rgba(124, 58, 237, 0.14)) !important;
    }

    /* Badge on mobile: inside left white section */
    .hh3-badge-pill {
        position: relative !important;
        z-index: 5 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 4px 11px 4px 4px !important;
        margin: 6px 0 14px 0 !important;
        max-width: calc(100% - 170px) !important;
        box-shadow: 0 2px 10px rgba(124, 58, 237, 0.08) !important;
    }

    .hh3-badge-popular {
        font-size: 11px !important;
        padding: 3px 9px !important;
        font-weight: 700 !important;
    }

    .hh3-badge-sub {
        font-size: 11px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        color: #475569 !important;
    }

    /* Headline on mobile: placed inside the left white space of the visual */
    .hh3-hero-title {
        position: relative !important;
        z-index: 5 !important;
        width: 52% !important;
        max-width: 220px !important;
        font-size: clamp(1.7rem, 6vw, 2.25rem) !important;
        line-height: 1.08 !important;
        letter-spacing: -0.8px !important;
        margin: 0 0 12px 0 !important;
        text-align: left !important;
    }

    .hh3-title-gradient {
        display: block !important;
    }

    .hh3-title-dark {
        display: block !important;
    }

    /* Description text on mobile: sits in the left white space */
    .hh3-hero-desc {
        position: relative !important;
        z-index: 5 !important;
        width: 54% !important;
        max-width: 230px !important;
        font-size: 12.5px !important;
        line-height: 1.48 !important;
        color: #64748B !important;
        margin: 0 0 26px 0 !important;
        text-align: left !important;
    }

    /* Search bar on mobile: sits right below the visual & text composite, spanning 100% full width */
    .hh3-input-wrapper {
        position: relative !important;
        z-index: 10 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 26px 0 0 0 !important;
        padding: 7px 7px 7px 18px !important;
        box-shadow: 0 12px 32px -6px rgba(99, 102, 241, 0.2), 0 4px 12px rgba(0, 0, 0, 0.04) !important;
        box-sizing: border-box !important;
    }

    .hh3-link-input {
        font-size: 14px !important;
    }

    .hh3-submit-btn {
        padding: 13px 24px !important;
        font-size: 14.5px !important;
    }

    /* Quick Tools on mobile: 2-column grid spanning 100% */
    .hh3-quick-tools {
        position: relative !important;
        z-index: 10 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        margin-top: 16px !important;
        width: 100% !important;
    }

    .hh3-tool-chip {
        padding: 12px 14px !important;
        gap: 8px !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
    }

    .hh3-chip-icon {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
    }

    .hh3-chip-title {
        font-size: 12.5px !important;
        font-weight: 700 !important;
    }

    .hh3-chip-arrow {
        width: 14px !important;
        height: 14px !important;
    }
}

@media (max-width: 400px) {
    .home-hero-v3 {
        padding: 24px 16px 18px 16px !important;
    }
    .hh3-fullbleed-visual {
        width: 55% !important;
        height: 310px !important;
    }
    .hh3-hero-title {
        font-size: 1.58rem !important;
        width: 52% !important;
    }
    .hh3-hero-desc {
        font-size: 11px !important;
        line-height: 1.4 !important;
        width: 52% !important;
    }
    .hh3-badge-pill {
        max-width: 150px !important;
    }
    .hh3-badge-sub {
        display: none !important;
    }
    .hh3-badge-popular {
        font-size: 10.5px !important;
        padding: 3px 8px !important;
    }
    .hh3-input-wrapper {
        margin: 22px 0 0 0 !important;
    }
    .hh3-tool-chip {
        padding: 10px 10px !important;
    }
    .hh3-chip-title {
        font-size: 11.5px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .home-hero-v3 {
        padding: 36px 24px 64px 24px !important;
        min-height: 620px !important;
    }
    .hh3-fullbleed-visual {
        width: 54% !important;
        max-width: 480px !important;
        height: 420px !important;
    }
    .hh3-hero-title {
        width: 50% !important;
        max-width: 340px !important;
        font-size: 2.4rem !important;
    }
    .hh3-hero-desc {
        width: 50% !important;
        max-width: 340px !important;
        font-size: 14px !important;
    }
}

/* --- Mobile-Only Bookmark CTA Section (Max-Width 767px Only) --- */
@media (max-width: 767px) {
    .home-hero-v3 {
        padding-bottom: 18px !important;
        min-height: auto !important;
    }

    .mob-bookmark-cta {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        position: relative !important;
        margin: 36px auto 14px auto !important;
        padding: 0 22px !important;
        width: 100% !important;
        max-width: 360px !important;
        box-sizing: border-box !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .steps-v3-section {
        padding-top: 20px !important;
    }

    .mob-bookmark-glow {
        position: absolute;
        top: 24%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 220px;
        height: 90px;
        background: radial-gradient(circle, rgba(99, 91, 255, 0.08) 0%, transparent 65%);
        pointer-events: none;
        z-index: 0;
    }

    .mob-bookmark-title {
        position: relative;
        z-index: 1;
        font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
        font-size: clamp(26px, 7.5vw, 30px);
        font-weight: 800;
        line-height: 1.15;
        letter-spacing: -0.7px;
        text-align: center;
        margin: 0 0 12px 0;
        background: linear-gradient(90deg, #5B4FE8 0%, #7C3AED 50%, #D82BA6 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        max-width: 320px;
    }

    .mob-bookmark-sub {
        position: relative;
        z-index: 1;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.5;
        color: #59677F;
        text-align: center;
        max-width: 290px;
        margin: 0;
    }

    .mob-bookmark-btn {
        position: relative;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 18px;
        background: transparent;
        border: 1px solid #D8D4FF;
        border-radius: 999px;
        padding: 10px 18px;
        font-size: 14.5px;
        font-weight: 600;
        color: #635BFF;
        cursor: pointer;
        transition: all 200ms ease;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    .mob-bookmark-btn:hover {
        border-color: #B9B1FF;
        color: #5B4FE8;
        background: rgba(99, 91, 255, 0.05);
        transform: translateY(-1px);
    }

    .mob-bookmark-btn:active {
        transform: scale(0.98);
    }

    .mob-bookmark-icon {
        width: 17px;
        height: 17px;
        stroke: currentColor;
        flex-shrink: 0;
    }

    .mob-bookmark-tip {
        position: relative;
        z-index: 1;
        font-size: 12px;
        font-weight: 500;
        color: #635BFF;
        margin-top: 0;
        max-height: 0;
        max-width: 280px;
        line-height: 1.4;
        opacity: 0;
        overflow: hidden;
        transition: opacity 250ms ease, margin-top 250ms ease, max-height 250ms ease;
        pointer-events: none;
        text-align: center;
    }

    .mob-bookmark-tip.visible {
        margin-top: 12px;
        max-height: 50px;
        opacity: 1;
    }
}

@media (max-width: 360px) {
    .mob-bookmark-title {
        font-size: 26px !important;
        letter-spacing: -0.5px !important;
    }
    .mob-bookmark-sub {
        font-size: 14.5px !important;
        max-width: 260px !important;
    }
    .mob-bookmark-btn {
        font-size: 13.5px !important;
        padding: 9px 16px !important;
        margin-top: 16px !important;
    }
}

/* Dark Mode Support for Mobile Bookmark CTA */
[data-theme="dark"] .mob-bookmark-sub {
    color: #AAB4C9 !important;
}
[data-theme="dark"] .mob-bookmark-btn {
    border-color: #343B58 !important;
    color: #9A8FFF !important;
    background: transparent !important;
}
[data-theme="dark"] .mob-bookmark-btn:hover {
    border-color: #4C557D !important;
    background: rgba(154, 143, 255, 0.08) !important;
}
[data-theme="dark"] .mob-bookmark-tip {
    color: #9A8FFF !important;
}
[data-theme="dark"] .mob-bookmark-glow {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 65%) !important;
}


/* --- Steps V3 Section --- */
.steps-v3-section {
    position: relative;
    padding: 100px 24px 120px 24px;
    background-color: var(--bg);
    overflow: hidden;
}
.sv3-bg-gradient {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(245,166,35,0.12) 0%, transparent 45%),
                radial-gradient(circle at 0% 100%, rgba(123,53,232,0.12) 0%, transparent 45%);
    pointer-events: none;
}
.sv3-container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}
.sv3-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.sv3-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 80px;
}
.sv3-steps-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 20px 0;
}
.sv3-line {
    position: absolute;
    top: 50%; left: 10%; right: 10%;
    transform: translateY(-50%);
    height: 1px;
    background: linear-gradient(90deg, #4A90E2 0%, #9013FE 50%, #F55197 100%);
    opacity: 0.3;
    z-index: 1;
}
.sv3-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 10px;
}
.sv3-step-active {
    background: var(--surface);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.02);
}
[data-theme="dark"] .sv3-step-active {
    background: var(--surface-section);
}
.sv3-circle {
    width: 64px; height: 64px;
    background: var(--bg);
    border: 2px solid;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.sv3-step-active .sv3-circle {
    background: var(--surface);
}
.sv3-step-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
}
@media (max-width: 768px) {
    .sv3-steps-wrapper { flex-direction: column; gap: 40px; }
    .sv3-line { display: none; }
    .sv3-step { width: 100%; padding: 24px 10px; }
}


/* --- Why V3 Section --- */
.why-v3-section {
    padding: 0px 24px 80px 24px;
    background-color: var(--bg);
}
.why-v3-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 56px 48px;
    text-align: center;
    box-shadow: 0 24px 48px rgba(0,0,0,0.03);
    overflow: hidden;
    z-index: 1;
}
[data-theme="dark"] .why-v3-container {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: none;
}
.why-v3-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background: radial-gradient(circle at 100% 0%, rgba(245,166,35,0.12) 0%, transparent 40%),
                radial-gradient(circle at 0% 100%, rgba(123,53,232,0.12) 0%, transparent 40%);
    pointer-events: none;
}
.why-v3-container h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1B1E2B;
    letter-spacing: -0.5px;
}
[data-theme="dark"] .why-v3-container h2 {
    color: var(--text-primary);
}
.why-v3-container p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}
.why-v3-note {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}
[data-theme="dark"] .why-v3-note {
    background: var(--surface-section);
}
.why-v3-note strong {
    color: var(--text-primary);
}
@media (max-width: 768px) {
    .why-v3-container { padding: 32px 20px; }
}

/* --- About V3 Section --- */
.about-v3-section {
    padding: 20px 24px 60px 24px;
    background-color: var(--bg);
}
.about-v3-card {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 56px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.03);
    overflow: hidden;
    z-index: 1;
}
[data-theme="dark"] .about-v3-card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: none;
}
.about-v3-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background: radial-gradient(circle at 100% 0%, rgba(245,166,35,0.12) 0%, transparent 40%),
                radial-gradient(circle at 0% 100%, rgba(123,53,232,0.12) 0%, transparent 40%);
}
.about-v3-icon {
    width: 48px;
    height: 48px;
    background: #F5A623;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(245,166,35,0.2);
}
.about-v3-card h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1B1E2B;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}
[data-theme="dark"] .about-v3-card h2 {
    color: var(--text-primary);
}
.about-v3-card p {
    font-size: 15.5px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}
.about-v3-links {
    font-size: 15px;
    color: var(--text-secondary);
}
.about-v3-links a {
    color: var(--purple);
    text-decoration: underline;
    font-weight: 500;
}
@media (max-width: 768px) {
    .about-v3-card { padding: 32px 24px; }
}

/* --- V3 Header --- */
.ed-header-v3 {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.ed-header-v3-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ed-logo-v3 {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.ed-logo-v3 svg {
    width: 28px;
    height: 28px;
    color: var(--purple);
    margin-right: 6px;
    fill: var(--purple);
}
.logo-text-1 { color: var(--text-primary); }
.logo-text-2 { color: #D82BA6; }
.logo-text-3 { color: var(--text-muted); font-size: 16px; font-weight: 500; }

.ed-nav-v3 {
    display: flex;
    gap: 4px;
    align-items: center;
}
.nav-item-v3 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 6px;
    border-radius: 100px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}
.nav-item-v3:hover {
    background: var(--bg-lavender);
}
.nav-icon-v3 {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.nav-icon-v3 svg {
    width: 20px;
    height: 20px;
}

.nav-item-v3.active {
    color: var(--purple);
}
.nav-item-v3.active .nav-icon-v3 {
    background: var(--bg-lavender);
    color: var(--purple);
}

@media (max-width: 768px) {
    .nav-text-v3 { display: none; }
    .nav-item-v3 { padding: 4px; gap: 0; }
    .nav-icon-v3 { width: 44px; height: 44px; }
}


/* --- Overriding Legacy Tool Cards for Creator Tools Page --- */
.tool-card {
    background-color: #FFFFFF !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    text-align: left;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.02) !important;
    text-decoration: none !important;
    color: var(--text-primary) !important;
    
    display: grid !important;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto 1fr;
    gap: 16px 0;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(123,53,232,0.12) !important;
    border-color: var(--purple) !important;
}

/* 1. Icon Box */
.tool-card .tool-icon {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    font-size: 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    background: var(--bg-lavender); /* fallback */
}

/* Varied Soft Backgrounds for Icons */
.tool-card:nth-child(5n+1) .tool-icon { background: rgba(56, 189, 248, 0.12) !important; } /* Blue */
.tool-card:nth-child(5n+2) .tool-icon { background: rgba(168, 85, 247, 0.12) !important; } /* Purple */
.tool-card:nth-child(5n+3) .tool-icon { background: rgba(236, 72, 153, 0.12) !important; } /* Pink */
.tool-card:nth-child(5n+4) .tool-icon { background: rgba(34, 197, 94, 0.12) !important; } /* Green */
.tool-card:nth-child(5n+5) .tool-icon { background: rgba(245, 158, 11, 0.12) !important; } /* Orange */

/* 2. Arrow Button (Hiding the 'Use Tool' text and styling as circular button) */
.tool-card .btn-primary {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    align-self: start;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    color: transparent !important; /* Hide 'Use Tool' */
    background-color: #FFFFFF !important;
    border: 1px solid var(--border) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* Disable default text selection on the hidden text */
    user-select: none;
}

/* Injecting the arrow using ::before */
.tool-card .btn-primary::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    /* Basic right arrow (gray) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238995AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.25s ease;
}

/* Hover state for arrow button */
.tool-card:hover .btn-primary {
    background-color: var(--purple) !important;
    border-color: var(--purple) !important;
}

.tool-card:hover .btn-primary::before {
    /* Top-right arrow (white) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23FFFFFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M7 7h10v10'/%3E%3C/svg%3E");
}

/* 3. Title */
.tool-card h3 {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: var(--text-primary) !important;
}

/* 4. Paragraph */
.tool-card p {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    font-size: 13px !important;
    color: var(--text-secondary) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* Dark mode handling */
[data-theme="dark"] .tool-card {
    background-color: var(--surface-section) !important;
}
[data-theme="dark"] .tool-card .btn-primary {
    background-color: var(--surface) !important;
}
[data-theme="dark"] .tool-card:hover .btn-primary {
    background-color: var(--purple) !important;
}


/* --- Overriding Legacy Form Inputs (Fix Black Inputs) --- */
form input, form select, form textarea,
.card input, .card select, .card textarea,
.form-group input, .form-group select, .form-group textarea {
    background-color: #FFFFFF !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    color: var(--text-primary) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02) !important;
    transition: all 0.2s ease !important;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none; /* Helps with select styling on Safari */
}

form input:focus, form select:focus, form textarea:focus,
.card input:focus, .card select:focus, .card textarea:focus {
    border-color: var(--purple) !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(123,53,232,0.1) !important;
}

form input::placeholder, form textarea::placeholder,
.card input::placeholder, .card textarea::placeholder {
    color: var(--text-muted) !important;
    opacity: 1 !important;
}

/* Force dark mode to handle it cleanly too */
[data-theme="dark"] form input, 
[data-theme="dark"] form select, 
[data-theme="dark"] form textarea,
[data-theme="dark"] .card input, 
[data-theme="dark"] .card select, 
[data-theme="dark"] .card textarea {
    background-color: var(--surface-section) !important;
    border-color: var(--border) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] form input::placeholder, 
[data-theme="dark"] form textarea::placeholder {
    color: rgba(255,255,255,0.4) !important;
}


/* --- Overriding Related Tools Mini Cards (Fix Black Cards) --- */
.tool-card-mini {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #FFFFFF !important;
    border: 1px solid var(--border) !important;
    border-radius: 100px !important;
    padding: 20px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02) !important;
    transition: all 0.2s ease !important;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}
.tool-card-mini:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(123,53,232,0.08) !important;
    border-color: var(--border-purple) !important;
    color: var(--purple) !important;
    background-color: var(--bg-lavender) !important;
}

[data-theme="dark"] .tool-card-mini {
    background-color: var(--surface-section) !important;
    border-color: var(--border) !important;
    color: var(--text-primary) !important;
}
[data-theme="dark"] .tool-card-mini:hover {
    background-color: rgba(123,53,232,0.15) !important;
}


/* --- Overriding Legacy Result Items (Fix Black Boxes) --- */
.result-item {
    background-color: #FFFFFF !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02) !important;
    transition: all 0.2s ease !important;
}
.result-item:hover {
    border-color: #DDD9FF !important;
    box-shadow: 0 6px 16px rgba(91,79,232,0.06) !important;
}
.result-item-content {
    font-size: 15px !important;
    color: var(--text-primary) !important;
    line-height: 1.6 !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
}
.result-item .copy-item-btn, .result-item .btn {
    margin-left: 16px !important;
    background-color: var(--bg-lavender) !important;
    color: var(--purple) !important;
    border: none !important;
    padding: 10px 16px !important;
    border-radius: 100px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    height: auto !important;
}
.result-item .copy-item-btn:hover, .result-item .btn:hover {
    background-color: var(--purple) !important;
    color: white !important;
}
/* Dark mode support */
[data-theme="dark"] .result-item {
    background-color: var(--surface-section) !important;
    border-color: var(--border) !important;
}
[data-theme="dark"] .result-item-content {
    color: var(--text-primary) !important;
}
[data-theme="dark"] .result-item .copy-item-btn, 
[data-theme="dark"] .result-item .btn {
    background-color: rgba(123,53,232,0.15) !important;
}





/* --- Hero Secondary Button Hover Fix --- */
.hh3-btn[style*="transparent"]:hover {
    background-color: var(--bg-lavender) !important;
    border-color: var(--border-purple) !important;
    color: var(--purple) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123,53,232,0.1) !important;
}

[data-theme="dark"] .hh3-btn[style*="transparent"]:hover {
    background-color: rgba(123,53,232,0.15) !important;
    border-color: var(--purple) !important;
}


/* --- Premium Landing Page Components (Audio Downloader) --- */
.ed-content-section {
    padding-top: 60px;
    padding-bottom: 60px;
    max-width: 1000px;
    margin: 0 auto;
}
.ed-content-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.02);
}
.ed-content-card.faq-card {
    padding: 32px;
    border-radius: 16px;
}
.ed-content-card h2 {
    font-size: 24px;
    margin-bottom: 24px;
    line-height: 1.3;
    color: var(--text-primary);
}
.ed-content-card h3 {
    font-size: 16px;
    color: var(--text-primary);
}
.ed-content-card p, .ed-content-card li {
    color: var(--text-secondary);
    line-height: 1.6;
}
.ed-content-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ed-content-card li {
    margin-bottom: 16px;
}
.ed-content-card li:last-child {
    margin-bottom: 0;
}

.ed-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    position: relative;
}
@media (max-width: 768px) {
    .ed-steps-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
.ed-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}
.ed-step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #E9E5FF;
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(123,53,232,0.1);
}
.ed-step-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}
/* Connecting line for desktop */
@media (min-width: 769px) {
    .ed-steps-grid::before {
        content: '';
        position: absolute;
        top: 24px;
        left: 15%;
        right: 15%;
        height: 2px;
        background: #E9E5FF;
        z-index: 0;
    }
}

.ed-faq-icon {
    background: var(--bg-lavender);
    color: var(--purple);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    font-weight: 700;
}

.ed-dmca-card {
    background: #1A1D27;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 60px;
}
.ed-dmca-card h3 {
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    margin-bottom: 16px;
}
.ed-dmca-card p {
    color: #9CA3AF;
    font-size: 14px;
    line-height: 1.6;
}

[data-theme="dark"] .ed-content-card {
    background: var(--surface);
}
[data-theme="dark"] .ed-step-circle {
    background: var(--surface);
    border-color: rgba(123,53,232,0.3);
}
[data-theme="dark"] .ed-steps-grid::before {
    background: rgba(123,53,232,0.2);
}


/* --- Premium Accordion FAQ --- */
.ed-faq-accordion {
    max-width: 840px;
    margin: 0 auto;
    text-align: left;
}
.ed-faq-item {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.01);
}
.ed-faq-item:hover {
    border-color: #DDD9FF;
    box-shadow: 0 6px 20px rgba(123,53,232,0.05);
}
.ed-faq-summary {
    padding: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    list-style: none;
    user-select: none;
}
.ed-faq-summary::-webkit-details-marker {
    display: none;
}
.ed-faq-icon-plus {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-lavender);
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 400;
    flex-shrink: 0;
    transition: all 0.3s ease;
    line-height: 1;
}
/* When open, change plus to minus */
.ed-faq-item[open] .ed-faq-icon-plus {
    transform: rotate(45deg);
    background: var(--purple);
    color: #FFFFFF;
}
.ed-faq-content {
    padding: 0 24px 24px 24px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

[data-theme="dark"] .ed-faq-item {
    background: var(--surface-section);
}
[data-theme="dark"] .ed-faq-icon-plus {
    background: rgba(123,53,232,0.15);
}


/* --- Remove Legacy Black Form Boxes on Downloaders --- */
.tool-interface {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.tool-interface form {
    display: none !important;
}

/* Animation for cards */
@keyframes float-c1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes float-c2 {
    0%, 100% { transform: translateY(-50%) translateY(0); }
    50% { transform: translateY(-50%) translateY(-10px); }
}
@keyframes float-c3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Premium Tool Chips Overrides */
.chip-container .chip,
#hashtag-chips .chip {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.chip-container .chip:hover,
#hashtag-chips .chip:hover {
    background: var(--bg-lavender);
    border-color: var(--purple);
    color: var(--purple) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Footer Logo Overrides */
.ed-footer .logo-text-1 {
    color: #ffffff !important;
}

/* ─── Scroll-to-Top Button ─── */
.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366F1 0%, #7C3AED 55%, #A855F7 100%);
    box-shadow:
        0 4px 14px rgba(99, 102, 241, 0.4),
        0 2px 6px rgba(124, 58, 237, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.85);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow:
        0 8px 24px rgba(99, 102, 241, 0.5),
        0 4px 10px rgba(124, 58, 237, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.scroll-top-btn:active {
    transform: translateY(-1px) scale(0.97);
    box-shadow:
        0 2px 8px rgba(99, 102, 241, 0.35),
        0 1px 4px rgba(124, 58, 237, 0.25);
}

.scroll-top-btn svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    stroke-width: 2.5;
    fill: none;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
}

@media (max-width: 767px) {
    .scroll-top-btn {
        bottom: 18px;
        right: 16px;
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }
    .scroll-top-btn svg {
        width: 14px;
        height: 14px;
    }
}
