/* ==========================================================================
   squadMAP — Landing Page Styles
   Dark tactical theme, mobile-first, no framework
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
    --color-bg: #0a0e1a;
    --color-surface: #111827;
    --color-surface-elevated: #1a2235;
    --color-border: #1e2d40;
    --color-border-light: #2a3f5a;
    --color-primary: #00b4d8;
    --color-primary-dark: #0096b4;
    --color-accent: #22c55e;
    --color-accent-danger: #ef4444;
    --color-text: #e2e8f0;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #475569;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.25s ease;
    --container-max: 1200px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--color-accent);
}

ul {
    list-style: none;
}

/* ---------- Utilities ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-primary);
    color: var(--color-bg);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    z-index: 1000;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-primary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 540px;
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

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

.btn--primary:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.4);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border-light);
}

.btn--ghost:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn--lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-text);
}

.logo-icon {
    color: var(--color-primary);
    font-size: 0.75rem;
}

.logo-text {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

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

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link--cta {
    background: var(--color-primary);
    color: var(--color-bg) !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
}

.nav-link--cta:hover {
    background: var(--color-accent);
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 180, 216, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 180, 216, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 0;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-primary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--color-text), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 480px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Phone Mockup */
.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 260px;
    height: 520px;
    background: var(--color-surface);
    border: 2px solid var(--color-border-light);
    border-radius: 32px;
    padding: 12px;
    box-shadow:
        0 0 40px rgba(0, 180, 216, 0.1),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slideshow */
.slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.slideshow-track {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide--active {
    opacity: 1;
    z-index: 1;
}

.slide-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--color-primary);
    opacity: 0.5;
}

.slide-placeholder svg {
    width: 40px;
    height: 40px;
}

.slide-placeholder span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    position: relative;
    z-index: 2;
}

.slideshow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--color-primary);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition);
    opacity: 0.5;
}

.slideshow-dot--active {
    background: var(--color-primary);
    opacity: 1;
}

.slideshow-dot:hover {
    opacity: 0.8;
}

/* ---------- Features ---------- */
.features {
    padding: 6rem 0;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, transparent, var(--color-primary), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity var(--transition);
}

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

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 180, 216, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--color-primary);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* ---------- How It Works ---------- */
.how-it-works {
    padding: 6rem 0;
    background: var(--color-surface);
    position: relative;
}

.how-it-works::before,
.how-it-works::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.how-it-works::before { top: 0; }
.how-it-works::after { bottom: 0; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.step-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.2;
    margin-bottom: 1rem;
    line-height: 1;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.step-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* ---------- Download ---------- */
.download {
    padding: 6rem 0;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.download-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.download-inner {
    position: relative;
    z-index: 1;
}

.download-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1.75rem;
    text-decoration: none;
    color: var(--color-text);
    transition: all var(--transition);
}

.store-btn:hover {
    border-color: var(--color-primary);
    background: var(--color-surface-elevated);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.15);
    color: var(--color-text);
}

.store-btn-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-btn-label {
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.store-btn-name {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}

.download-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

/* ---------- Footer ---------- */
.site-footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

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

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary);
}

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

/* ---------- Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .feature-card:hover {
        transform: none;
    }

    .store-btn:hover {
        transform: none;
    }

    .btn--primary:hover {
        box-shadow: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 0 4rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-visual {
        display: none;
    }

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

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 14, 26, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
        border-bottom: 1px solid var(--color-border);
    }

    .nav-list.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .store-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .btn--lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Roles Section — ASD vs Player
   ========================================================================== */

.roles {
    padding: 6rem 0;
    position: relative;
}

.roles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.role-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.role-card--asd::before {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.role-card--player::before {
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
}

.role-badge {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.role-card--asd .role-badge {
    background: rgba(0, 180, 216, 0.1);
    color: var(--color-primary);
}

.role-card--player .role-badge {
    background: rgba(34, 197, 94, 0.1);
    color: var(--color-accent);
}

.role-badge svg {
    width: 28px;
    height: 28px;
}

.role-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.role-card--asd .role-title {
    color: var(--color-primary);
}

.role-card--player .role-title {
    color: var(--color-accent);
}

.role-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.role-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.role-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.role-features li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.role-card--asd .role-features li svg {
    color: var(--color-primary);
}

.role-card--player .role-features li svg {
    color: var(--color-accent);
}

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

/* ==========================================================================
   Privacy Policy Page
   ========================================================================== */

.privacy-page {
    padding-top: calc(64px + 4rem);
    padding-bottom: 4rem;
    min-height: 100vh;
}

.privacy-container {
    max-width: 800px;
}

.privacy-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.privacy-updated {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-top: 0.75rem;
}

.privacy-content {
    font-size: 1rem;
    line-height: 1.8;
}

.privacy-section {
    margin-bottom: 2.5rem;
}

.privacy-section h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.privacy-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.privacy-section p {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.privacy-section ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    list-style: disc;
}

.privacy-section ul li {
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.privacy-section ul li strong {
    color: var(--color-text);
}

.privacy-section .table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.privacy-section table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.privacy-section th,
.privacy-section td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

.privacy-section th {
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-surface);
}

.privacy-section td {
    color: var(--color-text-secondary);
}

.privacy-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.privacy-footer p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
}
