:root {
    --home-ink: #102a32;
    --home-ink-soft: #2a4a54;
    --home-teal: #0d7377;
    --home-teal-deep: #0a5c5f;
    --home-cyan: #14919b;
    --home-paper: #fbfcfc;
    --home-surface: #f3f6f7;
    --home-line: rgba(16, 42, 50, 0.1);
    --home-muted: #6b8088;
    --home-danger: #b42318;
    --home-ok: #067647;
    --home-radius: 10px;
    --home-shadow: 0 10px 30px rgba(16, 42, 50, 0.08);
    --home-fs: 0.8125rem;
    --home-container: 960px;
}

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

html {
    scroll-behavior: smooth;
}

body.home-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: var(--home-ink);
    background: var(--home-surface);
    font-family: "IRANYekan", ui-sans-serif, system-ui, sans-serif;
    font-size: var(--home-fs);
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

@keyframes home-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes home-drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -6px, 0);
    }
}

@keyframes home-soft {
    0%,
    100% {
        opacity: 0.35;
    }
    50% {
        opacity: 0.7;
    }
}

.home-toast {
    position: fixed;
    top: 0.85rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    min-width: min(360px, calc(100vw - 1.5rem));
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--home-line);
    box-shadow: var(--home-shadow);
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    animation: home-rise 0.3s ease both;
}

.home-toast--error {
    border-color: rgba(180, 35, 24, 0.22);
}

.home-toast__title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
}

.home-toast__msg {
    margin: 0.15rem 0 0;
    color: var(--home-muted);
    font-size: 0.75rem;
}

.home-toast__close {
    border: 0;
    background: transparent;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    color: var(--home-muted);
}

.home-nav {
    position: absolute;
    inset-inline: 0;
    top: 0;
    z-index: 20;
    padding: 0.55rem 0;
}

.home-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: relative;
}

.home-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
    z-index: 2;
}

.home-nav__mark {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    flex-shrink: 0;
}

.home-nav__mark svg {
    width: 0.9rem;
    height: 0.9rem;
}

.home-nav__name {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(42vw, 14rem);
}

.home-nav__toggle {
    display: none;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 7px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.28rem;
    z-index: 2;
}

.home-nav__toggle-bar {
    display: block;
    width: 1rem;
    height: 1.5px;
    border-radius: 99px;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.home-nav.is-open .home-nav__toggle-bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.home-nav.is-open .home-nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

.home-nav.is-open .home-nav__toggle-bar:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.home-nav__backdrop {
    display: none;
}

.home-nav__drawer-head,
.home-nav__close {
    display: none;
}

.home-nav__menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.home-nav__links {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.home-nav__link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 0.72rem;
    font-weight: 400;
    transition: background 0.15s ease, color 0.15s ease;
}

.home-nav__link:hover,
.home-nav__link.is-current {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.home-nav__link--solid {
    background: rgba(255, 255, 255, 0.95);
    color: var(--home-ink);
    border-color: transparent;
    font-weight: 500;
    white-space: nowrap;
}

.home-hero {
    position: relative;
    min-height: clamp(17rem, 32vh, 22rem);
    overflow: visible;
    color: #fff;
    background:
        linear-gradient(160deg, #0c333c 0%, #0f4a52 55%, #123f48 100%);
}

.home-hero--compact {
    min-height: clamp(12rem, 22vh, 15rem);
}

.home-hero__art {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.4;
    overflow: hidden;
}

.home-hero__art svg {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    width: 100%;
    height: 180px;
}

.home-hero__glow {
    position: absolute;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: rgba(20, 145, 155, 0.18);
    filter: blur(48px);
    animation: home-drift 9s ease-in-out infinite;
}

.home-hero__glow--a {
    top: 18%;
    inset-inline-start: 12%;
}

.home-hero__glow--b {
    top: 30%;
    inset-inline-end: 14%;
    animation-delay: -3s;
}

.home-hero__copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: inherit;
    padding: 4.25rem 0 3.25rem;
    animation: home-rise 0.55s ease 0.05s both;
}

.home-hero--compact .home-hero__copy {
    padding: 3.5rem 0 2.75rem;
}

/* Hero text uses .home-container so it matches page width. */

.home-hero__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.home-hero__brand {
    margin: 0 0 0.35rem;
    font-size: clamp(1.15rem, 2.6vw, 1.45rem);
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.home-hero__lead {
    margin: 0;
    max-width: none;
    font-size: 0.75rem;
    line-height: 1.75;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.72);
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.85rem;
}

.home-btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.48rem 0.9rem;
    border-radius: 7px;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.home-btn--primary {
    background: #fff;
    color: var(--home-ink);
}

.home-btn--primary:hover {
    background: #f2f5f6;
}

.home-btn--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.home-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.06);
}

