/* =========================================================
   Variables
   ========================================================= */

:root {
    --bg: #050807;
    --bg-secondary: #080d0a;

    --text: #f1f4f2;
    --text-muted: #8b9690;

    --border: rgba(112, 220, 111, 0.18);
    --border-light: rgba(255, 255, 255, 0.18);

    --accent: #70dc6f;
    --accent-dark: #01af00;

    --max-width: 1330px;
}


/* =========================================================
   Reset
   ========================================================= */

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

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(1, 175, 0, 0.035),
            transparent 45%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}

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

.site {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}


/* =========================================================
   Header
   ========================================================= */

.header {
    position: relative;
    z-index: 10;

    width: 100%;
    max-width: var(--max-width);

    height: 84px;

    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}

.header::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -1px;

    width: 100vw;
    height: 1px;

    transform: translateX(-50%);

    background: var(--border);
    z-index: -1;
}


/* Brand */

.brand {
    display: flex;
    align-items: center;
    gap: 15px;

    transition: opacity 0.2s ease;
}

.brand:hover {
    opacity: 0.8;
}

.logo {
    width: 57px;
    height: 57px;

    color: var(--accent);

    filter:
        drop-shadow(0 0 7px rgba(112, 220, 111, 0.25));
}

.brand-name {
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -1.2px;
}

.brand-name span {
    color: var(--accent);
}


/* Header navigation */

.nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav a {
    position: relative;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 0 24px;

    color: #b5bdb8;

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

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.nav a:not(:last-child)::after {
    content: "";

    position: absolute;

    right: 0;

    width: 1px;
    height: 17px;

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

.nav a:hover {
    color: var(--text);
}

.nav-icon {
    color: var(--accent);

    font-size: 19px;
    line-height: 1;
}


/* =========================================================
   Main
   ========================================================= */

.main {
    position: relative;

    flex: 1;

    min-height: 650px;

    overflow: hidden;
}


/* =========================================================
   Animated background
   ========================================================= */

.background {
    position: absolute;
    inset: 0;

    overflow: hidden;

    pointer-events: none;
}


/* Green glow */

.glow {
    position: absolute;

    width: 650px;
    height: 650px;

    border-radius: 50%;

    filter: blur(100px);

    opacity: 0.08;

    animation: glow 8s ease-in-out infinite alternate;
}

.glow-1 {
    top: 10%;
    right: 8%;

    background: var(--accent);
}

.glow-2 {
    bottom: -50%;
    left: 15%;

    background: var(--accent-dark);

    animation-delay: -4s;
}

@keyframes glow {
    from {
        transform: translate(0, 0) scale(0.9);
        opacity: 0.04;
    }

    to {
        transform: translate(-40px, 30px) scale(1.1);
        opacity: 0.09;
    }
}


/* Perspective grid */

.grid {
    position: absolute;

    left: -10%;
    right: -10%;
    bottom: -25%;

    height: 70%;

    opacity: 0.14;

    background-image:
        linear-gradient(
            rgba(112, 220, 111, 0.18) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(112, 220, 111, 0.18) 1px,
            transparent 1px
        );

    background-size: 60px 60px;

    transform:
        perspective(500px)
        rotateX(62deg);

    transform-origin: center bottom;

    animation: gridMove 8s linear infinite;
}

@keyframes gridMove {
    from {
        background-position:
            0 0,
            0 0;
    }

    to {
        background-position:
            0 60px,
            60px 0;
    }
}


/* Particles */

.particles {
    position: absolute;
    inset: 0;
}

.particles span {
    position: absolute;

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 8px var(--accent),
        0 0 16px rgba(112, 220, 111, 0.5);

    animation:
        particleFloat
        var(--duration, 7s)
        ease-in-out
        infinite alternate;
}

.particles span:nth-child(1) {
    top: 17%;
    left: 59%;
    --duration: 5s;
}

.particles span:nth-child(2) {
    top: 25%;
    left: 73%;
    --duration: 8s;
}

.particles span:nth-child(3) {
    top: 39%;
    left: 65%;
    --duration: 6s;
}

.particles span:nth-child(4) {
    top: 57%;
    left: 52%;
    --duration: 9s;
}

.particles span:nth-child(5) {
    top: 71%;
    left: 35%;
    --duration: 7s;
}

.particles span:nth-child(6) {
    top: 81%;
    left: 72%;
    --duration: 5s;
}

.particles span:nth-child(7) {
    top: 32%;
    left: 84%;
    --duration: 10s;
}

.particles span:nth-child(8) {
    top: 63%;
    left: 89%;
    --duration: 6s;
}

.particles span:nth-child(9) {
    top: 78%;
    left: 12%;
    --duration: 8s;
}

.particles span:nth-child(10) {
    top: 48%;
    left: 92%;
    --duration: 5s;
}

.particles span:nth-child(11) {
    top: 22%;
    left: 46%;
    --duration: 7s;
}

.particles span:nth-child(12) {
    top: 88%;
    left: 58%;
    --duration: 9s;
}

@keyframes particleFloat {
    from {
        transform: translateY(0);
        opacity: 0.25;
    }

    to {
        transform: translateY(-25px);
        opacity: 0.9;
    }
}


/* =========================================================
   Waves
   ========================================================= */

.waves {
    position: absolute;

    left: -5%;
    right: -5%;
    bottom: 0;

    height: 220px;

    opacity: 0.35;
}

.waves span {
    position: absolute;

    left: -10%;
    width: 120%;
    height: 100px;

    border-top: 1px solid rgba(112, 220, 111, 0.2);

    border-radius: 50%;

    transform: rotate(-3deg);

    animation: wave 8s ease-in-out infinite alternate;
}

.waves span:nth-child(1) {
    bottom: 60px;
}

.waves span:nth-child(2) {
    bottom: 30px;

    opacity: 0.45;

    animation-duration: 11s;
    animation-delay: -3s;
}

.waves span:nth-child(3) {
    bottom: 0;

    opacity: 0.3;

    animation-duration: 14s;
    animation-delay: -6s;
}

@keyframes wave {
    from {
        transform:
            translateX(-3%)
            rotate(-3deg)
            scaleY(1);
    }

    to {
        transform:
            translateX(3%)
            rotate(2deg)
            scaleY(1.4);
    }
}


/* =========================================================
   Hero
   ========================================================= */

.content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: var(--max-width);

    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    min-height: 650px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;
}


/* Hero text */

.hero-text {
    max-width: 700px;

    padding-bottom: 20px;
}

.hero h1 {
    margin-bottom: 28px;

    font-size: clamp(64px, 6vw, 92px);
    font-weight: 650;
    line-height: 0.95;

    letter-spacing: -5px;
}

.hero h1 span {
    color: var(--accent);

    text-shadow:
        0 0 30px rgba(112, 220, 111, 0.18);
}

.description {
    max-width: 610px;

    margin-bottom: 40px;

    color: var(--text-muted);

    font-family:
        "JetBrains Mono",
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   Buttons
   ========================================================= */

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.button {
    min-width: 150px;
    height: 54px;

    padding: 0 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    border: 1px solid rgba(180, 190, 185, 0.28);
    border-radius: 7px;

    color: #d5dbd7;

    background:
        rgba(10, 14, 12, 0.55);

    backdrop-filter: blur(8px);

    font-size: 15px;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    color: white;

    border-color: rgba(112, 220, 111, 0.6);

    background:
        rgba(112, 220, 111, 0.06);

    box-shadow:
        0 0 25px rgba(112, 220, 111, 0.08);

    transform: translateY(-2px);
}

.button-primary {
    color: var(--accent);

    border-color: var(--accent);

    box-shadow:
        inset 0 0 20px rgba(112, 220, 111, 0.03),
        0 0 20px rgba(112, 220, 111, 0.04);
}

.button-primary:hover {
    color: var(--accent);

    background:
        rgba(112, 220, 111, 0.1);

    border-color: var(--accent);

    box-shadow:
        0 0 25px rgba(112, 220, 111, 0.12);
}

.button-icon {
    color: var(--accent);

    font-size: 18px;
}


/* =========================================================
   Tesseract
   ========================================================= */

.tesseract-wrapper {
    position: relative;

    width: 520px;
    height: 520px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    animation: tesseractFloat 7s ease-in-out infinite;
}

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

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


/* Main SVG */

.tesseract {
    position: relative;
    z-index: 2;

    width: 390px;
    height: 390px;

    color: var(--accent);

    overflow: visible;

    filter:
        drop-shadow(0 0 7px rgba(112, 220, 111, 0.7))
        drop-shadow(0 0 25px rgba(112, 220, 111, 0.25));

    animation: tesseractRotate 18s linear infinite;
}

.cube-line {
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linejoin: round;

    vector-effect: non-scaling-stroke;
}

@keyframes tesseractRotate {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(3deg) scale(1.02);
    }

    50% {
        transform: rotate(-2deg) scale(1);
    }

    75% {
        transform: rotate(2deg) scale(1.02);
    }

    100% {
        transform: rotate(0deg);
    }
}


/* Orbit rings */

.orbit {
    position: absolute;

    width: 440px;
    height: 190px;

    border: 1px solid rgba(112, 220, 111, 0.16);

    border-radius: 50%;

    transform: rotate(-20deg);

    animation: orbit 12s linear infinite;
}

.orbit-1 {
    transform:
        rotate(-20deg)
        scaleY(0.65);
}

.orbit-2 {
    transform:
        rotate(70deg)
        scaleY(0.65);

    opacity: 0.45;

    animation-duration: 18s;
    animation-direction: reverse;
}

@keyframes orbit {
    from {
        transform:
            rotate(0deg)
            scaleY(0.65);
    }

    to {
        transform:
            rotate(360deg)
            scaleY(0.65);
    }
}


/* =========================================================
   Footer
   ========================================================= */

.footer {
    position: relative;
    z-index: 10;

    width: 100%;
    max-width: var(--max-width);

    min-height: 65px;

    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #858e89;

    border-top: 1px solid var(--border);
}

.footer::before {
    content: "";

    position: absolute;

    left: 50%;
    top: -1px;

    width: 100vw;
    height: 1px;

    transform: translateX(-50%);

    background: var(--border);

    z-index: -1;
}

.copyright {
    font-family:
        "JetBrains Mono",
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 13px;
}


/* Footer navigation */

.footer-nav {
    display: flex;
    align-items: center;
}

.footer-nav a {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 0 19px;

    color: #858e89;

    font-size: 13px;

    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--text);
}

