/* Board Game Night Organizer — Promo Website Styles */
/* Theme extracted from app: Dark purple with neon accents */

:root {
    --color-primary: #7B2FBE;
    --color-primary-light: #9B4FDE;
    --color-secondary: #1565C0;
    --color-accent: #CE93D8;
    --color-bg: #0A0010;
    --color-bg-light: #120820;
    --color-surface: #1A0A2E;
    --color-surface-light: #241440;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #CE93D8;
    --color-text-muted: #8A6A9E;
    --color-success: #00E676;
    --color-error: #FF5252;
    --color-border: rgba(123, 47, 190, 0.3);
    --border-radius: 10px;
    --font-family: 'Inter', sans-serif;
    --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    background: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-light); }

img { max-width: 100%; height: auto; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ── Navigation ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10, 0, 16, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}
.navbar .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.navbar-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.1rem; color: var(--color-text-primary);
    white-space: nowrap;
}
.navbar-brand .logo-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
    color: var(--color-text-muted); font-size: 0.9rem; font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--color-text-primary); }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--color-text-primary); margin: 5px 0;
    transition: 0.3s;
}

/* ── Hero Section ── */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(170deg, var(--color-bg) 0%, var(--color-surface) 50%, var(--color-bg) 100%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(123,47,190,0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.hero .container {
    display: flex; align-items: center; gap: 60px;
}
.hero-content { flex: 1; min-width: 0; }
.hero-content h1 {
    font-size: 2.4rem; font-weight: 800; line-height: 1.15;
    margin-bottom: 16px;
}
.hero-content h1 span { color: var(--color-accent); }
.hero-tagline {
    font-size: 1.1rem; color: var(--color-text-secondary);
    margin-bottom: 32px; max-width: 480px;
}
.hero-cta {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px; padding: 14px 36px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff; font-weight: 600; font-size: 1rem;
    border-radius: 50px; border: none; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(123,47,190,0.4);
    color: #fff;
}
.hero-cta svg { width: 20px; height: 20px; fill: currentColor; }

.hero-device {
    flex-shrink: 0; width: 280px; position: relative;
}
.device-frame {
    position: relative;
    background: #1A1A2E;
    border-radius: 28px;
    padding: 10px;
    border: 2px solid rgba(123,47,190,0.4);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(123,47,190,0.15);
}
.device-frame img {
    border-radius: 20px; width: 100%; display: block;
}
.device-frame::before {
    content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 4px; background: #333; border-radius: 4px;
}

/* ── Screenshots Carousel ── */
.screenshots-section {
    padding: 70px 0;
    background: var(--color-bg-light);
}
.section-title {
    text-align: center; font-size: 1.6rem; font-weight: 700;
    margin-bottom: 12px;
}
.section-subtitle {
    text-align: center; color: var(--color-text-muted);
    margin-bottom: 40px; font-size: 0.95rem;
}
.carousel-wrapper {
    position: relative; max-width: 800px; margin: 0 auto;
    overflow: hidden;
}
.carousel-track {
    display: flex; transition: transform 0.4s ease;
}
.carousel-slide {
    flex: 0 0 100%; display: flex; justify-content: center;
    align-items: center; padding: 0 20px;
}
.carousel-slide .device-frame {
    max-width: 240px;
}
.carousel-nav {
    display: flex; justify-content: center; gap: 8px; margin-top: 24px;
}
.carousel-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--color-border); border: none; cursor: pointer;
    transition: background 0.2s;
}
.carousel-dot.active { background: var(--color-primary); }
.carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(123,47,190,0.3); border: 1px solid var(--color-border);
    color: #fff; font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; z-index: 2;
}
.carousel-arrow:hover { background: var(--color-primary); }
.carousel-arrow.prev { left: 8px; }
.carousel-arrow.next { right: 8px; }

/* ── Features Grid ── */
.features-section {
    padding: 80px 0;
}
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; margin-top: 10px;
}
.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 28px 24px;
    transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
}
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(123,47,190,0.2), rgba(21,101,192,0.2));
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--color-text-muted); font-size: 0.9rem; text-align: left; }

/* ── Highlights / Why Section ── */
.highlights-section {
    padding: 70px 0;
    background: var(--color-bg-light);
}
.highlights-list {
    display: flex; flex-wrap: wrap; gap: 16px;
    justify-content: center; margin-top: 10px;
}
.highlight-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50px; padding: 10px 20px;
    font-size: 0.9rem; color: var(--color-text-secondary);
}
.highlight-tag .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--color-success);
}

