/* CSS Variables matching the design */
:root {
    --primary-purple: #1E1E1E;
    --primary-purple-dark: #1E1E1E;
    --accent-yellow: #FDE047;
    --accent-yellow-hover: #FACC15;
    --text-white: #FFFFFF;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --text-light-gray: #9CA3AF;
    --bg-light: #F9FAFB;
    --bg-cream: #FEF3C7;
    --bg-light-green: #D1FAE5;
    --bg-light-purple: #F3E8FF;
    --border-light: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

/* Font families for different elements */
h1, h2, h3, h4, h5, h6, .heading {
    font-family: 'Source Serif Pro', 'Playfair Display', Georgia, serif;
}

p, span, div, a, button, input, .text {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: 'Source Serif Pro', 'Playfair Display', Georgia, serif;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #1F2937;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-purple);
}

/* Mobile Menu Drawer */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-purple);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
}

.mobile-menu-drawer.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1F2937;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-links li {
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-links a {
    display: block;
    padding: 1rem 0;
    text-decoration: none;
    color: #1F2937;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.mobile-nav-links a:hover {
    color: #A401DB;
}

/* Hero Section */
.hero {
    background: var(--primary-purple);
    color: var(--text-white);
    text-align: center;
    padding: 8rem 0;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero .container {
    width: 100%;
}

.hero-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 3rem;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: 0.5px;
    width: 40%;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    margin-bottom: 2rem;
    margin-top: 1rem;
    opacity: 0.9;
    width:40%;
    margin-left:auto;
    margin-right:auto;
}

/* URL Input Section */
.url-section {
    position: relative;
    max-width: 550px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.url-input {
    flex: 1;
    padding: 1.25rem 1.5rem;
    padding-right: 140px; /* Make space for button */
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    outline: none;
    background: transparent;
    font-family: 'DM Sans', sans-serif;
}

.url-input::placeholder {
    color: var(--text-light-gray);
}

.url-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.875rem 1.75rem;
    background: #FFD31F;
    color: var(--text-dark);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
}

.url-btn:hover {
    background: #E6BE1C;
    transform: translateY(-50%) translateY(-1px);
    box-shadow: var(--shadow-md);
}

.supported-text {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Alias editor (shown in result panel after shortening) --- */
.alias-editor {
    max-width: 560px;
    margin: 1.2rem auto 0;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
}

.alias-editor-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.6rem;
}

.alias-editor-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.alias-editor-prefix {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.58);
    white-space: nowrap;
    font-family: monospace;
}

.alias-editor-input {
    flex: 1;
    min-width: 100px;
    padding: 0.5rem 0.75rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.95rem;
    font-family: monospace;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.alias-editor-input:focus {
    border-color: var(--primary-purple, #1E1E1E);
    background: rgba(255, 255, 255, 0.18);
}

.alias-save-btn {
    background: var(--primary-purple, #1E1E1E) !important;
    color: #fff !important;
    flex-shrink: 0;
}

.alias-save-btn:hover:not(:disabled) {
    background: #a008d4 !important;
}

.alias-editor-hint {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0.5rem 0 0;
}

.alias-editor-hint.is-error-hint {
    color: #fca5a5;
}

.alias-editor-done {
    font-size: 0.9rem;
    color: #86efac;
    margin: 0;
    text-align: center;
    word-break: break-all;
}

.form-alert {
    margin: 1rem auto 0;
    max-width: 560px;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-alert.is-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.form-alert.is-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.loading-panel {
    max-width: 560px;
    margin: 1rem auto 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(12px);
}

.loading-orb {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ffd31f, rgba(255,255,255,0.12), #ffd31f);
    animation: spin 1.1s linear infinite;
    position: relative;
    flex-shrink: 0;
}

.loading-orb::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: var(--primary-purple);
}

.loading-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: #fff;
}

.loading-copy strong {
    font-size: 0.98rem;
}

.loading-copy span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.82);
}

.shorten-result {
    max-width: 560px;
    margin: 1rem auto 0;
    background: #fff;
    border-radius: 1.1rem;
    box-shadow: 0 14px 28px rgba(16, 24, 40, 0.15);
    padding: 1.1rem;
    text-align: left;
    position: relative;
}

