/* ==========================================================================
   SARY ARQA BELT, TOO — Global Stylesheet
   Minimalist typography with soft gradient background and subtle motion.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
    --color-bg: #FAFAF7;
    --color-bg-soft: #FFFFFF;
    --color-text: #0A0A0A;
    --color-text-secondary: #555555;
    --color-text-muted: #8A8A8A;
    --color-border: #E6E6E2;
    --color-border-strong: #0A0A0A;
    --color-hover-bg: #F2F2EE;
    --color-surface: rgba(255, 255, 255, 0.7);

    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --container-max: 1240px;
    --container-narrow: 780px;
    --container-padding: 24px;

    --header-height: 72px;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --transition: 0.24s var(--ease);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

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

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition), border-color var(--transition);
}

a:hover {
    opacity: 0.7;
}

h1, h2, h3, h4 {
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 0;
}

p {
    margin: 0 0 1em;
}

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

/* --- Background --------------------------------------------------------- */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    animation: float 18s ease-in-out infinite;
}

.bg-blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #D9D9D0 0%, transparent 70%);
}

.bg-blob-2 {
    top: 35%;
    right: -12%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #E3E0D4 0%, transparent 70%);
    animation-delay: -6s;
}

.bg-blob-3 {
    bottom: -10%;
    left: 20%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, #C8CCC0 0%, transparent 70%);
    animation-delay: -12s;
}

@keyframes float {
    0%, 100%   { transform: translate(0, 0) scale(1); }
    33%        { transform: translate(40px, -60px) scale(1.05); }
    66%        { transform: translate(-30px, 30px) scale(0.95); }
}

/* --- Container ---------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container-narrow {
    max-width: var(--container-narrow);
}

/* --- Header ------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    background-color: rgba(250, 250, 247, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text);
}

.brand:hover {
    opacity: 1;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--color-text);
    color: #FFFFFF;
    border-radius: 8px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.brand-name {
    display: none;
}

.site-nav {
    display: none;
    gap: 28px;
}

.site-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: 8px 4px;
    position: relative;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 4px;
    height: 1px;
    background-color: var(--color-text);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform var(--transition);
}

.site-nav a:hover {
    color: var(--color-text);
    opacity: 1;
}

.site-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background-color: var(--color-surface);
}

.lang-btn {
    background: transparent;
    border: 0;
    padding: 6px 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 999px;
    transition: background-color var(--transition), color var(--transition);
}

.lang-btn:hover {
    color: var(--color-text);
}

.lang-btn.is-active {
    background-color: var(--color-text);
    color: #FFFFFF;
}

/* --- Hero --------------------------------------------------------------- */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 64px);
    padding-bottom: 96px;
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
    background:
        radial-gradient(1100px 600px at 85% -10%, rgba(16, 185, 129, 0.10), transparent 60%),
        radial-gradient(900px 500px at 0% 110%, rgba(10, 10, 10, 0.06), transparent 60%),
        linear-gradient(180deg, #FFFFFF 0%, var(--color-bg) 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(10, 10, 10, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(10, 10, 10, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 32px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-text-secondary);
    width: fit-content;
    margin-bottom: 28px;
}

.hero-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hero-title {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.02;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-title-line {
    display: block;
}

.hero-title-accent {
    color: var(--color-text-muted);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 58ch;
    margin-bottom: 36px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 56px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--color-text);
    color: #FFFFFF;
    border-color: var(--color-text);
}

.btn-primary:hover {
    background-color: #1a1a1a;
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-border-strong);
}

.btn-ghost:hover {
    background-color: var(--color-text);
    color: #FFFFFF;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--color-border);
}

.stat {
    padding: 20px 16px 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.stat:nth-child(2n) {
    padding-left: 16px;
    border-left: 1px solid var(--color-border);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

/* --- Sections ----------------------------------------------------------- */
.section {
    padding: 96px 0;
    border-bottom: 1px solid var(--color-border);
    scroll-margin-top: var(--header-height);
}

.section-alt {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.section-head {
    max-width: 72ch;
    margin-bottom: 56px;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 20px;
    font-family: var(--font-mono);
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.section-lead {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.55;
    max-width: 60ch;
}

/* --- Services ----------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-card {
    padding: 32px 28px;
    background-color: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-text);
    box-shadow: 0 20px 40px -20px rgba(10, 10, 10, 0.15);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background-color: var(--color-text);
    color: #FFFFFF;
    margin-bottom: 24px;
}

.service-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.service-desc {
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.service-list li {
    position: relative;
    padding: 10px 0 10px 26px;
    font-size: 15px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

.service-list li:last-child {
    border-bottom: 0;
}

.service-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

/* --- About -------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.about-text p {
    font-size: 17px;
    color: var(--color-text-secondary);
    margin-bottom: 1.2em;
    line-height: 1.7;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-card {
    padding: 28px 24px;
    background-color: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: transform var(--transition), border-color var(--transition);
}

.about-card:hover {
    transform: translateX(4px);
    border-color: var(--color-text);
}

.about-card-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.about-card-body {
    font-size: 17px;
    color: var(--color-text);
    line-height: 1.5;
}

/* --- Facts (Company) ---------------------------------------------------- */
.facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--color-bg-soft);
}

.fact {
    padding: 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--color-border);
    transition: background-color var(--transition);
}

.fact:hover {
    background-color: var(--color-hover-bg);
}

.fact-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-weight: 500;
}

