:root {
    --primary: #5b63e8;
    --primary-dark: #444ccf;
    --primary-soft: #eef0ff;
    --accent: #796fe8;
    --bg: #f6f8fc;
    --surface: #ffffff;
    --surface-soft: #f0f3f8;
    --text: #192033;
    --muted: #687086;
    --line: #e1e5ed;
    --dark: #252c43;
    --dark-soft: #303851;
    --success: #32a977;
    --shadow: 0 24px 70px rgba(39, 48, 85, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(246, 248, 252, 0.92);
    border-bottom: 1px solid rgba(225, 229, 237, 0.8);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    border-radius: 11px;
    font-weight: 800;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #555e73;
    font-size: 14px;
    font-weight: 600;
}

.desktop-nav a {
    transition: 0.2s;
}

.desktop-nav a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 0 19px;
    font-weight: 700;
    transition: 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(91, 99, 232, 0.22);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-ghost {
    color: var(--text);
}

.btn-secondary {
    background: #fff;
    border-color: var(--line);
    color: var(--text);
}

.btn-white {
    background: #fff;
    color: var(--primary-dark);
}

.btn-large {
    min-height: 54px;
    padding: 0 25px;
}

.mobile-toggle {
    width: 44px;
    height: 44px;
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mobile-toggle span {
    width: 23px;
    height: 2px;
    display: block;
    margin: 5px auto;
    background: var(--text);
    border-radius: 2px;
}

.mobile-menu {
    display: none;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 105px 0 95px;
}

.hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    top: -270px;
    right: -160px;
    background: rgba(91, 99, 232, 0.1);
    border-radius: 50%;
    filter: blur(10px);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
    gap: 75px;
}

.eyebrow {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    padding: 7px 12px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    border: 1px solid #dde0ff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.eyebrow span {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
}

.hero h1 {
    max-width: 650px;
    font-size: clamp(48px, 5vw, 73px);
    line-height: 0.98;
    letter-spacing: -3.5px;
    font-weight: 800;
}

.hero h1 strong {
    color: var(--primary);
    font-weight: 800;
}

.hero-description {
    max-width: 610px;
    margin-top: 26px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 33px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.hero-points i {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    margin-right: 4px;
    background: #e6f6ef;
    color: var(--success);
    border-radius: 50%;
    font-style: normal;
}

.builder-preview {
    position: relative;
}

.preview-window {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.preview-top {
    height: 45px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 15px;
    background: #f8f9fc;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
}

.preview-dots {
    display: flex;
    gap: 5px;
}

.preview-dots span {
    width: 8px;
    height: 8px;
    background: #d4d8e1;
    border-radius: 50%;
}

.preview-status {
    justify-self: end;
}

.preview-status span {
    width: 6px;
    height: 6px;
    display: inline-block;
    margin-right: 4px;
    background: var(--success);
    border-radius: 50%;
}

.preview-body {
    min-height: 400px;
    display: grid;
    grid-template-columns: 55px 1fr 145px;
}

.preview-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    padding-top: 15px;
    background: #f6f7fa;
    border-right: 1px solid var(--line);
}

.mini-logo {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    margin-bottom: 13px;
    background: var(--primary);
    color: #fff;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 800;
}

.mini-item {
    width: 27px;
    height: 27px;
    border: 0;
    background: #e6e9ef;
    border-radius: 7px;
}

.mini-item.active {
    background: #dfe2ff;
    border: 1px solid #c9cdff;
}

.editor-toolbar {
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    border-bottom: 1px solid var(--line);
    font-size: 10px;
    font-weight: 700;
}

.editor-toolbar button {
    padding: 5px 8px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 5px;
    color: var(--muted);
    font-size: 8px;
}

.editor-toolbar .publish-btn {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.editor-canvas {
    min-height: 353px;
    padding: 28px 24px;
    background: #fbfbfd;
}

.canvas-hero {
    padding: 24px;
    background: #f1f3f8;
    border-radius: 9px;
}

.skeleton {
    background: #dfe3ea;
    border-radius: 5px;
}

.skeleton.badge {
    width: 50px;
    height: 8px;
    margin-bottom: 11px;
    background: #d6d9ff;
}

.skeleton.title {
    width: 70%;
    height: 12px;
    margin-bottom: 7px;
    background: #bbc1ce;
}

.skeleton.title.short {
    width: 48%;
}

.skeleton.text {
    width: 80%;
    height: 6px;
    margin-top: 12px;
}

.skeleton.button {
    width: 55px;
    height: 17px;
    margin-top: 16px;
    background: var(--primary);
}

.canvas-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 13px;
}

.canvas-card {
    position: relative;
    min-height: 91px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
}

.canvas-card.selected {
    border: 2px solid var(--primary);
}

.selected-label {
    position: absolute;
    top: -16px;
    left: -2px;
    padding: 2px 5px;
    background: var(--primary);
    color: #fff;
    border-radius: 3px 3px 0 0;
    font-size: 6px;
}

.card-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 10px;
    background: var(--primary-soft);
    border-radius: 5px;
}

.card-title {
    width: 65%;
    height: 7px;
    margin-bottom: 7px;
}

.card-text {
    width: 90%;
    height: 5px;
}

.preview-properties {
    padding: 17px 12px;
    background: #fafbfc;
    border-left: 1px solid var(--line);
    color: var(--muted);
    font-size: 8px;
}

.preview-properties strong {
    display: block;
    margin-bottom: 17px;
    color: var(--text);
    font-size: 10px;
}

.preview-properties span {
    display: block;
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 700;
}

.preview-properties label {
    display: block;
    margin: 12px 0 5px;
}

.fake-input,
.fake-select {
    height: 23px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.fake-input.small {
    width: 65%;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
    box-shadow: 0 15px 35px rgba(36, 44, 76, 0.13);
}

.floating-card strong,
.floating-card small {
    display: block;
}

.floating-card strong {
    font-size: 11px;
}

.floating-card small {
    color: var(--muted);
    font-size: 8px;
}

.floating-components {
    left: -36px;
    bottom: 40px;
}

.floating-database {
    right: -30px;
    top: 75px;
}

.floating-icon,
.database-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 8px;
    font-weight: 800;
}

.database-icon::before {
    content: "DB";
    font-size: 8px;
    font-weight: 800;
}

.trust {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.trust-inner {
    min-height: 115px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.trust-inner > span {
    color: var(--muted);
    font-size: 12px;
}

.trust-types {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    color: #7b8294;
    font-size: 12px;
    letter-spacing: 0.7px;
}

.section {
    padding: 105px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 50px;
}

.section-tag {
    display: block;
    margin-bottom: 13px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.section-heading h2,
.project-copy h2,
.security-grid h2 {
    font-size: clamp(35px, 4vw, 51px);
    line-height: 1.08;
    letter-spacing: -2px;
}

.section-heading p,
.project-copy > p {
    max-width: 650px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 17px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    position: relative;
    min-height: 265px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: 0.25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(39, 48, 85, 0.08);
}

.feature-card.featured {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.feature-number {
    position: absolute;
    top: 22px;
    right: 24px;
    color: #a0a6b5;
    font-size: 11px;
    font-weight: 800;
}

.featured .feature-number {
    color: rgba(255, 255, 255, 0.55);
}

.feature-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    margin-bottom: 40px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 11px;
    font-size: 20px;
}

.featured .feature-icon {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.feature-card h3 {
    margin-bottom: 9px;
    font-size: 19px;
}

.feature-card p {
    color: var(--muted);
    font-size: 14px;
}

.featured p {
    color: rgba(255, 255, 255, 0.76);
}

.feature-link {
    display: block;
    margin-top: 20px;
    font-size: 12px;
    font-weight: 700;
}

.workflow-section {
    padding: 25px 0 105px;
}

.workflow-box {
    padding: 65px;
    background: var(--dark);
    color: #fff;
    border-radius: 25px;
}

.section-tag.light {
    color: #aeb4ff;
}

.workflow-heading {
    max-width: 600px;
}

.workflow-heading h2 {
    font-size: 43px;
    line-height: 1.1;
    letter-spacing: -1.7px;
}

.workflow-heading p {
    margin-top: 14px;
    color: #b7bdcc;
}

.workflow {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
    align-items: center;
    margin-top: 60px;
}

.workflow-item span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    background: var(--primary);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
}

.workflow-item strong,
.workflow-item small {
    display: block;
}

.workflow-item small {
    margin-top: 4px;
    color: #9ea5b7;
    font-size: 11px;
}

.workflow-line {
    height: 1px;
    margin: 0 18px;
    background: #49516b;
}

.projects-section {
    background: #fff;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 100px;
}

.project-list {
    display: grid;
    gap: 20px;
    margin-top: 35px;
}

.project-list > div {
    display: flex;
    gap: 14px;
}

.project-list > div > span {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: grid;
    place-items: center;
    background: #e7f7ef;
    color: var(--success);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

.project-list strong,
.project-list small {
    display: block;
}

.project-list small {
    margin-top: 2px;
    color: var(--muted);
}

.file-window {
    overflow: hidden;
    background: #f8f9fc;
    border: 1px solid var(--line);
    border-radius: 17px;
    box-shadow: var(--shadow);
}

.file-header {
    display: flex;
    justify-content: space-between;
    padding: 18px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: 700;
}

.file-header small {
    color: var(--primary);
}

.file-row {
    padding: 10px 20px;
    color: #596176;
    border-bottom: 1px solid #edf0f4;
    font-family: Consolas, monospace;
    font-size: 12px;
}

.file-row span {
    display: inline-block;
    width: 23px;
    color: var(--primary);
}

.file-row.indent {
    padding-left: 38px;
}

.file-row.indent-2 {
    padding-left: 65px;
}

.security-section {
    padding: 85px 0;
}

.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.security-content > p {
    color: var(--muted);
    font-size: 17px;
}

.security-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 27px;
}

.security-tags span {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #596176;
    font-size: 12px;
    font-weight: 700;
}

.cta {
    padding: 30px 0 100px;
}

.cta-box {
    padding: 75px;
    background: linear-gradient(135deg, #5b63e8, #7368df);
    color: #fff;
    border-radius: 26px;
    text-align: center;
}

.cta-box > span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.cta-box h2 {
    margin-top: 14px;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -2.5px;
}

.cta-box p {
    margin: 18px 0 28px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
}

.footer {
    background: #fff;
    border-top: 1px solid var(--line);
}

.footer-inner {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.footer p,
.footer-inner > span {
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 1050px) {
    .desktop-nav {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        max-width: 760px;
    }

    .builder-preview {
        max-width: 750px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-grid {
        gap: 50px;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .header-actions {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-menu.open {
        display: grid;
        padding: 10px 20px 20px;
        background: #fff;
        border-top: 1px solid var(--line);
    }

    .mobile-menu a {
        padding: 12px 4px;
        border-bottom: 1px solid var(--line);
        font-weight: 600;
    }

    .mobile-menu .mobile-primary {
        margin-top: 10px;
        padding: 12px;
        background: var(--primary);
        color: #fff;
        border-radius: 9px;
        text-align: center;
    }

    .hero {
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 48px;
        letter-spacing: -2.5px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .preview-body {
        grid-template-columns: 45px 1fr;
    }

    .preview-properties {
        display: none;
    }

    .floating-card {
        display: none;
    }

    .trust-inner {
        padding: 28px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .workflow-box {
        padding: 40px 25px;
    }

    .workflow {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .workflow-line {
        display: none;
    }

    .project-grid,
    .security-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .cta-box {
        padding: 55px 22px;
    }

    .footer-inner {
        padding: 30px 0;
        flex-direction: column;
        align-items: flex-start;
    }
}