/* ============================================================
   CloudTech Oman — "Ion" Home Design System
   Near-black canvas · electric-blue dome glow · violet ambience
   glass surfaces · centered composition · bilingual LTR/RTL
   (after the Itona AI-IoT landing reference)
   ============================================================ */

:root {
    /* Canvas */
    --void: #020308;             /* page background */
    --void-2: #04060f;           /* raised dark */
    --glass: rgba(255, 255, 255, 0.03);
    --glass-2: rgba(255, 255, 255, 0.055);

    /* Lines */
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --line-glow: rgba(86, 134, 255, 0.45);

    /* Ink */
    --white: #ffffff;
    --fg: #eef1f8;
    --fg-soft: rgba(238, 241, 248, 0.66);
    --fg-mute: rgba(238, 241, 248, 0.44);

    /* Electric blue system */
    --ion: #2e6bff;
    --ion-bright: #5d93ff;
    --ion-deep: #0a36c4;
    --ion-cyan: #57b6ff;
    --violet: #6d3df0;

    /* Type */
    --font-sans: 'Hanken Grotesk', 'IBM Plex Sans Arabic', system-ui, sans-serif;

    /* Rhythm */
    --gutter: clamp(20px, 4vw, 56px);
    --sect: clamp(90px, 12vw, 160px);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[dir="rtl"] {
    --font-sans: 'IBM Plex Sans Arabic', 'Hanken Grotesk', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background: var(--void);
    /* clamp horizontal overflow at the root so off-canvas glows/marquees
       can never create a sideways scroll (was shifting the mobile header) */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 16px;
    color: var(--fg);
    background: var(--void);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

[dir="rtl"] body { line-height: 1.9; }

::selection { background: var(--ion); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:focus-visible {
    outline: 2px solid var(--ion-bright);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ------------------------------------------------------------
   Reveal on scroll
   ------------------------------------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

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

/* ------------------------------------------------------------
   Shared pieces
   ------------------------------------------------------------ */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ion-bright);
    background: rgba(46, 107, 255, 0.10);
    border: 1px solid rgba(86, 134, 255, 0.35);
    border-radius: 999px;
    padding: 8px 16px;
    box-shadow: 0 0 22px -6px rgba(46, 107, 255, 0.55);
}

[dir="rtl"] .pill { letter-spacing: 0; font-size: 13.5px; }

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ion-bright);
    box-shadow: 0 0 8px 1px rgba(93, 147, 255, 0.9);
    animation: pill-pulse 2.6s ease-in-out infinite;
}

@keyframes pill-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* Section headers — centered */
.sec-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    margin-block-end: clamp(44px, 6.4vh, 72px);
}

.sec-title {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--white);
    text-wrap: balance;
    max-width: 22ch;
}

[dir="rtl"] .sec-title { letter-spacing: 0; line-height: 1.4; font-weight: 700; }

