:root {
    --blurple: #5865F2;
    --blurple-hover: #4752c4;
    --dark-bg: #1a1a2e;
    --darker-bg: #0f0f1a;
    --card-bg: #232336;
    --text-primary: #ffffff;
    --text-secondary: #b9bbbe;
    --text-muted: #8e9297;
    --green: #3ba55c;
    --green-hover: #2d8146;
    --danger: #ed4245;
    --border: #2a2a3d;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #4752c4;
    font-family: 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============ ANIMATED BACKGROUND ============ */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.bg-orb:nth-child(1) {
    width: 500px;
    height: 500px;
    background: var(--blurple);
    top: -150px;
    left: -100px;
    animation-delay: 0s;
}

.bg-orb:nth-child(2) {
    width: 400px;
    height: 400px;
    background: #eb459e;
    top: 40%;
    right: -120px;
    animation-delay: -7s;
    animation-duration: 18s;
}

.bg-orb:nth-child(3) {
    width: 350px;
    height: 350px;
    background: #5865F2;
    bottom: -100px;
    left: 30%;
    animation-delay: -14s;
    animation-duration: 22s;
}

.bg-orb:nth-child(4) {
    width: 280px;
    height: 280px;
    background: #faa61a;
    top: 60%;
    left: 60%;
    animation-delay: -3s;
    animation-duration: 16s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(80px, -60px) scale(1.15);
    }

    50% {
        transform: translate(-40px, 80px) scale(0.9);
    }

    75% {
        transform: translate(-70px, -30px) scale(1.1);
    }
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 15, 26, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 15, 26, 0.95);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.3px;
    z-index: 1;
}

.nav-brand svg {
    width: 36px;
    height: 36px;
    transition: transform var(--transition);
}

.nav-brand:hover svg {
    transform: rotate(-10deg) scale(1.08);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    z-index: 1;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blurple);
    border-radius: 2px;
    transition: width var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1;
}

.btn {
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    letter-spacing: 0.1px;
    position: relative;
    overflow: hidden;
}

.btn-login {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-login:hover {
    border-color: var(--blurple);
    background: rgba(88, 101, 242, 0.1);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.25);
}

.btn-primary {
    background: var(--blurple);
    color: #fff;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
}

.btn-primary:hover {
    background: var(--blurple-hover);
    box-shadow: 0 6px 24px rgba(88, 101, 242, 0.5);
    transform: translateY(-2px);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.05rem;
    border-radius: 50px;
}

.btn-outline-large {
    padding: 14px 32px;
    font-size: 1.05rem;
    border-radius: 50px;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-large:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 8px;
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============ HERO SECTION ============ */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 2rem 80px;
}

.hero-content {
    max-width: 750px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #5865F2, #eb459e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============ FEATURES SECTION ============ */
.features {
    position: relative;
    z-index: 1;
    padding: 80px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #5865F2, #eb459e);
    border-radius: 3px 3px 0 0;
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    border-color: rgba(88, 101, 242, 0.4);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(88, 101, 242, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.6rem;
    transition: all var(--transition);
}

.feature-card:hover .feature-icon {
    background: rgba(88, 101, 242, 0.25);
    box-shadow: 0 0 24px rgba(88, 101, 242, 0.3);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

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

/* ============ ABOUT US SECTION ============ */
.about-section {
    position: relative;
    z-index: 1;
    padding: 100px 2rem;
    background: var(--darker-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: -0.8px;
}

.about-text h2 span {
    color: var(--blurple);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item h4 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--blurple);
    letter-spacing: -1px;
}

.stat-item span {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 380px;
    transition: all var(--transition);
}

.about-card:hover {
    border-color: rgba(88, 101, 242, 0.5);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.about-avatar-group {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.about-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    margin-left: -14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
}

.about-avatar:first-child {
    margin-left: 0;
}

.about-avatar:nth-child(1) {
    background: #5865F2;
}

.about-avatar:nth-child(2) {
    background: #eb459e;
}

.about-avatar:nth-child(3) {
    background: #faa61a;
}

.about-avatar:nth-child(4) {
    background: #3ba55c;
}

.about-avatar.plus {
    background: #2a2a3d;
    font-size: 1.2rem;
}

/* ============ MODAL OVERLAY ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: #1e1e32;
    border-radius: 16px;
    padding: 40px 32px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 5;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

/* Tabs */
.modal-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.modal-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
    background: none;
    border: none;
    transition: all var(--transition);
    position: relative;
    z-index: 1;
}

.modal-tab.active {
    color: #fff;
}

.modal-tab-indicator {
    position: absolute;
    bottom: -2px;
    height: 2px;
    background: var(--blurple);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    background: #141428;
    color: #fff;
    font-size: 0.95rem;
    transition: all var(--transition);
    outline: none;
    font-family: inherit;
}

.form-group input:focus {
    border-color: var(--blurple);
    box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.15);
    background: #181830;
}

.form-group input::placeholder {
    color: #555;
}

.btn-submit {
    width: 100%;
    padding: 13px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    background: var(--blurple);
    color: #fff;
    transition: all var(--transition);
    margin-top: 8px;
    letter-spacing: 0.2px;
}

.btn-submit:hover {
    background: var(--blurple-hover);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
    transform: translateY(-1px);
}

.form-footer {
    text-align: center;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-footer a {
    color: var(--blurple);
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* ── "Forgot password?" link under the login password field ── */
.forgot-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--blurple);
    cursor: pointer;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* ── ToS checkbox ── */
.tos-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    user-select: none;
    line-height: 1.4;
}

.tos-checkbox-label input[type="checkbox"] {
    display: none;
}

.tos-checkbox-box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid var(--border);
    background: #141428;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    position: relative;
}

.tos-checkbox-label input:checked + .tos-checkbox-box {
    background: var(--blurple);
    border-color: var(--blurple);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.2);
}

.tos-checkbox-box::after {
    content: '';
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
    margin-bottom: 2px;
}

.tos-checkbox-label input:checked + .tos-checkbox-box::after {
    transform: rotate(45deg) scale(1);
}

.tos-checkbox-label a {
    color: var(--blurple);
    text-decoration: none;
}

.tos-checkbox-label a:hover {
    text-decoration: underline;
}

.btn-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.form-panel {
    display: none;
    animation: fadeSlideIn 0.3s ease-out;
}

.form-panel.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e1e32;
    color: #fff;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 3000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-color: var(--green);
}

.toast.error {
    border-color: var(--danger);
}

.toast-icon {
    font-size: 1.2rem;
}

/* ============ FOOTER ============ */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 30px 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}

.footer a {
    color: var(--blurple);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: rgba(15, 15, 26, 0.98);
        backdrop-filter: blur(30px);
        padding: 100px 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--border);
    }

    .nav-links.open {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-actions .btn-login {
        display: none;
    }

    .nav-actions .btn-login.mobile-visible {
        display: inline-flex;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

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

    .hero {
        padding: 100px 1rem 60px;
    }

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

    .features {
        padding: 50px 1rem;
    }

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

    .modal {
        margin: 0 16px;
        padding: 28px 20px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-large,
    .btn-outline-large {
        width: 100%;
        justify-content: center;
    }

    .about-stats {
        gap: 20px;
    }

    .stat-item h4 {
        font-size: 1.5rem;
    }
}

