:root {
    --bg-color: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --accent-1: #6366f1; /* Indigo */
    --accent-2: #a855f7; /* Purple */
    --accent-3: #3b82f6; /* Blue */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* Background Blobs for Modern Feel */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-1) 0%, transparent 70%);
}

.blob-2 {
    bottom: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.1); }
}

/* Typography & Utilities */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    font-weight: 600;
    color: var(--text-secondary);
}

nav a:hover, nav a.active {
    color: var(--accent-1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--accent-1);
}

.btn-login {
    background: var(--text-primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
}

.btn-login:hover {
    background: var(--accent-1);
    transform: translateY(-2px);
    color: white;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 5%;
    min-height: calc(100vh - 80px);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-1);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* Glassmorphic Shortener Box */
.shortener-box {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.shortener-box:focus-within {
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

#shorten-form {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid transparent;
    transition: var(--transition);
}

#shorten-form:focus-within {
    border-color: var(--accent-1);
}

.input-icon {
    color: var(--text-secondary);
    padding: 0 1rem;
}

#url-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: transparent;
}

#url-input::placeholder {
    color: #94a3b8;
}

#shorten-btn {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

#shorten-btn:hover {
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
    transform: scale(1.02);
}

/* Result Box */
.result-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    border: 1px dashed var(--accent-1);
    display: none; /* Hidden by default */
    animation: slideDown 0.3s ease-out forwards;
}

.result-box.show {
    display: flex;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-url {
    font-weight: 600;
    color: var(--accent-1);
    word-break: break-all;
}

.result-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: white;
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.action-btn:hover {
    background: var(--bg-color);
}

.qr-btn {
    padding: 0.5rem; /* Make it more square */
}

/* QR Container */
.qr-container {
    display: none;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.3s ease-out forwards;
}

.qr-container.show {
    display: block;
}

.qr-container img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--glass-border);
}