.footer-nav a span {
    color: var(--accent);

    font-size: 16px;
}

.footer-nav i {
    width: 1px;
    height: 15px;

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


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1000px) {

    .header {
        height: 75px;
    }

    .nav a {
        padding: 0 13px;
    }

    .hero {
        min-height: 600px;
    }

    .tesseract-wrapper {
        width: 420px;
        height: 420px;
    }

    .tesseract {
        width: 320px;
        height: 320px;
    }

    .orbit {
        width: 370px;
    }

    .hero h1 {
        font-size: 65px;
    }

    .description {
        font-size: 14px;
    }
}


@media (max-width: 800px) {

    .header {
        padding: 0 18px;
    }

    .nav a {
        padding: 0 8px;
    }

    .nav a span.nav-icon {
        display: none;
    }

    .nav a {
        font-size: 13px;
    }

    .brand-name {
        font-size: 23px;
    }

    .logo {
        width: 48px;
        height: 48px;
    }

    .hero {
        min-height: auto;

        padding-top: 100px;
        padding-bottom: 80px;

        flex-direction: column;
        align-items: flex-start;
    }

    .hero-text {
        width: 100%;
    }

    .tesseract-wrapper {
        align-self: center;

        width: 420px;
        height: 420px;
    }

    .footer {
        padding-top: 20px;
        padding-bottom: 20px;

        flex-direction: column;
        gap: 18px;
    }
}


@media (max-width: 600px) {

    .header {
        height: auto;
        min-height: 70px;

        padding-top: 13px;
        padding-bottom: 13px;
    }

    .nav {
        gap: 12px;
    }

    .nav a {
        padding: 0;

        font-size: 0;
    }

    .nav a::after {
        display: none;
    }

    .nav a::before {
        content: attr(data-short);
    }

    .nav a .nav-icon {
        display: block;

        font-size: 20px;
    }

    .brand {
        gap: 10px;
    }

    .brand-name {
        font-size: 21px;
    }

    .logo {
        width: 43px;
        height: 43px;
    }

    .hero {
        padding-top: 80px;
    }

    .hero h1 {
        margin-bottom: 22px;

        font-size: clamp(52px, 15vw, 72px);

        letter-spacing: -3px;
    }

    .description {
        margin-bottom: 30px;

        font-size: 13px;
        line-height: 1.7;
    }

    .buttons {
        width: 100%;

        display: grid;
        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }

    .button {
        width: 100%;
        min-width: 0;

        height: 50px;

        padding: 0 10px;

        font-size: 13px;
    }

    .tesseract-wrapper {
        width: 320px;
        height: 320px;
    }

    .tesseract {
        width: 270px;
        height: 270px;
    }

    .orbit {
        width: 300px;
        height: 140px;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;

        row-gap: 10px;
    }

    .footer-nav a {
        padding: 0 10px;

        font-size: 12px;
    }
}


/* =========================================================
   Reduced motion
   ========================================================= */

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

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