/* ==========================================================================
   Kneib.io Theme - Main Stylesheet
   Converted from React/Tailwind design
   ========================================================================== */

/* CSS Variables - Design Tokens */
:root {
    --background: 220 20% 6%;
    --foreground: 210 20% 95%;
    --card: 220 20% 10%;
    --card-foreground: 210 20% 95%;
    --popover: 220 20% 10%;
    --popover-foreground: 210 20% 95%;
    --primary: 175 80% 50%;
    --primary-foreground: 220 20% 6%;
    --secondary: 220 20% 14%;
    --secondary-foreground: 210 20% 95%;
    --muted: 220 20% 14%;
    --muted-foreground: 215 15% 55%;
    --accent: 175 80% 50%;
    --accent-foreground: 220 20% 6%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 210 40% 98%;
    --border: 220 20% 18%;
    --input: 220 20% 18%;
    --ring: 175 80% 50%;
    --radius: 0.5rem;
    
    /* Custom design tokens */
    --gradient-primary: linear-gradient(135deg, hsl(175 80% 50%) 0%, hsl(190 80% 45%) 100%);
    --gradient-card: linear-gradient(180deg, hsl(220 20% 12%) 0%, hsl(220 20% 8%) 100%);
    --shadow-glow: 0 0 40px hsl(175 80% 50% / 0.15);
    --shadow-card: 0 4px 24px hsl(0 0% 0% / 0.4);
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', system-ui, sans-serif;
}

/* Base Styles */
* {
    box-sizing: border-box;
    border-color: hsl(var(--border));
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: var(--font-sans);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mono);
    margin: 0;
}

