/* =====================================================
   INVESTOBLOCK MARKET
   MAIN STYLE SHEET
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');


/* =========================
   GLOBAL
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #07111f;
    color: #ffffff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

section {
    padding: 90px 7%;
}


/* =========================
   HEADER
   ========================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 7%;

    background: rgba(4, 12, 23, 0.96);
    border-bottom: 1px solid rgba(255,255,255,0.08);

    z-index: 1000;
}

.logo a {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}

.logo a::first-letter {
    color: #f4b942;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    color: #c8d0dc;
    font-size: 14px;
    transition: 0.3s;
}

nav a:hover {
    color: #f4b942;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.header-buttons a {
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.header-buttons a:first-child {
    border: 1px solid #f4b942;
    color: #f4b942;
}

.header-buttons a:last-child {
    background: #f4b942;
    color: #07111f;
}


/* =========================
   HERO
   ========================= */

#home {
    min-height: 100vh;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;

    padding-top: 150px;

    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(244,185,66,0.12),
            transparent 35%
        ),
        #07111f;
}

.hero-content span,
#plans > div:first-child span,
#calculator > div:first-child span,
#why-us > div:first-child span,
#contact span {
    color: #f4b942;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-content h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    margin: 20px 0;
}

.hero-content p {
    max-width: 620px;
    color: #aeb8c7;
    font-size: 17px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-buttons a {
    padding: 14px 25px;
    border-radius: 7px;
    font-weight: 700;
}

.hero-buttons a:first-child {
    background: #f4b942;
    color: #07111f;
}

.hero-buttons a:last-child {
    border: 1px solid #38475c;
    color: #ffffff;
}


/* =========================
   PORTFOLIO CARD
   ========================= */

.portfolio-card {
    background: linear-gradient(
        145deg,
        #101e31,
        #0a1422
    );

    border: 1px solid rgba(244,185,66,0.2);
    border-radius: 20px;

    padding: 35px;

    box-shadow: 0 25px 70px rgba(0,0,0,0.35);
}

.portfolio-card h3 {
    color: #9da9b8;
    font-size: 15px;
}

.portfolio-card h2 {
    font-size: 40px;
    margin: 15px 0 5px;
}

.portfolio-card p {
    color: #6ee7a0;
}

.chart {
    margin-top: 30px;
    height: 180px;
}

.chart svg {
    width: 100%;
    height: 100%;
    color: #f4b942;
}


/* =========================
   INTRO
   ========================= */

section > div:first-child {
    margin-bottom: 45px;
}

section > div:first-child h2 {
    font-size: 38px;
    margin: 10px 0;
}

section > div:first-child p {
    color: #9eabba;
    max-width: 650px;
}


/* =========================
   STATISTICS
   ========================= */

#statistics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;

    padding-top: 45px;
    padding-bottom: 45px;

    background: #0b1728;
}

#statistics div {
    text-align: center;
    padding: 25px;
}

#statistics h3 {
    color: #f4b942;
    font-size: 32px;
}

#statistics p {
    color: #9da9b8;
}


/* =========================
   MARKETS
   ========================= */

#markets {
    background: #07111f;
}

#markets > div:nth-child(2) {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;

    background: #0b1728;
    border-radius: 12px;
    overflow: hidden;
}

th,
td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #1c2a3d;
}

th {
    color: #8996a7;
    font-size: 13px;
}

td {
    color: #dce3ec;
}

td i {
    color: #f4b942;
    margin-right: 10px;
}

td:nth-child(3) {
    color: #5ee99a;
}

td a {
    display: inline-block;
    padding: 8px 15px;

    border: 1px solid #f4b942;
    border-radius: 5px;

    color: #f4b942;
    font-size: 13px;
}


/* =========================
   INVESTMENT PLANS
   ========================= */

#plans {
    background: #0a1525;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

#plans > div:first-child {
    grid-column: 1 / -1;
}

#plans > div:not(:first-child):not(:last-child) {
    background: #101e31;
    border: 1px solid #1d3047;
    border-radius: 15px;
    padding: 35px;
    position: relative;
}

#plans > div:nth-child(3) {
    border-color: #f4b942;
}

#plans h3 {
    font-size: 23px;
    margin-bottom: 10px;
}

#plans h2 {
    color: #f4b942;
    font-size: 42px;
    margin: 10px 0;
}

#plans p {
    color: #96a4b5;
}

#plans hr {
    border: 0;
    border-top: 1px solid #26364a;
    margin: 20px 0;
}

#plans ul {
    margin-bottom: 25px;
}

#plans li {
    margin: 10px 0;
    color: #c4ceda;
}

#plans li::before {
    content: "✓";
    color: #f4b942;
    margin-right: 10px;
}

