:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f766e;
    --accent: #8b5cf6;
    --danger: #dc2626;
    --success: #15803d;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-soft: #f8fbff;
    --text: #172033;
    --muted: #5f6f87;
    --border: rgba(189, 208, 235, 0.38);
    --shadow: 0 18px 50px rgba(2, 8, 23, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background:
        linear-gradient(180deg, rgba(8, 17, 32, 0.82), rgba(8, 17, 32, 0.2)),
        url("../images/background.svg") center top / cover no-repeat fixed,
        linear-gradient(180deg, #edf3ff 0%, #f7f9fd 100%);
    color: var(--text);
    animation: pageFade 0.7s ease;
}

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

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.top-bar {
    background: rgba(5, 10, 20, 0.92);
    color: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(14px);
    animation: slideDown 0.7s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-dark);
}

.logo strong {
    display: block;
    font-size: 1.1rem;
}

.logo small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.78rem;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.26);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-links a,
.user-badge {
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    transition: 0.25s ease;
}

.nav-links a:hover {
    background: #eaf2ff;
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.user-badge {
    background: #eff6ff;
    color: var(--primary-dark);
}

.nav-links a.is-active,
.footer-links a.is-active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}

main.container {
    padding: 36px 0 56px;
}

.hero,
.form-wrapper {
    min-height: 64vh;
    display: grid;
    place-items: center;
}

.hero-card,
.card,
.feature-card,
.process-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero-card,
.feature-card,
.process-card,
.card,
.question-item {
    opacity: 0;
    transform: translateY(24px);
    transition: transform 0.55s ease, opacity 0.55s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover,
.feature-card:hover,
.process-card:hover,
.question-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(2, 8, 23, 0.2);
    border-color: rgba(37, 99, 235, 0.24);
}

.hero-card {
    max-width: 980px;
    padding: 56px 42px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    right: -60px;
    top: -50px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22), transparent 70%);
}

.hero-card h1 {
    margin: 0 0 16px;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.08;
}

.hero-card p,
.muted {
    color: var(--muted);
    line-height: 1.75;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eaf2ff;
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.metric-box {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(189, 208, 235, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-box:hover,
.showcase-stat:hover,
.developer-meta div:hover,
.contact-item:hover,
.summary-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.12);
}

.metric-box strong {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-dark);
}

.metric-box span {
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-actions,
.table-actions,
.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.inline-form {
    display: inline;
}

.hero-actions {
    justify-content: center;
    margin-top: 24px;
}

.button {
    display: inline-block;
    padding: 13px 22px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    position: relative;
    overflow: hidden;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.3);
    filter: brightness(1.05);
}

.button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.35), transparent 80%);
    transform: translateX(-140%);
    transition: transform 0.7s ease;
}

.button:hover::after {
    transform: translateX(140%);
}

.button-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 1px solid var(--primary);
    box-shadow: none;
}

.button-danger {
    background: linear-gradient(135deg, var(--danger), #b91c1c);
}

.small-button {
    padding: 10px 16px;
    font-size: 0.92rem;
}

.full-width {
    width: 100%;
}

.feature-grid,
.stats-grid,
.two-column,
.process-grid {
    display: grid;
    gap: 22px;
}

.feature-grid,
.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 28px;
}

.process-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 28px;
}

.two-column {
    grid-template-columns: minmax(300px, 0.95fr) minmax(340px, 1.05fr);
    align-items: start;
}

.feature-card,
.card,
.process-card {
    padding: 26px;
}

.feature-card h2,
.card h2,
.page-banner h1,
.showcase-copy h2,
.final-cta h2 {
    margin-top: 0;
}

.feature-card p,
.page-banner p,
.showcase-copy p,
.final-cta p {
    color: var(--muted);
    line-height: 1.75;
}

.page-banner {
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(241, 247, 255, 0.92));
}

.stat-card .stat-label {
    display: inline-block;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-card h2 {
    margin: 10px 0 8px;
    font-size: 2.4rem;
}

.simple-panel {
    min-height: 100%;
}

.showcase-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    margin-top: 30px;
}

.showcase-stats {
    display: grid;
    gap: 14px;
}

.showcase-stat {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #f7f9ff);
    border: 1px solid #dde8fb;
}

.showcase-stat strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.showcase-stat span {
    color: var(--muted);
}

.process-card span {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    font-weight: 800;
}

.process-card h3 {
    margin: 0 0 10px;
}

.process-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.final-cta {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: center;
    margin-top: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(238, 244, 255, 0.95));
}

.developer-cta {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: center;
    margin-top: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(233, 244, 255, 0.95));
}

.developer-card-layout {
    display: grid;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.developer-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.team-member-card {
    display: grid;
    gap: 20px;
    align-content: start;
}

.team-photo-frame {
    max-width: 240px;
    margin: 0 auto;
}

.developer-highlight {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 245, 255, 0.94));
}

.developer-highlight::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -40px;
    top: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.22), transparent 68%);
    animation: pulseGlow 5s ease-in-out infinite;
}