.sec-title em {
    font-style: normal;
    background: linear-gradient(100deg, var(--ion-bright), var(--ion-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.sec-sub {
    max-width: 56ch;
    color: var(--fg-mute);
    font-size: 1.02rem;
    text-wrap: balance;
}

/* Glass card base */
.glass {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s var(--ease), background 0.4s var(--ease),
                transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

/* cursor spotlight (driven by JS --mx/--my) */
.glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%),
        rgba(93, 147, 255, 0.10), transparent 65%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

.glass:hover::before { opacity: 1; }

.glass:hover {
    border-color: var(--line-glow);
    background: var(--glass-2);
    transform: translateY(-4px);
    box-shadow: 0 18px 50px -22px rgba(46, 107, 255, 0.35);
}

/* ============================================================
   HERO — centered, dome glow
   ============================================================ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block-start: clamp(120px, 16vh, 180px);
    overflow: hidden;
    isolation: isolate;
}

/* violet corner ambience */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(34% 44% at -6% 100%, rgba(109, 61, 240, 0.22), transparent 70%),
        radial-gradient(34% 44% at 106% 100%, rgba(109, 61, 240, 0.22), transparent 70%),
        radial-gradient(60% 50% at 50% -10%, rgba(46, 107, 255, 0.10), transparent 70%);
}

/* the blue dome */
.hero-glow {
    position: absolute;
    z-index: -1;
    inset-block-end: -42vh;
    left: 50%;
    transform: translateX(-50%);
    width: max(130vw, 900px);
    aspect-ratio: 2.1 / 1;
    border-radius: 50%;
    background:
        radial-gradient(closest-side at 50% 50%,
            rgba(120, 170, 255, 0.85) 0%,
            rgba(46, 107, 255, 0.55) 18%,
            rgba(18, 60, 210, 0.38) 38%,
            rgba(8, 28, 120, 0.22) 58%,
            transparent 75%);
    filter: blur(8px);
    pointer-events: none;
}

/* the dome is symmetric, so centre it physically in RTL too (no mirroring) */
[dir="rtl"] .hero-glow { left: 50%; right: auto; transform: translateX(-50%); }

/* crisp horizon rim on top of the dome */
.hero-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border-block-start: 1.5px solid rgba(150, 195, 255, 0.85);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 16%);
    mask-image: linear-gradient(to bottom, black 0%, transparent 16%);
    box-shadow: 0 -22px 80px -8px rgba(86, 140, 255, 0.55);
}

/* faint stars */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        radial-gradient(1.2px 1.2px at 12% 24%, rgba(255,255,255,0.5), transparent 100%),
        radial-gradient(1px 1px at 78% 14%, rgba(255,255,255,0.4), transparent 100%),
        radial-gradient(1.4px 1.4px at 64% 38%, rgba(255,255,255,0.32), transparent 100%),
        radial-gradient(1px 1px at 30% 8%, rgba(255,255,255,0.45), transparent 100%),
        radial-gradient(1.2px 1.2px at 88% 42%, rgba(255,255,255,0.3), transparent 100%),
        radial-gradient(1px 1px at 46% 18%, rgba(255,255,255,0.35), transparent 100%);
    pointer-events: none;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-badge { margin-block-end: clamp(22px, 3.4vh, 32px); }

.hero-title {
    font-size: clamp(2.7rem, 7.2vw, 6rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: var(--white);
    text-wrap: balance;
    max-width: 17ch;
    margin-block-end: clamp(20px, 3vh, 30px);
}

[dir="rtl"] .hero-title {
    letter-spacing: 0;
    line-height: 1.38;
    font-weight: 700;
    font-size: clamp(2.5rem, 6.4vw, 5.2rem);
}

.hero-title .accent {
    display: block;
    background: linear-gradient(100deg, #a8c6ff 0%, var(--ion-bright) 45%, var(--ion-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-description {
    max-width: 52ch;
    font-size: clamp(0.98rem, 1.3vw, 1.12rem);
    line-height: 1.75;
    color: var(--fg-soft);
    margin-block-end: clamp(28px, 4.2vh, 40px);
    text-wrap: balance;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

/* white pill CTA */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    background: var(--white);
    color: #05070f;
    border: none;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px -10px rgba(255, 255, 255, 0.35);
}

.btn-primary .arrow { transition: transform 0.35s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn-primary:hover .arrow { transform: translateX(-4px); }

/* circular glowing icon button */
.btn-orb {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--ion-bright), var(--ion-deep));
    color: #fff;
    font-size: 18px;
    border: 1px solid rgba(150, 195, 255, 0.5);
    box-shadow: 0 0 24px -4px rgba(46, 107, 255, 0.8);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.btn-orb:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 36px -2px rgba(46, 107, 255, 0.9);
}

/* secondary ghost pill */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--fg);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.btn-ghost:hover { border-color: var(--line-glow); background: rgba(46, 107, 255, 0.10); }

