@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

@font-face {
    font-family: 'Builder Sans';
    src: local('Builder Sans');
}

body {
    background: #0a0a0a;
    font-family: 'Builder Sans', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #cccccc;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    letter-spacing: -0.01em;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
    width: 100%;
}

header {
    border-bottom: 1px solid #333333;
    padding: 24px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-transform: lowercase;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.85;
}

.logo-icon {
    height: 1.8rem;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    margin-right: 2px;
}

.logo span {
    color: #888888;
    font-weight: 450;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    text-decoration: none;
    color: #999999;
    font-weight: 480;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.nav-links a:hover {
    color: #ffffff;
    border-bottom: 1px solid #666666;
}

.nav-links a.active {
    color: #ffffff;
    border-bottom: 1px solid #999999;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 48px 0 60px;
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666666;
    font-weight: 500;
    margin-bottom: 8px;
}

h1 {
    font-size: 2.2rem;
    font-weight: 550;
    color: #ffffff;
    letter-spacing: -0.6px;
    margin-bottom: 20px;
}

.statement {
    border-left: 2px solid #444444;
    padding-left: 20px;
    color: #aaaaaa;
    font-size: 1.05rem;
    margin-bottom: 32px;
    max-width: 580px;
}

/* 404 specific */
.error-page main {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.error-code {
    font-size: 6rem;
    font-weight: 600;
    color: #333333;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 8px;
}

.error-page .statement {
    text-align: left;
    margin-bottom: 48px;
    max-width: 480px;
}

.buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: inherit;
    border: 1px solid #444444;
}

.btn-primary {
    background: #1a1a1a;
    color: #e0e0e0;
}

.btn-primary:hover {
    background: #2a2a2a;
    border-color: #666666;
}

.btn-secondary {
    background: transparent;
    color: #999999;
}

.btn-secondary:hover {
    background: #1a1e26;
    color: #e6ecf3;
}

footer {
    border-top: 1px solid #2a2a2a;
    padding: 24px 0;
    font-size: 0.8rem;
    color: #777777;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-note {
    color: #666666;
}

/* main-page specific */
.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    background: #1a1a1a;
    border: 1px solid #333333;
    margin-top: 16px;
}

.info-block {
    background: #141414;
    padding: 22px 28px;
    flex: 1 1 240px;
    border-right: 1px solid #2a2a2a;
}

.info-block:last-child {
    border-right: none;
}

.info-block .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #666666;
    margin-bottom: 8px;
}

.info-block .value {
    font-size: 1.15rem;
    font-weight: 500;
    color: #e0e0e0;
}

.team-description {
    margin-top: 36px;
    padding: 24px 28px;
    border: 1px solid #2a2a2a;
    background: #111111;
}

.team-description .title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #777777;
    margin-bottom: 12px;
}

.team-description p {
    color: #bbbbbb;
    font-size: 1rem;
    max-width: 640px;
    margin-bottom: 10px;
}

.team-description p:last-child {
    margin-bottom: 0;
}

/* contacts & main-page shared */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #1f1f1f;
    border: 1px solid #333333;
    margin: 28px 0 40px;
}

.contact-item {
    background: #161616;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    border-bottom: 1px solid #2c2c2c;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-label {
    font-weight: 500;
    color: #cccccc;
    letter-spacing: 0.3px;
    font-size: 1.05rem;
}

.contact-value a {
    color: #999999;
    text-decoration: none;
    font-weight: 450;
    border-bottom: 1px solid #444444;
    transition: all 0.15s;
}

.contact-value a:hover {
    color: #ffffff;
    border-bottom: 1px solid #999999;
}

hr {
    border: 0;
    border-top: 1px solid #2a2a2a;
    margin: 18px 0 26px;
}

/* applications specific */
.applications main {
    align-items: center;
}

.applications .section-label,
.applications h1 {
    text-align: center;
    width: 100%;
}

.applications .statement {
    margin-bottom: 40px;
    text-align: left;
}

.form-container {
    background: #111111;
    border: 1px solid #2a2a2a;
    border-radius: 0;
    padding: 32px;
    width: 100%;
    max-width: 640px;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #cccccc;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

input[type="text"],
input[type="number"],
input[type="url"] {
    width: 100%;
    padding: 10px 12px;
    background: #141414;
    border: 1px solid #333333;
    color: #cccccc;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="url"]:focus {
    border-color: #666666;
}

input::placeholder {
    color: #666666;
}

.radio-group {
    display: flex;
    gap: 28px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    color: #999999;
    font-size: 0.95rem;
}

input[type="radio"] {
    accent-color: #666666;
    width: 16px;
    height: 16px;
}

input[type="range"] {
    width: 100%;
    margin: 10px 0;
    -webkit-appearance: none;
    appearance: none;
    background: #333333;
    height: 4px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #666666;
    cursor: pointer;
    border-radius: 50%;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #666666;
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

.range-value {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #999999;
    margin-top: 4px;
}

button {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #444444;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

button:hover {
    background: #2a2a2a;
    border-color: #666666;
}

button:disabled {
    background: #1a1a1a;
    border-color: #2a2a2a;
    color: #666666;
    cursor: not-allowed;
}

.message {
    margin-top: 16px;
    padding: 12px;
    text-align: center;
    display: none;
    font-size: 0.9rem;
}

.message.success {
    background: #1a1a1a;
    color: #999999;
    border: 1px solid #333333;
    display: block;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #777777;
}

/* media queries */
@media (max-width: 600px) {
    .container {
        padding: 0 20px;
    }
    .nav-links {
        gap: 20px;
    }
    h1 {
        font-size: 1.8rem;
    }
    .form-container {
        padding: 20px;
    }
    .info-row {
        flex-direction: column;
    }
    .info-block {
        border-right: none;
        border-bottom: 1px solid #2a2a2a;
    }
    .info-block:last-child {
        border-bottom: none;
    }
    .error-code {
        font-size: 4rem;
    }
    .buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    .btn {
        text-align: center;
    }
}
