@font-face {
    font-family: "Itf Ghroob Geometric";
    src: url("../Ghroob/ItfGhroobGeometric-Light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Itf Ghroob Geometric";
    src: url("../Ghroob/ItfGhroobGeometric-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Itf Ghroob Geometric";
    src: url("../Ghroob/ItfGhroobGeometric-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Itf Ghroob Geometric";
    src: url("../Ghroob/ItfGhroobGeometric-SemiBold.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Itf Ghroob Geometric";
    src: url("../Ghroob/ItfGhroobGeometric-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Itf Ghroob Geometric";
    src: url("../Ghroob/ItfGhroobGeometric-ExtraBold.otf") format("opentype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Itf Ghroob Geometric";
    src: url("../Ghroob/ItfGhroobGeometric-Black.otf") format("opentype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #f2f0ed;
    --card: #fffdfb;
    --card-strong: #ffffff;
    --text: #1a1715;
    --muted: #4B4B4B;
    --line: #CBF2E6;
    --line-strong: #CBF2E6;
    --accent: #027792;
    --accent-deep: #027792;
    --accent-soft: #E6F2F4;
    --shadow: 0 24px 60px rgba(84, 60, 39, 0.12);
    --soft-shadow: 0 14px 34px rgba(108, 82, 57, 0.08);
    --Text: #0c0c0c;
    --Sub-Text: #4b4b4b;
    --Space--40: 40px;
    --Space--14: 14.5px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Itf Ghroob Geometric", sans-serif;
    color: var(--text);
}

body.menu-open {
    overflow: hidden;
}

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

button,
input,
textarea {
    font: inherit;
}

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

.mobile-only {
    display: none;
}

.page-shell {
    min-height: 100vh;
    padding: 18px 0px 0 0px;
    background: #F5F5F5;
}

.app-shell {
    /* width: min(1180px, 100%); */
    min-height: calc(100vh - 18px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.desktop-header,
.mobile-header,
.pages-wrap,
.site-footer {
    position: relative;
    z-index: 1;
}

.mobile-header {
    z-index: 1000;
    background: white;
}

.desktop-header {
    padding: 18px 26px 0;
}

.nav-pill {
    width: min(640px, 100%);
    margin: 0 auto;
    padding: 11px 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(209, 188, 172, 0.65);
    border-radius: 999px;
}

.nav-logo img,
.mobile-logo img {
    width: 70px;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 26px;
    direction: rtl;
    font-size: 0.92rem;
}

.nav-links a {
    color: var(--muted);
    transition: color 0.2s ease;
    font-size: 14.5px;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--accent-deep);
}

.download-link {
    padding: 8px 16px;
    border: 1px solid var(--accent-deep);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.mobile-header {
    display: none;
    padding: 0;
    position: relative;
}

.mobile-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: ltr;
    padding: 10px 16px 14px;
    border-bottom: 1px solid rgba(222, 217, 212, 0.9);
    position: relative;
    z-index: 1001;
}

.menu-toggle {
    width: 44px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(198, 187, 179, 0.95);
    border-radius: 4px;
    background: #fffdfb;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(60, 46, 30, 0.05);
    position: relative;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 14px;
    height: 1.8px;
    background: #8a817b;
    border-radius: 2px;
}

.menu-toggle svg {
    display: block;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    position: fixed;
    inset: 0;
    min-height: 100vh;
    padding: 96px 24px 32px;
    background: rgba(255, 253, 251, 0.98);
    backdrop-filter: blur(8px);
    border-right: 1px solid rgba(222, 217, 212, 0.9);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.mobile-menu a {
    padding: 2px 0;
    color: var(--muted);
    font-size: 16px;
    font-weight: 500;
    text-align: start;
}

.mobile-menu a.is-active,
.mobile-menu a:hover {
    color: var(--accent-deep);
}

.mobile-download {
    margin-top: 6px;
    padding: 10px 18px !important;
    border-radius: 18px;
    text-align: center;
    color: var(--card-strong) !important;
    background: var(--accent);
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: center !important;
}

/* desktop */
.pages-wrap {
    flex: 1;
    display: flex;
}

.page-panel {
    flex: 1;
    display: none;
}

.page-panel.is-active {
    display: flex;
}

.page-home,
.page-terms,
.page-contact {
    width: 100%;
}

.hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 44px 0;
}

.copy-block {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.copy-block h1,
.terms-panel h1,
.contact-heading h1 {
    margin: 0;
    color: var(--Text, #0c0c0c);
    text-align: center;
    font-family: "Itf Ghroob Geometric", sans-serif;
    font-size: var(--Space--40, 40px);
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.lead,
.panel-intro,
.terms-block p,
.terms-block li,
.contact-heading p,
.contact-form span,
.contact-card a,
.contact-card h2,
.contact-card p {
    color: var(--Sub-Text, #4b4b4b);
    text-align: start;
    font-family: "Itf Ghroob Geometric", sans-serif;
    font-size: var(--Space--14, 14px);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.lead,
.panel-intro,
.contact-heading p {
    text-align: center;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.contact-card p,
.contact-card a {
    color: #0C0C0C;
    font-weight: 600;
}

.terms-block h2,
.terms-block p,
.terms-block li {
    text-align: start;
}

.lead {
    max-width: 520px;
    margin: 18px auto 0;
}

.store-buttons {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 29px;
    flex-wrap: wrap;
}

.store-buttons a {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.store-buttons a:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(30, 23, 17, 0.15);
}

.store-buttons img {
    height: 57px;
}

.devices-showcase {
    position: relative;
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 390px;
}

.devices-showcase img {
    width: min(1240px, 100%);
}

.glow {
    position: absolute;
    bottom: 84px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 138, 53, 0.22), rgba(245, 138, 53, 0));
    pointer-events: none;
    filter: blur(10px);
}

.glow-left {
    left: 8%;
}

.glow-right {
    right: 8%;
}

.page-terms,
.page-contact {
    padding: 14px 28px 24px;
}

.content-panel {
    margin: 0 auto;
}

.terms-panel {
    width: min(920px, 100%);
    text-align: center;
    padding-top: 10px;
}

.panel-intro,
.contact-heading p {
    max-width: 620px;
    margin: 10px auto 0;
}

.terms-block {
    max-width: 760px;
    margin: 28px auto 0;
}

.terms-block h2 {
    margin: 0 0 10px;
    font-size: 1.9rem;
    line-height: 1.45;
}

.terms-block ul,
.terms-block ol {
    margin: 10px 0 0;
    padding: 0;
    list-style-position: inside;
}

.contact-panel {
    width: min(980px, 100%);
    padding-top: 18px;
}

.contact-heading {
    text-align: center;
}

.contact-layout {
    margin-top: 34px;
    display: flex;
    gap: 20px;
    align-items: start;
    margin-inline: auto;
}

.contact-form {
    min-width: 596px;
}

.contact-form,
.contact-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 42px rgba(105, 83, 58, 0.1);
    width: 100%;
}

.contact-card {
    grid-column: 2;
    min-width: 400px;
    max-width: none;
    justify-self: stretch;
}

.contact-form {
    padding: 22px 14px 14px;
}

.contact-form label {
    display: block;
    margin-bottom: 18px;
}

.contact-form .field-label {
    display: block;
    margin: 0 6px 8px;
}

.contact-form .validation-message {
    display: block;
    margin: 6px 0 0 0;
    color: red;
    font-size: 0.85rem;
    line-height: 1.4;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(205, 197, 191, 1);
    border-radius: 11px;
    background: #fff;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.is-invalid {
    border: 1px solid red;
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.contact-form button {
    min-width: 110px;
    border: 0;
    border-radius: 999px;
    min-height: 50px;
    padding: 13px 28px;
    color: #fff;
    background: var(--accent);
    cursor: pointer;
    font-weight: 600;
    width: 9.9375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.2s ease;
    box-shadow: 0 12px 40px -8px rgba(31, 0, 55, 0.25);
}

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

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.form-status-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    text-align: center;
}

.form-status {
    min-width: 118px;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}

.form-status-success {
    color: #0f5f31;
    background: #dff7e8;
    border: 1px solid #73cb95;
    text-align: center;
}

.form-status-error {
    color: #8e1d2c;
    background: #ffe2e5;
    border: 1px solid #f2a0aa;
    text-align: center;
}

.contact-card {
    padding: 28px 26px;
}

.contact-card h2 {
    margin: 0 0 6px;
}

.contact-card p {
    margin: 0;
}

.site-footer {
    padding: 18px 80px 18px 80px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    background-color: #FFF;
    border-top: 1px solid var(--line-strong);
    color: var(--Text, #0c0c0c);
    font-family: "Itf Ghroob Geometric", sans-serif;
    font-size: var(--Space--14, 14px);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.site-footer p {
    margin: 0;
    justify-self: end;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-links a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
}

.social-links img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-panel {
    padding-bottom: 40px;
}

.footer-links a, p {
    color: #0C0C0C;
}

.site-footer p {
    direction: ltr;
}

@media (max-width: 1400px) {
    .devices-showcase {
        margin-top: 64px;
    }
}

@media (max-width: 900px) {
    .page-shell {
        padding: 12px;
    }

    .app-shell {
        min-height: 100vh;
        border-radius: 26px;
    }

    .desktop-header {
        display: none;
    }

    .mobile-header {
        display: block;
    }


    .page-terms,
    .page-contact {
        padding: 0;
    }

    .hero-content {
        padding: 16px 0 0;
    }

    .copy-block h1,
    .terms-panel h1,
    .contact-heading h1 {
        font-size: clamp(2rem, 7vw, var(--Space--40, 40px));
        line-height: normal;
    }

    .content-panel {
        width: 100%;
        padding: 16px 20px 0;
    }

    .terms-block {
        margin-top: 24px;
    }

    .terms-block h2 {
        font-size: 1.6rem;
    }

    .devices-showcase {
        min-height: 240px;
        margin-top: 24px;
    }

    .devices-showcase img {
        width: min(860px, 100%);
    }

    .glow {
        width: 150px;
        height: 150px;
        bottom: 54px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        justify-content: stretch;
        width: 100%;
    }

    .contact-form,
    .contact-card {
        grid-column: auto;
        order: 2;
        width: 100%;
    }

    .contact-form {
        order: 1;
    }

    .site-footer {
        grid-template-columns: 1fr;
        padding: 14px 18px 18px;
    }

    .footer-links,
    .site-footer p {
        justify-self: center;
        text-align: center;
    }

    .contact-layout {
        flex-direction: column;
        gap: 20px;
    }

    .contact-form {
        min-width: 100%;
    }

    .pages-wrap {
        flex: unset;
        display: flex;
    }

    .contact-card {
        min-width: 100%;
        margin-bottom: 24px;
    }
}

@media (max-width: 560px) {
    .page-shell {
        padding: 0px;
    }

    .devices-showcase .mobile-only {
        width: 100%;
    }

    .app-shell {
        /* width: min(390px, 100%); */
        min-height: 100vh;
        border-radius: 24px;
    }

    .hero-content {
        padding: 0;
    }

    .copy-block {
        max-width: 360px;
    }

    .content-panel {
        padding-bottom: 24px;
    }

    .copy-block h1 {
        max-width: 320px;
        margin: 0 auto;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .copy-block {
        margin-top: 32px;
    }

    .copy-block h1 br {
        display: block;
    }

    .copy-block h1,
    .terms-panel h1,
    .contact-heading h1 {
        font-size: clamp(30px, 8vw, var(--Space--40, 40px));
    }

    .store-buttons {
        gap: 12px;
    }

    .store-buttons img {
        height: 44px;
    }

    .devices-showcase {
        min-height: unset;
        margin-top: 20px;
        overflow: hidden;
        /* max-height: 232px; */
        display: flex;
        align-items: flex-start;
    }

    .devices-showcase .mobile-only {
        width: 80%;
        display: block;
    }

    .glow {
        display: none;
    }

    .terms-panel,
    .contact-panel {
        padding-top: 10px;
    }

    .terms-block h2 {
        font-size: 1.35rem;
    }

    .contact-layout {
        margin-top: 24px;
    }

    .contact-form,
    .contact-card {
        border-radius: 18px;
    }

    .pages-wrap {
        flex: unset;
        display: flex;
    }

    .contact-form {
        padding: 18px 12px 12px;
    }

    .contact-form button {
        width: 100%;
    }

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

    .form-status-list {
        width: 100%;
        flex-direction: column;
    }

    .form-status {
        width: 100%;
    }

    .footer-links {
        order: -1;
    }

    .site-footer {
        gap: 12px;
    }

    .mobile-menu {
        padding: 94px 22px 28px;
        gap: 20px;
    }

    .contact-layout {
        flex-direction: column;
        gap: 20px;
    }

    .contact-form {
        min-width: 100%;
    }

    .contact-card {
        min-width: 100%;
        margin-bottom: 24px;
    }
}
