/* =========================================
   RIZZ.MONEY - GLOBAL
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 90px;
}

body {
    background: #070b09;
    color: #ffffff;
    overflow-x: hidden;
}

a {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================
   NAVBAR
========================================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 8%;
    background: rgba(7, 11, 9, 0.92);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 230, 138, 0.08);
}

.logo {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    text-decoration: none;
}

.logo span {
    color: #00e68a;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #00e68a;
}

.nav-btn {
    text-decoration: none;
    color: #001b10;
    background: #00e68a;
    padding: 11px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s;
}

.nav-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 25px #00e68a55;
}

/* =========================================
   HERO SECTION
========================================= */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
    padding: 80px 10%;
    position: relative;
    isolation: isolate;
    overflow: hidden;

    background:
        radial-gradient(circle at 80% 40%, #063b29 0%, transparent 35%),
        linear-gradient(135deg, #070b09, #0b1711, #07100c);

    background-size: 200% 200%;
    animation: backgroundMove 10s ease infinite;
}

@keyframes backgroundMove {
    0% {
        background-position: 0% 50%;
    }

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

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

.hero-content {
    max-width: 620px;
    position: relative;
    z-index: 3;
}

.tagline {
    color: #00e68a;
    letter-spacing: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(40px, 5vw, 65px);
    line-height: 1.2;
    font-weight: 800;
}

.hero h1 span,
.section h2 span,
.cta h2 span {
    color: #00e68a;
}

.description {
    color: #aaaaaa;
    margin-top: 25px;
    line-height: 1.9;
    max-width: 550px;
    font-size: 14px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
    display: inline-block;
    padding: 14px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: 0.3s;
}

.primary-btn {
    background: #00e68a;
    color: #001b10;
}

.secondary-btn {
    border: 1px solid #00e68a;
    color: #ffffff;
}

.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px #00e68a55;
}

/* =========================================
   MONEY CARD
========================================= */

.money-card {
    width: 320px;
    min-height: 340px;
    padding: 30px;
    border-radius: 25px;

    background: linear-gradient(
        135deg,
        #103b29,
        #071b12
    );

    border: 1px solid #00e68a55;
    box-shadow: 0 0 60px #00e68a22;

    position: relative;
    z-index: 3;

    animation: floating 4s ease-in-out infinite;
}

.card-top,
.card-bottom {
    display: flex;
    justify-content: space-between;
}

.card-top {
    color: #00e68a;
    font-weight: 700;
}

.money-card > p {
    margin-top: 75px;
    color: #aaaaaa;
    font-size: 11px;
    letter-spacing: 2px;
}

.money-card h2 {
    font-size: 34px;
    margin: 12px 0 50px;
}

.card-bottom {
    color: #00e68a;
    font-size: 10px;
    letter-spacing: 1px;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }

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

/* =========================================
   CANDLESTICK BACKGROUND
========================================= */

.trading-chart {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    opacity: 0.48;
    pointer-events: none;

    mask-image: linear-gradient(
        to right,
        transparent,
        black 8%,
        black 95%,
        transparent
    );

    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 8%,
        black 95%,
        transparent
    );
}

.chart-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(#ffffff10 1px, transparent 1px),
        linear-gradient(90deg, #ffffff10 1px, transparent 1px);

    background-size: 55px 45px;
}

.candle-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.candle {
    position: absolute;
    width: 10px;
    min-height: 3px;
}

.candle-wick {
    position: absolute;
    width: 2px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    opacity: 0.9;
}

.candle-body {
    position: absolute;
    width: 100%;
    left: 0;
    border-radius: 1px;
}

.candle.green .candle-wick,
.candle.green .candle-body {
    background: #00e68a;
    box-shadow: 0 0 10px #00e68a80;
}

.candle.red .candle-wick,
.candle.red .candle-body {
    background: #ff4655;
    box-shadow: 0 0 10px #ff465580;
}

/* =========================================
   GLOW EFFECT
========================================= */

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: glowMove 8s infinite alternate;
    z-index: 1;
    pointer-events: none;
}

.glow-one {
    width: 250px;
    height: 250px;
    background: #00e68a;
    top: 10%;
    left: 30%;
}

.glow-two {
    width: 300px;
    height: 300px;
    background: #007a4b;
    bottom: 0;
    right: 5%;
}

@keyframes glowMove {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(60px, -40px);
    }
}

/* =========================================
   GENERAL SECTIONS
========================================= */

.section {
    padding: 100px 10%;
    text-align: center;
}

