/* ========================================
   Air Defense - TDS  Game Landing Page
   ======================================== */

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

:root {
    --ad-bg: #0a0e14;
    --ad-bg-alt: #111820;
    --ad-bg-card: #161c26;
    --ad-accent: #f2535a;
    --ad-accent-glow: rgba(242, 83, 90, 0.3);
    --ad-text: #e8eaed;
    --ad-text-dim: #8b919c;
    --ad-border: rgba(255, 255, 255, 0.06);
    --ad-border-hover: rgba(242, 83, 90, 0.3);
    --ad-radius: 16px;
    --ad-container: 1200px;
    --ad-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

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

#ad-page { width: 100%; overflow: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.ad-container {
    width: 100%;
    max-width: var(--ad-container);
    margin: 0 auto;
    padding: 0 40px;
}

.ad-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--ad-transition);
    border: none;
    white-space: nowrap;
    background: var(--ad-accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--ad-accent-glow);
}
.ad-btn:hover {
    background: #e8454d;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(242, 83, 90, 0.45);
}
.ad-btn--lg {
    font-size: 18px;
    padding: 18px 40px;
}

/* ========================================
   HERO
   ======================================== */
.ad-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--ad-bg);
    overflow: hidden;
}
.ad-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 500px at 30% 40%, rgba(242, 83, 90, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 600px 400px at 70% 60%, rgba(74, 222, 128, 0.04) 0%, transparent 70%),
        linear-gradient(180deg, var(--ad-bg) 0%, var(--ad-bg-alt) 100%);
}
.ad-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
}

.ad-hero .ad-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding-top: 80px;
    padding-bottom: 80px;
}

.ad-hero__content { flex: 1; max-width: 560px; }

.ad-hero__badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--ad-accent);
    text-transform: uppercase;
    padding: 6px 16px;
    border: 1px solid rgba(242, 83, 90, 0.25);
    border-radius: 999px;
    margin-bottom: 28px;
    background: rgba(242, 83, 90, 0.06);
}

.ad-hero__title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.ad-hero__title--accent { color: var(--ad-accent); }

.ad-hero__desc {
    font-size: 20px;
    line-height: 1.5;
    color: var(--ad-text-dim);
    margin-bottom: 16px;
    max-width: 440px;
}

.ad-hero__privacy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ad-text-dim);
    margin-bottom: 48px;
    opacity: 0.7;
}
.ad-hero__privacy svg {
    flex-shrink: 0;
}

.ad-hero__visual { flex-shrink: 0; }
.ad-hero__phone {
    width: 360px;
    height: 360px;
    border-radius: 32px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.ad-hero__phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   ABOUT
   ======================================== */
.ad-about {
    padding: 100px 0;
    background: var(--ad-bg-alt);
    border-top: 1px solid var(--ad-border);
}
.ad-about__text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.8;
    color: var(--ad-text-dim);
    text-align: center;
}

/* ========================================
   FEATURES
   ======================================== */
.ad-features {
    padding: 120px 0;
    background: var(--ad-bg);
}
.ad-features__title {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 64px;
    letter-spacing: -0.5px;
}
.ad-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ad-feature-card {
    background: var(--ad-bg-card);
    border: 1px solid var(--ad-border);
    border-radius: var(--ad-radius);
    padding: 36px 28px;
    transition: all var(--ad-transition);
    position: relative;
    overflow: hidden;
}
.ad-feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ad-accent), transparent);
    opacity: 0;
    transition: opacity var(--ad-transition);
}
.ad-feature-card:hover {
    background: #1c2330;
    border-color: var(--ad-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.ad-feature-card:hover::before { opacity: 1; }
.ad-feature-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
}
.ad-feature-card__icon svg { width: 100%; height: 100%; }
.ad-feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.ad-feature-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ad-text-dim);
}

/* ========================================
   CTA
   ======================================== */
.ad-cta {
    padding: 100px 0;
    background: var(--ad-bg-alt);
    border-top: 1px solid var(--ad-border);
    text-align: center;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .ad-hero .ad-container {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        gap: 48px;
    }
    .ad-hero__content { max-width: 100%; }
    .ad-hero__desc { max-width: 100%; margin-left: auto; margin-right: auto; }
    .ad-hero__title { font-size: 52px; }
    .ad-hero__phone { width: 280px; height: 280px; }

    .ad-features__grid { grid-template-columns: repeat(2, 1fr); }
    .ad-features__title { font-size: 32px; }
}

@media (max-width: 640px) {
    .ad-container { padding: 0 20px; }

    .ad-hero__title { font-size: 36px; }
    .ad-hero__desc { font-size: 16px; }
    .ad-hero__phone { width: 200px; height: 200px; border-radius: 24px; }

    .ad-about { padding: 60px 0; }
    .ad-about__text { font-size: 16px; }

    .ad-features { padding: 80px 0; }
    .ad-features__title { font-size: 28px; margin-bottom: 40px; }
    .ad-features__grid { grid-template-columns: 1fr; }

    .ad-cta { padding: 60px 0; }
}
