:root {
    color-scheme: light;
    --ink: #181b1a;
    --muted: #656965;
    --paper: #f6f3ed;
    --surface: #fffdf8;
    --line: #dedbd3;
    --accent: #176b59;
    --accent-dark: #0f4e41;
    --accent-soft: #dfeee8;
    --warm: #d28b4d;
    --shadow: 0 24px 70px rgba(30, 38, 34, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 18% 5%, rgba(210, 139, 77, 0.12), transparent 31rem),
        var(--paper);
    color: var(--ink);
    font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
    line-height: 1.75;
}

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

img,
video {
    max-width: 100%;
}

.landing-header,
.hero-section,
.content-section,
.landing-footer {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.landing-header {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.landing-brand {
    direction: ltr;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.landing-brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px 10px 4px 10px;
    background: var(--ink);
    color: var(--surface);
    font-size: 15px;
    letter-spacing: 0;
}

.landing-header-actions,
.landing-header-nav {
    display: flex;
    align-items: center;
}

.landing-header-actions {
    gap: 24px;
}

.landing-header-nav {
    gap: 20px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.landing-header-nav a:hover {
    color: var(--ink);
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 21px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}

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

.button-small {
    min-height: 40px;
    padding-inline: 17px;
    font-size: 13px;
}

.button-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 12px 30px rgba(23, 107, 89, 0.2);
}

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

.button-secondary,
.button-ghost {
    border-color: var(--line);
    background: rgba(255, 253, 248, 0.62);
}

.button-secondary:hover,
.button-ghost:hover {
    border-color: #b7b4ac;
    background: var(--surface);
}

.button-light {
    flex: 0 0 auto;
    background: white;
    color: var(--accent-dark);
}

.hero-section {
    min-height: calc(100vh - 76px);
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(480px, 1.18fr);
    align-items: center;
    gap: clamp(44px, 7vw, 94px);
    padding: 62px 0 100px;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.section-eyebrow::before {
    width: 20px;
    height: 2px;
    content: "";
    background: currentColor;
}

.hero-copy h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(42px, 5.25vw, 78px);
    font-weight: 820;
    letter-spacing: -0.055em;
    line-height: 1.16;
}

.hero-copy > p {
    max-width: 580px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 2;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 12px;
}

.hero-note span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #43a679;
    box-shadow: 0 0 0 5px rgba(67, 166, 121, 0.12);
}

.hero-media {
    position: relative;
}

.hero-media::before {
    position: absolute;
    z-index: -1;
    inset: -10% 12% auto auto;
    width: 72%;
    aspect-ratio: 1;
    content: "";
    border-radius: 50%;
    background: var(--accent-soft);
    filter: blur(1px);
}

.hero-media > img,
.hero-media > video,
.product-preview {
    width: 100%;
    border: 1px solid rgba(24, 27, 26, 0.16);
    border-radius: 18px;
    background: #222625;
    box-shadow: var(--shadow);
}

.hero-media > img,
.hero-media > video {
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.product-preview {
    direction: ltr;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    color: #dce2df;
    font-family: "Segoe UI", Arial, sans-serif;
    transform: perspective(1100px) rotateY(2deg) rotateX(1deg);
}

.product-preview::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.preview-topbar {
    height: 11%;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 0 3%;
    border-bottom: 1px solid #444a48;
    background: #191c1b;
    font-size: clamp(6px, 0.72vw, 10px);
}

.preview-brand {
    color: #ecf1ef;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.preview-project {
    color: #b7bfbc;
    text-align: center;
}

.preview-status {
    color: #80c7a8;
    text-align: right;
}

.preview-ribbon {
    height: 13%;
    display: flex;
    align-items: center;
    gap: 1.5%;
    padding: 0 2%;
    border-bottom: 1px solid #484e4c;
    background: #2c302f;
}

.preview-tool {
    padding: 1.2% 2.6%;
    border: 1px solid #4a514e;
    border-radius: 4px;
    color: #bac2bf;
    font-size: clamp(5px, 0.65vw, 9px);
}

.preview-tool.is-active {
    border-color: #2f9f83;
    background: rgba(47, 159, 131, 0.2);
    color: #dff8ee;
}

.preview-tool.is-muted {
    margin-left: auto;
    color: #78807d;
}

.preview-workspace {
    height: 76%;
    display: grid;
    grid-template-columns: 21% minmax(0, 1fr) 23%;
}

.preview-browser,
.preview-properties {
    display: flex;
    flex-direction: column;
    gap: 6%;
    padding: 9% 8%;
    background: #252927;
    color: #9ea7a3;
    font-size: clamp(5px, 0.58vw, 8px);
}

.preview-browser {
    border-right: 1px solid #484e4c;
}

.preview-properties {
    border-left: 1px solid #484e4c;
}

.preview-browser strong,
.preview-properties strong {
    margin-bottom: 4%;
    color: #e1e7e4;
    font-size: 1.1em;
}

.preview-browser .is-nested {
    padding-left: 10%;
}

.preview-browser .is-selected {
    padding-block: 4%;
    border-radius: 3px;
    background: #35403c;
    color: #edf7f3;
}

.preview-canvas {
    position: relative;
    overflow: hidden;
    background-color: #1f2322;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 9% 9%;
}

.preview-axis {
    position: absolute;
    opacity: 0.36;
}

.preview-axis-x {
    top: 67%;
    right: 0;
    left: 0;
    height: 1px;
    background: #bd5b5b;
}

.preview-axis-y {
    top: 0;
    bottom: 0;
    left: 31%;
    width: 1px;
    background: #5ca879;
}

.preview-wall {
    position: absolute;
    height: 2.2%;
    transform-origin: left center;
    border-radius: 1px;
    background: #e5e9e7;
    box-shadow: 0 0 0 1px #bbc1be;
}

.wall-one {
    top: 28%;
    left: 22%;
    width: 55%;
}

.wall-two {
    top: 28%;
    left: 22%;
    width: 43%;
    transform: rotate(90deg);
}

.wall-three {
    top: 70%;
    left: 22%;
    width: 55%;
}

.wall-four {
    top: 28%;
    left: 77%;
    width: 43%;
    transform: rotate(90deg);
}

.preview-door {
    position: absolute;
    top: 69%;
    left: 48%;
    width: 13%;
    aspect-ratio: 1;
    border-top: 1px solid #d59764;
    border-left: 1px solid #d59764;
    border-radius: 100% 0 0;
}

.preview-origin {
    position: absolute;
    top: calc(67% + 4px);
    left: calc(31% + 5px);
    color: #9eaaa6;
    font-size: clamp(4px, 0.5vw, 7px);
}

.content-section {
    padding: 105px 0;
}

.section-header {
    max-width: 650px;
    margin-bottom: 44px;
}

.section-header h2,
.highlight-section h2,
.cta-section h2 {
    margin: 0;
    font-size: clamp(30px, 3.7vw, 50px);
    letter-spacing: -0.04em;
    line-height: 1.35;
}

.section-header p,
.highlight-section > div > p,
.cta-section p {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 16px;
}

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

.feature-card {
    min-height: 260px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 253, 248, 0.68);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #c2c4bb;
    box-shadow: 0 18px 45px rgba(30, 38, 34, 0.08);
}

.feature-card-topline {
    min-height: 54px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.feature-card img {
    width: 46px;
    height: 46px;
    padding: 11px;
    border-radius: 13px;
    background: var(--accent-soft);
}

.feature-badge {
    padding: 3px 8px;
    border: 1px solid #d9b791;
    border-radius: 999px;
    color: #9c5c28;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.feature-card h3,
.steps-list h3 {
    margin: 24px 0 0;
    font-size: 18px;
}

.feature-card p,
.steps-list p {
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.steps-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.steps-section .section-header {
    position: sticky;
    top: 40px;
    margin: 0;
}

.steps-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps-list li {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 22px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.steps-list li:first-child {
    padding-top: 0;
}

.step-number {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid #c8d9d3;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 800;
}

.steps-list h3 {
    margin-top: 0;
}

.highlight-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding-inline: clamp(30px, 6vw, 80px);
    border: 1px solid #d5dfda;
    border-radius: 24px;
    background: var(--accent-soft);
}

.highlight-section ul {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.highlight-section li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
}

.highlight-section li > span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 11px;
}

.highlight-section li div {
    display: grid;
    gap: 3px;
}

.highlight-section li small {
    color: var(--muted);
    font-size: 12px;
}

.cta-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 70px;
    margin-bottom: 110px;
    padding-inline: clamp(30px, 6vw, 78px);
    border-radius: 24px;
    background: var(--accent-dark);
    color: white;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.68);
}

.landing-footer {
    min-height: 120px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 32px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.landing-footer > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.landing-footer strong {
    direction: ltr;
    width: fit-content;
    color: var(--ink);
    font-size: 13px;
    letter-spacing: 0.14em;
}

.landing-footer nav {
    display: flex;
    gap: 18px;
}

.landing-footer nav a:hover {
    color: var(--ink);
}

@media (max-width: 980px) {
    .hero-section {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 70px;
    }

    .hero-copy {
        max-width: 720px;
    }

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

    .steps-section,
    .highlight-section {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .steps-section .section-header {
        position: static;
    }
}

@media (max-width: 620px) {
    .landing-header,
    .hero-section,
    .content-section,
    .landing-footer {
        width: min(100% - 30px, 1180px);
    }

    .landing-header {
        min-height: 68px;
    }

    .landing-brand {
        font-size: 13px;
    }

    .landing-header .button {
        min-height: 38px;
        padding-inline: 13px;
    }

    .landing-header-actions {
        gap: 12px;
    }

    .landing-header-nav {
        gap: 11px;
        font-size: 12px;
    }

    .hero-section {
        gap: 50px;
        padding: 48px 0 70px;
    }

    .hero-copy h1 {
        font-size: clamp(38px, 12vw, 55px);
    }

    .hero-copy > p {
        font-size: 15px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .product-preview {
        transform: none;
    }

    .preview-workspace {
        grid-template-columns: 24% minmax(0, 1fr);
    }

    .preview-properties {
        display: none;
    }

    .content-section {
        padding: 70px 0;
    }

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

    .feature-card {
        min-height: 225px;
    }

    .highlight-section,
    .cta-section {
        padding: 42px 25px;
    }

    .cta-section {
        align-items: stretch;
        flex-direction: column;
        margin-top: 35px;
        margin-bottom: 70px;
    }

    .landing-footer {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 30px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button,
    .feature-card {
        transition: none;
    }
}