.result-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #f3f4f6;
    color: #444;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    box-shadow: none;
    padding: 0;
}

.result-close-btn span, .result-close-btn svg, .result-close-btn i {
    font-size: 16px !important;
    line-height: 1;
}

.result-close-btn:hover {
    background: #e5e7eb;
}

.shorten-result-title {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.65rem;
    font-size: 1rem;
}

.short-link-row {
    width: 100%;
    margin-bottom: 0.6rem;
}

.short-link-btn-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
    width: 100%;
}

.short-link-btn-row .result-btn {
    flex: 1;
    min-width: 0;
}

.short-url-field {
    width: 100%;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: #f9fafb;
    outline: none;
}

.result-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    padding: 0.9rem 1.2rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.result-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.result-btn.copy-btn {
    background: #111827;
    color: #fff;
}

.result-btn.open-btn {
    border: 1px solid var(--primary-purple);
    color: var(--primary-purple);
    background: transparent;
}

.result-btn.qr-btn {
    background: #ffd31f;
    color: #111827;
    padding-left: 2rem;
    padding-right: 2rem;
}

.result-meta {
    margin-top: 0.6rem;
    font-size: 0.86rem;
    color: var(--text-gray);
}

.qr-preview {
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    padding: 2rem 1.5rem;
    border-radius: 1.2rem;
    background: #f9fafb;
    border: 1px solid var(--border-light);
}

.qr-preview img {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.result-actions-row {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
}

.custom-alias-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.custom-alias-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
}

.custom-alias-dialog {
    position: relative;
    width: min(92vw, 560px);
    margin: 12vh auto 0;
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.2rem;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.3);
    z-index: 1;
}

.custom-alias-close {
    position: absolute;
    right: 0.7rem;
    top: 0.6rem;
    border: none;
    background: transparent;
    font-size: 1.05rem;
    color: #6b7280;
    cursor: pointer;
}

.custom-alias-dialog h3 {
    margin: 5px 0px 35px 0px ;
    color: #111827;
    font-size: 1.1rem;
    text-align: left;
}

.custom-alias-copy {
    margin: 0.45rem 0 0.9rem;
    color: #4b5563;
    font-size: 0.9rem;
}

.custom-alias-label {
    display: block;
    margin-bottom: 0.45rem;
    color: #111827;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: left;
}

.custom-alias-row {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #d1d5db;
    border-radius: 2.0rem;
    overflow: hidden;
    background: #ffffff;
}

.custom-alias-prefix {
    color: #6b7280;
    background: #f3f4f6;
    font-size: 0.86rem;
    white-space: nowrap;
    font-family: monospace;
    padding: 0.78rem 0.85rem;
    border-right: 1px solid #e5e7eb;
}

.custom-alias-input {
    flex: 1;
    border: none;
    border-radius: 0;
    padding: 0.72rem 0.78rem;
    font-size: 0.94rem;
    outline: none;
    font-family: monospace;
}

.custom-alias-input:focus {
    box-shadow: none;
}

.custom-alias-row:focus-within {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(30, 30, 30, 0.12);
}

.custom-alias-hint {
    margin-top: 0.55rem;
    font-size: 0.82rem;
    color: #6b7280;
    min-height: 1.2rem;
}

.custom-alias-hint.is-error-hint {
    color: #b91c1c;
}

.custom-alias-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
    margin-top: 0.9rem;
    width: 100%;
}

.custom-alias-actions .result-btn {
    flex: 1;
    min-width: 0;
}

#customAliasSaveBtn {
    min-width: 0;
    padding: 0.86rem 1.8rem;
    background: #111827;
    color: #ffffff;
    border: 1px solid #111827;
}

#customAliasCancelBtn {
    min-width: 0;
    padding: 0.86rem 1.3rem;
    background: transparent;
    color: #111827;
    border: 1px solid #d1d5db;
}

.leaderboard-section {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    padding: 5rem 0;
}

.leaderboard-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2rem;
}