/* ── CTA Banner ── */
.cta-section {
    padding: 70px 0; text-align: center;
    background: linear-gradient(135deg, var(--color-surface) 0%, rgba(123,47,190,0.15) 100%);
}
.cta-section h2 { font-size: 1.8rem; margin-bottom: 12px; }
.cta-section p { color: var(--color-text-muted); margin-bottom: 28px; }

/* ── Footer ── */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}
.footer-links {
    display: flex; justify-content: center; gap: 24px;
    list-style: none; margin-bottom: 16px; flex-wrap: wrap;
}
.footer-links a { color: var(--color-text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--color-text-primary); }
.footer-copy { color: var(--color-text-muted); font-size: 0.8rem; }

/* ── Legal Pages (Privacy, Terms) ── */
.legal-page {
    padding: 100px 0 60px;
}
.legal-page .container { max-width: 780px; }
.legal-page h1 {
    font-size: 2rem; margin-bottom: 8px;
}
.legal-date {
    color: var(--color-text-muted); font-size: 0.85rem; margin-bottom: 32px;
}
.legal-content h2 {
    font-size: 1.3rem; margin-top: 32px; margin-bottom: 12px;
    color: var(--color-accent);
}
.legal-content h3 {
    font-size: 1.1rem; margin-top: 24px; margin-bottom: 8px;
}
.legal-content p {
    color: var(--color-text-secondary); margin-bottom: 14px;
    text-align: left; line-height: 1.7;
}
.legal-content ul {
    list-style: disc; margin-left: 24px; margin-bottom: 14px;
}
.legal-content li {
    color: var(--color-text-secondary); margin-bottom: 6px; text-align: left;
}
.legal-content a { text-decoration: underline; }

/* ── Contact Page ── */
.contact-section { padding: 100px 0 60px; }
.contact-card {
    max-width: 600px; margin: 0 auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 40px 32px;
}
.contact-card h1 { font-size: 1.6rem; margin-bottom: 8px; text-align: center; }
.contact-card .contact-subtitle {
    text-align: center; color: var(--color-text-muted);
    margin-bottom: 28px; font-size: 0.9rem;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 6px; color: var(--color-text-secondary);
}
.form-group input,
.form-group textarea {
    width: 100%; padding: 12px 14px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px; color: var(--color-text-primary);
    font-family: var(--font-family); font-size: 0.95rem;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--color-primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input[type="file"] { padding: 10px; }
.form-group input[type="file"]::file-selector-button {
    background: var(--color-surface-light); color: var(--color-text-secondary);
    border: 1px solid var(--color-border); border-radius: 6px;
    padding: 6px 14px; cursor: pointer; margin-right: 10px;
    font-family: var(--font-family);
}
.submit-btn {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff; font-weight: 600; font-size: 1rem;
    border: none; border-radius: 50px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(123,47,190,0.4);
}
.form-success {
    display: none; text-align: center; padding: 20px;
    color: var(--color-success); font-weight: 600;
}

/* ── Privacy Accept Button ── */
.privacy-accept-btn {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 9999; padding: 16px 20px 24px;
    background: linear-gradient(to top, var(--color-bg) 60%, transparent);
    display: flex; justify-content: center;
}
.privacy-accept-btn.hidden { display: none; }
.accept-btn {
    padding: 14px 48px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff; font-weight: 700; font-size: 1rem;
    border: none; border-radius: 50px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(123,47,190,0.5);
}

/* ── Lightbox ── */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 9998;
    background: rgba(0,0,0,0.92);
    align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 12px; }
.lightbox-close {
    position: absolute; top: 20px; right: 24px;
    background: none; border: none; color: #fff;
    font-size: 32px; cursor: pointer;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero .container { flex-direction: column; text-align: center; gap: 40px; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-tagline { margin: 0 auto 28px; }
    .hero-device { width: 220px; }
    .nav-links {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        flex-direction: column; gap: 0;
        background: rgba(10,0,16,0.98); border-bottom: 1px solid var(--color-border);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 14px 24px; display: block; }
    .hamburger { display: block; }
    .features-grid { grid-template-columns: 1fr; }
    .carousel-slide .device-frame { max-width: 200px; }
    .contact-card { padding: 28px 20px; }
    .section-title { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.5rem; }
    .hero-device { width: 180px; }
    .hero-cta { padding: 12px 28px; font-size: 0.9rem; }
    .carousel-arrow { width: 32px; height: 32px; font-size: 14px; }
}

@media (orientation: landscape) and (max-height: 500px) {
    .hero { padding: 80px 0 40px; }
    .hero .container { flex-direction: row; }
    .hero-device { width: 160px; }
}
