:root {
    --background: #ffffff;
    --foreground: #1A1A1A;
    --muted-foreground: #666666;
    --soft-foreground: #3A3A3A;
    --card: #ffffff;
    --card-muted: #F8F8F7;
    --border: #E6E6E6;
    --border-strong: #D7D7D7;
    --ring: rgba(26, 26, 26, 0.14);
    --success: #198038;
    --radius: 8px;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 78px;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    overflow-x: clip;
    background: var(--background);
    color: var(--foreground);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    letter-spacing: 0;
    color: var(--foreground);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    padding: 0 40px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.site-header .ui-button {
    min-height: 36px;
    border-radius: 10px;
    padding: 0 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 23px;
    font-weight: 600;
    line-height: 1;
}

.brand__mark {
    width: 25px;
    height: 31px;
}

.header-actions,
.footer-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-nav a {
    color: var(--soft-foreground);
    font-size: 14px;
    font-weight: 500;
    transition: color 160ms ease;
}

.footer-nav a:hover,
.footer-brand:hover {
    color: var(--foreground);
}

.ui-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ui-button:hover {
    transform: translateY(-1px);
}

.ui-button:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

.ui-button--primary {
    background: var(--foreground);
    border-color: var(--foreground);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(26, 26, 26, 0.12);
}

.ui-button--primary:hover {
    background: #2A2A2A;
    border-color: #2A2A2A;
}

.ui-button--secondary {
    background: #ffffff;
    border-color: var(--border-strong);
    color: var(--foreground);
}

.ui-button--secondary:hover {
    border-color: #BDBDBD;
    box-shadow: 0 8px 22px rgba(26, 26, 26, 0.06);
}

.ui-button--large {
    min-height: 48px;
    padding: 0 22px;
    font-size: 15px;
}

.ui-button--full {
    width: 100%;
}

.hero {
    display: grid;
    place-items: center;
    min-height: 560px;
    min-height: clamp(520px, 70svh, 700px);
    padding: clamp(72px, 10svh, 96px) 24px clamp(60px, 8svh, 84px);
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='0.8' fill='%23D6DCE5'/%3E%3C/svg%3E");
    background-position: center top;
    background-size: 16px 16px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.hero__inner {
    width: min(920px, 100%);
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 24px;
    font-size: 64px;
    font-weight: 600;
    line-height: 0.96;
}

.hero__lead {
    width: min(820px, 100%);
    margin: 0 auto 32px;
    color: #5D6470;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.34;
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.product-demo {
    padding: 36px 24px 104px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.product-demo__inner {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.product-demo__video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: min(68svh, 720px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--card-muted);
    box-shadow: 0 18px 48px rgba(26, 26, 26, 0.08);
    object-fit: cover;
}

.page-hero {
    display: grid;
    place-items: center;
    min-height: 560px;
    padding: 96px 24px 88px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='0.8' fill='%23D6DCE5'/%3E%3C/svg%3E");
    background-position: center top;
    background-size: 16px 16px;
    border-bottom: 1px solid var(--border);
}

.page-hero__inner {
    width: min(920px, 100%);
    margin: 0 auto;
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 24px;
    font-size: 58px;
    font-weight: 600;
    line-height: 1;
}

.page-hero p:last-child {
    width: min(780px, 100%);
    margin: 0 auto;
    color: #5D6470;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.42;
}

.section-shell {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
    padding: 112px 0;
}

.workflow.section-shell {
    width: min(1680px, calc(100% - 240px));
}

.section-heading {
    width: min(760px, 100%);
    margin-bottom: 40px;
}

.section-kicker {
    margin: 0 0 12px;
    color: var(--muted-foreground);
    font-size: 13px;
    font-weight: 650;
}

.workflow .section-kicker,
.pricing .section-kicker,
.contact .section-kicker {
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 600;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.08;
}

.workflow {
    position: relative;
}

.workflow::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100vw;
    height: 1px;
    background: var(--border);
    transform: translateX(-50%);
}

.workflow-grid {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
}

.ui-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 1px 2px rgba(26, 26, 26, 0.03);
}

.workflow-card {
    z-index: 1;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    min-height: 520px;
    padding: 52px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.workflow-card + .workflow-card {
    border-left: 1px solid var(--border);
}

.pricing-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 18px 40px rgba(26, 26, 26, 0.06);
    transform: translateY(-2px);
}

.workflow-card:hover {
    background: #FAFAFA;
}

.workflow-icon {
    width: 100%;
    max-width: 240px;
    height: 132px;
    margin-bottom: 20px;
    color: var(--foreground);
}

.workflow-icon pattern circle {
    fill: #D6DCE5;
}

.workflow-icon > circle:not(.workflow-icon__shape) {
    fill: currentColor;
}

.workflow-icon__line,
.workflow-icon__shape {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    vector-effect: non-scaling-stroke;
}

.workflow-icon__line {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.workflow-icon__line--light {
    opacity: 0.32;
    stroke-dasharray: 2 4;
}

.workflow-icon__text {
    fill: currentColor;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
}

.step-marker {
    color: var(--muted-foreground);
    font-size: 15px;
    font-weight: 600;
}

.workflow-card h3,
.pricing-card h3 {
    margin-bottom: 10px;
    font-size: 21px;
    font-weight: 650;
    line-height: 1.2;
}

.workflow-card p {
    margin-bottom: 0;
    color: var(--muted-foreground);
    font-size: 16px;
    line-height: 1.55;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    min-height: 430px;
    padding: 28px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pricing-card--featured {
    background: var(--foreground);
    border-color: var(--foreground);
    color: #ffffff;
}

.pricing-card--featured h3,
.pricing-card--featured .price,
.pricing-card--featured .feature-list li {
    color: #ffffff;
}

.pricing-card--featured .ui-button--primary {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--foreground);
}

.pricing-card--featured .ui-button--primary:hover {
    background: #F2F2F0;
    border-color: #F2F2F0;
}

.pricing-card__header {
    min-height: 106px;
}

.price {
    margin-bottom: 0;
    color: var(--foreground);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.08;
}

.price--text {
    font-size: 30px;
}

.ui-separator {
    height: 1px;
    width: 100%;
    margin: 20px 0 24px;
    background: var(--border);
}

.ui-separator--featured {
    background: rgba(255, 255, 255, 0.18);
}

.feature-list {
    display: grid;
    gap: 13px;
    margin-bottom: 28px;
}

.feature-list li {
    position: relative;
    padding-left: 20px;
    color: var(--soft-foreground);
    font-size: 15px;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.42;
}

.pricing-card .ui-button {
    margin-top: auto;
}

.contact {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 72px;
    align-items: start;
}

.contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 1px;
    background: var(--border);
    transform: translateX(-50%);
}

.contact__copy {
    max-width: 460px;
}

.contact__copy h2 {
    margin-bottom: 18px;
    font-size: 44px;
    font-weight: 650;
    line-height: 1.1;
}

.contact__copy p:last-child {
    margin-bottom: 0;
    color: var(--muted-foreground);
    font-size: 18px;
    line-height: 1.6;
}

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

.form-field {
    display: grid;
    gap: 8px;
}

.form-field--full,
.contact-form .ui-button {
    grid-column: 1 / -1;
}

.form-status {
    margin: -4px 0 0;
    color: var(--muted-foreground);
    font-size: 13px;
    line-height: 1.4;
}

.form-status[data-state="success"] {
    color: var(--success);
}

.form-status[data-state="error"] {
    color: #B42318;
}

.honeypot {
    display: none;
}

.form-field span {
    color: var(--soft-foreground);
    font-size: 14px;
    font-weight: 600;
}

.ui-input,
.ui-textarea {
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: #ffffff;
    color: var(--foreground);
    font: inherit;
    font-size: 15px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ui-input {
    min-height: 44px;
    padding: 0 14px;
}

.ui-textarea {
    min-height: 132px;
    padding: 12px 14px;
    resize: vertical;
}

.ui-input:focus,
.ui-textarea:focus {
    border-color: #BDBDBD;
    box-shadow: 0 0 0 3px var(--ring);
    outline: none;
}

.about-section {
    display: grid;
    gap: 48px;
}

.about-lede {
    width: min(820px, 100%);
}

.about-lede h2,
.about-band h2 {
    margin-bottom: 18px;
    font-size: 44px;
    font-weight: 650;
    line-height: 1.1;
}

.about-lede p,
.about-band p {
    margin-bottom: 0;
    color: var(--muted-foreground);
    font-size: 18px;
    line-height: 1.65;
}

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

.about-card {
    min-height: 260px;
    padding: 28px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.about-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 18px 40px rgba(26, 26, 26, 0.06);
    transform: translateY(-2px);
}

.about-card h3 {
    margin-bottom: 12px;
    font-size: 21px;
    font-weight: 650;
    line-height: 1.2;
}

.about-card p {
    margin-bottom: 0;
    color: var(--muted-foreground);
    font-size: 16px;
    line-height: 1.55;
}

.about-band {
    position: relative;
    padding: 104px 24px;
}

.about-band::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 1px;
    background: var(--border);
    transform: translateX(-50%);
}

.about-band__inner {
    width: min(900px, 100%);
    margin: 0 auto;
    text-align: center;
}

.about-band p {
    width: min(720px, 100%);
    margin: 0 auto 28px;
}

.site-footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 104px;
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 1px;
    background: var(--border);
    transform: translateX(-50%);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--foreground);
    font-size: 18px;
    font-weight: 600;
}

