html {
    --side-margin: 60px;
    --section-margin: 150px;
    --badge-margin: 20px;
    --letter-spacing: -2px;
    --body-bg-color: #f8f7f4;
    --yellow: #ffc919;
    --red: #fa3f2c;
}

body {
    display: grid;
    grid:   'header' auto
            'main' auto
            'logo' auto
            'about-us' auto
            'ai-powered-scoring-system' auto
            'emerging-value-stocks' auto
            'ai-insights' 900px
            'faq' auto
            'see-what-others-overlook' 940px
            'footer' auto
            ; 
    box-sizing: border-box;
    background-color: var(--body-bg-color);
    font-family: 'Instrument Sans', sans-serif;
    margin: 0;
    padding: 0;
}

/* side gradients */
#grad1 {
    position: absolute;
    width: 100%;
    height: 1400px;
    z-index: -1;
}
#grad1 .gradient-start {
    stop-opacity: 0.40;
}
#grad1 .gradient-end {
    stop-opacity: 0;
}
#grad1 #rg1 .gradient-start, #grad1 #rg1 .gradient-end {
    stop-color: var(--red);
}
#grad1 #rg2 .gradient-start, #grad1 #rg2 .gradient-end {
    stop-color: var(--yellow);
}

/* common */
a {
    text-decoration: none;
}
p {
    margin: 0;
}

/* header */
#header {
    grid-area: header;
}
#header a {
    color: #1e1e1e;
}
#header #header_row {
    margin: 20px var(--side-margin) 0 var(--side-margin);
    background-color: #fff;
    border-radius: 999px;
    display: grid;
    grid:   'header1 header2 header3' / 1fr auto 1fr; 
    align-items: center;
}
#header #header_row > div:nth-child(1) {
    grid-area: header1;
    margin-left: 45px;
}
#header #header_row > div:nth-child(2) {
    grid-area: header2;
}
#header #header_row > div:nth-child(3) {
    grid-area: header3;
    display: flex;
    justify-content: flex-end;
}
#header #header_row > div:nth-child(3) nav {
    padding: 10px 10px 10px 0;
}
.create-account-button {
    border: 1px solid black;
    border-radius: 2em;
    padding: 12px;
    text-align: center;
}
nav ul {
    display: flex;
    list-style-type: none;
    padding: 0;
}
nav ul li {
  margin-right: 30px;
}
nav ul li:last-child {
  margin-right: 0;
}

/* main */
#main {
    grid-area: main;
    padding: 100px 0 80px 0;
    text-align: center;
    box-sizing: border-box;
}
#main > div {
    margin-top: 20px;
}
#main > div:nth-child(3) {
    margin-top: 40px;
    box-sizing: border-box;
}
#laptop {
    filter: drop-shadow(8px 8px 15px rgba(0, 0, 0, 0.3));
}
#signup-now-button {
    border-radius: 2em;
    padding: 12px;
    color: #000;
    background-color: var(--yellow);
    text-align: center;
    box-sizing: border-box;
}
#signup-now-button svg {
    width: 22px;
    height: 15px;
    vertical-align: -2px;
}

/* laptop and phone */
#logo {
    grid-area: logo;
    padding: 50px 0 50px 0;
    box-sizing: border-box;
    position: relative;
    text-align: center;
}
#logo .mustache {
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
}
#logo .mustache, #logo .mustache svg {
    width: 100%;
    height: 816px;
}

/* about us */
#about-us {
    grid-area: about-us;
    margin: var(--section-margin) var(--side-margin) 0 var(--side-margin);
}
#about-us > div:nth-child(2) {
    margin-top: var(--badge-margin);
    display: flex;
}
#about-us > div:nth-child(2) > div {
    flex-basis: 50%;
}
#about-us p {
    font-size: 20px;
    font-style: italic;
    margin-top: 30px;
}
#about-us p:first-child {
    margin-top: 15px;
}


#ai-powered-scoring-system {
    grid-area: ai-powered-scoring-system;
    margin: var(--section-margin) var(--side-margin) 0 var(--side-margin);
    text-align: center;
}

