/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
    /* Colors */
    --clr-primary: #5a6cf3;
    /* The brand blue used in buttons */
    --clr-primary-hover: #4b5be3;

    --clr-bg-dark: #0f101f;
    /* Base dark background */
    --clr-bg-warning: #1e1e1e;
    /* Risk warning background */
    --clr-cookie-bg: #f8f9fc;
    /* Light background for cookie banner */
    --clr-cookie-text: #666;

    --clr-text-light: #ffffff;
    --clr-text-muted: #a0a4ab;
    --clr-text-dark: #121212;

    --clr-positive: #00b368;
    --clr-negative: #ff3b30;

    --clr-badge-bg: #5a6cf3;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Header dimensions */
    --header-height: 70px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--clr-text-light);
    background-color: var(--clr-bg-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 120px;
    /* Space for the fixed risk warning banner */
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ==========================================================================
   Utility Classes & Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 108, 243, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

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

.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
}

.arrow-down {
    display: inline-block;
    width: 0;
    height: 0;
    vertical-align: middle;
    border-top: 4px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    margin-left: 6px;
    transition: transform var(--transition-fast);
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    color: var(--clr-text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    gap: 15px;
    font-size: 0.75rem;
    border-bottom: 1px solid #eee;
    z-index: 1001;
    /* Higher than header */
    transition: transform var(--transition-normal);
}

.cookie-banner p {
    color: #555;
}

.cookie-link {
    color: var(--clr-primary);
    text-decoration: none;
}

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

.cookie-banner.hidden {
    display: none;
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.header {
    position: fixed;
    top: 40px;
    /* Below cookie banner initially */
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    z-index: 999;
    transition: all var(--transition-normal);
}

.header.scrolled {
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    color: var(--clr-text-dark);
}

/* Transition elements depending on scroll state */
.header.scrolled .nav-links a,
.header.scrolled .lang-btn {
    color: var(--clr-text-dark);
}

.header.scrolled .btn-outline {
    border-color: #ddd;
    color: var(--clr-text-dark);
}

.header.scrolled .btn-outline:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 32px;
    width: auto;
    transition: filter var(--transition-normal);
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-item a {
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
}

.nav-item a:hover {
    color: var(--clr-primary);
    opacity: 1;
}

.nav-item.has-dropdown:hover .arrow-down {
    transform: rotate(180deg);
}

.has-badge {
    position: relative;
}

.badge {
    position: absolute;
    top: -12px;
    right: -10px;
    background-color: var(--clr-badge-bg);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-family: inherit;
    transition: color var(--transition-fast);
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('assets/home-main-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 100px;
    /* Space for header */
}

/* Dark overlay gradient */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 16, 31, 0.0) 0%, rgba(15, 16, 31, 0.3) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 60px;
}

.hero-image-container {
    margin-bottom: 20px;
    width: 100%;
    max-width: 800px;
}

.hero-composite {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-text {
    max-width: 800px;
}

h1 {
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #FFFFFF 0%, #E0E0E0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-text p {
    font-size: 1rem;
    color: #e0e4eb;
    font-weight: 400;
}

/* ==========================================================================
   Market Ticker Section
   ========================================================================== */
.ticker-section {
    width: 100%;
    background-color: white;
    /* Changed from dark to white based on screenshot */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    padding: 12px 0;
}

.ticker-wrapper {
    display: flex;
    overflow: hidden;
    user-select: none;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.ticker-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 40px;
    animation: scrollTicker 40s linear infinite;
    padding-right: 40px;
    /* Space between the end of first block and start of second block */
}

.ticker-wrapper:hover .ticker-content {
    animation-play-state: paused;
}

@keyframes scrollTicker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-text-dark);
    white-space: nowrap;
}

.ticker-item .price {
    color: var(--clr-text-dark);
    margin-left: 4px;
}

.ticker-item .change {
    font-size: 0.8rem;
    font-weight: 500;
}

.change.pos {
    color: var(--clr-positive);
}

.change.neg {
    color: var(--clr-negative);
}