/* stats — glass strip floating over the dome */
.hero-stats {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-block-start: clamp(54px, 8.5vh, 96px);
    background: rgba(6, 10, 24, 0.55);
    border: 1px solid var(--line);
    border-radius: 18px;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 70px -30px rgba(46, 107, 255, 0.45);
    overflow: hidden;
}

.hero-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: clamp(20px, 3vh, 30px) clamp(24px, 4vw, 64px);
    position: relative;
}

.hero-stat + .hero-stat::before {
    content: '';
    position: absolute;
    inset-block: 22%;
    inset-inline-start: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--line-2), transparent);
}

.hero-stat strong {
    font-size: clamp(1.7rem, 2.8vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--white);
    line-height: 1.1;
}

.hero-stat strong em {
    font-style: normal;
    color: var(--ion-bright);
}

.hero-stat span {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-mute);
}

[dir="rtl"] .hero-stat span { letter-spacing: 0; font-size: 13px; }

/* ============================================================
   TICKER — quiet capability strip
   ============================================================ */
.ticker {
    border-block: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.015);
    overflow: hidden;
    padding-block: 18px;
    position: relative;
}

.ticker::before, .ticker::after {
    content: '';
    position: absolute;
    inset-block: 0;
    width: 120px;
    z-index: 1;
    pointer-events: none;
}

.ticker::before { inset-inline-start: 0; background: linear-gradient(to right, var(--void), transparent); }
.ticker::after { inset-inline-end: 0; background: linear-gradient(to left, var(--void), transparent); }

[dir="rtl"] .ticker::before { background: linear-gradient(to left, var(--void), transparent); }
[dir="rtl"] .ticker::after { background: linear-gradient(to right, var(--void), transparent); }

.ticker-track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: ticker 38s linear infinite;
}

[dir="rtl"] .ticker-track { animation-name: ticker-rtl; }

@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ticker-rtl { to { transform: translateX(50%); } }

.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-item {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-mute);
    white-space: nowrap;
    transition: color 0.3s;
}

[dir="rtl"] .ticker-item { letter-spacing: 0; font-size: 15px; }

.ticker-item.accent { color: var(--ion-bright); }

.ticker-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(93, 147, 255, 0.55);
    flex-shrink: 0;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: var(--sect); position: relative; }

/* ============================================================
   ABOUT — vision statement + fact cards
   ============================================================ */
.about-section::before {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    width: min(70vw, 900px);
    height: 420px;
    background: radial-gradient(50% 60% at 50% 0%, rgba(46, 107, 255, 0.10), transparent 70%);
    pointer-events: none;
}

.vision {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-block-end: clamp(48px, 7vh, 80px);
}

.vision h3 {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ion-bright);
    margin-block-end: 18px;
}

[dir="rtl"] .vision h3 { letter-spacing: 0; font-size: 14px; }

.vision blockquote {
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: -0.015em;
    color: var(--fg);
    max-width: 46ch;
    text-wrap: balance;
}

[dir="rtl"] .vision blockquote { letter-spacing: 0; line-height: 1.85; }

.fact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 24px);
}

.fact-row {
    padding: clamp(24px, 3vw, 34px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fact-num {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--ion-bright);
}

.fact-row h3 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--white);
}

[dir="rtl"] .fact-row h3 { letter-spacing: 0; }

.fact-row p { font-size: 0.93rem; color: var(--fg-mute); line-height: 1.7; }

/* ============================================================
   SERVICES — glass card grid
   ============================================================ */
.services-section {
    background:
        radial-gradient(40% 60% at 100% 20%, rgba(109, 61, 240, 0.08), transparent 70%),
        radial-gradient(40% 60% at 0% 80%, rgba(46, 107, 255, 0.07), transparent 70%);
}

.svc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 24px);
}

.svc-card {
    padding: clamp(28px, 3.4vw, 44px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 230px;
}

.svc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-block-end: auto;
}

.svc-num {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--fg-mute);
    transition: color 0.4s var(--ease);
}

.svc-card:hover .svc-num { color: var(--ion-bright); }

