/* ==========================================================================
   Gradacam Broadcast Studio Public & Auth Stylesheet v5 (100% Responsive)
   ========================================================================== */
:root {
    --bg-base: #070b14;
    --bg-dark: #070b14;
    --bg-elevated: #0d1322;
    --bg-card: #131c31;
    --bg-card-hover: #192540;
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-glow: rgba(16, 185, 129, 0.25);
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-amber: #f59e0b;
    --danger: #f43f5e;
    --danger-hover: #e11d48;
    --text-main: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: rgba(148, 163, 184, 0.16);
    --border-strong: rgba(16, 185, 129, 0.45);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 45px -10px rgba(0, 0, 0, 0.65);
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: var(--bg-base);
    background-image:
        radial-gradient(circle at 15% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 42%),
        radial-gradient(circle at 85% 12%, rgba(59, 130, 246, 0.10) 0%, transparent 40%);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a:hover {
    color: #34d399;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   Header / Broadcast Navbar
   ========================================================================== */
header {
    background: rgba(13, 19, 34, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.85rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    letter-spacing: -0.02em;
}

.logo-mark {
    height: 30px;
    width: auto;
    flex-shrink: 0;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.22));
}

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

.logo-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.32);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.4rem;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 0.55rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
    text-align: center;
    line-height: 1.25;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.28);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.38);
}

.btn-outline {
    background: rgba(19, 28, 49, 0.75);
    border: 1px solid var(--border-color);
    color: var(--text-main) !important;
}

.btn-outline:hover {
    background: var(--bg-card-hover);
    border-color: rgba(148, 163, 184, 0.38);
    color: #ffffff !important;
}

.btn-danger {
    background-color: var(--danger);
    color: #ffffff !important;
}

.btn-danger:hover {
    background-color: var(--danger-hover);
}

.eyecatcher {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   Hero Broadcast Studio Showcase
   ========================================================================== */
.hero {
    padding: 4.5rem 0 4rem;
    position: relative;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 2.75rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.35rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.hero h1 span {
    background: linear-gradient(90deg, #34d399 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--text-secondary);
    margin-bottom: 1.85rem;
    line-height: 1.68;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.hero-tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.tech-pill {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.32rem 0.72rem;
    border-radius: 0.45rem;
    background: rgba(19, 28, 49, 0.85);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Interactive Broadcast Studio Preview Mockup */
.studio-preview-card {
    background: linear-gradient(160deg, #0f172a 0%, #090e1a 100%);
    border: 1px solid rgba(59, 130, 246, 0.32);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(16, 185, 129, 0.12);
    position: relative;
    overflow: hidden;
}

.studio-preview-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.75rem;
    flex-wrap: wrap;
}

.studio-screen {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 0.65rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 58% 52%, rgba(16, 185, 129, 0.25) 0%, transparent 45%),
        linear-gradient(180deg, #0b192c 0%, #0f2926 55%, #0a191e 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.85rem;
}

/* Court Lines SVG / CSS Overlay */
.court-grid-lines {
    position: absolute;
    inset: 12% 8%;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.35rem;
    pointer-events: none;
}

.court-grid-lines::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1.5px;
    background: rgba(255, 255, 255, 0.15);
}

.court-grid-lines::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 68px;
    height: 68px;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Animated AI Auto-Tracking Box */
.ai-tracking-frame {
    position: absolute;
    top: 24%;
    left: 36%;
    width: 46%;
    height: 52%;
    border: 2px solid #10b981;
    border-radius: 0.45rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.35), inset 0 0 15px rgba(16, 185, 129, 0.15);
    animation: aiPanFloat 7s ease-in-out infinite alternate;
    pointer-events: none;
}

.ai-tracking-label {
    position: absolute;
    top: -1.45rem;
    left: 0;
    background: #10b981;
    color: #04130d;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.12rem 0.45rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    font-family: var(--font-mono);
}

.ai-centroid-dot {
    position: absolute;
    top: 52%;
    left: 54%;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border: 2px solid #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #ef4444;
}

@keyframes aiPanFloat {
    0% { transform: translate(-12%, -4%) scale(1); }
    50% { transform: translate(8%, 5%) scale(1.06); }
    100% { transform: translate(-4%, 2%) scale(0.98); }
}

.studio-clip-bar {
    margin-top: 0.75rem;
    background: rgba(19, 28, 49, 0.9);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 0.6rem;
    padding: 0.65rem 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    font-size: 0.76rem;
}

/* ==========================================================================
   Section Common Layouts
   ========================================================================== */
section {
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    margin-bottom: 3.25rem;
}

.section-title h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-title h2 span {
    color: var(--primary);
}

.section-title p {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    max-width: 720px;
    margin: 0 auto;
}

/* ==========================================================================
   Comparison & Feature Cards
   ========================================================================== */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
}

.compare-card {
    border-radius: 0.85rem;
    padding: 2.1rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compare-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.compare-card.traditional {
    border-left: 4px solid var(--danger);
}

.compare-card.gradacam-sol {
    border: 2px solid var(--primary);
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.12) 0%, var(--bg-card) 70%);
}

.compare-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.65rem;
}

