/* 
 * E-Ticaret Pazarlama Interface
 * Premium 'Deep Space' Design System v2.0
 */

:root {
    /* Modern Color Palette */
    --bg-main: #020617;
    /* Very deep blue/black */
    --bg-secondary: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.4);

    --primary: #4f46e5;
    /* Indigo 600 */
    --primary-glow: #6366f1;
    /* Indigo 500 */
    --accent: #0ea5e9;
    /* Sky 500 */

    --success: #10b981;
    /* Emerald 500 */
    --success-dim: rgba(16, 185, 129, 0.1);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);

    --gradient-hero: linear-gradient(180deg, rgba(79, 70, 229, 0.15) 0%, rgba(2, 6, 23, 0) 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    --header-height: 80px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

.text-gradient {
    background: linear-gradient(to right, #6366f1, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Utilities */
.container {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
}

.section-padding {
    padding: 5rem 0;
}

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

.badge {
    display: inline-flex;
    padding: 0.4rem 1rem;
    border-radius: 99px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

/* Top Header */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 36px;
    background: #1e1b4b;
    /* Deep Indigo */
    z-index: 1002;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

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

.top-left span {
    color: #e2e8f0;
    font-weight: 500;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-right a {
    color: #cbd5e1;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-right a:hover {
    color: white;
}

.top-right .divider {
    height: 14px;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* Header */
.header {
    position: fixed;
    top: 36px;
    /* Offset for Top Header */
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    background: transparent;
}

.header.scrolled {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.logo i {
    color: var(--primary-glow);
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link:hover {
    color: white;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    /* Soft subtle shadow */
}

.btn-primary:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
}

.small-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

/* Hero */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 5rem);
    padding-bottom: 6rem;
    background: var(--gradient-hero);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-stats {
    margin-top: 3rem;
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

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

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-card {
    width: 380px;
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 10;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.card-header {
    display: flex;
    gap: 6px;
    margin-bottom: 2rem;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.8;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #eab308;
}

.dot.green {
    background: #22c55e;
}

.visual-title {
    margin-left: auto;
    font-size: 0.75rem;
    color: #64748b;
    letter-spacing: 0.5px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    margin-bottom: 1.5rem;
}

.bar {
    width: 8px;
    background: #334155;
    border-radius: 4px;
}

.bar.active {
    background: #6366f1;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Trusted By */
.trusted-by {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.trusted-text {
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 1.5rem;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    opacity: 0.5;
    filter: grayscale(100%);
}

.brand-logo {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 16px;
    transition: 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-glow);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* 1:1 Packages Replica Styling */

/* Logo Strip (Brands/Banks) */
.packages-logos-wrapper {
    margin-bottom: 4rem;
    text-align: center;
    opacity: 0.8;
}

.bank-logos-top {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.bank-logos-bottom {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.bank-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Green Social Proof Line */
.social-proof-line {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

.highlight-green {
    color: #22c55e;
    font-weight: 800;
}

/* Main Comparison Grid */
.comparison-grid {
    display: grid;
    /* Sidebar + 3 Columns */
    grid-template-columns: 280px 1fr 1fr 1fr;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #020617;
    /* overflow: hidden; Removed to allow badge to protrude */
    position: relative;
    /* Ensure z-index works */
}

/* Grid Header Row */
.grid-header-row {
    display: contents;
    /* Allows children to participate in the main grid */
}

.grid-cell {
    padding: 1.5rem;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    background: rgba(30, 41, 59, 0.2);
    /* Slightly lighter header bg */
}

/* Sidebar Specifics */
.sidebar-header {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-header h3 {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.5rem;
}

.sidebar-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Package Header Cells */
.pkg-header-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popular-col {
    background: rgba(30, 41, 59, 0.5);
    /* Slightly highlighted middle col */
    position: relative;
}

/* Ensure the column highlight continues down */
.feature-row .popular-col {
    background: rgba(30, 41, 59, 0.5);
}

/* Badges & Text */
.orange-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f97316;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.4);
    z-index: 10;
    white-space: nowrap;
}

.pkg-name {
    color: #3b82f6;
    /* Blue 500 */
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.pkg-prices .old {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.9rem;
}

.pkg-prices .new {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin: 0.2rem 0;
}

.pkg-prices .new span {
    font-size: 1rem;
}

.pkg-prices .per-month {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

/* Grid Buttons */
.pkg-btns {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.btn-grid-blue {
    background: #3b82f6;
    color: white;
    padding: 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    width: 100%;
}

.btn-grid-green {
    background: #22c55e;
    color: white;
    padding: 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    width: 100%;
}

.btn-grid-blue:hover {
    background: #2563eb;
}

.btn-grid-green:hover {
    background: #16a34a;
}

/* Feature Rows */
.feature-group-header {
    grid-column: 1 / -1;
    background: rgba(15, 23, 42, 0.8);
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    color: #cbd5e1;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.feature-row {
    display: contents;
}

.feature-row:hover .feature-desc,
.feature-row:hover .feature-check {
    background: rgba(255, 255, 255, 0.03);
}

.feature-desc {
    padding: 1.5rem;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.feature-desc strong {
    display: block;
    color: #e2e8f0;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.feature-desc p {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.3;
}

.feature-check {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 1.2rem;
}

.text-red {
    color: #ef4444;
}

.text-green {
    color: #22c55e;
}

/* Mobile Responsiveness for Grid */
@media (max-width: 1024px) {
    .comparison-grid {
        display: flex;
        flex-direction: column;
    }

    .grid-header-row {
        display: flex;
        flex-direction: column;
    }

    .sidebar-header {
        border-bottom: 1px solid var(--border-color);
    }

    .pkg-header-cell {
        border-bottom: 1px solid var(--border-color);
        padding: 2rem;
    }

    .feature-group-header,
    .feature-row {
        display: none;
    }

    /* Hide complicated table on small mobile for now */

    /* Add a simple message for mobile users or fallback to cards in future */
}

/* Packages */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    align-items: start;
}

.package-card {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: 0.3s ease;
    position: relative;
}

.package-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
}

.package-card.popular {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.4) 0%, #020617 100%);
    border: 1px solid var(--primary-glow);
    transform: scale(1.05);
    /* Slight pop */
    z-index: 2;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pkg-title {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.5rem;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin: 0.5rem 0;
}

.installment {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.btn-action {
    background: var(--success);
    color: white;
    font-weight: 700;
}

.btn-action:hover {
    background: #059669;
}

.btn-secondary {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.2);
}

/* Comparison Table */
.table-wrapper {
    margin-top: 4rem;
    background: #0f172a;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    padding: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: center;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

th:first-child {
    text-align: left;
}

td {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-main);
}

td:first-child {
    text-align: left;
    color: var(--text-muted);
}

.check {
    color: var(--success);
}

.cross {
    color: #ef4444;
    opacity: 0.5;
}

/* Process */
.process-grid {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    align-items: center;
    justify-content: center;
}

.process-step {
    text-align: center;
    flex: 1;
    max-width: 300px;
}

.process-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 0 auto 1.5rem;
    position: relative;
}

.step-num {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.arrow {
    color: var(--border-color);
    font-size: 1.5rem;
}

/* FAQ */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
}

.faq-item {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    display: none;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question {
    color: var(--primary-glow);
}

.faq-icon {
    transition: 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}


/* Complex Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem;
    background: #020617;
    position: relative;
    overflow: hidden;
}

/* Subtle background glow for footer to give it depth */
.footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: radial-gradient(circle at bottom center, rgba(99, 102, 241, 0.05), transparent 70%);
    pointer-events: none;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 1.5rem 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--primary-glow);
    width: 20px;
    text-align: center;
}

.footer h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: 0.2s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

/* Newsletter Form */
.newsletter-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    position: relative;
}

.newsletter-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
    font-family: var(--font-main);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.btn-newsletter {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    width: 50px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-newsletter:hover {
    background: #4338ca;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    color: #64748b;
}

.payment-methods i:hover {
    color: white;
}

.payment-methods span {
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    border-radius: 4px;
}

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(79, 70, 229, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.blog-meta i {
    color: var(--primary);
}

.blog-title {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    transition: 0.3s;
}

.blog-card:hover .blog-title {
    color: var(--primary-glow);
}

.blog-excerpt {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-link {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
}

.blog-link:hover {
    gap: 0.8rem;
    color: var(--primary-glow);
}

/* Stats Section */
.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, white 0%, var(--primary-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #0f172a;
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
    transition: 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.user-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.user-profile h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.user-role {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.stars {
    color: #facc15;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial-card p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
}

@media (max-width: 768px) {
    .stats-grid {
        flex-direction: column;
        gap: 3rem;
    }
}

/* Integrations Section */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.integration-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: var(--text-main);
    font-weight: 600;
    transition: 0.3s;
}

.integration-card:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.integration-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* CTA Banner */
.cta-section {
    padding: 4rem 0;
    margin: 4rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    /* Subtle texture */
    opacity: 0.1;
    pointer-events: none;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cta-text h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary);
}

.cta-buttons .btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-actions .btn {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .process-grid {
        flex-direction: column;
    }

    .arrow {
        transform: rotate(90deg);
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #0f172a;
        z-index: 999;
        flex-direction: column;
        justify-content: center;
        transition: 0.3s;
        padding: 2rem;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        font-size: 1.25rem;
    }

    .comparison-table {
        min-width: 600px;
    }

    .table-wrapper {
        overflow-x: scroll;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Page Header */
.page-header {
    margin-top: 0;
    padding-top: calc(var(--header-height) + 4rem) !important;
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.15) 0%, rgba(2, 6, 23, 0) 100%);
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   NEW ADDITIONS (Top Header & Modal)
   ========================================= */

/* Top Header */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 36px;
    background: #1e1b4b;
    /* Deep Indigo */
    z-index: 1002;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

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

.top-left span {
    color: #e2e8f0;
    font-weight: 500;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-right a {
    color: #cbd5e1;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-right a:hover {
    color: white;
}

.top-right .divider {
    height: 14px;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* Header Offset Override */
.header {
    top: 36px !important;
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #0f172a;
    width: 90%;
    max-width: 450px;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    transform: translateY(20px);
    transition: 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover {
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.modal-header h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.form-group label {
    display: block;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: 0.3s;
}

.input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    border-radius: 10px;
    color: white;
    font-family: var(--font-main);
    transition: 0.3s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.input-wrapper input:focus+i {
    color: var(--primary);
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* Animated Promo Badge (Snake Effect) */
.promo-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.promo-badge {
    position: relative;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 1;
    overflow: hidden;
    background: transparent;
}

/* The Snake (Rotating Border) */
.promo-badge::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 1000%;
    background: conic-gradient(transparent 80%, #0ea5e9 100%);
    /* Cyan Snake */
    animation: borderRotate 4s linear infinite;
    z-index: -2;
    top: -450%;
    left: -50%;
}

/* The Inner Background (Mask) */
.promo-badge::after {
    content: "";
    position: absolute;
    inset: 2px;
    /* Thin Border */
    background: #0f172a;
    /* Theme Dark Blue */
    border-radius: 99px;
    z-index: -1;
}

@keyframes borderRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* White Buttons for Gradients/Dark Backgrounds */
.btn-white {
    background: white;
    color: var(--primary);
    border: none !important;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
}

.btn-white:hover {
    background: #f8fafc;
    color: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-glass-white {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: 0.3s;
}

.btn-glass-white:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* References Page - Brand Grid */
.references-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.ref-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 2rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    color: #cbd5e1;
    font-size: 1.1rem;
    transition: 0.3s ease;
    cursor: default;
}

.ref-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.property-ref-bg {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(30, 27, 75, 0.3) 100%);
}