:root {
    --bg-color: #090f1c;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --gold-accent: #c5a043;
    --gold-glow: rgba(197, 160, 67, 0.15);
    --navy-accent: #0f2347;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 80px;
}

header.compact {
    margin-bottom: 48px;
}

.brand-plate {
    display: inline-block;
    background: linear-gradient(165deg, #faf7f1 0%, #ece4d4 100%);
    border: 1px solid rgba(197, 160, 67, 0.45);
    border-radius: 20px;
    padding: 23px 31px 21px;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.brand-plate img {
    display: block;
    width: 221px;
    max-width: 100%;
    height: auto;
}

.brand-link {
    display: inline-block;
    line-height: 0;
    transition: opacity 0.2s;
}

.brand-link:hover {
    opacity: 0.92;
}

.hero {
    text-align: center;
    margin-bottom: 80px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.hero h1 span {
    color: var(--gold-accent);
    font-weight: 500;
}

.hero p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

section {
    margin-bottom: 80px;
}

section h2 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-accent);
    margin-bottom: 30px;
    font-weight: 600;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 10px;
}

.product-suite {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.subsidiary-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 32px 36px;
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.subsidiary-card.product-core {
    border-color: rgba(197, 160, 67, 0.2);
}

.subsidiary-card.product-module {
    padding: 28px 32px;
    gap: 14px;
}

.subsidiary-card:hover {
    transform: translateY(-4px);
    border-color: rgba(197, 160, 67, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px var(--gold-glow);
}

.product-suite-connector {
    position: relative;
    height: 36px;
    margin: 4px auto 0;
    width: min(480px, 72%);
}

.product-suite-connector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 18px;
    background: rgba(197, 160, 67, 0.22);
    transform: translateX(-50%);
}

.product-suite-connector::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(197, 160, 67, 0.22) 12%,
        rgba(197, 160, 67, 0.22) 88%,
        transparent
    );
}

.product-suite-modules {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 0;
}

.product-module {
    position: relative;
    margin-top: 18px;
}

.product-module::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 50%;
    width: 1px;
    height: 18px;
    background: rgba(197, 160, 67, 0.22);
    transform: translateX(-50%);
}

.product-wordmark {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}

.product-wordmark .product-prefix {
    color: var(--gold-accent);
}

.product-plug {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(197, 160, 67, 0.7);
    font-weight: 500;
}

.subsidiary-brand {
    display: block;
    line-height: 0;
    transition: opacity 0.2s;
}

.subsidiary-brand:hover {
    opacity: 0.85;
}

.subsidiary-brand img {
    display: block;
    height: 36px;
    width: auto;
}

.subsidiary-info p {
    color: var(--text-muted);
    margin: 0;
}

.subsidiary-link {
    color: var(--gold-accent);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.subsidiary-link:hover {
    opacity: 0.8;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.team-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.avatar {
    width: 100px;
    height: 100px;
    border: 1px solid var(--card-border);
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy-accent), var(--bg-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-accent);
    font-weight: bold;
    font-size: 2rem;
}

.team-card h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.team-card .title {
    color: var(--gold-accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.team-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

footer {
    margin-top: 120px;
    border-top: 1px solid var(--card-border);
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

footer p {
    margin-bottom: 8px;
}

.footer-links {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gold-accent);
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    opacity: 0.8;
}

.page-intro {
    margin-bottom: 48px;
}

.page-intro h1 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.page-intro p {
    color: var(--text-muted);
    max-width: 640px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold-accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.back-link:hover {
    opacity: 0.8;
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.job-card {
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 28px 32px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.job-card:hover {
    transform: translateY(-2px);
    border-color: rgba(197, 160, 67, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.job-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--gold-accent);
    margin-bottom: 12px;
}

.job-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.empty-state {
    color: var(--text-muted);
    text-align: center;
    padding: 48px 24px;
    border: 1px dashed var(--card-border);
    border-radius: 12px;
}

.job-detail-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 36px 40px;
}

.job-detail-card h1 {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.job-detail-body {
    color: var(--text-muted);
    margin-top: 24px;
}

.job-detail-body p {
    margin-bottom: 1rem;
}

.job-detail-body ul {
    margin: 0 0 1rem 1.25rem;
}

.job-detail-body li {
    margin-bottom: 0.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gold-accent);
    color: var(--bg-color);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 28px;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.apply-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 36px 40px;
    max-width: 640px;
}

.apply-card h1 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.apply-role {
    color: var(--gold-accent);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group .optional {
    color: var(--text-muted);
    font-weight: 400;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(197, 160, 67, 0.4);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.consent-group {
    margin: 28px 0;
}

.consent-group label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
}

.consent-group input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.privacy-notice {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.privacy-notice a {
    color: var(--gold-accent);
}

.form-error {
    color: #f87171;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.form-success {
    background: var(--card-bg);
    border: 1px solid rgba(197, 160, 67, 0.3);
    border-radius: 12px;
    padding: 36px 40px;
    max-width: 640px;
}

.form-success h2 {
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 12px;
    border: none;
    padding: 0;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-main);
}

.form-success p {
    color: var(--text-muted);
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.not-found {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.prose-page {
    max-width: 720px;
}

.prose-page h1 {
    font-size: 1.75rem;
    margin-bottom: 24px;
}

.prose-page h2 {
    font-size: 1.1rem;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-main);
    border: none;
    padding: 0;
    margin: 28px 0 12px;
}

.prose-page p,
.prose-page li {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.prose-page a {
    color: var(--gold-accent);
}

@media (max-width: 768px) {
    .product-suite-modules {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-suite-connector {
        width: 1px;
        height: 28px;
        margin: 8px auto;
    }

    .product-suite-connector::after {
        display: none;
    }

    .product-module::before {
        display: none;
    }

    .product-module {
        margin-top: 0;
    }

    .subsidiary-card {
        padding: 28px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .brand-plate {
        padding: 18px 21px 16px;
    }

    .brand-plate img {
        width: 187px;
    }

    .job-detail-card,
    .apply-card {
        padding: 28px 24px;
    }
}