.leaderboard-header h2 {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.leaderboard-header p {
    color: var(--text-gray);
}

.leaderboard-grid {
    --leaderboard-gap: 1.25rem;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (2 * var(--leaderboard-gap))) / 3);
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.leaderboard-card {
    background: #fff;
    border-radius: 1.15rem;
    padding: 1.25rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(140, 6, 186, 0.08);
    scroll-snap-align: start;
}

.leaderboard-card.is-empty {
    grid-column: auto;
    text-align: center;
}

.leaderboard-grid::-webkit-scrollbar {
    height: 10px;
}

.leaderboard-grid::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.18);
    border-radius: 999px;
}

.leaderboard-grid::-webkit-scrollbar-thumb {
    background: rgba(140, 6, 186, 0.35);
    border-radius: 999px;
}

.leaderboard-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(140, 6, 186, 0.55);
}

.leaderboard-clicks {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #ede9fe;
    color: var(--primary-purple);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.leaderboard-short {
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.leaderboard-long {
    color: var(--text-gray);
    font-size: 0.92rem;
    line-height: 1.6;
    word-break: break-word;
    min-height: 4.5em;
}

.leaderboard-time {
    display: block;
    margin-top: 0.9rem;
    color: var(--text-light-gray);
    font-size: 0.8rem;
}

/* Stats Section */
.stats {
    background: #F9F9F9;
    text-align: center;
    padding: 6rem 0;
}

.stats-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: left;
    position: relative;
    background: var(--text-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.stat-item h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    text-align: left;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.stat-item p {
    color: var(--text-gray);
    line-height: 1.6;
    text-align: left;
}

/* How to Use Section */
.how-to-use {
    background: var(--bg-cream);
    padding: 6rem 0rem 6rem 0rem;
}

.how-to-use .container {
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--text-dark);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    padding:0px 15px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left:200px;
    margin-right: auto;
}

.step-card {
    background: transparent;
    border-radius: 0;
    padding:20px 5px;
    text-align: left;
    box-shadow: none;
}

.step-icon {
    width: 45px;
    height: 45px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0 0 1rem 0;
}

.step-icon i {
    font-size: 2.5rem;
    color: var(--primary-purple);
}

.step-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.step-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-family: 'DM Sans', sans-serif;
}

.step-description {
    color: var(--text-gray);
    line-height: 1.7;
    max-width: 320px;
    min-height: 3.4em;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow-wrap: break-word;
}

/* Instructions Section */
.instructions {
    padding: 6rem 0px 0rem 0px;
    background:#F9F9F9;
    position: relative;
}

.instructions::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(circle, #E5E7EB 2px, transparent 2px);
    background-size: 10px 10px;
    opacity: 0.3;
}

.instructions::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 8%;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(circle, #E5E7EB 2px, transparent 2px);
    background-size: 10px 10px;
    opacity: 0.3;
}

.instructions-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.instructions-text {
    text-align: center;
}

.instructions-text h2 {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
}

.instructions-text p {
    color: var(--text-gray);
    line-height: 1.9;
    margin-bottom: 0;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* TikTok Section - Special Layout */
.tiktok-section {
    padding: 2rem 0;
    position: relative;
     background:#F9F9F9;
}

.tiktok-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(circle, #E5E7EB 2px, transparent 2px);
    background-size: 10px 10px;
    opacity: 0.3;
}

.tiktok-section::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 8%;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(circle, #E5E7EB 2px, transparent 2px);
    background-size: 10px 10px;
    opacity: 0.3;
}

.tiktok-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 6rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tiktok-mockup {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: left;
    justify-content: left;
}

.tiktok-mockup img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
    border-radius: 2rem;
}

.tiktok-text {
    padding-right: 1rem;
    max-width: 450px;
}

.tiktok-text h2 {
    font-size: 1.5rem;
     max-width:400px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tiktok-text p {
    color: var(--text-gray);
    line-height: 1.9;
   margin-bottom:10px;
    display: -webkit-box;
    
     
}

/* Instagram Section - Special Layout (Image on Left) */
.instagram-section {
    padding: 2rem 0;
background:#F9F9F9;
     position: relative;
}

.instagram-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(circle, #E5E7EB 2px, transparent 2px);
    background-size: 10px 10px;
    opacity: 0.3;
}

.instagram-section::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 8%;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(circle, #E5E7EB 2px, transparent 2px);
    background-size: 10px 10px;
    opacity: 0.3;
}

.instagram-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 6rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.instagram-mockup {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-mockup img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
    border-radius: 2rem;
}

.instagram-text {
    padding-left: 2rem;
}

.instagram-text h2 {
    font-size: 1.5rem;
     max-width:400px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.instagram-text p {
    color: var(--text-gray);
   line-height: 1.9;
   margin-bottom:10px;
    max-width: 400px;
   
}

/* Facebook Section - Special Layout (Image on Right) */
.facebook-section {
    padding: 2rem 0;
background:#F9F9F9;
     position: relative;
}

.facebook-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(circle, #E5E7EB 2px, transparent 2px);
    background-size: 10px 10px;
    opacity: 0.3;
}

.facebook-section::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 8%;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(circle, #E5E7EB 2px, transparent 2px);
    background-size: 10px 10px;
    opacity: 0.3;
}

.facebook-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 6rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.facebook-mockup {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facebook-mockup img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
    border-radius: 2rem;
}

.facebook-text {
    padding-right: 2rem;
}

.facebook-text h2 {
    font-size: 1.5rem;
    max-width:400px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.facebook-text p {
    color: var(--text-gray);
    line-height: 1.9;
    margin-bottom:10px;
    max-width: 400px;
   
}

/* Platform Sections */
.platform-section {
    padding: 4rem 0;
}

.platform-section:nth-child(even) {
    background: var(--bg-light);
}

.platform-content {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 3rem;
    align-items: center;
}

.platform-content.reverse {
    grid-template-columns: 200px 1fr;
}

.platform-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.platform-info p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-gray);
}

.feature-item::before {
    content: "✓";
    background: var(--primary-purple);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.platform-icon-large {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    margin: 0 auto;
}

.tiktok-icon { background: #000; color: white; }
.instagram-icon { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
    color: white; 
}
.facebook-icon { background: #1877f2; color: white; }

/* FAQ Section */
.faq {
    background: white;
    padding: 4rem 0;
}

.faq-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 0;
    max-width: 950px;
    margin: 0 auto;
}

.faq-question {
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    margin-top: 1rem;
    color: var(--text-gray);
    line-height: 1.7;
    max-width:80%;
    display: none;
}

.faq-item:first-child .faq-answer {
    display: block;
}

.faq-item:first-child .faq-question i {
    transform: rotate(180deg);
}

/* CTA Section */
.cta {
    background: var(--bg-light-purple);
    text-align: center;
    padding: 4rem 0;
}

.cta-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cta-subtitle {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.cta-button {
    background: var(--primary-purple);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-2xl);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s;
}

.cta-button:hover {
    background: var(--primary-purple-dark);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-white);
    padding: 4rem 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--text-white);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    color: var(--text-light-gray);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width:1188px) {
    .hero-title {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .steps-grid{
        margin-left:0px;
    }
.stats-title{
    font-size:1.5rem;
}

.faq-answer {
   
     max-width:100%;
    
}

 .cta-title {
    font-size: 1.5rem;
   
}
  .nav-container{
    padding-left:1.42rem;
    padding-right:1rem;
}
.hero{
    padding: 7rem 0rem 6rem 0rem;
    min-height: 55vh;
}
.faq{
   padding:0px 10px;
}
.cta{
    padding-left:0.5rem;
    padding-right:0.5rem;
}
    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
        line-height:1.5;
    }

    .hero-subtitle {
        font-weight: 500;
        width: 100%;
    }
    .url-section {
        flex-direction: column;
        border-radius: var(--radius-xl);
        background: transparent;
        box-shadow: none;
        gap: 1rem;
        width: 100%;
        max-width: 550px;
        margin: 0 auto;
    }

    .url-input {
        width: 100%;
        padding: 1.25rem 1.5rem;
        padding-right: 1.5rem;
        border-radius: var(--radius-xl);
        background: white;
        box-shadow: var(--shadow-md);
        text-align:center;
    }

    .url-btn {
        position: static;
        transform: none;
        width: 100%;
        padding: 1.25rem 2rem;
        border-radius: var(--radius-xl);
        font-size: 1rem;
        font-weight: 700;
    }

    .url-btn:hover {
        transform: translateY(-1px);
    }

    .alias-input-wrap {
        flex-direction: column;
        align-items: stretch;
        border-radius: 1rem;
        padding: 0.75rem 0.85rem;
    }

    .alias-prefix {
        padding-left: 0;
    }

    .shorten-result {
        padding: 0.85rem;
    }

    .short-link-row {
        width: 100%;
    }

    .short-link-btn-row {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.55rem;
    }

    .short-link-btn-row .result-btn {
        width: 100%;
        flex: none;
    }

    .custom-alias-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        border: none;
        border-radius: 0;
        overflow: visible;
        background: transparent;
        outline: none;
    }

    .custom-alias-row:focus-within {
        border-color: transparent;
        box-shadow: none;
    }

    .custom-alias-prefix {
        width: 100%;
        border: 1px solid #e5e7eb;
        border-radius: 1.9rem;
        border-bottom: 1px solid #e5e7eb;
        padding: 0.72rem 0.85rem;
        text-align: left;
    }

    .custom-alias-input {
        width: 100%;
        border: 1px solid #d1d5db;
        border-radius: 1.9rem;
        padding: 0.72rem 0.78rem;
        background: #ffffff;
    }

    .custom-alias-actions {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .custom-alias-actions .result-btn {
        width: 100%;
        flex: none;
    }

    .result-btn {
        width: 100%;
    }

    .loading-panel {
        align-items: flex-start;
    }

    .leaderboard-grid {
        grid-auto-columns: minmax(280px, 85%);
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .instructions-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .phone-mockup {
        width: 100%;
        height: 400px;
        align-items: center;
        justify-content: center;
    }

    .instructions-text {
        padding-left: 4px;
        padding-right: 4px;
    }

    .instructions-text h2 {
        font-size: 1.5rem;
    }

    .tiktok-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align:left;
        padding-left: 8px;
        padding-right:8px
    }

    .tiktok-mockup {
        width: 100%;
        height: 300px;
        order: 1;
        padding: 0px;
    }

.tiktok-mockup img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit:cover;
    border-radius: 2rem;
}


    .tiktok-text {
        padding-right: 0;
        order: 2;
    }

    .tiktok-text h2 {
        font-size: 1.1rem;
         max-width:100%;
          margin-bottom: 5px;
        margin-top: 8px;
        font-weight: 500;
    }

    .instagram-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: left;
        padding-left:8px;
        padding-right:8px;
    }

    .instagram-mockup {
        width: 100%;
        height: 300px;
    }
 .instagram-mockup img {
        object-fit: cover;
    }

    .instagram-text {
        padding-left: 0;
    }

    .instagram-text h2 {
        font-size: 1.1rem;
         max-width:100%;
         line-height: 30px;
             margin-bottom: 5px;
        margin-top: 8px;
        font-weight: 500;
    }

    .facebook-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: left;
        padding-left:8px;
        padding-right:8px;
    }

    .facebook-mockup {
        width: 100%;
        height: 300px;
        order: 1;
    }

    .facebook-mockup img{
       object-fit: cover;
    }

    .facebook-text {
        padding-right: 0;
        order: 2;
    }

    .facebook-text h2 {
        font-size: 1.2rem;
        max-width:100%;
        line-height: 30px;
           margin-bottom: 5px;
        margin-top: 8px;
        font-weight: 500;
    }

    .platform-content, .platform-content.reverse {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .nav-links {
        display: none;
    }

    .section {
        padding: 2rem 0;
    }
     .faq-title {
   
    font-size: 1.5rem;
    padding-top:50px;
   
}
.faq-item{
    width: 100%;
}

}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.4rem;
        font-weight: 600;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .step-card {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .url-input {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
        text-align: center;
    }

    .url-btn {
        padding: 1rem 1.75rem;
        font-size: 0.9rem;
    }
    .url-section {
        width: 100%;
        max-width: 100%;
       
    }
    .stats{
        padding: 5rem 0.75rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        /* Keep variables consistent with their names */
        --bg-light: #F9FAFB;
        --text-dark: #1F2937;
        --text-gray: #6B7280;
        --border-light: #E5E7EB;
    }

    .navbar {
        background: white !important;
    }

    .step-card {
        background: transparent !important;
    }
}