code, pre {
    font-family: var(--font-mono);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

/* Utility Classes */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.hidden {
    display: none;
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }
    .md\:hidden {
        display: none;
    }
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:flex-row {
        flex-direction: row;
    }
    .md\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
    .md\:py-32 {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
    .md\:pt-8 {
        padding-top: 2rem;
    }
    .md\:pt-16 {
        padding-top: 4rem;
    }
    .md\:pb-12 {
        padding-bottom: 3rem;
    }
}

/* Typography */
.font-mono {
    font-family: var(--font-mono);
}

.font-sans {
    font-family: var(--font-sans);
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

/* Colors */
.bg-background {
    background-color: hsl(var(--background));
}

.bg-card {
    background-color: hsl(var(--card));
}

.bg-secondary {
    background-color: hsl(var(--secondary));
}

.bg-primary {
    background-color: hsl(var(--primary));
}

.text-foreground {
    color: hsl(var(--foreground));
}

.text-muted-foreground {
    color: hsl(var(--muted-foreground));
}

.text-primary {
    color: hsl(var(--primary));
}

.text-primary-foreground {
    color: hsl(var(--primary-foreground));
}

.border-border {
    border-color: hsl(var(--border));
}

.border-b {
    border-bottom-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border {
    border-width: 1px;
}

/* Spacing */
.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pt-8 {
    padding-top: 2rem;
}

.pt-12 {
    padding-top: 3rem;
}

.pt-16 {
    padding-top: 4rem;
}

.pt-20 {
    padding-top: 5rem;
}

.pb-12 {
    padding-bottom: 3rem;
}

.pb-16 {
    padding-bottom: 4rem;
}

.pb-20 {
    padding-bottom: 5rem;
}

.pt-32 {
    padding-top: 8rem;
}

.pb-32 {
    padding-bottom: 8rem;
}

.pb-40 {
    padding-bottom: 10rem;
}

@media (min-width: 768px) {
    .md\:pt-16 {
        padding-top: 4rem;
    }
    
    .md\:pt-32 {
        padding-top: 8rem;
    }
    
    .md\:pb-20 {
        padding-bottom: 5rem;
    }
    
    .md\:pb-40 {
        padding-bottom: 10rem;
    }
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-16 { margin-top: 4rem; }

/* Layout */
.min-h-screen {
    min-height: 100vh;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.w-full {
    width: 100%;
}

.h-4 {
    height: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.h-10 {
    height: 2.5rem;
}

.w-1 {
    width: 0.25rem;
}

.w-4 {
    width: 1rem;
}

.w-10 {
    width: 2.5rem;
}

/* Border Radius */
.rounded-lg {
    border-radius: var(--radius);
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-t-lg {
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

/* Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.left-2 {
    left: 0.5rem;
}

.right-2 {
    right: 0.5rem;
}

.bottom-3 {
    bottom: 0.75rem;
}

.top-1\/2 {
    top: 50%;
}

.-translate-y-1\/2 {
    transform: translateY(-50%);
}

.-translate-x-1\/2 {
    transform: translateX(-50%);
}

.left-1\/2 {
    left: 50%;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

/* Object Fit */
.object-cover {
    object-fit: cover;
}

/* Aspect Ratio */
.aspect-video {
    aspect-ratio: 16 / 9;
}

/* Transitions */
.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

/* Hover States */
.hover\:opacity-80:hover {
    opacity: 0.8;
}

.hover\:opacity-90:hover {
    opacity: 0.9;
}

.hover\:text-foreground:hover {
    color: hsl(var(--foreground));
}

.hover\:bg-background:hover {
    background-color: hsl(var(--background));
}

.hover\:underline:hover {
    text-decoration: underline;
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.group:hover .group-hover\:text-primary {
    color: hsl(var(--primary));
}

.group:hover .group-hover\:translate-x-1 {
    transform: translateX(0.25rem);
}

/* Opacity */
.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}

/* Focus States */
.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:border-primary:focus {
    border-color: hsl(var(--primary));
}

.focus\:ring-1:focus {
    box-shadow: 0 0 0 1px hsl(var(--ring));
}

/* Placeholder */
.placeholder\:text-muted-foreground::placeholder {
    color: hsl(var(--muted-foreground));
}

/* Resize */
.resize-none {
    resize: none;
}

/* Grid */
.grid {
    display: grid;
}

.gap-6 {
    gap: 1.5rem;
}

/* Space Y */
.space-y-6 > * + * {
    margin-top: 1.5rem;
}

/* Custom Components */

/* Tile Card */
.tile-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    transition: all 0.3s;
    box-shadow: var(--shadow-card);
}

.tile-card:hover {
    border-color: hsl(var(--primary) / 0.5);
    box-shadow: var(--shadow-glow), var(--shadow-card);
    transform: translateY(-4px);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow Line */
.glow-line {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, hsl(var(--primary)), transparent);
}

/* Carousel */
.tile-carousel {
    position: relative;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    transition: opacity 0.5s;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 9999px;
    background-color: hsl(var(--background) / 0.8);
    padding: 0.375rem;
    color: hsl(var(--foreground));
    opacity: 0;
    backdrop-filter: blur(4px);
    transition: opacity 150ms;
    border: none;
    cursor: pointer;
    z-index: 20;
}

.carousel-prev {
    left: 0.5rem;
}

.carousel-next {
    right: 0.5rem;
}

/* Show arrows on hover of tile-card or carousel group */
.tile-card:hover .carousel-prev,
.tile-card:hover .carousel-next,
.tile-carousel.group:hover .carousel-prev,
.tile-carousel.group:hover .carousel-next {
    opacity: 1;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: hsl(var(--background));
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.375rem;
    z-index: 20;
}

.carousel-indicator {
    height: 0.25rem;
    width: 0.25rem;
    border-radius: 9999px;
    transition: all 150ms;
    border: none;
    cursor: pointer;
    background-color: hsl(var(--foreground) / 0.4);
    padding: 0;
}

.carousel-indicator:hover {
    background-color: hsl(var(--foreground) / 0.6);
}

.carousel-indicator.active {
    width: 1rem;
    background-color: hsl(var(--primary));
}

/* Carousel image overlay - card background fade from bottom to top over 60px */
.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, hsl(var(--card)) 0%, transparent 100%);
    pointer-events: none;
    z-index: 10;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Prose (for content areas) */
.prose {
    color: hsl(var(--foreground));
}

.prose-invert {
    color: hsl(var(--foreground));
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose a {
    color: hsl(var(--primary));
    text-decoration: underline;
}

.prose a:hover {
    opacity: 0.8;
}

/* Text Center */
.text-center {
    text-align: center;
}

/* Inline Flex */
.inline-flex {
    display: inline-flex;
}

/* Flex Wrap */
.flex-wrap {
    flex-wrap: wrap;
}

/* Backdrop Blur */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* Block */
.block {
    display: block;
}

/* Responsive Typography */
@media (min-width: 768px) {
    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
}

@media (min-width: 1024px) {
    .lg\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
    .lg\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
}

/* ==========================================================================
   Contact form — VT100 terminal look
   ========================================================================== */

.vt100 {
    --vt-phosphor: hsl(var(--primary));
    --vt-phosphor-dim: hsl(var(--primary) / 0.55);
    --vt-phosphor-glow: hsl(var(--primary) / 0.35);
    --vt-bg: #020805;
    --vt-bezel: #1a1f1c;
    --font-terminal: 'VT323', 'JetBrains Mono', monospace;
    position: relative;
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #2a2f2c 0%, var(--vt-bezel) 40%, #121512 100%);
    box-shadow:
        0 0 0 1px hsl(0 0% 100% / 0.04) inset,
        0 18px 50px hsl(0 0% 0% / 0.55),
        var(--shadow-glow);
    overflow: hidden;
    font-family: var(--font-terminal);
}

.vt100__chrome {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid hsl(0 0% 100% / 0.06);
    background: linear-gradient(180deg, #323833 0%, #1c211e 100%);
}

.vt100__traffic {
    display: flex;
    gap: 0.35rem;
}

.vt100__traffic span {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #555;
    box-shadow: inset 0 0 0 1px hsl(0 0% 0% / 0.35);
}

.vt100__traffic span:nth-child(1) { background: #ff5f57; }
.vt100__traffic span:nth-child(2) { background: #febc2e; }
.vt100__traffic span:nth-child(3) { background: #28c840; }

.vt100__title {
    flex: 1;
    text-align: center;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
}

.vt100__status {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    color: var(--vt-phosphor);
    text-shadow: 0 0 8px var(--vt-phosphor-glow);
}

.vt100__screen {
    position: relative;
    padding: 1.25rem 1.25rem 1.1rem;
    background:
        radial-gradient(ellipse at center, hsl(160 40% 8% / 0.9) 0%, var(--vt-bg) 70%),
        var(--vt-bg);
    color: var(--vt-phosphor);
    min-height: 22rem;
    overflow: hidden;
}

.vt100__scanlines,
.vt100__glow {
    pointer-events: none;
    position: absolute;
    inset: 0;
}

.vt100__scanlines {
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 2px,
        hsl(0 0% 0% / 0.18) 2px,
        hsl(0 0% 0% / 0.18) 3px
    );
    opacity: 0.45;
    z-index: 2;
}

.vt100__glow {
    background: radial-gradient(ellipse at center, transparent 45%, hsl(0 0% 0% / 0.55) 100%);
    z-index: 1;
}

.vt100__boot,
.vt100-form,
.vt100__success {
    position: relative;
    z-index: 3;
}

.vt100__boot {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    line-height: 1.35;
    color: var(--vt-phosphor-dim);
}

.vt100__boot p {
    margin: 0;
}

.vt100__boot--animate p {
    opacity: 0;
    animation: vt100-line-in 0.35s ease-out forwards;
}

.vt100__boot-ok {
    color: var(--vt-phosphor) !important;
    text-shadow: 0 0 10px var(--vt-phosphor-glow);
}

@keyframes vt100-line-in {
    from {
        opacity: 0;
        transform: translateY(0.2rem);
        filter: brightness(2);
    }
    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

form.vt100-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0;
    border: 0;
    padding: 0;
    background: transparent;
}

.vt100 fieldset,
.vt100__fields {
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-inline-size: 0;
}

.vt100 .field,
.vt100 .middleColumn {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
    background: transparent !important;
}

.vt100 .field {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: 0.65rem;
    row-gap: 0.2rem;
}

.vt100 .field.vt100-textarea {
    grid-template-columns: 1fr;
}

.vt100 label,
.vt100 .field label,
.vt100 .field label.left {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    margin: 0 !important;
    padding: 0.35rem 0 0 !important;
    width: auto !important;
    float: none !important;
    font-family: var(--font-terminal) !important;
    font-size: 1.25rem !important;
    line-height: 1.2 !important;
    color: var(--vt-phosphor) !important;
    background: none !important;
    text-shadow: 0 0 8px var(--vt-phosphor-glow);
    white-space: nowrap;
}

.vt100 label::before,
.vt100 .field label::before {
    content: '$';
    color: var(--vt-phosphor-dim);
    text-shadow: none;
}

.vt100 .field.vt100-textarea label {
    padding-top: 0 !important;
}

.vt100 input[type="text"],
.vt100 input[type="email"],
.vt100 textarea,
.vt100 .vt100-input {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0.25rem 0.15rem !important;
    border: 0 !important;
    border-bottom: 1px solid hsl(var(--primary) / 0.25) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--vt-phosphor) !important;
    font-family: var(--font-terminal) !important;
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
    caret-color: var(--vt-phosphor);
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: border-color 120ms, text-shadow 120ms !important;
}

.vt100 textarea,
.vt100 .vt100-textarea {
    min-height: 8rem !important;
    resize: vertical !important;
    border: 1px solid hsl(var(--primary) / 0.22) !important;
    padding: 0.55rem 0.65rem !important;
    background: hsl(var(--primary) / 0.03) !important;
}

.vt100 input[type="text"]:focus,
.vt100 input[type="email"]:focus,
.vt100 textarea:focus,
.vt100 .vt100-input:focus {
    border-color: var(--vt-phosphor) !important;
    text-shadow: 0 0 6px var(--vt-phosphor-glow);
    box-shadow: none !important;
}

.vt100 input::placeholder,
.vt100 textarea::placeholder {
    color: hsl(var(--primary) / 0.35) !important;
    opacity: 1 !important;
}

.vt100__actions,
.vt100 .btn-toolbar,
.vt100 .Actions {
    margin: 0.35rem 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
}

.vt100 .Actions .field,
.vt100 .Actions .middleColumn {
    display: block !important;
}

.vt100 button[type="submit"],
.vt100 .contact-form-submit,
.vt100 .vt100-submit {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    margin-top: 0.25rem !important;
    padding: 0.35rem 0.85rem !important;
    border: 1px solid var(--vt-phosphor) !important;
    border-radius: 0 !important;
    background: hsl(var(--primary) / 0.08) !important;
    color: var(--vt-phosphor) !important;
    font-family: var(--font-terminal) !important;
    font-size: 1.3rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.04em;
    line-height: 1.2 !important;
    cursor: pointer !important;
    box-shadow: 0 0 12px var(--vt-phosphor-glow) !important;
    text-shadow: 0 0 8px var(--vt-phosphor-glow);
    transition: background-color 120ms, box-shadow 120ms, color 120ms !important;
}

.vt100 .contact-form-submit::before,
.vt100 button[type="submit"]::before {
    content: '>';
    display: inline !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    background: none !important;
    color: var(--vt-phosphor-dim);
    text-shadow: none;
}

.vt100 button[type="submit"]:hover,
.vt100 .contact-form-submit:hover {
    opacity: 1 !important;
    background: hsl(var(--primary) / 0.18) !important;
    box-shadow: 0 0 18px var(--vt-phosphor-glow) !important;
    color: #e8fff8 !important;
}

.vt100 button[type="submit"]:disabled,
.vt100 .contact-form-submit:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
}

.vt100__hint {
    margin: 0.35rem 0 0;
    font-size: 1.05rem;
    color: hsl(var(--primary) / 0.35);
}

.vt100 .message,
.vt100 .error {
    margin: 0 0 0.75rem;
    padding: 0.35rem 0;
    border: 0;
    border-radius: 0;
    font-family: var(--font-terminal);
    font-size: 1.2rem;
    background: transparent;
}

.vt100 .message.bad,
.vt100 .error {
    color: hsl(0 84% 65%);
    text-shadow: 0 0 8px hsl(0 84% 60% / 0.45);
    border: 0;
    background: transparent;
}

.vt100__success {
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--vt-phosphor);
    text-shadow: 0 0 8px var(--vt-phosphor-glow);
    animation: vt100-boot-in 0.5s ease-out;
}

.vt100__success p {
    margin: 0 0 0.35rem;
}

.vt100__success-ok {
    color: #b8ffe8;
}

.vt100__cursor-line {
    margin-top: 0.85rem !important;
}

.vt100__cursor {
    display: inline-block;
    width: 0.65rem;
    height: 1.1rem;
    margin-left: 0.15rem;
    vertical-align: text-bottom;
    background: var(--vt-phosphor);
    box-shadow: 0 0 8px var(--vt-phosphor-glow);
    animation: vt100-blink 1s steps(1) infinite;
}

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

@keyframes vt100-boot-in {
    from {
        opacity: 0;
        filter: brightness(1.8);
    }
    to {
        opacity: 1;
        filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vt100__cursor,
    .vt100__success {
        animation: none;
    }

    .vt100__scanlines {
        opacity: 0.2;
    }
}

@media (max-width: 640px) {
    .vt100__screen {
        padding: 1rem;
        min-height: 0;
    }

    .vt100 .field:not(.vt100-textarea) {
        grid-template-columns: 1fr;
    }

    .vt100__boot,
    .vt100 label,
    .vt100 input,
    .vt100 textarea,
    .vt100 button[type="submit"] {
        font-size: 1.15rem !important;
    }
}

/* Ensure form fields don't have white backgrounds from browser defaults */
.vt100 input:-webkit-autofill,
.vt100 input:-webkit-autofill:hover,
.vt100 input:-webkit-autofill:focus,
.vt100 textarea:-webkit-autofill,
.vt100 textarea:-webkit-autofill:hover,
.vt100 textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #020805 inset !important;
    -webkit-text-fill-color: hsl(var(--primary)) !important;
    caret-color: hsl(var(--primary));
    transition: background-color 99999s ease-out;
}

/* Mobile menu */
.mobile-menu {
    display: none;
}

@media (max-width: 767px) {
    header.mobile-menu-open .mobile-menu {
        display: block;
    }
}

header.mobile-menu-open .menu-icon-close {
    display: none;
}

header.mobile-menu-open .menu-icon-open {
    display: block;
}

.lang-switcher {
    letter-spacing: 0.08em;
}
