/* ----------------------------------------------------
   SnapDown - Premium Modern Design System
   Inspired by ddown.to & snapyt.app
   ---------------------------------------------------- */

:root {
    --bg-primary: #070913;
    --bg-secondary: #0d1224;
    --bg-card: rgba(18, 24, 46, 0.75);
    --bg-card-hover: rgba(26, 35, 68, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.35);

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --brand-red: #ff3366;
    --brand-orange: #ff6b35;
    --brand-gradient: linear-gradient(135deg, #ff3366 0%, #ff6b35 100%);
    --brand-blue-gradient: radial-gradient(circle at 50% 15%, rgba(45, 80, 246, 0.28) 0%, rgba(7, 9, 19, 0) 70%);

    --accent-yt: #ff0000;
    --accent-ig: #e1306c;
    --accent-tt: #00f2fe;
    --accent-fb: #1877f2;
    --accent-x: #e7e9ea;
    --accent-success: #22c55e;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-glow: 0 10px 40px -10px rgba(255, 51, 102, 0.3);
    --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.4);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 9, 19, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--brand-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.35);
}

.logo-icon.yit-logo {
    background: #090e1f;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.dot-yt {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff0000;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
}

.dot-ig {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e1306c;
    box-shadow: 0 0 8px rgba(225, 48, 108, 0.8);
}

.dot-tt {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00f2fe;
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.8);
}

.logo-icon.small {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    gap: 3px;
}

.logo-icon.small .dot-yt,
.logo-icon.small .dot-ig,
.logo-icon.small .dot-tt {
    width: 6px;
    height: 6px;
}

.brand-text-col {
    display: flex;
    flex-direction: column;
}

.logo-text span {
    color: var(--brand-orange);
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.lang-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 60px 0 80px;
    text-align: center;
    background: var(--brand-blue-gradient);
}

.spotlight {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: min(800px, 100vw);
    height: 500px;
    background: radial-gradient(circle, rgba(56, 97, 251, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Ad Placement Banner */
.ad-placeholder-top {
    margin: 0 auto 30px;
    max-width: 728px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ad-tag {
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 600;
}

.ad-banner {
    width: 100%;
    height: 60px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.015);
}

/* Live Adsterra banner: 728×90 on desktop, 320×50 on phones */
.ad-live .ad-banner {
    width: 728px;
    max-width: 100%;
    height: 90px;
    border: 0;
    background: transparent;
}

@media (max-width: 767px) {
    .ad-live .ad-banner { width: 320px; height: 50px; }
    .ad-desktop-only { display: none; }
}

/* Ad slot with nothing to show (no fill, or blocked): gone, no blank gap */
.ad-collapsed { display: none !important; }

/* Polite note when an ad blocker stops the ads */
.support-note {
    margin: 0 auto 24px;
    max-width: 728px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Side ads: fixed in the empty margins beside the 1140 px content, wide and tall screens only */
.ad-rail {
    display: none;
    position: fixed;
    top: 104px;
    width: 160px;
    height: 600px;
    z-index: 5;
}
.ad-rail-left  { left:  calc(50% - 570px - 12px - 160px); }
.ad-rail-right { right: calc(50% - 570px - 12px - 160px); }
@media (min-width: 1480px) and (min-height: 720px) {
    .ad-rail.ad-live { display: block; }
}
.ad-side-frame {
    width: 160px;
    height: 600px;
    border: 0;
    background: transparent;
}

/* Native ad block above the footer; height set by slots.js */
.ad-native {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.ad-native-frame {
    width: 100%;
    height: 300px;   /* reserved while loading: Adsterra renders only a visible frame; slots.js sets the real height */
    border: 0;
    background: transparent;
}

/* Feature Highlights Bar */
.features-bar {
    max-width: 900px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: left;
}

.f-icon {
    font-size: 1.5rem;
}

.f-text {
    display: flex;
    flex-direction: column;
}

.f-text strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.f-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Steps Section */
.steps-section {
    padding: 80px 0;
    background: #090c19;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-orange);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.step-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
}

.step-card:hover {
    border-color: rgba(255, 107, 53, 0.4);
    transform: translateY(-5px);
    background: var(--bg-card-hover);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 28px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: white;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.4);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 18px;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* Platforms Section */
.platforms-section {
    padding: 80px 0;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
}

.platform-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.platform-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.platform-icon.yt-color { background: rgba(255, 0, 0, 0.15); color: #ff3333; }
.platform-icon.ig-color { background: rgba(225, 48, 108, 0.15); color: #e1306c; }
.platform-icon.tt-color { background: rgba(0, 242, 254, 0.15); color: #00f2fe; }
.platform-icon.fb-color { background: rgba(24, 119, 242, 0.15); color: #1877f2; }

.platform-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.platform-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.platform-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.platform-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: #05070e;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 360px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-group h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.link-group a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}

.link-group a:hover {
    color: var(--brand-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    max-width: 720px;
}

.footer-badges {
    display: flex;
    gap: 10px;
}

.pill-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Utility */
.hidden {
    display: none !important;
}
