/* ==========================================================================
   FossTrack - Premium Landing Page Styles
   ========================================================================== */

/* ── Reset & Base Styles ────────────────────────────────────────────────── */
:root {
    --bg-dark: #090B11;
    --bg-dark-card: #121620;
    --primary: #5266ff;
    --primary-glow: rgba(82, 102, 255, 0.15);
    --secondary: #a3b3cc;
    --text-main: #f3f5f9;
    --text-muted: #8d9bb0;
    --accent: #00f2fe;
    --border-color: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

/* ── Typography & Headings ──────────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--primary);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #3b50df);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 102, 255, 0.35);
}

.btn-secondary {
    background-color: var(--bg-dark-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    margin-top: 1.5rem;
}

/* ── Navigation Bar (Glassmorphism) ────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(9, 11, 17, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.6rem;
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

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

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

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ── Hero Section ──────────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    padding: 10rem 0 7rem;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(82, 102, 255, 0.12) 0%, rgba(9, 11, 17, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-new {
    background-color: rgba(82, 102, 255, 0.15);
    color: #8fa0ff;
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(82, 102, 255, 0.25);
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--secondary);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
    width: 100%;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    width: 100%;
}

.trust-avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    margin-right: -10px;
    object-fit: cover;
}

.trust-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 0.5rem;
}

/* ── Hero Visual Mockup ────────────────────────────────────────────────── */
.hero-visual {
    width: 100%;
}

.visual-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    padding: 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.mock-browser {
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.browser-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.browser-bar {
    margin-left: 1.5rem;
    background-color: rgba(255, 255, 255, 0.04);
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.2rem 1.5rem;
    border-radius: 4px;
    width: 60%;
    text-align: center;
    font-family: monospace;
}

.browser-content {
    display: grid;
    grid-template-columns: 50px 1fr;
    height: 280px;
}

.mock-sidebar {
    background-color: rgba(0, 0, 0, 0.2);
    border-right: 1px solid var(--border-color);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.side-item {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
}

.side-item.active {
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.mock-main {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mock-search {
    width: 120px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.mock-profile {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.mock-grid {
    display: grid;
    grid-template-columns: 1fr 80px;
    gap: 1rem;
}

.mock-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-bar {
    width: 40%;
    height: 10px;
    background-color: var(--primary);
    border-radius: 2px;
}

.card-line {
    width: 90%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 2px;
}

.card-line.short {
    width: 60%;
}

.card-circle {
    width: 100%;
    height: 100%;
    border: 6px solid var(--accent);
    border-radius: 50%;
    border-top-color: transparent;
}

.mock-charts {
    height: 80px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0.5rem 1.5rem;
}

.chart-col {
    width: 25px;
    background: linear-gradient(to top, var(--primary), var(--accent));
    border-radius: 4px 4px 0 0;
    transition: var(--transition);
}

/* ── Section General ────────────────────────────────────────────────────── */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.8px;
}

.section-desc {
    color: var(--secondary);
    font-size: 1.05rem;
}

/* ── Features Section ───────────────────────────────────────────────────── */
.features-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--bg-dark), rgba(18, 22, 32, 0.4));
    border-top: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.25rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(82, 102, 255, 0.3);
    box-shadow: 0 10px 30px rgba(9, 11, 17, 0.5);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: rgba(82, 102, 255, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.feature-card:hover .feature-icon-wrapper {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
}

.feature-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card-desc {
    color: var(--secondary);
    font-size: 0.95rem;
}

/* ── Workflow Section ───────────────────────────────────────────────────── */
.workflow-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    position: relative;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-num {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--bg-dark-card);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px var(--primary-glow);
}

.step-card:hover .step-num {
    background-color: var(--primary);
    color: #fff;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-desc {
    color: var(--secondary);
    font-size: 0.95rem;
    max-width: 280px;
    margin: 0 auto;
}

/* ── Pricing Section ────────────────────────────────────────────────────── */
.pricing-section {
    padding: 6rem 0;
    background: linear-gradient(to top, var(--bg-dark), rgba(18, 22, 32, 0.4));
    border-top: 1px solid var(--border-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 10px 40px var(--primary-glow);
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 10px rgba(82, 102, 255, 0.3);
}

.plan-name {
    font-size: 1.15rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.plan-term {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.plan-users {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2rem;
}

.plan-features {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.plan-features li {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plan-features li i {
    color: var(--primary);
}

.pricing-card.featured .plan-features li i {
    color: var(--accent);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 0;
    background-color: #06070a;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

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

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

.footer-socials a:hover {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links h4 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

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

.footer-links a:hover {
    color: var(--text-main);
    transform: translateX(2px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    text-align: center;
}

/* ── Responsive Utilities ───────────────────────────────────────────────── */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-content {
        align-items: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-trust {
        justify-content: center;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background-color: var(--bg-dark);
        flex-direction: column;
        padding: 4rem 2rem;
        gap: 2.5rem;
        transition: var(--transition);
        z-index: 999;
        border-top: 1px solid var(--border-color);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-link {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
    }
    .nav-btn-login, .nav-btn-signup {
        width: 100%;
        max-width: 250px;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .footer-links-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .btn {
        width: 100%;
    }
    .footer-links-group {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