.svc-go {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    color: var(--fg-soft);
    font-size: 16px;
    transition: all 0.4s var(--ease);
}

[dir="rtl"] .svc-go { transform: scaleX(-1); }

.svc-card:hover .svc-go {
    background: linear-gradient(140deg, var(--ion-bright), var(--ion-deep));
    border-color: rgba(150, 195, 255, 0.5);
    color: #fff;
    box-shadow: 0 0 22px -4px rgba(46, 107, 255, 0.8);
}

.svc-name {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-block-start: clamp(20px, 3.4vh, 40px);
}

[dir="rtl"] .svc-name { letter-spacing: 0; }

.svc-desc { font-size: 0.95rem; color: var(--fg-mute); line-height: 1.7; max-width: 44ch; }

.svc-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-block-start: 36px;
    font-size: 14px;
    color: var(--fg-mute);
}

.svc-foot a {
    color: var(--ion-bright);
    border-block-end: 1px solid rgba(93, 147, 255, 0.4);
    padding-block-end: 1px;
    transition: color 0.3s, border-color 0.3s;
}

.svc-foot a:hover { color: var(--ion-cyan); border-color: currentColor; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-section {
    background:
        radial-gradient(50% 40% at 50% 100%, rgba(46, 107, 255, 0.09), transparent 70%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 24px);
}

.project-card {
    padding: clamp(24px, 2.8vw, 34px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-index {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--ion-bright);
}

.project-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--white);
    line-height: 1.3;
}

[dir="rtl"] .project-card h3 { letter-spacing: 0; line-height: 1.5; }

.project-card p {
    font-size: 0.93rem;
    color: var(--fg-mute);
    line-height: 1.7;
    margin-block-end: 10px;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: auto; }

.tag {
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--fg-soft);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 12px;
    transition: all 0.3s var(--ease);
}

[dir="rtl"] .tag { letter-spacing: 0; font-size: 12.5px; }

.project-card:hover .tag {
    border-color: rgba(86, 134, 255, 0.4);
    color: var(--ion-bright);
    background: rgba(46, 107, 255, 0.08);
}

/* ============================================================
   CLIENTS — luminous logo chips (backlit glass panes)
   ============================================================ */
.clients-section {
    background:
        radial-gradient(48% 40% at 50% 0%, rgba(46, 107, 255, 0.08), transparent 70%);
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(14px, 1.6vw, 20px);
    max-width: 1120px;
    margin-inline: auto;
}

/* fixed basis + no grow = every chip is the exact same box; fixed height
   keeps every row level. Pure white plate so any logo reads cleanly. */
.client-chip {
    flex: 0 1 200px;
    height: clamp(124px, 13vw, 148px);
    padding: clamp(18px, 2.2vw, 28px);
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: 0 16px 36px -24px rgba(46, 107, 255, 0.5);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
                border-color 0.4s var(--ease), opacity 0.6s var(--ease);
}

/* img fills the padded box and scales to fit inside it — can never overflow */
.client-chip img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.client-chip:hover {
    transform: translateY(-5px);
    border-color: var(--line-glow);
    box-shadow: 0 26px 54px -22px rgba(46, 107, 255, 0.65);
}

