:root {
    --clr-background: #fbfdfd;
    --clr-surface: #ffffff;
    --clr-accent: #f97316;
    --clr-primary: #13405d;
    --clr-muted: #475569;
    --clr-border: rgba(15, 23, 42, 0.08);
    --container-width: 1120px;
    --shadow-card: 0 20px 40px rgba(15, 23, 42, 0.12);
    font-family: "DM Sans", "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--clr-background);
    color: var(--clr-primary);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(100%, var(--container-width));
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.75rem);
}

.hero {
    padding: clamp(3rem, 8vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
    background: var(--clr-background);
}

.hero__bar {
    width: min(100%, var(--container-width));
    margin: 0 auto clamp(2rem, 5vw, 3rem);
    padding: 0 clamp(1rem, 4vw, 2.75rem);
}

.hero__logo {
    width: clamp(130px, 16vw, 170px);
    height: auto;
}

.hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 8vw, 5rem);
}

.hero__copy {
    display: grid;
    gap: 1.1rem;
}

.hero__tagline {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--clr-muted);
}

.hero__headline {
    margin: 0;
    font-size: clamp(2.9rem, 6vw, 4rem);
    line-height: 1.05;
    font-family: "Fredoka", "DM Sans", sans-serif;
    color: var(--clr-accent);
}

.hero__description {
    margin: 0;
    font-size: 1.15rem;
    color: var(--clr-primary);
    line-height: 1.7;
}

.hero__visual {
    display: flex;
    justify-content: center;
}

.hero__visual img {
    width: min(100%, 520px);
    height: auto;
}

.team {
    padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem);
    background: var(--clr-surface);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: clamp(2rem, 6vw, 3.5rem);
}

.section-header__accent {
    width: 8px;
    height: 40px;
    border-radius: 6px;
    background: var(--clr-accent);
}

.section-header h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-family: "Fredoka", "DM Sans", sans-serif;
    color: var(--clr-primary);
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(2rem, 6vw, 3.5rem);
}

.team-card {
    text-align: center;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
    color: var(--clr-primary);
}

.team-card__avatar {
    width: 220px;
    height: 220px;
    margin: 0 auto 1.75rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.team-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.team-card__role {
    margin: 0 0 1rem;
    font-weight: 600;
    color: var(--clr-muted);
}

.team-card__bio {
    margin: 0;
    font-size: 0.95rem;
    color: #4a5568;
}

.site-footer {
    margin-top: auto;
    padding: 2rem 0;
    background: var(--clr-background);
    border-top: 1px solid var(--clr-border);
    color: var(--clr-muted);
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 1024px) {
    .hero__layout {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
    }

    .hero__copy {
        margin: 0 auto;
    }

    .hero__visual {
        order: -1;
    }
}

@media (max-width: 600px) {
    .hero__logo {
        width: clamp(120px, 30vw, 150px);
    }

    .hero__description {
        font-size: 1.05rem;
    }

    .team-card__avatar {
        width: 180px;
        height: 180px;
    }
}

body.internal {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.85), #e2e8f0);
}

.internal-wrapper {
    text-align: center;
    padding: clamp(3rem, 7vw, 4rem);
    margin: 3rem auto;
    width: min(100%, 540px);
    background: var(--clr-surface);
    border-radius: 24px;
    box-shadow: 0 32px 60px rgba(15, 23, 42, 0.18);
    border: 1px solid var(--clr-border);
}

.internal-wrapper h1 {
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--clr-primary);
}

.internal-wrapper p {
    margin: 0;
    color: var(--clr-muted);
    font-size: 1rem;
}

.internal-status {
    margin-top: 2rem;
    font-size: 1rem;
    color: var(--clr-primary);
}

.internal-status.error {
    color: #b91c1c;
}

.internal-table {
    margin-top: 2.5rem;
    width: 100%;
    overflow-x: auto;
}

.internal-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--clr-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.internal-table th,
.internal-table td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.95rem;
}

.internal-table th {
    background: rgba(249, 115, 22, 0.08);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--clr-primary);
}

.internal-table tr:last-child td {
    border-bottom: none;
}

.internal-table textarea {
    width: 100%;
    min-height: 96px;
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.internal-table textarea:focus {
    border-color: rgba(249, 115, 22, 0.6);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
    outline: none;
    background: #fff;
}

.internal-submit {
    margin: 2rem auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.25rem;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #f97316);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.internal-submit:hover:not([disabled]) {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.4);
}

.internal-submit:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.hidden {
    display: none !important;
}
