:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #faf8ff;
    --line: rgba(18, 25, 46, 0.08);
    --line-strong: rgba(143, 82, 231, 0.45);
    --text: #18243f;
    --muted: #63708b;
    --accent: #8f52e7;
    --accent-deep: #7a43d1;
    --accent-soft: #f4ecff;
    --accent-alt: #27d3c3;
    --shadow: 0 16px 40px rgba(23, 31, 56, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background: var(--bg);
}

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

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

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

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.section {
    padding: 5.5rem 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(18, 25, 46, 0.06);
    backdrop-filter: blur(12px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.brand-mark {
    width: 5.8rem;
    height: 5.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.brand-mark-image {
    padding: 0;
    overflow: visible;
}

.brand-mark-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.main-nav a {
    transition: color 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--text);
    transform: translateY(-1px);
}

.nav-cta {
    min-width: 5rem;
    justify-content: center;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(122, 67, 209, 0.18);
}

.hero-section,
.quote-hero {
    padding: 4.25rem 0 3rem;
}

.hero-stack {
    display: grid;
    gap: 2.25rem;
}

.hero-centered {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

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

h1,
h2,
h3,
strong {
    letter-spacing: -0.03em;
}

h1 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 1.05;
}

h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
}

.hero-text,
.section-heading p,
.about-copy p,
.project-body p,
.contact-panel p,
.info-card p,
.step-heading p,
.quote-intro p,
.approach-item p {
    color: var(--muted);
    line-height: 1.75;
    font-size: 1rem;
}

.hero-text-centered {
    max-width: 760px;
    margin: 1rem auto 0;
}

.text-accent {
    color: var(--accent-alt);
}

.hero-actions,
.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-actions-centered {
    justify-content: center;
    margin-top: 1.7rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.4rem;
    padding: 0.9rem 1.45rem;
    border-radius: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(122, 67, 209, 0.2);
}

.button-secondary {
    background: #ffffff;
    color: var(--text);
    border-color: rgba(18, 25, 46, 0.10);
}

.hero-showcase,
.quote-form-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero-showcase {
    width: min(100%, 420px);
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.hero-showcase-media {
    min-height: 360px;
}

.hero-showcase-content {
    position: absolute;
    left: 1.4rem;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 2;
    color: #ffffff;
}

.hero-showcase-content h2 {
    font-size: 1.65rem;
    line-height: 1.1;
}

.panel-badge,
.progress-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.9rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(39, 211, 195, 0.14);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
}

.progress-label {
    background: var(--accent-soft);
    color: var(--accent);
}

.metrics-section {
    padding: 0 0 2rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(18, 25, 46, 0.06);
}

.metric-item {
    text-align: center;
    padding: 1rem;
}

.metric-item strong {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 1.45rem;
    color: var(--accent);
}

.metric-item span {
    color: var(--muted);
    line-height: 1.6;
}

.section-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.4rem;
}

.section-heading h2 {
    margin-bottom: 0.75rem;
}

.cards-grid,
.approach-grid,
.portfolio-grid {
    display: grid;
    gap: 1.35rem;
}

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

.info-card,
.project-card,
.option-card,
.quote-note,
.contact-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.info-card {
    position: relative;
    padding: 2rem 1.6rem;
}

.info-card-featured {
    border-color: var(--line-strong);
}

.card-icon {
    width: 3.25rem;
    height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 16px;
    background: #ebfbf8;
    color: var(--accent-alt);
    font-weight: 800;
}

.card-icon-popular {
    background: var(--accent-soft);
    color: var(--accent);
}

.card-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.8rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
}

.info-card h3,
.project-body h3,
.approach-item h3 {
    margin: 0 0 0.7rem;
    font-size: 1.25rem;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
    display: grid;
    gap: 0.75rem;
    color: var(--muted);
}

.card-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.card-list li::before {
    content: "";
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 50%;
    background: var(--accent-alt);
    flex: 0 0 auto;
}

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

.project-card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover,
.project-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(23, 31, 56, 0.12);
}

.project-visual {
    position: relative;
    min-height: 230px;
    background-size: cover;
    background-position: center;
}

.project-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24, 36, 63, 0) 32%, rgba(24, 36, 63, 0.74) 100%);
}

.project-visual-1 {
    background-image: url("https://images.unsplash.com/photo-1585747860715-2ba37e788b70?auto=format&fit=crop&w=900&q=80");
}

.project-visual-2 {
    background-image: url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=900&q=80");
}

.project-visual-3 {
    background-image: url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=900&q=80");
}

.project-visual-4 {
    background-image: url("https://images.unsplash.com/photo-1528698827591-e19ccd7bc23d?auto=format&fit=crop&w=900&q=80");
}

.project-body {
    padding: 1.35rem;
}

.project-body span {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.approach-item {
    text-align: center;
    padding: 1rem;
}

.approach-icon {
    width: 5rem;
    height: 5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(143, 82, 231, 0.08);
    color: var(--accent);
    font-weight: 800;
}

.contact-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.contact-panel .eyebrow,
.contact-panel h2,
.contact-panel p {
    color: #ffffff;
}

.contact-button {
    background: #ffffff;
    color: var(--accent);
    box-shadow: none;
}

.quote-main {
    padding-bottom: 4rem;
}

.quote-hero-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2rem;
    align-items: start;
}