.footer-brand__mark {
    width: 24px;
    height: 30px;
}

@media (max-width: 960px) {
    .site-header {
        padding: 0 24px;
    }

    .hero {
        min-height: 540px;
        min-height: clamp(500px, 68svh, 620px);
        padding-top: 80px;
        padding-bottom: 64px;
    }

    .hero h1 {
        font-size: 47px;
    }

    .hero__lead {
        font-size: 20px;
    }

    .product-demo {
        padding: 28px 24px 88px;
    }

    .page-hero {
        min-height: 500px;
        padding-top: 80px;
        padding-bottom: 72px;
    }

    .page-hero h1 {
        font-size: 46px;
    }

    .page-hero p:last-child {
        font-size: 19px;
    }

    .section-shell {
        padding: 88px 0;
    }

    .workflow.section-shell {
        width: min(100% - 48px, var(--container));
    }

    .section-heading h2 {
        font-size: 40px;
    }

    .workflow-grid,
    .pricing-grid,
    .about-grid,
    .contact {
        grid-template-columns: 1fr;
    }

    .contact {
        gap: 32px;
    }

    .workflow-grid {
        flex-direction: column;
        border-top: 0;
        border-bottom: 0;
    }

    .workflow-card + .workflow-card {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .workflow-card,
    .pricing-card {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .site-header {
        min-height: 58px;
        padding: 0 18px;
    }

    .brand span {
        font-size: 18px;
    }

    .brand__mark {
        width: 20px;
        height: 25px;
    }

    .brand {
        gap: 8px;
    }

    .header-actions {
        gap: 8px;
    }

    .site-header .ui-button {
        min-height: 34px;
        padding: 0 11px;
        font-size: 12px;
    }

    .ui-button {
        min-height: 38px;
        border-radius: 10px;
        padding: 0 14px;
        font-size: 13px;
    }

    .ui-button--large {
        width: 100%;
        min-height: 46px;
        font-size: 14px;
    }

    .hero {
        min-height: 520px;
        padding: 74px 20px 56px;
    }

    .hero h1 {
        font-size: 36px;
        line-height: 1.02;
    }

    .hero__lead {
        font-size: 17px;
        line-height: 1.45;
    }

    .page-hero {
        min-height: 480px;
        padding: 74px 20px 64px;
    }

    .page-hero h1 {
        font-size: 36px;
        line-height: 1.04;
    }

    .page-hero p:last-child {
        font-size: 17px;
        line-height: 1.45;
    }

    .hero__actions {
        width: 100%;
    }

    .product-demo {
        padding: 22px 18px 72px;
    }

    .product-demo__video {
        border-radius: 6px;
    }

    .section-shell,
    .site-footer {
        width: min(100% - 36px, var(--container));
    }

    .workflow.section-shell {
        width: min(100% - 36px, var(--container));
    }

    .section-shell {
        padding: 72px 0;
    }

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

    .section-heading h2 {
        font-size: 34px;
    }

    .about-lede h2,
    .about-band h2,
    .contact__copy h2 {
        font-size: 32px;
    }

    .workflow-card,
    .pricing-card,
    .about-card,
    .contact-form {
        padding: 22px;
    }

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

    .workflow-icon {
        max-width: 220px;
        height: 120px;
        margin-bottom: 12px;
    }

    .workflow-card {
        grid-template-columns: 1fr;
    }

    .step-marker {
        width: 52px;
        height: 52px;
    }

    .price {
        font-size: 34px;
    }

    .price--text {
        font-size: 26px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 28px 0;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 14px 18px;
    }
}