.home-btn--teal {
    background: var(--home-teal);
    color: #fff;
}

.home-btn--teal:hover {
    background: var(--home-teal-deep);
}

.home-btn--quiet {
    background: transparent;
    color: var(--home-ink-soft);
    border: 1px solid var(--home-line);
}

.home-btn--quiet:hover {
    background: var(--home-surface);
}

.home-window {
    animation: home-soft 4.5s ease-in-out infinite;
}

.home-panel-wrap {
    position: relative;
    z-index: 3;
    margin-top: -1.25rem;
    padding-bottom: 2rem;
}

.home-shell {
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: 12px;
    box-shadow: var(--home-shadow);
    overflow: hidden;
    animation: home-rise 0.55s ease 0.1s both;
}

.home-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-bottom: 1px solid var(--home-line);
}

.home-tabs__btn {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0.75rem 0.75rem;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--home-muted);
    cursor: pointer;
    position: relative;
}

.home-tabs__btn.is-active {
    color: var(--home-ink);
}

.home-tabs__btn.is-active::after {
    content: "";
    position: absolute;
    inset-inline: 22%;
    bottom: -1px;
    height: 1.5px;
    background: var(--home-teal);
}

.home-pane {
    display: none;
    padding: 1.15rem 1.15rem 1.35rem;
}

.home-pane.is-active {
    display: block;
    animation: home-rise 0.28s ease both;
}

.home-pane__intro {
    margin: 0 0 1rem;
    color: var(--home-muted);
    font-size: 0.75rem;
    line-height: 1.8;
    font-weight: 300;
}

.home-form {
    display: grid;
    gap: 0.7rem;
}

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

.home-custom-shop {
    grid-column: 1 / -1;
    padding: 0.85rem;
    border: 1px dashed var(--home-line);
    border-radius: 8px;
    background: var(--home-surface);
}

.home-custom-shop[hidden] {
    display: none !important;
}

.home-field {
    display: grid;
    gap: 0.28rem;
}

.home-field--wide {
    grid-column: 1 / -1;
}

.home-field label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--home-ink-soft);
}

.home-field .req {
    color: var(--home-danger);
    font-weight: 400;
}

.home-field input,
.home-field select,
.home-field textarea {
    width: 100%;
    border: 1px solid var(--home-line);
    background: #fff;
    border-radius: 7px;
    padding: 0.5rem 0.65rem;
    font: inherit;
    font-size: 0.78rem;
    color: var(--home-ink);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-field textarea {
    min-height: 88px;
    resize: vertical;
}

.home-field input:focus,
.home-field select:focus,
.home-field textarea:focus {
    border-color: rgba(13, 115, 119, 0.45);
    box-shadow: 0 0 0 3px rgba(20, 145, 155, 0.1);
}

.home-field.has-error input,
.home-field.has-error select,
.home-field.has-error textarea {
    border-color: rgba(180, 35, 24, 0.4);
}

.home-field__error {
    color: var(--home-danger);
    font-size: 0.68rem;
}

.home-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.15rem;
}

