@font-face {
    font-family: 'Space Grotesk';
    src: url("../fonts/SpaceGrotesk-Variable.25ea4a783c12.woff2") format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url("../fonts/JetBrainsMono-Variable.570751c5f8b4.woff2") format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AlienLeague';
    src: url("/static/fonts/AlienLeagueBold-1WRj.aea3183d83e4.otf") format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: clamp(16px, 15px + 0.25vw, 18px);
    line-height: 1.65;
    background: #060d0a;
    color: #8fa585;
    margin: 0;
    min-height: 100vh;
}

::selection {
    background: rgba(74, 222, 128, 0.3);
    color: #d7e4d0;
}

:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 3px;
}

html {
    scrollbar-color: rgba(74, 222, 128, 0.25) #060d0a;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #060d0a;
}

::-webkit-scrollbar-thumb {
    background: rgba(74, 222, 128, 0.2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 222, 128, 0.35);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 20, 0, 0.02) 2px,
        rgba(0, 20, 0, 0.02) 4px
    );
}

.hero-viewport {
    height: calc(25vh + 17rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 1.75rem;
    padding: 0 20px 2.5rem;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    z-index: 5;
}

.hero-title {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: clamp(1.25rem, 1rem + 2.2vw, 2.3rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #d7e4d0;
    text-shadow: 0 0 24px rgba(74, 222, 128, 0.25);
    margin: 0;
    min-height: 1.4em;
}

.cursor {
    display: inline-block;
    width: 0.55em;
    height: 1.05em;
    margin-left: 0.15em;
    background: #4ade80;
    vertical-align: text-bottom;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
    animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-cta {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    color: #4ade80;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 2px;
    padding: 12px 24px;
    border: 1px solid rgba(74, 222, 128, 0.35);
    background: rgba(10, 22, 15, 0.5);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, text-shadow 0.3s ease;
}

.hero-cta:hover {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.7);
    box-shadow: 0 0 24px rgba(74, 222, 128, 0.15);
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.lunis {
    position: fixed;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.ship {
    position: absolute;
    top: 20%;
    left: 78%;
    width: 30%;
    z-index: -1;
    transform: rotate(-5deg);
    opacity: 0.92;
}

.ship img {
    width: 100%;
    height: auto;
    display: block;
}

.moon-background {
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    background-image: url("../2k_moon.833cdd47d60b.jpg");
    background-repeat: repeat-x;
    background-size: 200% 100%;
    animation: moonRotation 100s linear infinite;
    transform-origin: center;
    box-shadow:
        inset -10px 8px 6px -5px rgba(200, 230, 200, 0.7),
        inset 20px -20px 40px 30px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(100, 200, 120, 0.15),
        0 0 100px rgba(80, 180, 100, 0.08);
}

@keyframes moonRotation {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.star {
    position: absolute;
    width: 1px;
    height: 1px;
    background: rgba(180, 210, 180, 0.6);
    animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    padding: 10px 0;
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(6, 13, 10, 0.75);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(74, 222, 128, 0.08);
}

.logo {
    font-family: 'AlienLeague', sans-serif;
    color: #4ade80;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.25);
    animation: logoFlicker 9s infinite;
}

@keyframes logoFlicker {
    0%, 91%, 92%, 93.5%, 100% { opacity: 1; }
    91.5% { opacity: 0.45; }
    93% { opacity: 0.6; }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.tagline {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    color: #6a7a62;
    font-size: 0.8rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

nav ul li a {
    font-family: 'AlienLeague', sans-serif;
    color: #6a7a62;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav ul li a:hover {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.2);
}

.space {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.mail-icon {
    font-size: 24px;
    text-decoration: none;
    color: #6a7a62;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.mail-icon:hover {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.2);
}

nav ul li:last-child {
    display: flex;
    align-items: center;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 0;
    position: relative;
    z-index: 10;
    text-align: left;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, rgba(6, 13, 10, 0) 0px, rgba(6, 13, 10, 0.95) 80px);
}

main {
    margin-bottom: 60px;
    flex: 1;
}

section {
    margin-bottom: 50px;
}

section h2 {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
    font-weight: 500;
    color: #4ade80;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(74, 222, 128, 0.1);
}

section p {
    font-size: 1.05em;
    color: #8fa585;
    margin-bottom: 15px;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.services .service-item {
    position: relative;
    background: rgba(10, 22, 15, 0.7);
    padding: 25px;
    border-radius: 0;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 222, 128, 0.08);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-item::before,
.service-item::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    pointer-events: none;
    border-color: rgba(74, 222, 128, 0.45);
    border-style: solid;
    transition: border-color 0.3s ease;
}

.service-item::before {
    top: -1px;
    left: -1px;
    border-width: 1px 0 0 1px;
}

.service-item::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 1px 1px 0;
}

.service-item:hover {
    transform: translateY(-2px);
    background: rgba(15, 30, 20, 0.8);
    border-color: rgba(74, 222, 128, 0.3);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.08), inset 0 0 20px rgba(74, 222, 128, 0.02);
}

.service-item:hover::before,
.service-item:hover::after {
    border-color: rgba(74, 222, 128, 0.8);
}

.service-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.service-item h3 {
    font-size: 1.1em;
    color: #b4c8ac;
    margin: 0;
    font-weight: 500;
}

.status {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    color: rgba(74, 222, 128, 0.7);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.8);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.service-item p {
    font-size: 0.95em;
    color: #7d8f74;
    margin-bottom: 0;
}

section.contact {
    background: rgba(10, 22, 15, 0.7);
    padding: 30px;
    border-radius: 4px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 222, 128, 0.08);
}

section.contact a {
    color: #4ade80;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s, text-shadow 0.3s;
}

section.contact a:hover {
    color: #86efac;
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.2);
}

.contact-dialog {
    width: min(480px, calc(100vw - 32px));
    box-sizing: border-box;
    padding: 30px;
    overflow: visible;
    background: rgba(10, 22, 15, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #8fa585;
    border: 1px solid rgba(74, 222, 128, 0.15);
    border-radius: 0;
    box-shadow: 0 0 40px rgba(74, 222, 128, 0.08);
}

.contact-dialog::before,
.contact-dialog::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    pointer-events: none;
    border-color: rgba(74, 222, 128, 0.6);
    border-style: solid;
}

.contact-dialog::before {
    top: -1px;
    left: -1px;
    border-width: 1px 0 0 1px;
}

.contact-dialog::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 1px 1px 0;
}

.contact-dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.contact-dialog form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-dialog h2 {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
    font-weight: 500;
    color: #4ade80;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(74, 222, 128, 0.1);
}

.contact-dialog label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6a7a62;
}

.contact-dialog input,
.contact-dialog textarea {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: normal;
    color: #d7e4d0;
    background: rgba(6, 13, 10, 0.8);
    border: 1px solid rgba(74, 222, 128, 0.12);
    border-radius: 0;
    padding: 10px 12px;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-dialog input:focus,
.contact-dialog textarea:focus {
    outline: none;
    border-color: rgba(74, 222, 128, 0.5);
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.12);
}

.contact-dialog input:-webkit-autofill,
.contact-dialog input:-webkit-autofill:focus {
    -webkit-text-fill-color: #d7e4d0;
    caret-color: #d7e4d0;
    -webkit-box-shadow: 0 0 0 1000px #08110c inset;
    transition: background-color 9999s;
}

.contact-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-close {
    position: absolute;
    top: -6px;
    right: -6px;
    background: none;
    border: none;
    color: #6a7a62;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s;
}

.contact-close:hover {
    color: #4ade80;
}

.contact-submit {
    align-self: flex-end;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #4ade80;
    background: rgba(10, 22, 15, 0.5);
    border: 1px solid rgba(74, 222, 128, 0.35);
    border-radius: 0;
    padding: 12px 24px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, text-shadow 0.3s ease;
}

.contact-submit:hover:not(:disabled) {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.7);
    box-shadow: 0 0 24px rgba(74, 222, 128, 0.15);
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.contact-submit:disabled {
    opacity: 0.5;
    cursor: wait;
}

.contact-status {
    margin: 0;
    min-height: 1.6em;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.contact-status.success {
    color: #4ade80;
}

.contact-status.error {
    color: #f87171;
}

footer {
    text-align: center;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    color: #44543c;
    font-size: 0.8em;
    letter-spacing: 1.5px;
    padding-top: 40px;
    padding-bottom: 40px;
    border-top: 1px solid rgba(74, 222, 128, 0.06);
}

@media (prefers-reduced-motion: reduce) {
    .moon-background,
    .star,
    .logo,
    .dot,
    .cursor {
        animation: none !important;
    }
}

@media screen and (max-width: 768px) {
    .moon-background {
        width: 15rem;
        height: 15rem;
    }

    .hero-viewport {
        height: calc(25vh + 14rem);
        gap: 1.4rem;
        padding-bottom: 2rem;
    }

    nav {
        flex-direction: column;
        padding: 10px;
    }

    nav ul {
        margin-top: 10px;
    }

    .container {
        padding: 60px 20px 40px;
    }
}

@media screen and (max-width: 480px) {
    .moon-background {
        width: 12rem;
        height: 12rem;
    }

    .hero-viewport {
        height: calc(25vh + 12.5rem);
    }

    .logo {
        font-size: 24px;
    }

    nav ul li a {
        font-size: 16px;
    }

    .tagline {
        font-size: 0.7rem;
    }

    nav ul {
        padding: 0;
        gap: 10px;
    }
}