.quote-intro-centered {
    max-width: 860px;
    margin: 0 auto 2rem;
    text-align: center;
}

.quote-builder-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 1.5rem;
    align-items: start;
}

.quote-note {
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 1.5rem;
    padding: 1rem 1.15rem;
    box-shadow: none;
}

.quote-form-card {
    padding: 1.6rem;
}

.wireframe-card {
    position: sticky;
    top: 6rem;
    padding: 0;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.wireframe-stage {
    --wireframe-primary: #8f52e7;
    --wireframe-secondary: #ffffff;
    padding: 1rem;
    background: #f8f7fc;
    border-radius: 24px;
}

.wireframe-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.wireframe-navbar {
    height: 0.9rem;
    width: 42%;
    background: var(--wireframe-primary);
    opacity: 0.9;
    border-radius: 999px;
}

.wireframe-logo {
    min-width: 5rem;
    max-width: 9rem;
    padding: 0.35rem 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: var(--wireframe-secondary);
    border: 1px solid rgba(18, 25, 46, 0.08);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
    color: rgba(24, 36, 63, 0.7);
}

.wireframe-hero {
    padding: 1rem;
    margin-bottom: 0.9rem;
    background: var(--wireframe-primary);
    border-radius: 18px;
}

.wireframe-title,
.wireframe-text,
.wireframe-button {
    border-radius: 999px;
}

.wireframe-title {
    width: 72%;
    height: 1rem;
    margin-bottom: 0.75rem;
    background: color-mix(in srgb, var(--accent-alt) 85%, white 15%);
}

.wireframe-text {
    width: 90%;
    height: 0.8rem;
    margin-bottom: 0.75rem;
    background: rgba(24, 36, 63, 0.14);
}

.wireframe-text-short {
    width: 54%;
}

.wireframe-button {
    width: 100%;
    height: 4.2rem;
    margin-top: 1rem;
    background: color-mix(in srgb, var(--accent-alt) 88%, white 12%);
    border-radius: 12px;
}

.wireframe-sections {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.wireframe-block {
    min-height: 4.2rem;
    background: var(--wireframe-primary);
    border-radius: 10px;
}

.wireframe-block-secondary {
    background: var(--wireframe-secondary);
    border: 1px solid rgba(18, 25, 46, 0.08);
}

.wireframe-block-accent {
    background: var(--accent-alt);
}

.wireframe-block-wide {
    grid-column: span 2;
}

.wireframe-block-tall {
    min-height: 5rem;
}

.sections-grid {
    margin-top: 1rem;
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.progress-header strong,
.progress-header span:last-child {
    font-size: 0.95rem;
}

.progress-bar {
    width: 100%;
    height: 0.8rem;
    margin: 1rem 0 1.8rem;
    overflow: hidden;
    border-radius: 999px;
    background: #f2ecfd;
}

.progress-bar span {
    display: block;
    width: 16.67%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width 0.3s ease;
}

.form-step {
    display: none;
    animation: stepFade 0.35s ease;
}

.form-step.is-active {
    display: block;
}

.step-heading {
    margin-bottom: 1.35rem;
}

.step-heading h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 0.55rem;
}

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

.field,
.field-full {
    display: grid;
    gap: 0.55rem;
}

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

.field span {
    font-weight: 700;
    font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(143, 82, 231, 0.18);
    border-radius: 14px;
    background: #ffffff;
    color: var(--text);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(143, 82, 231, 0.6);
    box-shadow: 0 0 0 4px rgba(143, 82, 231, 0.12);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.option-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
}

.option-card input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--accent);
}

.form-actions {
    margin-top: 1.5rem;
}

.form-feedback {
    min-height: 1.5rem;
    margin: 1rem 0 0;
    color: #b44747;
    font-size: 0.92rem;
}

.site-footer {
    padding: 0 0 2rem;
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(18, 25, 46, 0.08);
    color: var(--muted);
    font-size: 0.92rem;
}

.is-hidden {
    display: none;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

@keyframes stepFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .cards-grid,
    .portfolio-grid,
    .approach-grid,
    .metrics-grid,
    .quote-hero-grid,
    .quote-builder-grid,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .contact-panel {
        align-items: flex-start;
    }

    .wireframe-card {
        position: static;
        top: auto;
    }

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

@media (max-width: 720px) {
    .site-header {
        position: static;
    }

    .nav-wrap,
    .footer-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .brand-mark {
        width: 4.8rem;
        height: 4.8rem;
    }

    .hero-section,
    .quote-hero,
    .section {
        padding: 3.5rem 0;
    }

    .hero-showcase {
        width: min(100%, 360px);
    }

    .form-grid,
    .options-grid {
        grid-template-columns: 1fr;
    }

    .quote-form-card,
    .contact-panel {
        padding: 1.25rem;
    }
}
