/* ==========================================
   Convert Anything Free — Landing Page Stylesheet
   Flat UI Design with Blue Accent
   ========================================== */

:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;

    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --green-500: #22c55e;
    --green-600: #16a34a;
    --purple-500: #a855f7;
    --orange-500: #f97316;
    --pink-500: #ec4899;
    --teal-500: #14b8a6;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.1);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   Gradient Text
   ========================================== */
.gradient-text {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   Header
   ========================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gray-200);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.logo-text {
    color: var(--gray-900);
}

.logo-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: #fff;
}

.header-nav {
    display: flex;
    gap: 28px;
}

.header-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-500);
    transition: color var(--transition);
}

.header-nav a:hover {
    color: var(--blue-600);
}

/* ==========================================
   Hero
   ========================================== */
.hero {
    position: relative;
    text-align: center;
    padding: 80px 0 64px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--blue-50) 0%, var(--gray-50) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.hero-circle-1 {
    width: 500px;
    height: 500px;
    background: var(--blue-400);
    top: -200px;
    right: -100px;
}

.hero-circle-2 {
    width: 350px;
    height: 350px;
    background: var(--blue-600);
    bottom: -150px;
    left: -80px;
}

.hero-circle-3 {
    width: 200px;
    height: 200px;
    background: var(--blue-300);
    top: 40%;
    left: 60%;
}

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



.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.hero-subtitle {
    max-width: 640px;
    margin: 0 auto 32px;
    font-size: 1.1rem;
    color: var(--gray-500);
    line-height: 1.7;
}

.hero-actions {
    margin-bottom: 48px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--blue-600);
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gray-400);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

/* ==========================================
   Converters Section
   ========================================== */
.converters-section {
    /* padding: 80px 0; */
}

.converters-section h2,
.features-section h2,
.about-section h2 {
    text-align: center;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

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

/* Converter Card — Clean flat cards like Tresor UI */
.converter-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 28px;
    border: 1px solid var(--gray-200);
    transition: box-shadow var(--transition), transform var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

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

.converter-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.converter-fa-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.converter-fa-icon.blue {  color: var(--blue-600); }
.converter-fa-icon.purple {  color: var(--purple-500); }
.converter-fa-icon.green {  color: var(--green-600); }
.converter-fa-icon.orange {  color: var(--orange-500); }
.converter-fa-icon.teal {  color: var(--teal-500); }
.converter-fa-icon.pink {  color: var(--pink-500); }

.converter-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.converter-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
    flex: 1;
}

.converter-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.format-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    color: var(--gray-500);
}

.converter-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue-600);
    margin-top: 4px;
    transition: gap var(--transition);
}

.converter-card:hover .converter-cta {
    gap: 10px;
}

/* ==========================================
   Features Section
   ========================================== */
.features-section {
    padding: 80px 0;
    background: #fff;
}

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

.feature-card {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--gray-300);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ==========================================
   About Section
   ========================================== */
.about-section {
    padding: 80px 0;
}

.about-card {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-card h2 {
    margin-bottom: 20px;
}

.about-card p {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 12px;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    padding: 40px 0;
    /* border-top: 1px solid var(--gray-200); */
    text-align: center;
}

.footer-inner p {
    font-size: 0.85rem;
    color: var(--gray-400);
}

.footer-sub {
    margin-top: 4px;
    font-size: 0.8rem !important;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-700);
}

.footer-logo {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   Features Illustration (Flat Graphic)
   ========================================== */
.features-illustration {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
}

.features-illustration svg {
    width: 100%;
    height: auto;
    max-height: 200px;
}

/* ==========================================
   FAQ Page
   ========================================== */
.faq-hero {
    padding: 64px 0 48px;
}

.faq-page-section {
    padding: 60px 0 80px;
}

.faq-category {
    max-width: 780px;
    margin: 0 auto 48px;
}

.faq-category:last-child {
    margin-bottom: 0;
}

.faq-category h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--blue-100);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

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

.faq-item summary {
    padding: 18px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--gray-400);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-item[open] summary::after {
    content: '\2212';
    color: var(--blue-500);
}

.faq-item p {
    padding: 0 24px 18px;
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
}

.header-nav a.active {
    color: var(--blue-600);
}

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

@media (max-width: 640px) {
    .header-nav {
        display: none;
    }
    .hero {
        padding: 56px 0 48px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-stats {
        gap: 20px;
    }
    .stat-number {
        font-size: 1.4rem;
    }
    .converters-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}
