:root {
    --navy: #172b4d;
    --blue: #438cff;
    --cyan: #43c6db;
    --green: #4fd1a1;
    --text: #172b4d;
    --muted: #7185a6;
    --border: #eaf0f7;
    --background: #ffffff;
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

body {
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    font-family: 'Instrument Sans', system-ui, sans-serif;
    color: var(--text);
    background: var(--background);
    overflow: hidden;
    overscroll-behavior: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    position: relative;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* ---------------------------------
           Background decorations
        --------------------------------- */

.background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.background::before {
    content: "";
    position: absolute;
    width: 700px;
    height: 500px;
    top: 50px;
    right: -220px;

    background:
        radial-gradient(circle,
            rgba(67, 140, 255, 0.08) 0%,
            rgba(67, 140, 255, 0) 70%);
}

.background::after {
    content: "";
    position: absolute;
    width: 700px;
    height: 500px;
    bottom: -250px;
    left: -250px;

    background:
        radial-gradient(circle,
            rgba(79, 209, 161, 0.08) 0%,
            rgba(79, 209, 161, 0) 70%);
}

/* ---------------------------------
           Container
        --------------------------------- */

.site-container {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding-inline: clamp(16px, 4vw, 24px);
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

/* ---------------------------------
           Header
        --------------------------------- */

header {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-block: clamp(8px, 1.6vh, 20px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.7px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    position: relative;
}

.brand-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 44px;
    color: #8191ad;
    font-size: clamp(11px, 1.4vh, 14px);
    min-width: 0;
}

.nav-tagline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.nav-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--green);
}

/* ---------------------------------
           Hero
        --------------------------------- */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(12px, 2vw, 40px);
    padding: clamp(4px, 1.4vh, 24px) 0;
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.hero-content {
    min-width: 0;
    min-height: 0;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 8px 16px;
    border-radius: 30px;

    background: #f0f6ff;
    color: var(--blue);

    font-size: 14px;
    font-weight: 500;

    margin-bottom: clamp(8px, 1.6vh, 20px);
}

.welcome-badge svg {
    width: 16px;
    height: 16px;
}

h1 {
    font-size: clamp(1.6rem, 2.2vh + 1.6vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 700;
    margin-bottom: clamp(8px, 1.6vh, 20px);
    overflow-wrap: anywhere;
}

.gradient-text {
    display: block;

    background:
        linear-gradient(100deg,
            #438cff 0%,
            #3ca9e9 45%,
            #4fd1a1 100%);

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.description {
    max-width: 555px;

    color: var(--muted);
    font-size: clamp(13px, 1.2vh + 0.5vw, 18px);
    line-height: 1.45;
    font-weight: 400;

    margin-bottom: clamp(8px, 1.6vh, 20px);
}

.gradient-line {
    width: 54px;
    height: 5px;
    border-radius: 10px;

    background:
        linear-gradient(90deg,
            var(--blue),
            var(--green));

    margin-bottom: clamp(8px, 1.6vh, 20px);
}

/* ---------------------------------
           Features
        --------------------------------- */

.features {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #7185a6;
    font-size: clamp(11px, 1.3vh, 14px);
    white-space: nowrap;
}

.feature svg {
    width: 18px;
    height: 18px;
    stroke: #7590b8;
}

.feature-separator {
    width: 1px;
    height: 18px;
    background: #dce5f0;
    margin: 0 18px;
}

/* ---------------------------------
           Illustration
        --------------------------------- */

.hero-visual {
    position: relative;
    width: min(100%, 36vh, 520px);
    aspect-ratio: 520 / 400;
    max-height: 100%;
    margin-inline: auto;
    min-width: 0;
    min-height: 0;
}

.visual-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.visual-background {
    position: absolute;
    width: 92%;
    height: 72%;
    top: 12%;
    left: 4%;
    border-radius: 50%;
    background:
        linear-gradient(135deg,
            rgba(231, 241, 255, 0.9),
            rgba(239, 250, 247, 0.65));
    transform: rotate(-10deg);
}

.cloud {
    position: absolute;
    opacity: 0.75;
}

.cloud.one {
    top: 14%;
    left: 6%;
}

.cloud.two {
    top: 20%;
    right: 4%;
}

.cloud svg {
    width: clamp(48px, 8vw, 85px);
    height: auto;
    display: block;
}

.laptop {
    position: absolute;
    left: 50%;
    top: 16%;
    width: 82%;
    max-width: 100%;
    transform: translateX(-50%);
    z-index: 2;
    filter: drop-shadow(0 25px 30px rgba(40, 72, 110, 0.12));
}

.laptop-screen {
    width: 74%;
    aspect-ratio: 350 / 220;
    height: auto;
    margin: 0 auto;
    border: clamp(5px, 1.6vw, 9px) solid #546d94;
    border-bottom-width: clamp(7px, 2vw, 12px);
    border-radius: 13px 13px 5px 5px;
    background: #f8fbff;
    transform: perspective(700px) rotateY(-4deg);
    overflow: hidden;
    box-shadow: inset 0 0 0 2px #dce6f3;
}

.screen-header {
    height: 14%;
    min-height: 16px;
    background: #eef4fb;
    display: flex;
    align-items: center;
    padding-left: 3%;
    gap: 5px;
}

.screen-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9fc3dc;
}

.screen-content {
    padding: 6%;
    display: grid;
    grid-template-columns: minmax(0, 105px) minmax(0, 1fr);
    gap: 8%;
}

.screen-image {
    height: auto;
    aspect-ratio: 1;
    border-radius: 9px;
    background:
        linear-gradient(135deg,
            #8fc3ff,
            #6dd4b1);
    position: relative;
    overflow: hidden;
}

.screen-image::before {
    content: "";
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    top: 18px;
    right: 18px;
}

.screen-image::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 70px;

    left: -15px;
    bottom: -25px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.4);
}

.screen-lines {
    padding-top: 7px;
}

.screen-line {
    height: 9px;
    border-radius: 20px;
    background: #d9e5f3;
    margin-bottom: 13px;
}

.screen-line.large {
    width: 90px;
    background: #b8cce4;
}

.screen-line.medium {
    width: 120px;
}

.screen-line.small {
    width: 75px;
}

.laptop-base {
    width: 94%;
    height: clamp(8px, 2.2vw, 20px);
    margin: -1px auto 0;
    background:
        linear-gradient(180deg,
            #a7bad1,
            #7187a5);
    border-radius: 0 0 14px 14px;
    transform: perspective(700px) rotateX(20deg);
}

.laptop-bottom {
    width: 100%;
    max-width: 100%;
    height: 8px;
    margin: -2px auto 0;
    background: #d4dfec;
    border-radius: 50%;
}

/* ---------------------------------
           Plant
        --------------------------------- */

.plant {
    position: absolute;
    right: 3%;
    bottom: 14%;
    z-index: 3;
    width: 14%;
    max-width: 70px;
}

.plant-pot {
    width: 100%;
    aspect-ratio: 1;
    background:
        linear-gradient(135deg,
            #dce6ed,
            #b7c9d5);
    clip-path: polygon(8% 0,
            92% 0,
            80% 100%,
            20% 100%);
}

.leaf {
    position: absolute;
    width: 48%;
    height: 100%;
    border-radius: 100% 0 100% 0;
    background:
        linear-gradient(145deg,
            #62d7ae,
            #37b98c);
    transform-origin: bottom center;
}

.leaf.one {
    left: 34%;
    bottom: 72%;
    transform: rotate(-20deg);
}

.leaf.two {
    left: 58%;
    bottom: 76%;
    transform: rotate(20deg);
}

.leaf.three {
    left: 12%;
    bottom: 64%;
    transform: rotate(-45deg) scale(0.75);
}

/* ---------------------------------
           Bottom section
        --------------------------------- */

.bottom-section {
    position: relative;
    flex: 0 0 auto;
    border-top: 1px solid var(--border);
    text-align: center;
    padding: clamp(10px, 2vh, 28px) 8px;
    overflow: hidden;
}

.bottom-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 100%,
            rgba(67, 140, 255, 0.11),
            transparent 50%),
        radial-gradient(ellipse at 80% 100%,
            rgba(79, 209, 161, 0.11),
            transparent 50%);
}

.bottom-label {
    position: relative;
    z-index: 2;
    color: var(--blue);
    font-size: clamp(11px, 1.2vh, 13px);
    font-weight: 700;
    letter-spacing: 1.8px;
    margin-bottom: clamp(4px, 0.8vh, 10px);
}

.bottom-title {
    position: relative;
    z-index: 2;

    font-size: clamp(1.1rem, 1.6vh + 0.6vw, 1.7rem);
    font-weight: 600;
    letter-spacing: -0.8px;
    margin-bottom: clamp(4px, 0.8vh, 10px);
}

.bottom-text {
    position: relative;
    z-index: 2;

    color: var(--muted);
    font-size: clamp(13px, 1.3vh, 15px);
}

/* ---------------------------------
           Responsive
        --------------------------------- */

@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        justify-items: center;
        height: 100%;
    }

    .hero-content {
        text-align: center;
        width: 100%;
    }

    .welcome-badge,
    .description,
    .gradient-line {
        margin-inline: auto;
    }

    .features {
        justify-content: center;
    }

    .hero-visual {
        width: auto;
        height: 100%;
        max-width: min(100%, 280px);
        max-height: 100%;
    }
}

@media (max-width: 720px) {
    header {
        gap: 8px 16px;
    }

    .nav {
        gap: 0;
        font-size: 12px;
    }

    .brand {
        font-size: 20px;
    }

    .feature-separator {
        margin: 0 10px;
    }
}

/* ---------------------------------
           Accessibility
        --------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
