/* =========================================================
   RANK FIRST TECHNOLOGIES – SAAS UI (LICENSE PORTAL)
   ========================================================= */

:root {
    --bg-dark: #0A0F1C;
    --bg-card: rgba(255, 255, 255, 0.04);
    --primary: #3B82F6;
    --accent: #06B6D4;
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --border: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* BACKGROUND GRID */
.bg-elements {
    position: fixed;
    inset: 0;
    z-index: -1;
}

.bg-grid {
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* =========================================================
   HEADER
   ========================================================= */

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 15, 28, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* LOGO FIX */
.logo img {
    height: 40px;
    /* This turns a dark logo into a white logo */
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-cta .btn-primary {
    padding: 10px 22px;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 10px 26px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
    box-shadow: 0 0 0 rgba(0,0,0,0);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
}

/* =========================================================
   HERO
   ========================================================= */

.page-hero {
    padding-top: 160px;
    padding-bottom: 80px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 25px;
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: var(--text-muted);
    max-width: 700px;
    margin: auto;
    font-size: 1.1rem;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section-padding {
    padding: 100px 0;
}

/* =========================================================
   PRODUCT GRID (FIXED – NO BREAK)
   ========================================================= */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* PRODUCT CARD */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 35px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
}

.feature-card:hover {
    border-color: var(--primary);
    background: rgba(255,255,255,0.07);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.icon-circle {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #020408;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 40px 0;
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.6rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #0A0F1C;
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem;
    }
}

/* ================================
   AUTH PAGES (LOGIN / REGISTER)
================================ */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: 60px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 35px;
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.auth-group {
    margin-bottom: 18px;
}

.auth-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.auth-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.4);
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
}

.auth-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    border: none;
    background: var(--gradient);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(6,182,212,0.4);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Small screens */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 25px;
    }
}