:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --ink: #17202a;
    --muted: #667085;
    --line: #d9e0e7;
    --brand: #176655;
    --brand-dark: #123e36;
    --brand-soft: #eff8f6;
    --amber: #b7791f;
    --red: #d92d20;
    --green: #168251;
    --shadow: 0 10px 30px rgba(16, 24, 40, 0.07);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(32, 122, 104, 0.08), transparent 30rem),
        linear-gradient(180deg, #fff 0%, var(--bg) 42%, #eef3f2 100%);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

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

.topbar {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

.topbar-inner {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.brand-mark {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page {
    padding: 32px 0 56px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 660px;
    background: linear-gradient(115deg, rgba(18, 62, 54, 0.96), rgba(23, 102, 85, 0.9), rgba(17, 24, 39, 0.88));
    color: #fff;
}

.hero .topbar {
    border: 0;
    background: transparent;
}

.hero-grid {
    display: grid;
    min-height: 590px;
    align-items: center;
    gap: 48px;
    grid-template-columns: 1.08fr 0.92fr;
    padding: 56px 0 80px;
}

.hero h1 {
    max-width: 840px;
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1.06;
}

.hero p {
    max-width: 660px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.125rem;
    line-height: 1.8;
}

.hero-demo {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    padding: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.hero-demo-inner {
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 22px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    padding: 6px 12px;
    font-size: 0.8125rem;
    font-weight: 700;
}

.button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    padding: 10px 16px;
    transition: background 0.15s ease, transform 0.15s ease;
}

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

.button.secondary {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}

.button.secondary:hover {
    background: #f3f5f7;
}

.button.danger {
    background: var(--red);
}

.button.ghost {
    background: transparent;
    color: var(--muted);
}

.button[disabled] {
    cursor: not-allowed;
    background: #e4e7ec;
    color: #98a2b3;
}

.grid {
    display: grid;
    gap: 18px;
}

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

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

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

.panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.panel-pad {
    padding: 22px;
}

.feature-grid {
    margin-top: -48px;
    position: relative;
    z-index: 2;
}

.feature-card h3,
.panel h2,
.panel h3 {
    margin-top: 0;
}

.muted {
    color: var(--muted);
}

.headline-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.stat-value {
    margin: 12px 0 0;
    font-size: 2rem;
    font-weight: 800;
}

.notice {
    border: 1px solid #f0d39a;
    border-radius: 8px;
    background: #fff8eb;
    color: #704c12;
    line-height: 1.6;
    padding: 14px 16px;
}

.alert {
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.alert.success {
    border: 1px solid #bbebd2;
    background: #ecfdf3;
    color: #075f3f;
}

.alert.error {
    border: 1px solid #f7b4ad;
    background: #fff0ee;
    color: #9b241b;
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
    display: block;
}

.field.full {
    grid-column: 1 / -1;
}

.field span,
.label {
    display: block;
    color: #344054;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.input {
    width: 100%;
    border: 1px solid #cfd7df;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    outline: none;
    padding: 10px 12px;
}

.input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(32, 122, 104, 0.12);
}

.error-text {
    margin-top: 6px;
    color: var(--red);
    font-size: 0.82rem;
}

.purchase-card {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
}

.purchase-card h3 {
    margin: 0 0 8px;
}

.deadline-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deadline {
    border-radius: 8px;
    border: 1px solid var(--line);
    padding: 14px;
}

.deadline.red {
    border-color: #f7b4ad;
    background: #fff0ee;
    color: #9b241b;
}

.deadline.yellow {
    border-color: #f0d39a;
    background: #fff8eb;
    color: #704c12;
}

.deadline.green {
    border-color: #bbebd2;
    background: #ecfdf3;
    color: #075f3f;
}

.detail-list {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-list dt {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.detail-list dd {
    margin: 4px 0 0;
}

.document-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f9fafb;
    padding: 14px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 860px) {
    .hero-grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .form-grid,
    .deadline-grid,
    .detail-list {
        grid-template-columns: 1fr;
    }

    .hero-demo {
        display: none;
    }

    .headline-row,
    .purchase-card,
    .document-row {
        flex-direction: column;
        align-items: stretch;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}