.ticker-sep {
    color: #ddd;
    margin: 0 10px;
}

/* ==========================================================================
   Why ModMount Carousel Section
   ========================================================================== */
.carousel-section {
    position: relative;
    background-color: #ffffff;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 700px;
    /* Base height for the section */
}

.carousel-container {
    width: 100%;
    height: 100%;
    margin: 0;
    position: relative;
    display: flex;
    transition: transform var(--transition-slow);
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: stretch;
    /* Stretch content to full height */
    padding: 0;
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-text-col {
    flex: 1;
    padding: 80px 80px 80px 140px;
    /* Space for the arrows and left padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
}

.carousel-img-col {
    flex: 1;
    display: flex;
}

.carousel-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-title {
    color: var(--clr-text-dark);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 15px;
    z-index: 2;
}

.carousel-number {
    font-size: 11rem;
    font-weight: 700;
    color: #f2f3f7;
    line-height: 1;
    margin-bottom: -10px;
    letter-spacing: -4px;
    z-index: 1;
}

.carousel-subtitle {
    color: var(--clr-primary);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 35px;
    z-index: 2;
}

.carousel-desc {
    color: var(--clr-text-dark);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 580px;
}

.btn-wide {
    align-self: flex-start;
    padding: 14px 40px;
    border-radius: 40px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    /* Added background for visibility on image */
    border: none;
    color: var(--clr-primary);
    cursor: pointer;
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
}

.carousel-btn:hover {
    color: var(--clr-primary-hover);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.prev-btn {
    left: 2vw;
}

.next-btn {
    right: 2vw;
}

@media (max-width: 992px) {
    .carousel-slide {
        flex-direction: column;
        padding: 0 40px;
    }

    .carousel-text-col {
        padding-right: 0;
        margin-bottom: 40px;
        align-items: center;
        text-align: center;
    }

    .carousel-desc {
        text-align: center;
    }

    .btn-wide {
        align-self: center;
    }

    .carousel-number {
        font-size: 6rem;
    }
}

@media (max-width: 768px) {
    .carousel-btn {
        padding: 10px;
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }
}

/* ==========================================================================
   App Section
   ========================================================================== */
.app-section {
    background-color: #ffffff;
    padding: 100px 0;
    overflow: hidden;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 40px;
}

.app-image-side {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-image {
    width: 100%;
    max-width: 550px;
    height: auto;
    position: relative;
    z-index: 2;
}

.app-circle-bg {
    position: absolute;
    width: 120%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid #f0f0f0;
    z-index: 1;
}

/* Add nested circles like in the image */
.app-circle-bg::before,
.app-circle-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid #f8f8f8;
}

.app-circle-bg::before {
    width: 80%;
    height: 80%;
}

.app-circle-bg::after {
    width: 60%;
    height: 60%;
}

.app-text-side {
    flex: 1;
}

.app-title {
    color: var(--clr-text-dark);
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.app-desc {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .app-container {
        flex-direction: column;
        text-align: center;
    }

    .app-title {
        font-size: 2rem;
    }

    .app-text-side {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.security-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    /* Achieving the horizontal banner look */
    background-image: url('assets/home-security-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    padding: 30px 0;
    overflow: hidden;
}

.security-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.9) 100%);
    pointer-events: none;
}

.security-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.security-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 30px;
    text-align: center;
}

.security-visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 1300px;
    height: 300px;
}

.security-feature {
    position: absolute;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 400;
}