#ai-powered-scoring-system > div:nth-child(2) {
    margin-top: var(--badge-margin)
}

#ai-powered-scoring-system > div:nth-child(3) {
    margin-top: 30px;
    display:flex;
    gap: 40px;
    position: relative;
}

/* overlay */
#ai-powered-scoring-system > div:nth-child(3)::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(rgba(250, 63, 44, 0.8), rgba(0, 0, 255, 0));
    filter: blur(300px);
    opacity: 0.4;
    z-index: -1;
}

#ai-powered-scoring-system > div:nth-child(3) > div {
    padding: 20px;
    background-color: #fff;
    text-align: left;
    border-radius: 30px;
}

#ai-powered-scoring-system > div:nth-child(3) > div > h2 {
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.4px;
}

#ai-powered-scoring-system > div:nth-child(3) > div > p {
    margin-top: 20px;
    color: #4d4d4d;
}

#ai-powered-scoring-system > div:nth-child(4) {
    margin-top: 40px;
}

.signup-free-button {
    border-radius: 2em;
    padding: 12px;
    color: #fff;
    background-color: var(--red);
    text-align: center;
}

.signup-free-button svg {
    width: 22px;
    height: 15px;
    vertical-align: -2px;
    fill: #fff;
}

#emerging-value-stocks {
    grid-area: emerging-value-stocks;
    margin: var(--section-margin) var(--side-margin) var(--section-margin) var(--side-margin);
    position: relative;
}
#emerging-value-stocks::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 75%;
    height: 100%;
    border-radius: 50%;
    transform: translate(18%, 75%);
    background: radial-gradient(var(--yellow), #fff);
    filter: blur(150px);
    opacity: 0.30;
    z-index: -1;
}
#emerging-value-stocks > div:nth-child(2) {
    margin-top: var(--badge-margin);
    display: flex;
    flex-direction: row;
}
#emerging-value-stocks > div:nth-child(2) > div {
    flex-basis: 50%;
}
#emerging-value-stocks > div:nth-child(2) > div:nth-child(2) {
    color: #4b4645;
}
#emerging-value-stocks div > p:first-child {
    margin-top: 15px;
}
#emerging-value-stocks div > p {
    margin-top: 30px;
    font-size: 18px;
}

/* stocks */
#emerging-value-stocks #stocks {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    mask-image: linear-gradient(90deg, transparent, white 20% 80%, transparent);
}
#emerging-value-stocks #stocks > div {
    font-size: 18px;
    font-weight: 600;
    color: #4b4b4a;
    background-color: #fff;
    padding: 14px;
    border: 1px solid #c9c9c6;
    border-radius: 15px;
    display: flex;
    flex-flow: row;
    gap: 10px;
}
#emerging-value-stocks #stocks > div > div {
    flex: 1;
}
#emerging-value-stocks #stocks > div > div:nth-child(2) {
    text-align: right;
}

#ai-insights {
    grid-area: ai-insights;
    padding: 600px var(--side-margin) 0 var(--side-margin);
    background: linear-gradient(to right, var(--red), var(--yellow)), url("/images/chart1.png");
    background-blend-mode: hard-light;
}

#ai-insights > div:nth-child(2) {
    margin-top: var(--badge-margin);
    color: #fff;
    display: flex;
}
#ai-insights > div:nth-child(2) > div {
    flex-basis: 50%;
}

#ai-insights > div:nth-child(2) > div:nth-child(2) {
    color: #fed2b8;
}

#ai-insights p {
    font-size: 20px;
    margin-bottom: 20px;
}

#ai-insights p:last-child {
    margin-bottom: 0;
}

#faq {
    grid-area: faq;
    margin: var(--section-margin) var(--side-margin) 0 var(--side-margin);
    text-align: center;
    position: relative;
}
#faq a {
    display: inline-flex;
    width: 60px;
    height: 60px;
    justify-content: center;
    align-items: center;
    background-color: #fef5f4;
    border-radius: 50%;
}
#faq::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: translateY(-25%);
    background: radial-gradient(var(--red), #fff);
    filter: blur(150px);
    opacity: 0.20;
    z-index: -1;
}