.compare-card.traditional h3 {
    color: #fda4af;
}

.compare-card.gradacam-sol h3 {
    color: #34d399;
}

.compare-list {
    list-style: none;
    margin-top: 1.25rem;
}

.compare-list li {
    margin-bottom: 0.75rem;
    font-size: 0.94rem;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Steps / Features Grid
   ========================================================================== */
.steps {
    background-color: rgba(13, 19, 34, 0.55);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.step-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    padding: 2.15rem 1.75rem 1.85rem;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.step-card:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.4);
}

.step-number {
    position: absolute;
    top: -1.25rem;
    left: 1.75rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.35);
}

.step-card h3 {
    font-size: 1.18rem;
    font-weight: 800;
    margin-top: 0.35rem;
    margin-bottom: 0.65rem;
}

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

/* ==========================================================================
   Business Model & Interactive Calculator
   ========================================================================== */
.monetization {
    background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.05) 50%, transparent 100%);
}

.monetization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.65rem;
    margin-top: 2.5rem;
}

.pricing-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.9rem;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card.premium {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
    background: radial-gradient(circle at top, rgba(16, 185, 129, 0.10) 0%, var(--bg-card) 65%);
}

.pricing-header h4 {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.45rem;
}

.price {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.85rem;
    line-height: 1.1;
}

.price span {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

.price-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================================
   FAQ & Final CTA
   ========================================================================== */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.35rem;
    max-width: 1080px;
    margin: 2.5rem auto 0;
}

.faq-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.65rem;
}

.faq-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: var(--text-main);
}

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

.cta-final {
    padding: 5.5rem 0;
    text-align: center;
    background: radial-gradient(circle at bottom, rgba(16, 185, 129, 0.16) 0%, transparent 65%);
}

.cta-final h2 {
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 0.85rem;
}

.cta-final p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 2rem;
}

/* ==========================================================================
   Authentication Pages (Login & Two-Tab Smart Registration)
   ========================================================================== */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 2.5rem 1rem;
}

.auth-card {
    background: linear-gradient(165deg, rgba(19, 28, 49, 0.95) 0%, rgba(13, 19, 34, 0.98) 100%);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    width: 100%;
    max-width: 490px;
    padding: 2.35rem 2rem;
    box-shadow: var(--shadow-lg);
}

.auth-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    background: rgba(7, 11, 20, 0.75);
    padding: 0.35rem;
    border-radius: 0.65rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1.35rem;
}

.auth-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.6rem 0.5rem;
    border-radius: 0.45rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.auth-tab-btn.active {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.38);
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.72rem 0.95rem;
    background-color: rgba(7, 11, 20, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

footer {
    border-top: 1px solid var(--border-color);
    padding: 2.25rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
    background: rgba(7, 11, 20, 0.8);
}

/* ==========================================================================
   Mobile & Tablet Responsiveness
   ========================================================================== */
@media (max-width: 960px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        padding: 3rem 0 3rem;
        text-align: center;
    }

    .hero-btns,
    .hero-tech-pills {
        justify-content: center;
    }
}

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

    .nav-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .logo {
        justify-content: center;
    }

    .nav-links {
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-links .btn {
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
    }

    section {
        padding: 3.25rem 0;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .compare-card,
    .step-card,
    .pricing-card,
    .faq-card {
        padding: 1.4rem 1.15rem;
    }

    .auth-card {
        padding: 1.65rem 1.2rem;
    }

    .auth-tabs {
        grid-template-columns: 1fr;
    }
}