.developer-photo-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    border: 1px solid #cdddf8;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    position: relative;
    animation: floatPortrait 4.8s ease-in-out infinite;
}

.developer-photo,
.developer-photo-fallback {
    width: 100%;
    height: 100%;
}

.developer-photo {
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.developer-photo-frame:hover .developer-photo {
    transform: scale(1.05);
}

.developer-photo-fallback {
    place-items: center;
    padding: 20px;
    text-align: center;
    font-weight: 800;
    color: var(--primary-dark);
    background:
        radial-gradient(circle at top, rgba(37, 99, 235, 0.24), transparent 45%),
        linear-gradient(135deg, #dbeafe, #f8fbff);
}

.developer-copy p,
.contact-card p {
    color: var(--muted);
    line-height: 1.75;
}

.developer-meta,
.contact-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.developer-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.developer-meta-single {
    grid-template-columns: 1fr;
}

.developer-meta div,
.contact-item {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #f8fbff);
    border: 1px solid #dbeafe;
}

.contact-link {
    color: var(--primary-dark);
    font-weight: 700;
    transition: letter-spacing 0.25s ease, color 0.25s ease;
}

.contact-link:hover {
    color: var(--accent);
    letter-spacing: 0.02em;
}

.developer-meta strong,
.contact-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-dark);
}

.developer-meta span,
.contact-item span {
    color: var(--muted);
}

.answer-review-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.answer-review-item {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(239, 246, 255, 0.75);
    border: 1px solid #dbeafe;
}

.form-card {
    width: min(500px, 100%);
}

label {
    display: block;
    margin: 14px 0 8px;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-note {
    margin-top: 16px;
    text-align: center;
    color: var(--muted);
}

.form-note a {
    color: var(--primary-dark);
    font-weight: 700;
}

.form-errors,
.alert {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 14px;
    line-height: 1.6;
}

.form-errors,
.alert.error {
    background: #fff1f2;
    color: #b91c1c;
    border: 1px solid #fecdd3;
}

.alert.success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.question-list {
    display: grid;
    gap: 16px;
}

.question-item {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-soft);
}

.question-item h3 {
    margin-top: 0;
}

.question-item p {
    margin: 8px 0;
    line-height: 1.65;
}

.quiz-card {
    max-width: 920px;
    margin: 0 auto;
}

.quiz-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 8px;
}

.summary-box {
    padding: 16px 18px;
    border-radius: 16px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    text-align: center;
}

.summary-box strong {
    display: block;
    font-size: 1.6rem;
    color: var(--primary-dark);
}

.summary-box span {
    color: var(--muted);
    font-weight: 600;
}

.question-block {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.question-block:last-child {
    border-bottom: none;
}

.question-block h2 {
    display: inline-block;
    margin: 0 0 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eaf2ff;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.question-block p {
    line-height: 1.7;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: 0.2s ease;
}

.option-label:hover {
    background: #f8fbff;
    transform: translateX(2px);
}

.option-label input {
    width: auto;
    margin: 0;
    accent-color: var(--primary);
}

.score-box {
    margin-bottom: 22px;
    padding: 26px;
    border-radius: 20px;
    background: #eff6ff;
    text-align: center;
    border: 1px solid #dbeafe;
}

.score-box p {
    margin: 10px 0 0;
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.text-success {
    color: var(--success);
    font-weight: 700;
}

.text-danger {
    color: var(--danger);
    font-weight: 700;
}

code {
    padding: 2px 6px;
    border-radius: 6px;
    background: #eff6ff;
    color: var(--primary-dark);
}

.site-footer {
    margin-top: 20px;
    padding: 28px 0;
    background: rgba(8, 17, 32, 0.94);
    color: #d9e6f5;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-content h3 {
    margin: 0 0 8px;
    color: #fff;
}

.footer-content p {
    margin: 0;
    color: #bfd0e3;
    line-height: 1.7;
}

.footer-credit {
    margin-top: 10px !important;
    color: #ffffff !important;
    font-weight: 700;
}

.footer-links a {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    transition: 0.25s ease;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.15);
}

@keyframes pageFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatPortrait {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulseGlow {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 900px) {
    .hero-metrics,
    .showcase-panel,
    .final-cta,
    .developer-cta,
    .developer-card-layout,
    .developer-team-grid,
    .two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links,
    .footer-links {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 20px, 1120px);
    }

    .hero-card,
    .feature-card,
    .process-card,
    .card {
        padding: 20px;
        border-radius: 20px;
    }

    .button,
    .button-outline,
    .button-danger {
        width: 100%;
        text-align: center;
    }

    .hero-actions,
    .table-actions,
    .footer-links {
        flex-direction: column;
    }

    .nav-links a,
    .user-badge {
        width: 100%;
        text-align: center;
    }

    .quiz-summary,
    .hero-metrics,
    .developer-meta {
        grid-template-columns: 1fr;
    }
}