#faq::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: translateY(25%);
    background: radial-gradient(var(--red), #fff);
    filter: blur(150px);
    opacity: 0.25;
    z-index: -1;
}

#faq > div:nth-child(2) {
    margin-top: var(--badge-margin)
}

#faq > div:nth-child(3) {
    margin-top: 40px;
    background-color: #fff;
    text-align: left;
    border: 1px solid #cecece;
    border-radius: 25px;
}
#faq > div:nth-child(3) > div {
    display: flex;
    flex-flow: row;
    align-items: center;
    margin: 20px 0;
    padding: 0 20px 0 20px;
}
#faq > div:nth-child(3) > div > div:nth-child(2) {
    flex: 1;
    text-align: right;
}
#faq > div:nth-child(3) > div > div > h2 {
    font-size: 26px;
    font-weight: 500;
}
#faq > div:nth-child(3) > hr {
    height: 1px; 
    border: none; 
    background-color: #cecece;
}
#faq > div:nth-child(3) > p {
    color: #4d4d4d;
    padding: 0 100px 20px 20px;
}

#see-what-others-overlook {
    grid-area: see-what-others-overlook;
    margin: var(--section-margin) 0 0 0;
    text-align: center;
    background-image: url("/images/chart2.png");
    background-repeat: no-repeat;
}

#see-what-others-overlook > div:nth-child(2) {
    margin-top: 20px;
    color: #4b4847;
}
#see-what-others-overlook > div:nth-child(3) {
    margin-top: 40px;
    display: flex;
    flex-flow: row;
    gap: 15px;  
    align-items: center;
    justify-content: center;
}

#see-what-others-overlook input {
    width: 400px; 
    height: 48px; 
    padding: 20px; 
    border-radius: 2em;
    border: 1px solid #d8d8d8;
    font-size: 16px;
    box-sizing: border-box; 
}



.red-badge {
    border: 1px solid var(--red);
    border-radius: 999px;
    padding: 10px 18px 10px 18px;
    color: var(--red);
    font-weight: 500;
    background-color: transparent;
    text-align: center;
}

.white-badge {
    border: 1px solid #fff;
    border-radius: 2em;
    padding: 10px 18px 10px 18px;
    color: #fff;
    font-weight: 500;
    background-color: transparent;
    text-align: center;
}
.white {
    color: #fff;
}

.cap1 {
    font-size: 50px;
    font-weight: 500;
    letter-spacing: var(--letter-spacing);
}

.cap1 em {
    font-weight: 100;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
}

.cap2 {
    font-size: 50px;
    /* font-weight: 200; */
    letter-spacing: var(--letter-spacing);
}

#footer {
    grid-area: footer;
    background-color: #171717;
}
#footer > div {
    margin-left: var(--side-margin);
    margin-right: var(--side-margin);
}
#footer > div:nth-child(1) {
    margin-top: 40px;
    margin-bottom: 40px;
}
#footer > div:nth-child(2) {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 10px; 
}
#footer > div:nth-child(2) > div:nth-child(1) > p {
    font-size: 18px;
}
#footer > div:nth-child(2) > div:nth-child(1) > ul {
    margin-top: 60px;
    display: flex;
    list-style-type: none;
    padding: 0;
}
#footer > div:nth-child(2) > div:nth-child(1) > ul > li {
    padding-right: 60px;
}
#footer > div:nth-child(2) > div:nth-child(5) img {
    vertical-align: middle;
    margin-right: 5px;
}
#footer h2 {
    color: #fff;
    margin: 0 0 20px 0;
    padding: 0;
    font-weight: 500;
}
#footer p {
    color: #b5b4b2;
    padding: 5px 0 5px 0;
}
#footer hr {
    height: 1px; 
    border: none; 
    background-color: #3b3b3b;
}
#footer a {
    color: #b5b4b2;
}
#copyright {
    padding: 20px 0 20px 0;
}