/* ================================
   VIDEO RESULT SECTION STYLES
   ================================ */

.video-result {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.result-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    animation: slideUp 0.5s ease-out;
}

.result-header {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);
    color: var(--text-white);
    padding: 2rem;
    text-align: center;
}

.result-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Source Serif Pro', serif;
}

.result-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-family: 'DM Sans', sans-serif;
}

.result-content {
    padding: 2rem;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

.video-preview {
    display: flex;
    justify-content: center;
}

.video-thumb {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--border-light);
}

.video-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.video-meta h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-family: 'DM Sans', sans-serif;
}

.video-date {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.download-options .download-btn {
    position: static;
    transform: none;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-options .download-btn.primary {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);
    color: var(--text-white);
}

.download-options .download-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.download-options .download-btn.secondary {
    background: linear-gradient(135deg, #FFD31F 0%, #FDB426 100%);
    color: var(--text-dark);
}

.download-options .download-btn.secondary:hover {
    background: linear-gradient(135deg, #E6BE1C 0%, #E4A319 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.download-options .download-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.download-options .download-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.download-tip {
    background: var(--bg-light-purple);
    padding: 1rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-purple);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.download-tip i {
    color: var(--primary-purple);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.download-tip p {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Error Card Styles */
.error-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    animation: slideUp 0.5s ease-out;
}

.error-icon {
    font-size: 3rem;
    color: #EF4444;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: 'Source Serif Pro', serif;
}

.error-message {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.error-card .download-btn {
    position: static;
    transform: none;
    background: var(--primary-purple);
    color: var(--text-white);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-card .download-btn:hover {
    background: var(--primary-purple-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsiveness for Video Result */
@media (max-width: 768px) {
    .video-result {
        padding: 2rem 0;
    }
    
    .result-card {
        margin: 0 1rem;
        border-radius: var(--radius-lg);
    }
    
    .result-header {
        padding: 1.5rem 1rem;
    }
    
    .result-title {
        font-size: 1.5rem;
    }
    
    .result-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        text-align: center;
    }
    
    .video-thumb {
        width: 150px;
        height: 150px;
    }
    
    .download-options {
        gap: 0.5rem;
    }
    
    .download-tip {
        text-align: left;
    }
    
    .error-card {
        margin: 0 1rem;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .result-content {
        padding: 1rem;
    }
    
    .video-thumb {
        width: 120px;
        height: 120px;
    }
    
    .download-options .download-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* Feature Visual Blocks (URL Shortener / QR Code sections) */
.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--bg-light-purple) 0%, #e9d5ff 100%);
    border-radius: 2rem;
    width: 280px;
    height: 280px;
    box-shadow: 0 8px 30px rgba(140, 6, 186, 0.12);
    border: 2px solid rgba(140, 6, 186, 0.1);
}

.feature-icon-block i {
    font-size: 4.5rem;
    color: var(--primary-purple);
}

.feature-icon-block span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-purple);
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.3px;
}

.feature-icon-block.qr-block {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: rgba(16, 185, 129, 0.15);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.1);
}

.feature-icon-block.qr-block i {
    color: #059669;
}

.feature-icon-block.qr-block span {
    color: #059669;
}

.feature-icon-block.use-cases-block {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: rgba(245, 158, 11, 0.15);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.1);
}

.feature-icon-block.use-cases-block i {
    color: #d97706;
}

.feature-icon-block.use-cases-block span {
    color: #d97706;
}

/* Responsive adjustments for feature blocks */
@media (max-width: 768px) {
    .feature-icon-block {
        width: 180px;
        height: 180px;
    }

    .feature-icon-block i {
        font-size: 3rem;
    }
}