#plans a {
    display: inline-block;
    width: 100%;
    padding: 13px;

    text-align: center;

    border: 1px solid #f4b942;
    border-radius: 6px;

    color: #f4b942;
}

#plans > div:nth-child(3) a {
    background: #f4b942;
    color: #07111f;
}

#plans > div:last-child {
    grid-column: 1 / -1;
    color: #8e9aaa;
    font-size: 12px;
}


/* =========================
   CALCULATOR
   ========================= */

#calculator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.calculator-box {
    background: #101e31;
    border: 1px solid #22354d;
    padding: 35px;
    border-radius: 15px;
}

.calculator-box label {
    display: block;
    margin: 15px 0 7px;
    color: #b7c2d0;
}

.calculator-box input,
.calculator-box select {
    width: 100%;
    padding: 14px;

    background: #07111f;
    border: 1px solid #304259;
    border-radius: 6px;

    color: #ffffff;
    outline: none;
}

.calculator-box button {
    width: 100%;
    margin-top: 20px;
    padding: 14px;

    border: 0;
    border-radius: 6px;

    background: #f4b942;
    color: #07111f;

    font-weight: 700;
    cursor: pointer;
}

.calculator-result {
    margin-top: 25px;
    padding: 20px;
    background: #07111f;
    border-radius: 8px;
}

.calculator-result p {
    margin: 8px 0;
    color: #aab6c5;
}

.calculator-result strong {
    color: #ffffff;
}

.calculator-box small {
    display: block;
    margin-top: 15px;
    color: #778598;
}


/* =========================
   WHY US
   ========================= */

#why-us {
    background: #0a1525;
}

#why-us > div:nth-child(2) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

#why-us article {
    background: #101e31;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #1e3047;
}

#why-us article i {
    color: #f4b942;
    font-size: 28px;
    margin-bottom: 20px;
}

#why-us article h3 {
    margin-bottom: 10px;
}

#why-us article p {
    color: #96a4b5;
}


/* =========================
   CALL TO ACTION
   ========================= */

#contact {
    text-align: center;
    background:
        linear-gradient(
            rgba(7,17,31,0.9),
            rgba(7,17,31,0.9)
        );
}

#contact > div {
    margin: auto;
    max-width: 750px;
}

#contact h2 {
    font-size: 45px;
    margin: 15px 0;
}

#contact p {
    color: #a5b0bf;
    margin-bottom: 25px;
}

#contact a {
    display: inline-block;
    padding: 14px 25px;
    background: #f4b942;
    color: #07111f;
    border-radius: 6px;
    font-weight: 700;
}


/* =========================
   FOOTER
   ========================= */

footer {
    background: #040b14;
    padding: 70px 7% 25px;

    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

footer h2 {
    margin-bottom: 15px;
}

footer h3 {
    color: #f4b942;
    margin-bottom: 15px;
}

footer p {
    color: #8795a7;
}

footer a {
    display: block;
    color: #9da9b8;
    margin: 8px 0;
}

footer a:hover {
    color: #f4b942;
}

footer > div:nth-last-child(2),
footer > div:last-child {
    grid-column: 1 / -1;
}

footer > div:nth-last-child(2) {
    border-top: 1px solid #182536;
    padding-top: 20px;
}

footer > div:last-child {
    border-top: 1px solid #182536;
    padding-top: 20px;
    text-align: center;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 900px) {

    header {
        padding: 0 5%;
    }

    nav {
        display: none;
    }

    .header-buttons a:first-child {
        display: none;
    }

    #home {
        grid-template-columns: 1fr;
        padding-top: 130px;
    }

    #statistics {
        grid-template-columns: repeat(2, 1fr);
    }

    #plans {
        grid-template-columns: 1fr;
    }

    #plans > div:first-child,
    #plans > div:last-child {
        grid-column: auto;
    }

    #calculator {
        grid-template-columns: 1fr;
    }

    #why-us > div:nth-child(2) {
        grid-template-columns: repeat(2, 1fr);
    }

    footer {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 600px) {

    section {
        padding: 65px 5%;
    }

    .logo a {
        font-size: 18px;
    }

    .header-buttons a:last-child {
        padding: 8px 12px;
        font-size: 11px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .portfolio-card {
        padding: 25px;
    }

    #statistics {
        grid-template-columns: 1fr 1fr;
    }

    #statistics h3 {
        font-size: 25px;
    }

    #why-us > div:nth-child(2) {
        grid-template-columns: 1fr;
    }

    footer {
        grid-template-columns: 1fr;
    }

    footer > div:nth-last-child(2),
    footer > div:last-child {
        grid-column: auto;
    }
}