/* ============================================
   DESIGN SYSTEM / CSS VARIABLES
   ============================================ */
:root {
    /* Primary Colors */
    --primary-purple: #7c3aed;
    --primary-blue: #3b82f6;
    --primary-pink: #ec4899;
    --primary-orange: #f97316;

    /* Gradient Definitions */
    --gradient-hero: linear-gradient(135deg, #7c3aed 0%, #a855f7 25%, #ec4899 50%, #f43f5e 75%, #f97316 100%);
    --gradient-purple: linear-gradient(135deg, #7c3aed, #a855f7);
    --gradient-pink: linear-gradient(135deg, #ec4899, #f43f5e);
    --gradient-button: linear-gradient(135deg, #3b82f6, #6366f1);
    --gradient-card: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);

    /* Neutral Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.3);

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 80px 0;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 28px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.logo:hover {
    transform: scale(1.03);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-purple);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-accent {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    padding: 6px 12px;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary-purple);
    background: rgba(124, 58, 237, 0.06);
}

/* Language dropdown */
.lang-dropdown {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    color: var(--primary-purple);
    background: rgba(124, 58, 237, 0.06);
}

.lang-btn i {
    font-size: 0.7rem;
    transition: var(--transition-fast);
}

.lang-dropdown.open .lang-btn i {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    min-width: 180px;
    max-height: 320px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition-normal);
    z-index: 100;
}

.lang-dropdown.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.lang-option:hover,
.lang-option.active {
    background: rgba(124, 58, 237, 0.06);
    color: var(--primary-purple);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 520px;
    background: var(--gradient-hero);
    padding: 120px 24px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Animated particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}

/* Tab navigation */
.tab-navigation {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 50px;
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.85);
    transition: var(--transition-normal);
    white-space: nowrap;
    position: relative;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

.tab-btn.active {
    color: var(--primary-purple);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.tab-btn i {
    font-size: 0.82rem;
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 720px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
    animation: fadeInUp 0.6s ease-out;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 36px;
    font-weight: 400;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

/* Download form */
.download-form {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    transition: var(--transition-normal);
    max-width: 640px;
    margin: 0 auto;
}

.input-wrapper:focus-within {
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 0 3px rgba(124, 58, 237, 0.2);
    transform: translateY(-1px);
}

.input-icon {
    padding: 0 4px 0 14px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.url-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: var(--text-primary);
    padding: 14px 8px;
    background: transparent;
    font-family: inherit;
    min-width: 0;
}

.url-input::placeholder {
    color: var(--text-light);
}

.paste-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    border-radius: 12px;
    transition: var(--transition-fast);
    white-space: nowrap;
    border: 1px solid var(--border-color);
}

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

.paste-btn i {
    color: var(--text-light);
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--gradient-button);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 12px;
    margin-left: 6px;
    transition: var(--transition-normal);
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

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

/* Results area */
.results-area {
    margin-top: 24px;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Discover more */
.discover-more {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 720px;
    margin-top: 40px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 28px 32px;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.discover-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.discover-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid var(--border-color);
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.discover-link:hover {
    color: var(--primary-purple);
    padding-left: 8px;
}

.discover-link i {
    font-size: 0.8rem;
    opacity: 0.5;
    transition: var(--transition-fast);
}

.discover-link:hover i {
    opacity: 1;
    transform: translateX(4px);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    padding: var(--section-padding);
}

.about-card {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--gradient-card);
    border-radius: var(--border-radius-xl);
    padding: 48px;
    color: #fff;
    box-shadow: var(--shadow-glow);
    overflow: hidden;
    position: relative;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.about-icon-area {
    position: relative;
    flex-shrink: 0;
}

.about-icon-bg {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 1px solid rgba(255,255,255,0.3);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.floating-icons {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
}

.float-icon {
    position: absolute;
    opacity: 0.5;
    animation: iconFloat 4s ease-in-out infinite;
}

.float-icon:nth-child(1) {
    top: -8px;
    right: -8px;
    font-size: 0.9rem;
    animation-delay: 0s;
}

.float-icon:nth-child(2) {
    bottom: -5px;
    left: -12px;
    font-size: 1rem;
    animation-delay: 1.5s;
}

.float-icon:nth-child(3) {
    top: 50%;
    right: -16px;
    font-size: 0.8rem;
    animation-delay: 3s;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-8px) rotate(10deg); }
}

.about-text h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-hero);
    border-radius: 2px;
    margin: 16px auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

/* ============================================
   HOW-TO SECTION
   ============================================ */
.howto-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

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

.step-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-hero);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

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

.step-card:hover::before {
    transform: scaleX(1);
}

.step-visual {
    position: relative;
    margin-bottom: 20px;
}

.step-mockup {
    background: var(--gradient-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 160px;
    position: relative;
}

.mockup-bar {
    background: rgba(255,255,255,0.2);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.9);
}

.mockup-url {
    background: rgba(255,255,255,0.15);
    padding: 3px 10px;
    border-radius: 4px;
}

.mockup-paste {
    background: rgba(255,255,255,0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.mockup-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100% - 36px);
    position: relative;
}

.mockup-image {
    width: 60%;
    height: 70%;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
}

.copy-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    animation: iconPulse 2s ease-in-out infinite;
}

.paste-animation {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.8);
    animation: iconPulse 2s ease-in-out infinite;
}

.mockup-download-btn {
    background: var(--gradient-button);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    animation: iconPulse 2s ease-in-out infinite;
}

.step-cursor {
    position: absolute;
    bottom: 8px;
    right: 30%;
    color: #fff;
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: cursorBounce 2s ease-in-out infinite;
}

@keyframes cursorBounce {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-4px, -4px); }
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 8px;
}

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