.section h2,
.cta h2 {
    font-size: 38px;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* ABOUT */

.about {
    background: #070b09;
}

.about > p:last-child {
    max-width: 750px;
    margin: auto;
    line-height: 2;
    color: #aaaaaa;
    font-size: 14px;
}

/* =========================================
   FEATURES
========================================= */

.features {
    background: #0b120e;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.feature-card {
    background: #101c15;
    border: 1px solid #1e3c2c;
    border-radius: 20px;
    padding: 30px 20px;
    transition: 0.4s;
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: #00e68a;
    box-shadow: 0 10px 35px #00e68a15;
}

.icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

.feature-card p,
.tip p {
    color: #aaaaaa;
    font-size: 13px;
    line-height: 1.8;
}

/* =========================================
   CALCULATOR 50/30/20
========================================= */

.calculator-section {
    background: #0b0f12;
    text-align: center;
}

.calculator-intro {
    color: #94a3b8;
    font-size: 13px;
    margin-top: -10px;
}

.calc-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 35px;
}

.calc-container {
    background: #12181b;
    border: 1px solid #1f292d;
    border-radius: 16px;
    padding: 35px;
    width: 100%;
    max-width: 550px;
    text-align: left;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.calc-container h3 {
    font-size: 23px;
    margin-bottom: 5px;
    color: #ffffff;
}

.calc-subtitle {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    font-size: 13px;
    color: #00e676;
    margin-bottom: 10px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-prefix {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    font-weight: 700;
}

.calc-container input[type="number"] {
    width: 100%;
    padding: 14px 15px 14px 45px;
    background: #1a2327;
    border: 1px solid #2e3c42;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.calc-container input[type="number"]:focus {
    border-color: #00e676;
}

.calc-container input::placeholder {
    color: #64748b;
}

.result-item {
    margin-bottom: 23px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    margin-bottom: 10px;
}

.label-text {
    font-weight: 500;
    color: #ffffff;
}

.amount-text {
    font-weight: 700;
    color: #00e676;
    text-align: right;
    overflow-wrap: anywhere;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #1a2327;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    transition: width 0.5s ease-out;
    border-radius: 5px;
}

.needs .progress-fill {
    background: #ff5252;
}

.wants .progress-fill {
    background: #ffb142;
}

.savings .progress-fill {
    background: #00e676;
}

.calc-note {
    color: #77858c;
    font-size: 11px;
    line-height: 1.8;
    border-top: 1px solid #263238;
    padding-top: 18px;
    margin-top: 10px;
}

/* =========================================
   MONEY TIPS
========================================= */

.tips {
    background: #070b09;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.tip {
    text-align: left;
    padding: 30px;
    border-left: 2px solid #00e68a;
    background: #101812;
    border-radius: 10px;
    transition: 0.3s;
}

.tip:hover {
    transform: translateY(-8px);
    background: #14231a;
}

.tip span {
    font-size: 35px;
    color: #00e68a;
    font-weight: 800;
}

.tip h3 {
    margin: 15px 0;
}

/* =========================================
   CALL TO ACTION
========================================= */

.cta {
    text-align: center;
    padding: 100px 20px;

    background: linear-gradient(
        135deg,
        #0c2619,
        #07100c
    );
}

.cta .primary-btn {
    margin-top: 15px;
}

/* =========================================
   FOOTER
========================================= */

footer {
    padding: 40px 10%;
    text-align: center;
    background: #050806;
    border-top: 1px solid #13241a;
}

footer p {
    color: #777777;
    font-size: 12px;
    margin-top: 12px;
}

/* =========================================
   RESPONSIVE TABLET
========================================= */

@media (max-width: 1000px) {

    .navbar {
        padding: 20px 5%;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .hero {
        padding: 80px 6%;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   RESPONSIVE MOBILE
========================================= */

@media (max-width: 700px) {

    .navbar {
        padding: 18px 5%;
        flex-wrap: wrap;
        gap: 15px;
    }

    .logo {
        font-size: 21px;
    }

    .nav-links {
        display: none;
    }

    .nav-btn {
        padding: 9px 15px;
        font-size: 11px;
    }

    .hero {
        min-height: auto;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 55px;
        padding: 80px 6%;
    }

    .hero h1 {
        font-size: clamp(34px, 9vw, 48px);
    }

    .description {
        margin-left: auto;
        margin-right: auto;
        font-size: 13px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .money-card {
        width: 100%;
        max-width: 320px;
    }

    .feature-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 75px 6%;
    }

    .section h2,
    .cta h2 {
        font-size: 29px;
    }

    .calc-container {
        padding: 24px 18px;
    }

    .result-header {
        font-size: 11px;
    }

    .trading-chart {
        opacity: 0.30;
    }

    .candle {
        width: 7px;
    }

    .glow {
        filter: blur(80px);
    }
}

/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
