:root {
    --ink: #19202a;
    --muted: #647084;
    --line: #dde5ee;
    --soft: #f6f8fb;
    --accent: #147a6f;
    --accent-dark: #0d5f56;
    --warm: #f2b84b;
    --danger: #b42318;
    --success: #087443;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
}

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

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px clamp(18px, 5vw, 64px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent-dark);
}

.nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
    color: var(--muted);
    font-size: 0.95rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
}

.button:hover {
    background: var(--accent-dark);
}

.button.secondary {
    background: #e9f3f1;
    color: var(--accent-dark);
}

.button.small {
    min-height: 36px;
    padding: 8px 13px;
}

.hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 64px clamp(18px, 5vw, 64px);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76)),
        url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1600&q=80");
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 0.78rem;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4.4rem);
    line-height: 1.02;
}

h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.15;
}

h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.hero p {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.08rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.section {
    padding: 72px clamp(18px, 5vw, 64px);
}

.section.muted {
    background: var(--soft);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.grid,
.dashboard-grid,
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.card,
.panel,
.steps > div,
.auth-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    padding: 24px;
}

.card p,
.steps p,
.soft {
    color: var(--muted);
}

.steps span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--warm);
    color: var(--ink);
    font-weight: 800;
    margin-bottom: 14px;
}

.footer {
    padding: 28px clamp(18px, 5vw, 64px);
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--soft);
}

.auth-card {
    width: min(100%, 440px);
}

.form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    font: inherit;
    color: var(--ink);
    background: var(--white);
}

textarea {
    resize: vertical;
}

.alert {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.alert.error {
    color: var(--danger);
    background: #fff0ee;
}

.alert.success {
    color: var(--success);
    background: #eaf8f1;
}

.dashboard,
.form-page {
    padding: 34px clamp(18px, 5vw, 64px) 72px;
    background: var(--soft);
    min-height: calc(100vh - 74px);
}

.intro-panel {
    margin-bottom: 18px;
}

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

.list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.list article {
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.list p {
    margin: 0;
    color: var(--muted);
}

.form-page .panel {
    max-width: 760px;
    margin: 0 auto;
}

@media (max-width: 800px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        justify-content: flex-start;
    }

    .hero {
        min-height: 460px;
    }

    .grid,
    .dashboard-grid,
    .steps {
        grid-template-columns: 1fr;
    }
}