.qr-container p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Social Share Buttons */
.share-btn {
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.share-btn i {
    pointer-events: none;
}

/* Analytics Dashboard (Mock) */
.analytics-dashboard {
    display: none; /* Hidden by default */
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    animation: slideDown 0.4s ease-out forwards;
    animation-delay: 0.1s; /* Slightly after the result box */
    opacity: 0;
}

.analytics-dashboard.show {
    display: grid;
}

.stat-item {
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(99, 102, 241, 0.08);
}

.stat-item i {
    font-size: 1.2rem;
    color: var(--accent-1);
    background: rgba(99, 102, 241, 0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.stat-item:nth-child(2) i { color: #10b981; background: rgba(16, 185, 129, 0.1); }
.stat-item:nth-child(3) i { color: #f59e0b; background: rgba(245, 158, 11, 0.1); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Hero Image */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    animation: float-img 6s ease-in-out infinite;
    mix-blend-mode: multiply; /* Helps blend with white backgrounds */
}

@keyframes float-img {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}



/* API Section */
.api-section {
    padding: 6rem 5%;
    background: var(--bg-color);
}

.api-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.api-content {
    flex: 1;
    max-width: 500px;
}

.api-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.api-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.api-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.api-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.api-feature i {
    font-size: 1.5rem;
    color: var(--accent-1);
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
}

.api-feature h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.api-feature span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Code Block Styling */
.api-code-block {
    flex: 1.2;
    background: #0f172a; /* Dark IDE background */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-tabs {
    display: flex;
    background: #1e293b;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 1rem 1.5rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-btn:hover {
    color: white;
}

.tab-btn.active {
    color: #38bdf8; /* Light blue accent for active tab */
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #38bdf8;
    border-radius: 3px 3px 0 0;
}

.code-content {
    padding: 1.5rem;
    background: #0f172a;
}

.code-snippet {
    display: none;
    margin: 0;
}

.code-snippet.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

.code-snippet code {
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Services Section */
.services {
    padding: 6rem 5%;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-color) 0%, white 100%);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(99, 102, 241, 0.3);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.analytics-icon { background: linear-gradient(135deg, #3b82f6, #60a5fa); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4); }
.api-icon { background: linear-gradient(135deg, #8b5cf6, #a78bfa); box-shadow: 0 10px 20px rgba(139, 92, 246, 0.4); }
.domain-icon { background: linear-gradient(135deg, #10b981, #34d399); box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4); }
.qr-icon { background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 10px 20px rgba(245, 158, 11, 0.4); }

.service-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

/* Pricing Section - Enhanced Beauty */
.pricing {
    padding: 6rem 5%;
    text-align: center;
    position: relative;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-1));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: center; /* keep cards centered relative to the taller pro card */
}

.card {
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    width: 340px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Enhancing the Pro Card */
.card.popular {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid transparent;
    background-clip: padding-box;
    transform: scale(1.08); /* slightly larger by default */
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15);
    z-index: 2;
}

/* Colorful glowing border hack for Pro Card */
.card.popular::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2), #ff007f);
    z-index: -1;
    border-radius: 26px; /* slightly larger than card */
    animation: gradientSpin 4s linear infinite;
    background-size: 200% 200%;
}

@keyframes gradientSpin {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card.popular:hover {
    transform: scale(1.08) translateY(-15px);
    box-shadow: 0 30px 60px rgba(168, 85, 247, 0.25);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff007f, var(--accent-2));
    color: white;
    padding: 0.4rem 1.5rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(255, 0, 127, 0.3);
    letter-spacing: 1px;
}

.card-header h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 1rem 0 2rem;
    display: flex;
    align-items: flex-start;
}

.card.popular .price {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price span:first-child {
    font-size: 1.5rem;
    margin-top: 0.8rem;
    -webkit-text-fill-color: var(--text-secondary); /* prevent gradient on symbol */
}

.price span:last-child {
    font-size: 1.1rem;
    color: var(--text-secondary);
    align-self: flex-end;
    margin-bottom: 1rem;
    -webkit-text-fill-color: var(--text-secondary); /* prevent gradient on /mo */
}

.features {
    margin-bottom: 3rem;
}

.features li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.features li i {
    color: white;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

.features li.disabled {
    color: var(--text-secondary);
    opacity: 0.7;
}

.features li.disabled i {
    background: var(--bg-color);
    color: var(--text-secondary);
    box-shadow: none;
}

.btn-plan {
    display: block;
    text-align: center;
    padding: 1.2rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-plan.outline {
    background: var(--bg-color);
    color: var(--text-primary);
    border: none;
}

.btn-plan.outline:hover {
    background: var(--text-primary);
    color: white;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

.btn-plan.fill {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.3);
}

.btn-plan.fill:hover {
    box-shadow: 0 15px 30px rgba(168, 85, 247, 0.5);
    background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
}

/* SEO Content Section - Enhanced */
.seo-content {
    background: linear-gradient(135deg, var(--bg-color), #f1f5f9);
    padding: 8rem 5%;
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.seo-content::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.seo-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.seo-header-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.seo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    background: white;
    color: var(--accent-1);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.seo-header-content h2 {
    font-size: 3rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.seo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    position: relative;
    transition: transform 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
}

.decorative-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.decorative-icon.purple {
    background: linear-gradient(135deg, var(--accent-2), #f472b6);
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.3);
}

.seo-text-block h3, .seo-faq h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.seo-text-block p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.seo-text-block p:last-child {
    margin-bottom: 0;
}

.seo-text-block strong {
    color: var(--text-primary);
    position: relative;
}

.seo-text-block strong::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: rgba(99, 102, 241, 0.2);
    z-index: -1;
}

.faq-item {
    margin-bottom: 1.8rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-item h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.faq-item p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item code {
    background: rgba(255,255,255,0.7);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
    color: var(--accent-1);
    border: 1px dashed rgba(99, 102, 241, 0.3);
}

@media (max-width: 900px) {
    .seo-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background: white;
    padding: 2.5rem 5% 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.link-group a:hover {
    color: var(--accent-1);
}

.contact-details {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-details a, .contact-details span {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.contact-details a:hover {
    color: var(--accent-1);
}

.contact-details i {
    color: var(--accent-1);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.socials-modern {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--bg-color);
    color: var(--text-secondary);
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* --- Auth Modal --- */
.auth-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.auth-modal-content {
    background: white;
    width: 100%;
    max-width: 450px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.auth-modal-overlay.show .auth-modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-color);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close-modal:hover {
    background: #fee2e2;
    color: #ef4444;
}

.auth-forms-container {
    padding: 3rem 2.5rem;
    position: relative;
}

.auth-form {
    display: none;
    animation: fadeInForm 0.4s ease forwards;
}

.auth-form.active {
    display: block;
}

@keyframes fadeInForm {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo {
    height: 48px;
    margin-bottom: 1.5rem;
}

.auth-header h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-pass {
    font-size: 0.85rem;
    color: var(--accent-1);
    font-weight: 600;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.input-with-icon input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
    background: #f8fafc;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--accent-1);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.auth-submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.switch-form-btn {
    background: none;
    border: none;
    color: var(--accent-1);
    font-weight: 700;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
}

.switch-form-btn:hover {
    text-decoration: underline;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    z-index: -1;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: scale(0);
    border-radius: 12px;
}

.social-icon:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.social-icon:hover::before {
    transform: scale(1);
}

.socials a:hover {
    background: var(--accent-1);
    color: white;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 900px) {
    .navbar {
        padding: 1rem 5%;
    }
    
    nav {
        gap: 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    nav .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--glass-border);
        padding: 1.5rem 0;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
        z-index: 1010;
    }

    nav.menu-active .nav-links {
        display: flex;
    }

    nav .nav-links li {
        text-align: center;
        width: 100%;
    }

    nav .nav-links a {
        display: block;
        padding: 0.8rem;
        font-size: 1.1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    nav .btn-login {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 3rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    }
    
    .shortener-box {
        text-align: left;
    }
    
    nav ul {
        display: none; /* Hide on mobile for simplicity in this demo */
    }
    
    .card {
        width: 100%;
        max-width: 380px;
    }
    
    .card.popular {
        transform: scale(1);
    }
    
    .card.popular:hover {
        transform: translateY(-10px);
    }

    .api-container {
        flex-direction: column;
        gap: 2rem;
    }

    .api-code-block {
        width: 100%;
        overflow-x: auto;
    }

    .api-content {
        max-width: 100%;
    }

    #shorten-form {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 1rem;
    }

    #url-input {
        width: 100%;
        background: white;
        padding: 1rem;
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .input-icon {
        display: none;
    }

    #shorten-btn {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
    }

    .result-box {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .analytics-dashboard {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-links {
        gap: 3rem;
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .contact-details {
        align-items: center;
    }

    nav .btn-login {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Connectivity Section */
.connectivity-section {
    padding: 8rem 5%;
    background: white;
    position: relative;
    overflow: hidden;
}

.connectivity-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.connectivity-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.connectivity-img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.connectivity-img:hover {
    transform: translateY(-5px) scale(1.02);
}

.connectivity-content {
    flex: 1;
}

.connectivity-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.connectivity-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.connectivity-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.connectivity-features li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.feat-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.connectivity-features li:hover .feat-icon {
    background: var(--accent-1);
    color: white;
    transform: rotate(5deg) scale(1.1);
}

.connectivity-features h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.connectivity-features span {
    color: var(--text-secondary);
    font-size: 1rem;
}

@media (max-width: 992px) {
    .connectivity-container {
        flex-direction: column;
        gap: 4rem;
        text-align: center;
    }

    .connectivity-features li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .connectivity-image {
        order: -1;
    }
}