.home-result {
    display: grid;
    gap: 0.75rem;
}

.home-code {
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem 0.9rem;
    border-radius: 8px;
    background: var(--home-surface);
    border: 1px solid var(--home-line);
}

.home-code__label {
    margin: 0;
    color: var(--home-muted);
    font-size: 0.68rem;
    font-weight: 400;
}

.home-code__value {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    direction: ltr;
    text-align: right;
}

.home-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--home-surface);
    color: var(--home-ink-soft);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.4;
}

.home-status::before {
    content: "";
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

.home-status--amber {
    background: #fdf3e2;
    color: #b45309;
}

.home-status--red,
.home-status--warn {
    background: #fdecec;
    color: var(--home-danger);
}

.home-status--blue {
    background: #e8f1fb;
    color: #1d5fa8;
}

.home-status--navy {
    background: #e3ebf3;
    color: #12304a;
}

.home-status--teal {
    background: #e6f7fc;
    color: #0a5c5f;
}

.home-status--green,
.home-status--ok {
    background: #e8f6ee;
    color: var(--home-ok);
}

.home-status--gray {
    background: #eef1f4;
    color: #5b6b7a;
}

.home-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
}

.home-meta div {
    padding: 0.6rem 0.7rem;
    border-radius: 8px;
    background: var(--home-surface);
}

.home-meta__wide {
    grid-column: 1 / -1;
}

.home-meta dt {
    margin: 0;
    color: var(--home-muted);
    font-size: 0.68rem;
    font-weight: 400;
}

.home-meta dd {
    margin: 0.18rem 0 0;
    font-size: 0.78rem;
    font-weight: 500;
}

.home-final-note {
    margin-top: 0.85rem;
    padding: 0.85rem 0.95rem;
    border-radius: 9px;
    border: 1px solid var(--home-line);
    background: #fff;
}

.home-final-note--amber {
    border-color: #f0d7a8;
    background: #fffaf0;
}

.home-final-note--red {
    border-color: #f0c2c2;
    background: #fff7f7;
}

.home-final-note--green {
    border-color: #b7dfc6;
    background: #f4fbf6;
}

.home-final-note--navy {
    border-color: #c5d4e2;
    background: #f5f8fb;
}

.home-final-note--gray {
    border-color: var(--home-line);
    background: var(--home-surface);
}

.home-final-note__title {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--home-ink);
}

.home-final-note__text,
.home-final-note__extra {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.85;
    color: var(--home-ink-soft);
}

.home-final-note__extra {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px dashed var(--home-line);
}

.home-foot {
    margin-top: auto;
    border-top: 1px solid var(--home-line);
    background: #fff;
    color: var(--home-muted);
    font-size: 0.72rem;
}

.home-foot__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 1.25rem;
    padding: 1.35rem 0 1.1rem;
}

.home-foot__brand {
    margin: 0 0 0.35rem;
    color: var(--home-ink);
    font-size: 0.8rem;
    font-weight: 600;
}

.home-foot__text {
    margin: 0;
    max-width: 18rem;
    line-height: 1.75;
    font-weight: 300;
}

.home-foot__title {
    margin: 0 0 0.45rem;
    color: var(--home-ink);
    font-size: 0.72rem;
    font-weight: 600;
}

