/* Train BJJ — trainbjjapp.com Styles */

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

:root {
    --color-bg: #0a0a14;
    --color-bg-card: #141428;
    --color-bg-card-hover: #1c1c38;
    --color-text: #e8e8ec;
    --color-text-muted: #9898a8;
    --color-accent: #6366f1;
    --color-accent-hover: #4f46e5;
    --color-accent-glow: rgba(99, 102, 241, 0.3);
    --color-accent-subtle: rgba(99, 102, 241, 0.12);
    --color-border: #1e1e36;
    --color-success: #22c55e;
    --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --max-width: 1080px;
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 20, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
}

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

.nav-brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.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 {
    color: var(--color-text);
}

/* Hero */
.hero {
    padding: 140px 0 60px;
    text-align: center;
}

.hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    margin: 0 auto 32px;
    display: block;
    box-shadow:
        0 0 40px var(--color-accent-glow),
        0 0 80px rgba(99, 102, 241, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #c4c4d4 50%, #8888a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 4px 20px var(--color-accent-glow);
}

.app-store-btn:hover {
    background: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.app-store-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

/* Screenshot Showcase */
.screenshot-showcase {
    padding: 60px 0 80px;
    overflow: hidden;
}

.screenshot-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 20px 24px 32px;
    scrollbar-width: none;
}

.screenshot-scroll::-webkit-scrollbar {
    display: none;
}

.screenshot-card {
    flex: 0 0 auto;
    width: 260px;
    scroll-snap-align: center;
    text-align: center;
}

.screenshot-card img {
    width: 260px;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.screenshot-card img:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 20px var(--color-accent-glow);
}

.screenshot-card .caption {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
    line-height: 1.4;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    background-color: var(--color-bg-card-hover);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--color-accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Pricing Comparison */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    transition: border-color 0.2s;
}

.pricing-card.premium {
    border-color: var(--color-accent);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
    position: relative;
}

.pricing-card .plan-name {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.pricing-card .plan-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
}

.pricing-card .plan-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.pricing-card ul {
    list-style: none;
    padding: 0;
}

.pricing-card li {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    padding: 8px 0;
    border-bottom: 1px solid rgba(30, 30, 54, 0.6);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pricing-card li:last-child {
    border-bottom: none;
}

.pricing-card li .check {
    color: var(--color-success);
    font-weight: 700;
    flex-shrink: 0;
}

/* Contact */
.contact-section {
    text-align: center;
}

.contact-email-btn {
    display: inline-block;
    padding: 14px 36px;
    border: 1px solid var(--color-accent);
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-accent);
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.contact-email-btn:hover {
    background: var(--color-accent);
    color: #fff;
    transform: translateY(-1px);
}

/* Footer */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

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

.footer-links {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

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

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

/* === Sub-Page Styles (Privacy, Terms, Support, AI Feedback) === */

.page-header {
    padding: 120px 0 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header .subtitle {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.content-section {
    padding: 24px 0;
}

.content-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-text);
}

.content-section p,
.content-section li {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.content-section ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.content-section li {
    margin-bottom: 8px;
}

/* AI Feedback Page */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.step-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 60px;
}

.category-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.category-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.category-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.category-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.template-box {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    margin-bottom: 32px;
}

.template-box pre {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.copy-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 16px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    font-family: var(--font-stack);
}

.copy-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: var(--color-success);
}

.send-feedback-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 4px 20px var(--color-accent-glow);
}

.send-feedback-btn:hover {
    background: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.cta-section {
    text-align: center;
    padding: 40px 0 80px;
}

.cta-section p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* FAQ styles */
.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--color-text);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 120px 0 40px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .tagline {
        font-size: 1.05rem;
    }

    .hero-icon {
        width: 96px;
        height: 96px;
        border-radius: 22px;
        margin-bottom: 24px;
    }

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

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

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

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .page-header {
        padding: 100px 0 32px;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
}

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

    .hero .tagline {
        font-size: 0.95rem;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

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

    .screenshot-card {
        width: 220px;
    }

    .screenshot-card img {
        width: 220px;
    }

    .template-box {
        padding: 20px;
    }

    .template-box pre {
        font-size: 0.75rem;
    }

    .copy-btn {
        position: static;
        display: block;
        width: 100%;
        margin-bottom: 16px;
    }
}