/* ============================================
   ADDRESS BAR SECTION
   ============================================ */
.addressbar-section {
    padding: var(--section-padding);
}

.addressbar-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.browser-mockup {
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.browser-topbar {
    background: #f1f5f9;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #22c55e; }

.browser-address {
    flex: 1;
    background: #fff;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
}

.address-prefix {
    color: var(--primary-purple);
    font-weight: 700;
}

.address-url {
    color: var(--text-secondary);
}

.browser-body {
    padding: 24px;
    min-height: 180px;
}

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

.preview-item {
    height: 100px;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.preview-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.cursor-click {
    position: relative;
    text-align: center;
    margin-top: -20px;
    margin-left: 40px;
    font-size: 1.5rem;
    color: var(--primary-purple);
    animation: cursorBounce 2s ease-in-out infinite;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.info-list li i {
    color: var(--primary-purple);
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.info-list li strong {
    color: var(--primary-purple);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

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

.feature-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 36px 24px;
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-hero);
    opacity: 0;
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-purple);
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background: var(--gradient-card);
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    padding: var(--section-padding);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 32px;
    background: #fff;
    border-radius: var(--border-radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    overflow: hidden;
    position: relative;
}

.service-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-hero);
    opacity: 0;
    transition: var(--transition-normal);
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.service-item:hover::before {
    opacity: 1;
}

.service-item.reverse {
    flex-direction: row-reverse;
}

.service-item.reverse::before {
    left: auto;
    right: 0;
}

.service-text {
    flex: 1;
}

.service-text h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-text h3 i {
    color: var(--primary-purple);
    font-size: 1.1rem;
}

.service-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.service-visual {
    flex-shrink: 0;
}

.service-preview {
    width: 200px;
    height: 140px;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
}

.service-preview::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 50%);
    animation: shimmerRotate 8s linear infinite;
}

@keyframes shimmerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.video-preview { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.photo-preview { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.reels-preview { background: linear-gradient(135deg, #f97316, #eab308); }
.igtv-preview { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.carousel-preview { background: linear-gradient(135deg, #14b8a6, #22c55e); }

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.faq-item:hover {
    border-color: rgba(124, 58, 237, 0.15);
}

.faq-item.open {
    box-shadow: var(--shadow-lg);
    border-color: rgba(124, 58, 237, 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    text-align: left;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary-purple);
}

.faq-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 8px;
    color: var(--primary-purple);
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.faq-item.open .faq-icon {
    background: var(--gradient-purple);
    color: #fff;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 400px;
}

.faq-answer p,
.faq-answer ol {
    padding: 0 24px 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer ol {
    padding-left: 48px;
    list-style: decimal;
}

.faq-answer ol li {
    margin-bottom: 6px;
    list-style: decimal;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.footer-logo .logo-icon {
    background: var(--gradient-purple);
}

.footer-logo .logo-text {
    color: #fff;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--gradient-purple);
    color: #fff;
    transform: translateY(-3px);
}

.footer-links-group h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links-group ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-group a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: var(--transition-fast);
}

.footer-links-group a:hover {
    color: #fff;
    padding-left: 6px;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ============================================
   RESULT DOWNLOAD BUTTONS
   ============================================ */
.result-download-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}

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

.result-download-all-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    margin-top: 12px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}

.result-download-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.5);
}

.result-more-details-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    margin-top: 12px;
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.result-more-details-btn:hover {
    transform: translateY(-1px);
    border-color: #c4b5fd;
    color: #4c1d95;
    background: #f5f3ff;
}

/* ============================================
   POST DETAILS SECTION
   ============================================ */
.post-details-section {
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    animation: fadeInUp 0.4s ease-out;
}

.post-main-heading {
    margin-bottom: 14px;
}

.post-main-heading h5 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.55;
    word-break: break-word;
    margin-bottom: 4px;
}

.post-meta-byline {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 700;
}

.post-details-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.post-details-heading h5 {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
}

.post-details-heading span {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
}

.post-detail-caption {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.post-detail-caption p {
    font-size: 0.92rem;
    color: #1e293b;
    line-height: 1.7;
    word-break: break-word;
}

.post-detail-stats {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 14px;
}

.post-stat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 600;
}

.post-stat-card i {
    width: 18px;
    text-align: center;
    color: #64748b;
}

.post-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
}

.post-stat-item i {
    width: 18px;
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
}

.post-detail-comments {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.post-comments-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
}

.post-comments-title i {
    color: #7c3aed;
}

.post-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    transition: background 0.2s ease;
    user-select: none;
}

.post-comments-header:hover {
    background: #f1f5f9;
}

.post-comments-header i:first-child {
    margin-right: 8px;
    color: #7c3aed;
}

.post-comments-toggle {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: #94a3b8;
}

.post-comments-list {
    max-height: 380px;
    overflow: auto;
}

.post-comments-empty {
    padding: 14px 18px;
    background: #ffffff;
    color: #64748b;
    font-size: 0.88rem;
    border-top: 1px solid #f1f5f9;
}

.post-comment-item {
    padding: 14px 18px;
    border-top: 1px solid #f1f5f9;
    background: #fff;
    transition: background 0.2s ease;
}

.post-comment-item:hover {
    background: #fafafe;
}

.post-comment-username {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    display: block;
    margin-bottom: 4px;
}

.post-comment-text {
    font-size: 0.88rem;
    color: #1e293b;
    line-height: 1.6;
    font-weight: 500;
    word-break: break-word;
}

/* ============================================
   VIEWER RESULTS
   ============================================ */
.viewer-results-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 28px;
    margin-top: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.viewer-profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.viewer-profile-info h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2px;
}

.viewer-fullname {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.viewer-stats-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px 0;
    margin-bottom: 16px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.viewer-stat {
    text-align: center;
}

.viewer-stat strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
}

.viewer-stat span {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.viewer-posts-section h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.viewer-posts-section h4 i {
    color: #7c3aed;
}

.viewer-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.viewer-post-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 8px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
}

.viewer-post-item:hover {
    background: linear-gradient(135deg, #ede9fe, #fce7f3);
    border-color: #c4b5fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
    color: #7c3aed;
}

.viewer-post-item i:first-child {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-card {
        flex-direction: column;
        text-align: center;
    }

    .addressbar-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .service-preview {
        width: 160px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 56px 0;
    }

    .hero {
        padding: 100px 16px 40px;
        min-height: auto;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .tab-navigation {
        gap: 2px;
        padding: 4px;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .tab-btn i {
        display: none;
    }

    .input-wrapper {
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px;
    }

    .url-input {
        flex-basis: 100%;
        padding: 12px 8px;
    }

    .input-icon {
        position: absolute;
        display: none;
    }

    .paste-btn,
    .download-btn {
        flex: 1;
        justify-content: center;
    }

    .download-btn {
        margin-left: 0;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .service-item,
    .service-item.reverse {
        flex-direction: column;
    }

    .service-preview {
        width: 100%;
        height: 120px;
    }

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

    .section-subtitle {
        font-size: 0.95rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .discover-more {
        padding: 20px;
    }

    .about-card {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .header-container {
        height: 56px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .hero {
        padding: 80px 12px 32px;
    }

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

    .tab-navigation {
        border-radius: 16px;
    }

    .tab-btn {
        padding: 7px 10px;
        font-size: 0.75rem;
        border-radius: 12px;
    }
}