.home-foot__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.home-foot__links a {
    color: var(--home-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.home-foot__links a:hover {
    color: var(--home-teal-deep);
}

.home-foot__bar {
    border-top: 1px solid var(--home-line);
    padding: 0.7rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.68rem;
}

.home-foot__bar a {
    color: var(--home-teal-deep);
    text-decoration: none;
    font-weight: 500;
}

.home-content__body {
    padding: 1.15rem 1.15rem 1.35rem;
}

.home-content__body h2 {
    margin: 0 0 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--home-ink);
}

.home-content__body h2 + p,
.home-content__body p {
    margin: 0 0 1rem;
    color: var(--home-muted);
    font-size: 0.78rem;
    line-height: 1.85;
    font-weight: 300;
}

.home-steps {
    margin: 0 0 1.1rem;
    padding: 0 1.1rem 0 0;
    color: var(--home-muted);
    font-size: 0.78rem;
    line-height: 1.9;
    font-weight: 300;
}

.home-steps li + li {
    margin-top: 0.35rem;
}

.home-contact {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 0.85rem;
    align-items: start;
}

.home-contact__aside .home-meta {
    margin-top: 0.75rem;
}

@media (max-width: 820px) {
    .home-contact {
        grid-template-columns: 1fr;
    }
}

/* Tom Select — match minimal form scale */
.home-field .ts-wrapper {
    font-size: 0.78rem;
}

.home-field .ts-wrapper .ts-control {
    border: 1px solid var(--home-line);
    border-radius: 7px;
    padding: 0.35rem 0.55rem;
    min-height: 2.15rem;
    box-shadow: none;
    background: #fff;
}

.home-field .ts-wrapper.focus .ts-control {
    border-color: rgba(13, 115, 119, 0.45);
    box-shadow: 0 0 0 3px rgba(20, 145, 155, 0.1);
}

.home-field .ts-dropdown {
    font-size: 0.75rem;
    border-radius: 8px;
    border-color: var(--home-line);
}

@media (max-width: 860px) {
    .home-nav__toggle {
        display: inline-flex;
    }

    .home-nav__backdrop,
    .home-nav__backdrop[hidden] {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 999;
        background: rgba(8, 24, 30, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .home-nav__backdrop[hidden] {
        display: none;
    }

    .home-nav.is-open .home-nav__backdrop,
    .home-nav__backdrop.is-open {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .home-nav__drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .home-nav__drawer-title {
        font-size: 0.8rem;
        font-weight: 600;
        color: #fff;
    }

    .home-nav__close {
        display: inline-flex;
        appearance: none;
        border: 0;
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        width: 1.9rem;
        height: 1.9rem;
        border-radius: 6px;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        line-height: 1;
        cursor: pointer;
    }

    .home-nav__menu {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1000;
        width: min(82vw, 300px);
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        padding: 1rem 0.9rem 1.25rem;
        background: #0b3038;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.28);
        transform: translateX(105%);
        transition: transform 0.28s ease;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .home-nav.is-open .home-nav__menu,
    .home-nav__menu.is-open {
        transform: translateX(0);
    }

    .home-nav__links {
        flex-direction: column;
        gap: 0.25rem;
    }

    .home-nav__link {
        display: block;
        padding: 0.7rem 0.8rem;
        font-size: 0.8rem;
    }

    .home-nav__link--solid {
        text-align: center;
        margin-top: auto;
    }

    .home-nav__name {
        max-width: min(58vw, 12rem);
    }

    .home-hero__copy {
        padding-top: 4.5rem;
    }

    .home-hero--compact .home-hero__copy {
        padding-top: 3.75rem;
    }

    body.home-nav-locked {
        overflow: hidden;
    }
}

@media (max-width: 720px) {
    .home-form__grid {
        grid-template-columns: 1fr;
    }

    .home-container {
        width: min(100% - 1.5rem, var(--home-container));
    }

    .home-hero__lead {
        max-width: none;
    }

    .home-hero {
        min-height: clamp(15rem, 36vh, 20rem);
    }

    .home-hero--compact {
        min-height: clamp(11rem, 26vh, 14rem);
    }

    .home-hero__copy {
        padding: 4rem 0 2.5rem;
    }

    .home-hero--compact .home-hero__copy {
        padding: 3.25rem 0 2.25rem;
    }

    .home-hero__art svg {
        height: 140px;
    }

    .home-panel-wrap {
        margin-top: -1rem;
    }

    .home-pane {
        padding: 1rem;
    }

    .home-foot__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.1rem 0 0.9rem;
    }
}