/* ============================================================
   TEAM — glass cards with gradient avatars
   ============================================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(14px, 2vw, 24px);
}

.team-card {
    padding: clamp(24px, 2.8vw, 34px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.team-avatar {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(140deg, var(--ion-bright), var(--ion-deep));
    border: 1px solid rgba(150, 195, 255, 0.4);
    box-shadow: 0 0 26px -6px rgba(46, 107, 255, 0.7);
    margin-block-end: 12px;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.team-card:nth-child(even) .team-avatar {
    background: linear-gradient(140deg, #9d7bff, var(--violet));
    box-shadow: 0 0 26px -6px rgba(109, 61, 240, 0.7);
    border-color: rgba(176, 144, 255, 0.4);
}

.team-card:hover .team-avatar { transform: scale(1.07); }

.team-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--white);
}

[dir="rtl"] .team-card h3 { letter-spacing: 0; }

.team-role {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ion-bright);
}

[dir="rtl"] .team-role { letter-spacing: 0; font-size: 13px; }

.team-desc { font-size: 0.88rem; color: var(--fg-mute); line-height: 1.65; margin-block-start: 8px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
    background:
        radial-gradient(46% 50% at 50% 110%, rgba(46, 107, 255, 0.14), transparent 70%);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(28px, 4.6vw, 72px);
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 16px;
    padding: 20px 22px;
    margin-block-end: 14px;
}

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(46, 107, 255, 0.10);
    border: 1px solid rgba(86, 134, 255, 0.30);
    color: var(--ion-bright);
}

.contact-item h3 {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-mute);
    margin-block-end: 4px;
}

[dir="rtl"] .contact-item h3 { letter-spacing: 0; font-size: 13px; }

.contact-item p { color: var(--fg); font-size: 0.98rem; line-height: 1.65; }

.license-info { padding: 24px 26px 18px; }

.license-info h3 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ion-bright);
    margin-block-end: 14px;
}

[dir="rtl"] .license-info h3 { letter-spacing: 0; font-size: 13.5px; }

.license-details p {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-block: 9px;
    border-block-end: 1px solid var(--line);
    font-size: 0.92rem;
    color: var(--fg-soft);
}

.license-details p:last-child { border-block-end: none; }
.license-details strong { font-weight: 600; color: var(--fg); }
.license-details span { color: var(--fg-mute); }

/* Form */
.contact-form-wrapper {
    background: rgba(8, 12, 26, 0.6);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: clamp(26px, 3.4vw, 44px);
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px -40px rgba(46, 107, 255, 0.4);
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--ion-bright), transparent);
}

.form-group { margin-block-end: 20px; }

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-mute);
    margin-block-end: 8px;
}

[dir="rtl"] .form-label { letter-spacing: 0; font-size: 13px; }

.form-input, .form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 16px;
    font-family: var(--font-sans);
    font-size: 0.98rem;
    color: var(--fg);
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--fg-mute); }

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

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--line-glow);
    background: rgba(46, 107, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(46, 107, 255, 0.15);
}

.form-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 28px;
    background: linear-gradient(140deg, var(--ion-bright), var(--ion-deep));
    color: #fff;
    border: 1px solid rgba(150, 195, 255, 0.4);
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 30px -8px rgba(46, 107, 255, 0.8);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.3s;
}

.form-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 44px -6px rgba(46, 107, 255, 0.95);
}

.form-button:disabled { opacity: 0.55; cursor: wait; }

.form-note {
    display: none;
    margin-block-start: 18px;
    padding: 13px 17px;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.6;
}

.form-note.show { display: block; }

.form-note--ok {
    background: rgba(46, 107, 255, 0.10);
    color: var(--ion-bright);
    border: 1px solid rgba(86, 134, 255, 0.4);
}

.form-note--err {
    background: rgba(255, 92, 92, 0.08);
    color: #ff8585;
    border: 1px solid rgba(255, 92, 92, 0.35);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    .svc-grid { grid-template-columns: 1fr; }
    .svc-card { min-height: 0; }
    .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-grid { grid-template-columns: 1fr; }
    .fact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .projects-grid { grid-template-columns: 1fr; }

    /* two logos per row on phones, still equal boxes */
    .client-chip { flex-basis: 40%; height: 108px; padding: 16px; }

    .hero { padding-block-start: 120px; }

    .hero-stats { flex-direction: column; }

    .hero-stat + .hero-stat::before {
        inset-block: auto;
        inset-block-start: 0;
        inset-inline: 22%;
        width: auto;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--line-2), transparent);
    }

    .hero-buttons .btn-ghost, .hero-buttons .btn-primary { width: 100%; justify-content: center; }
    .btn-orb { display: none; }
}
