html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
}

.hero-grid {
    background:
        linear-gradient(120deg, rgba(217, 249, 157, .62), transparent 38%),
        radial-gradient(circle at 92% 14%, rgba(196, 106, 74, .18), transparent 30%),
        #f5f7f2;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;
    height: 2px;
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    background: #c46a4a;
    transition: transform .2s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.stat-box {
    min-height: 86px;
    border: 1px solid rgba(23, 23, 23, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    padding: 14px;
}

.stat-box dt {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.stat-box dd {
    margin-top: 8px;
    color: #171717;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 800;
}

.device-frame {
    overflow: hidden;
    border: 1px solid rgba(23, 23, 23, .12);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(23, 23, 23, .12);
}

.browser-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    height: 44px;
    border-bottom: 1px solid rgba(23, 23, 23, .08);
    padding: 0 16px;
    background: #ffffff;
}

.browser-bar span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #171717;
    opacity: .18;
}

.screen-preview {
    display: grid;
    gap: 18px;
    padding: clamp(18px, 4vw, 36px);
    background: linear-gradient(145deg, #f5f7f2, #ffffff);
}

.preview-hero {
    min-height: 300px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(23, 23, 23, .92), rgba(35, 70, 63, .9)),
        linear-gradient(45deg, #d9f99d, #c46a4a);
    padding: clamp(20px, 4vw, 42px);
    color: #ffffff;
}

.preview-hero p {
    color: #d9f99d;
    font-weight: 800;
}

.preview-hero h2 {
    margin-top: 18px;
    max-width: 420px;
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 900;
    line-height: 1;
}

.preview-hero button {
    margin-top: 28px;
    border-radius: 4px;
    background: #d9f99d;
    padding: 14px 18px;
    color: #171717;
    font-weight: 900;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.preview-grid div {
    aspect-ratio: 1.2;
    border: 1px solid rgba(23, 23, 23, .08);
    border-radius: 8px;
    background: #ffffff;
}

.preview-copy {
    display: grid;
    gap: 10px;
}

.preview-copy span {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: rgba(23, 23, 23, .12);
}

.preview-copy span:nth-child(2) {
    width: 82%;
}

.preview-copy span:nth-child(3) {
    width: 56%;
}

.section-kicker {
    color: #c46a4a;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.feature-card,
.portfolio-card {
    border: 1px solid rgba(23, 23, 23, .08);
    border-radius: 8px;
    background: #ffffff;
    padding: 24px;
}

.feature-card span {
    color: #c46a4a;
    font-weight: 900;
}

.feature-card h3,
.portfolio-card h3 {
    margin-top: 24px;
    color: #171717;
    font-size: 22px;
    font-weight: 900;
}

.feature-card p,
.portfolio-card p {
    margin-top: 10px;
    color: #5f6368;
    line-height: 1.7;
}

.portfolio-visual {
    min-height: 230px;
    border-radius: 8px;
    background: linear-gradient(135deg, #23463f, #171717);
    padding: 16px;
}

.portfolio-visual div {
    height: 142px;
    border-radius: 6px;
    background:
        linear-gradient(90deg, rgba(217, 249, 157, .9) 28%, transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .68));
}

.portfolio-visual span {
    display: inline-flex;
    margin-top: 18px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .12);
    padding: 8px 10px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.package-card {
    min-height: 420px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    padding: 28px;
}

.package-featured {
    background: rgba(217, 249, 157, .1);
    border-color: rgba(217, 249, 157, .42);
}

.package-card h3 {
    font-size: 24px;
    font-weight: 900;
}

.package-card p {
    margin-top: 12px;
    color: rgba(255, 255, 255, .72);
    line-height: 1.7;
}

.brief-form {
    border: 1px solid rgba(23, 23, 23, .08);
    border-radius: 8px;
    background: #f5f7f2;
    padding: clamp(20px, 4vw, 34px);
}

.brief-form label {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.brief-form span {
    font-size: 13px;
    font-weight: 900;
    color: #23463f;
}

.brief-form input,
.brief-form select,
.brief-form textarea {
    width: 100%;
    border: 1px solid rgba(23, 23, 23, .14);
    border-radius: 6px;
    background: #ffffff;
    padding: 14px 15px;
    color: #171717;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.brief-form input:focus,
.brief-form select:focus,
.brief-form textarea:focus {
    border-color: #23463f;
    box-shadow: 0 0 0 4px rgba(35, 70, 63, .12);
}

.btn-submit,
.btn-secondary,
.btn-danger {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 900;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn-submit {
    border: 2px solid #0f172a;
    background: #0f172a;
    color: #ffffff;
}

.btn-submit:hover {
    background: #23463f;
    border-color: #23463f;
}

.btn-secondary {
    border: 2px solid #23463f;
    background: #ffffff;
    color: #23463f;
}

.btn-secondary:hover {
    background: #23463f;
    color: #ffffff;
}

.btn-danger {
    border: 2px solid #991b1b;
    background: #991b1b;
    color: #ffffff;
}

.btn-danger:hover {
    background: #7f1d1d;
    border-color: #7f1d1d;
}

.btn-sm {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
}

.admin-input {
    width: 100%;
    min-width: 160px;
    border: 1px solid rgba(23, 23, 23, .14);
    border-radius: 6px;
    background: #ffffff;
    padding: 10px 12px;
    color: #171717;
    outline: none;
}

.admin-input:focus {
    border-color: #23463f;
    box-shadow: 0 0 0 4px rgba(35, 70, 63, .12);
}

.modal-backdrop {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    background: rgba(23, 23, 23, .62);
    padding: 20px;
}

.modal-backdrop.is-open {
    display: flex;
}

.modal-panel {
    width: min(100%, 560px);
    border-radius: 8px;
    background: #ffffff;
    padding: clamp(20px, 4vw, 32px);
    box-shadow: 0 24px 80px rgba(23, 23, 23, .22);
}

.modal-close {
    display: inline-grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(23, 23, 23, .12);
    border-radius: 6px;
    color: #171717;
    font-size: 26px;
    line-height: 1;
}

.modal-close:hover {
    border-color: rgba(23, 23, 23, .36);
}

@media (max-width: 640px) {
    .stat-box {
        min-height: 76px;
        padding: 12px 10px;
    }

    .preview-grid {
        grid-template-columns: 1fr;
    }
}