.fact-value {
    font-size: 17px;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

/* --- Contacts ----------------------------------------------------------- */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-block {
    padding: 28px 24px;
    background-color: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), transform var(--transition);
}

.contact-block:hover {
    border-color: var(--color-text);
    transform: translateY(-2px);
}

.contact-block-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    font-weight: 600;
    margin: 0 0 12px;
    font-family: var(--font-mono);
}

.contact-block-body {
    margin: 0;
    font-size: 17px;
    color: var(--color-text);
    line-height: 1.55;
}

.contact-block-body a {
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1px;
}

.contact-block-body a:hover {
    border-bottom-color: var(--color-text);
    opacity: 1;
}

.contacts-note {
    padding: 24px 28px;
    background-color: var(--color-hover-bg);
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--radius-md);
}

.contacts-note p {
    margin: 0;
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.contacts-note a {
    color: var(--color-text);
    border-bottom: 1px solid var(--color-text);
}

/* --- Legal page --------------------------------------------------------- */
.legal {
    padding-top: calc(var(--header-height) + 64px);
    padding-bottom: 96px;
    scroll-margin-top: var(--header-height);
}

.legal-updated {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 40px;
    font-family: var(--font-mono);
}

.prose {
    max-width: 72ch;
    color: var(--color-text);
}

.prose h2 {
    font-size: 22px;
    margin-top: 44px;
    margin-bottom: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1em;
}

.prose ul {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 1em;
    color: var(--color-text-secondary);
}

.prose li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.prose a {
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1px;
}

.prose a:hover {
    border-bottom-color: var(--color-text);
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
    padding: 64px 0 32px;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
    max-width: 30ch;
    line-height: 1.55;
}

.footer-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 14px;
    font-family: var(--font-mono);
}

.footer-line {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.footer-line a {
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1px;
}

.footer-line a:hover {
    border-bottom-color: var(--color-text);
    opacity: 1;
}

.footer-bottom {
    grid-column: 1 / -1;
    padding-top: 28px;
    margin-top: 12px;
    border-top: 1px solid var(--color-border);
}

.footer-copy {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-muted);
}

/* --- Reveal animations -------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Focus -------------------------------------------------------------- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

/* Tablet */
@media (min-width: 680px) {
    .brand-name {
        display: inline;
    }

    .hero-title {
        font-size: 64px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat {
        padding: 24px 20px;
        border-bottom: 0;
    }

    .stat:nth-child(2n) {
        padding-left: 20px;
    }

    .stat:not(:first-child) {
        border-left: 1px solid var(--color-border);
    }

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

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

    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
    }

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

    .fact {
        border-right: 1px solid var(--color-border);
    }

    .fact:nth-child(2n) {
        border-right: 0;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    :root {
        --container-padding: 40px;
    }

    .site-nav {
        display: flex;
    }

    .hero {
        padding-top: calc(var(--header-height) + 96px);
        padding-bottom: 128px;
    }

    .hero-inner {
        max-width: var(--container-narrow);
        gap: 32px;
    }

    .hero-title {
        font-size: 80px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .section {
        padding: 128px 0;
    }

    .section-title {
        font-size: 48px;
    }

    .about-grid {
        grid-template-columns: 1.3fr 1fr;
        gap: 80px;
        align-items: start;
    }

    .facts {
        grid-template-columns: repeat(4, 1fr);
    }

    .fact {
        border-right: 1px solid var(--color-border);
    }

    .fact:nth-child(2n) {
        border-right: 1px solid var(--color-border);
    }

    .fact:nth-child(4n) {
        border-right: 0;
    }

    .contacts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large desktop */
@media (min-width: 1280px) {
    .hero-title {
        font-size: 96px;
    }
}

/* --- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .bg-blob {
        animation: none;
    }
}

/* --- Dark theme preparation (not active) -------------------------------- */
