@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
    --bg: #0b1021;
    --panel: #0f1633;
    --panel-2: #0c122b;
    --border: #203a72;
    --accent: #f8d866;
    --accent-2: #62d0ff;
    --accent-3: #ff7ec7;
    --text: #e6f0ff;
    --muted: #9bb0d4;
    --shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 20% 20%, rgba(98, 208, 255, 0.08), transparent 35%),
		radial-gradient(circle at 80% 10%, rgba(255, 126, 199, 0.08), transparent 38%),
		linear-gradient(180deg, #050814 0%, #0b1021 45%, #0a0f25 100%);
    color: var(--text);
    font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    opacity: 0.35;
}

.scanline-overlay {
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
	to bottom,
	rgba(255, 255, 255, 0.05) 0,
	rgba(255, 255, 255, 0.05) 1px,
	transparent 3px,
	transparent 4px
    );
    mix-blend-mode: soft-light;
    opacity: 0.3;
    pointer-events: none;
    z-index: 2;
}

.stars {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(1px 1px at 25% 30%, #62d0ff 60%, transparent),
		      radial-gradient(1px 1px at 60% 70%, #f8d866 60%, transparent),
		      radial-gradient(1px 1px at 80% 25%, #ff7ec7 60%, transparent),
		      radial-gradient(1px 1px at 40% 55%, #c7d8ff 60%, transparent);
    opacity: 0.65;
    pointer-events: none;
    z-index: 1;
}

.landing {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: none;
    margin: 32px 0 80px 0;
    padding: 0 clamp(16px, 4vw, 32px);
}

.lang-switch {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    font-family: "Press Start 2P", monospace;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 12px;
}

.lang-switch a {
    color: var(--muted);
    text-decoration: none;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: linear-gradient(145deg, rgba(32, 58, 114, 0.35), rgba(15, 22, 51, 0.9));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.15s ease-out;
}

.lang-switch a.active {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(248, 216, 102, 0.35);
}

.flash-wrap {
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flash {
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    color: #0b0d1f;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.flash.notice {
    background: #f8d866;
}

.flash.alert {
    background: #ff7ec7;
}

.card {
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 28px 0;
    margin-bottom: 28px;
}

.hero {
    padding: 0 0 28px 0;
    background: none;
}

.eyebrow {
    font-family: "Press Start 2P", monospace;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--accent);
    text-transform: uppercase;
    margin: 0 0 12px;
}

.eyebrow-split {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.dos-spinner {
    position: relative;
    display: inline-block;
    width: 1ch;
    height: 1em;
    p font-family: "Press Start 2P", monospace;
  }

.dos-spinner span {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: dos-spin 0.4s steps(1) infinite;
}

    .dos-spinner span:nth-child(1) { animation-delay: 0.1s; }
    .dos-spinner span:nth-child(2) { animation-delay: 0.2s; }
    .dos-spinner span:nth-child(3) { animation-delay: 0.3s; }
    .dos-spinner span:nth-child(4) { animation-delay: 0.4s; }

    @keyframes dos-spin {
  0%, 24% { opacity: 1; }
  25%, 100% { opacity: 0; }
    }

    h1 {
	font-family: "Press Start 2P", monospace;
	font-size: clamp(22px, 4vw, 32px);
	line-height: 1.4;
	margin: 0 0 14px;
	color: #fefefe;
	text-shadow: 0 0 12px rgba(98, 208, 255, 0.4);
    }

    h2 {
	font-size: 20px;
	margin: 0 0 12px;
	color: var(--accent);
	letter-spacing: 0.5px;
    }

    h3 {
	margin: 0 0 6px;
	color: #fefefe;
    }

    .subhead {
	margin-top: 24px;
    }

    .glow {
	color: var(--accent-2);
    }

    .tagline {
	margin: 0 0 16px;
	color: var(--muted);
	font-size: 18px;
    }

    .badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
    }

    .badge,
.inline-chip {
    font-family: "Press Start 2P", monospace;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 8px 10px;
    border: 1px solid var(--accent-2);
    color: var(--accent-2);
    background: rgba(98, 208, 255, 0.08);
    border-radius: 8px;
}

    .cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 12px 0 18px;
    }

    .btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	border-radius: 10px;
	border: 2px solid var(--border);
	color: var(--text);
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.3px;
	transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
	background: linear-gradient(180deg, rgba(32, 58, 114, 0.6), rgba(15, 22, 51, 0.95));
	box-shadow: 0 6px 0 #071025, 0 0 14px rgba(98, 208, 255, 0.25);
    }

    .btn:hover {
	transform: translateY(-2px);
	border-color: var(--accent-2);
	box-shadow: 0 8px 0 #071025, 0 0 18px rgba(98, 208, 255, 0.4);
    }

    .btn.primary {
	border-color: var(--accent);
	color: #0b0d1f;
	background: linear-gradient(180deg, #f8d866, #f5c13a);
	box-shadow: 0 6px 0 #7a5a00, 0 0 18px rgba(248, 216, 102, 0.35);
    }

    .btn.primary:hover {
	box-shadow: 0 8px 0 #7a5a00, 0 0 22px rgba(248, 216, 102, 0.55);
    }

    .btn.ghost {
	background: rgba(15, 22, 51, 0.7);
    }

    .btn.chip {
	font-size: 14px;
	padding: 10px 12px;
    }

    .contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
	margin-top: 6px;
    }

    .contact-grid .label {
	display: inline-block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--muted);
    }

    .contact-grid p {
	margin: 4px 0 0;
	font-weight: 600;
	color: #fefefe;
    }

    .grid {
	display: grid;
	gap: 18px;
    }

    .grid.two {
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    .pill-grid {
	display: grid;
	gap: 14px;
    }

    .pill-group {
	padding: 6px 0;
    }

    .pill-title {
	font-weight: 700;
	color: var(--accent);
	display: block;
	margin-bottom: 6px;
    }

    .pill-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
    }

    .pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 8px;
	background: rgba(98, 208, 255, 0.1);
	border: 1px solid rgba(98, 208, 255, 0.3);
	color: #dbe8ff;
	font-size: 14px;
    }

    .timeline .section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
    }

    .timeline-grid {
	display: grid;
	gap: 14px;
	margin-top: 10px;
    }

    .timeline-item {
	padding: 12px 0 12px 12px;
	border-left: 3px solid var(--accent-2);
    }

    .timeline-meta {
	display: flex;
	gap: 12px;
	align-items: baseline;
	color: var(--muted);
	font-size: 14px;
	margin-bottom: 4px;
    }

    .timeline-meta .role {
	color: var(--accent);
	font-weight: 700;
    }

    .timeline-item ul {
	padding-left: 18px;
	margin: 6px 0 0;
	color: #d9e4ff;
    }

    .projects-list {
	display: grid;
	gap: 12px;
    }

    .project-card {
	padding: 8px 0 14px 0;
    }

    .project-title {
	display: grid;
	grid-template-columns: 16px 1fr;
	gap: 10px;
	align-items: center;
    }

    .project-title a {
	color: #fefefe;
	font-weight: 700;
	text-decoration: none;
    }

    .project-title a:hover {
	color: var(--accent);
    }

    .project-head {
	display: flex;
	gap: 10px;
	align-items: baseline;
	flex-wrap: wrap;
    }

    .project-link-inline {
	font-size: 13px;
	color: #7f8fb3;
    }

    .project-link-inline a {
	color: #7f8fb3;
	text-decoration: none;
	font-weight: 600;
    }

    .project-link-inline a:hover {
	text-decoration: underline;
    }

    .project-desc {
	margin: 4px 0 6px;
	color: var(--muted);
    }

    .project-link {
	margin: 2px 0 2px;
	font-size: 13px;
	color: #7f8fb3;
    }

    .project-link a {
	color: #7f8fb3;
	text-decoration: none;
	font-weight: 600;
    }

    .project-link a:hover {
	text-decoration: underline;
    }

    .square {
	width: 12px;
	height: 12px;
	background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
	border-radius: 3px;
	box-shadow: 0 0 8px rgba(98, 208, 255, 0.5);
    }

    .list {
	list-style: none;
	padding: 0;
	margin: 0 0 12px;
	color: #fefefe;
    }

    .list li {
	padding: 6px 0;
    }

    .downloads {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	align-items: center;
    }

    .availability {
	color: var(--muted);
	margin: 0;
    }

    .contact-form .form {
	margin-top: 12px;
    }

    .form-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .field {
	display: flex;
	flex-direction: column;
	gap: 6px;
    }

    .input {
	background: rgba(12, 18, 43, 0.8);
	border: 1px solid var(--border);
	color: #fefefe;
	padding: 12px 12px;
	border-radius: 10px;
	font-size: 15px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .input:focus {
	outline: none;
	border-color: var(--accent-2);
	box-shadow: 0 0 0 3px rgba(98, 208, 255, 0.25);
    }

    .contact-form .label {
	color: var(--muted);
    }

    .muted {
	color: var(--muted);
    }

    @media (max-width: 640px) {
	.landing {
	    margin-top: 32px;
	}

	.hero {
	    padding: 0 0 24px 0;
	}

	.lang-switch {
	    justify-content: center;
	}

	.cta {
	    flex-direction: column;
	    align-items: stretch;
	}

	.btn {
	    width: 100%;
	    justify-content: center;
	}
    }
