/* Triton Email - Landing Page Styles */

:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary-color: #6c757d;
    --accent-color: #00d4aa;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --card-bg: #1e293b;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --gradient-start: #0d6efd;
    --gradient-end: #00d4aa;
    /* Light bluish-grey backgrounds */
    --light-bg: #e8eef4;
    --light-bg-alt: #dce4ed;
    --card-light-bg: #edf2f7;
    --border-light: #c9d5e3;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #334155;
    line-height: 1.6;
}

.section-light {
    background: var(--light-bg);
}

/* Navbar */
.navbar {
    background: transparent;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
    color: white;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Video Background - z-index: 1 (bottom layer) */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

/* Dark Overlay - z-index: 2 (middle layer) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(2, 6, 23, 0.9) 100%);
    z-index: 2;
}

/* Hero Content - z-index: 3 (top layer) */
.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content .container {
    position: relative;
    z-index: 3;
}

.hero-section h1 {
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.btn-outline-light {
    border-width: 2px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Stats Row */
.stats-row {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Hero Graphic */
.hero-graphic {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.floating-card span {
    font-weight: 600;
    color: white;
}

.card-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.card-2 {
    top: 30%;
    right: 10%;
    animation-delay: 1s;
}

.card-3 {
    top: 55%;
    left: 10%;
    animation-delay: 2s;
}

.card-4 {
    bottom: 15%;
    right: 20%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Trust Banner */
.trust-banner {
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-light);
}

.tech-badge {
    display: inline-block;
    background: var(--card-light-bg);
    border: 1px solid var(--border-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* Feature Cards */
.feature-card {
    background: var(--card-light-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.75rem;
    color: white;
}

.feature-card h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.feature-list li::before {
    content: '\F26A';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Architecture Section */
.architecture-diagram {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
}

.architecture-diagram pre {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
}

.architecture-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.highlight-item h5 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.highlight-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Component Badges */
.component-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: background 0.2s ease;
}

.component-badge:hover {
    background: rgba(255, 255, 255, 0.1);
}

.component-badge i {
    font-size: 2rem;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

.component-badge span {
    font-weight: 600;
    display: block;
}

.component-badge small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Plan Cards */
.plan-card {
    background: var(--card-light-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--border-light);
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-5px);
}

.plan-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(13, 110, 253, 0.15);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-header h5 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.plan-users {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.plan-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.plan-features li::before {
    content: '\F26A';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.plan-features li.disabled {
    color: #cbd5e1;
}

.plan-features li.disabled::before {
    content: '\F659';
    color: #cbd5e1;
}

/* Audience Cards */
.audience-card {
    background: var(--card-light-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
}

.audience-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.audience-icon i {
    font-size: 2rem;
    color: white;
}

.audience-card h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.audience-card p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

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

.audience-card li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--secondary-color);
}

.audience-card li::before {
    content: '\F26A';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Why Choose Section */
.why-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.why-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    opacity: 0.5;
    line-height: 1;
}

.why-item h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.why-item p {
    color: var(--secondary-color);
    margin: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-light);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-bg);
    line-height: 1.2;
}

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

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-card h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.contact-card .btn {
    width: 100%;
}

/* Footer */
footer {
    background: var(--darker-bg);
}

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

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

footer ul li {
    margin-bottom: 0.5rem;
}

footer .bi {
    font-size: 1.25rem;
}

/* Demo Modal */
.modal-content {
    background: var(--card-light-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
}

.modal-header {
    padding: 1.5rem 1.5rem 0;
}

.modal-body {
    padding: 1.5rem;
}

.modal-content .form-control,
.modal-content .form-select {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.modal-content .form-control:focus,
.modal-content .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.modal-content .form-label {
    font-weight: 500;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
}

.modal-content .btn-primary {
    padding: 0.875rem 1.5rem;
}

/* Mobile menu - solid background when expanded */
@media (max-width: 991.98px) {
    .navbar.show,
    .navbar:has(.navbar-collapse.show),
    .navbar:has(.navbar-collapse.collapsing) {
        background: rgba(15, 23, 42, 0.95) !important;
        backdrop-filter: blur(10px);
    }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .stats-row {
        justify-content: center;
    }

    .architecture-diagram pre {
        font-size: 0.7rem;
    }

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

@media (max-width: 767.98px) {
    .hero-section {
        text-align: center;
    }

    .hero-content {
        padding-top: 100px;
        align-items: flex-start;
    }

    .hero-section h1 {
        margin-top: 0;
    }

    .hero-section .d-flex {
        justify-content: center;
    }

    .stat-item {
        min-width: 100px;
    }

    .why-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .why-number {
        font-size: 1.5rem;
    }
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .plan-card,
    .audience-card,
    .stat-card {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease forwards;
    }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .feature-card:nth-child(1) { animation-delay: 0.1s; }
    .feature-card:nth-child(2) { animation-delay: 0.2s; }
    .feature-card:nth-child(3) { animation-delay: 0.3s; }
    .feature-card:nth-child(4) { animation-delay: 0.4s; }
    .feature-card:nth-child(5) { animation-delay: 0.5s; }
    .feature-card:nth-child(6) { animation-delay: 0.6s; }
}