.feat-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feat-icon {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.feat-icon img {
    width: 18px;
    height: 18px;
}

/* Much wider positioning for "Horizontal" look */
.feat-top {
    top: 15px;
    left: 49.8%;
    transform: translateX(-50%);
    flex-direction: column;
}

.feat-top .feat-content {
    flex-direction: column;
    text-align: center;
}

.feat-top .feat-text {
    margin-bottom: 8px;
}

.feat-left {
    top: 150px;
    left: 15%;
    /* Widened significantly */
}

.feat-left .feat-text {
    text-align: right;
    max-width: 180px;
}

.feat-right {
    top: 150px;
    right: 15%;
    /* Widened significantly */
}

.feat-right .feat-text {
    text-align: left;
    max-width: 180px;
}

.security-btn-wrapper {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 1200px) {
    .feat-left {
        left: 10%;
    }

    .feat-right {
        right: 10%;
    }
}

@media (max-width: 992px) {
    .security-section {
        min-height: auto;
        padding: 40px 0;
    }

    .security-visual-wrapper {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 25px;
        align-items: center;
        padding-top: 20px;
    }

    .security-feature {
        position: static;
        transform: none;
    }

    .feat-left,
    .feat-right,
    .feat-top {
        left: auto;
        right: auto;
        top: auto;
        flex-direction: row;
    }

    .feat-left .feat-content,
    .feat-right .feat-content,
    .feat-top .feat-content {
        flex-direction: row;
        text-align: left;
    }

    .feat-left .feat-text,
    .feat-right .feat-text {
        text-align: left;
        max-width: none;
    }

    .security-btn-wrapper {
        position: static;
        transform: none;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .security-section {
        min-height: auto;
    }

    .security-visual-wrapper {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
        padding-top: 30px;
    }

    .security-feature {
        position: static;
        transform: none;
    }

    .feat-left,
    .feat-right,
    .feat-top {
        left: auto;
        right: auto;
        top: auto;
        flex-direction: row;
    }

    .feat-left .feat-content,
    .feat-right .feat-content,
    .feat-top .feat-content {
        flex-direction: row;
        text-align: left;
    }

    .feat-left .feat-text,
    .feat-right .feat-text {
        text-align: left;
        max-width: none;
    }

    .security-btn-wrapper {
        position: static;
        transform: none;
        margin-top: 30px;
    }
}

/* ==========================================================================
   Steps Section
   ========================================================================== */
.steps-section {
    background-color: #ffffff;
    padding: 100px 0;
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.steps-title {
    color: var(--clr-text-dark);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    transition: all var(--transition-normal);
}

.step-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.step-card:hover .step-card-bg {
    opacity: 1;
}

.step-card-content {
    position: relative;
    z-index: 2;
    padding: 40px 30px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    font-size: 5rem;
    font-weight: 700;
    color: #f0f1f5;
    line-height: 1;
    margin-bottom: -10px;
    align-self: flex-start;
    transition: color var(--transition-normal);
}

.step-card:hover .step-number {
    color: rgba(255, 255, 255, 0.15);
}

.step-icon-wrapper {
    margin-bottom: 24px;
}

.step-svg {
    width: 150px;
    height: 150px;
}

.step-card-title {
    color: var(--clr-text-dark);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
    transition: color var(--transition-normal);
}

.step-card:hover .step-card-title {
    color: #fff;
}

.step-card-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 30px;
    transition: color var(--transition-normal);
}

.step-card:hover .step-card-desc {
    color: rgba(255, 255, 255, 0.85);
}

.step-card .btn-wide {
    transition: all var(--transition-normal);
}

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

@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .steps-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Risk Warning Banner
   ========================================================================== */
.risk-warning-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--clr-bg-warning);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 0;
    z-index: 998;
    /* Below chat widget */
}

.risk-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.risk-container p {
    font-size: 0.65rem;
    color: #888;
    line-height: 1.4;
}

/* ==========================================================================
   Chat Widget
   ========================================================================== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    /* On the screenshot it seems to be on the bottom left */
    z-index: 9999;
}

.chat-btn {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    background-color: #1a273b;
    /* Dark greenish/blue color matching screenshot */
    border: 2px solid white;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: all var(--transition-fast);
}

.chat-btn:hover {
    transform: scale(1.05);
    background-color: #24354c;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1200px) {
    .nav-links {
        gap: 16px;
    }

    .header-container {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {

    .main-nav,
    .header-actions {
        display: none;
        /* Mobile menu needed instead */
    }

    h1 {
        font-size: 3rem;
    }

    .hero {
        padding-top: 100px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}