:root {
  color-scheme: dark;
  --bg: #050e1c;
  --bg-elevated: #0a1829;
  --bg-card: #0c1c2e;
  --bg-soft: #0e2034;
  --ink: #f2f8ff;
  --ink-secondary: #9eafc4;
  --ink-muted: #70859c;
  --stroke: rgba(164, 196, 225, .12);
  --stroke-strong: rgba(164, 196, 225, .21);
  --accent: #00e2df;
  --accent-dark: #00b6c5;
  --accent-ink: #06202c;
  --accent-soft: rgba(0, 226, 223, .10);
  --hero-bg: #031020;
  --bot-bg: #071628;
  --shadow: 0 20px 70px rgba(0, 0, 0, .16);
  --radius: 20px;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f9fc;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-soft: #f0f7fa;
  --ink: #061d35;
  --ink-secondary: #4c627b;
  --ink-muted: #7d8ea3;
  --stroke: rgba(17, 53, 81, .11);
  --stroke-strong: rgba(17, 53, 81, .21);
  --accent: #00c8cb;
  --accent-dark: #008eaa;
  --accent-ink: #06202c;
  --accent-soft: rgba(0, 178, 194, .09);
  --hero-bg: #ffffff;
  --bot-bg: #eef7fc;
  --shadow: 0 20px 60px rgba(10, 44, 72, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; transition: color .25s, background .25s; }
::selection { background: rgba(0,226,223,.3); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
svg { flex-shrink: 0; }
.icon { display: inline-block; width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.svg-sprites { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.shell { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }

/* Language and theme controls are placed at the bottom left of the page. */
.footer-controls { display: flex; gap: 10px; align-items: center; direction: ltr; }
.lang-wrap { height: 40px; display: flex; align-items: center; gap: 5px; border: 1px solid var(--stroke-strong); border-radius: 11px; padding-inline: 11px 7px; background: var(--bg-elevated); color: var(--ink); }
.lang-wrap > .icon { width: 17px; height: 17px; color: var(--accent-dark); }
.lang-wrap .chevron { width: 13px; height: 13px; color: var(--ink-muted); pointer-events: none; }
.lang-wrap select { direction: auto; color: var(--ink); background: transparent; border: 0; appearance: none; cursor: pointer; min-width: 87px; max-width: 106px; padding: 0; outline: none; font-size: 12.5px; font-weight: 650; }
.lang-wrap select option { background: var(--bg-card); color: var(--ink); }
.lang-wrap:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--stroke-strong); background: var(--bg-elevated); color: var(--ink); border-radius: 11px; transition: border-color .2s, transform .2s; }
.icon-button:hover { border-color: var(--accent-dark); transform: translateY(-1px); }
.theme-button .icon { width: 19px; height: 19px; }
.theme-button .icon-moon { display: none; }
html[data-theme="light"] .theme-button .icon-sun { display: none; }
html[data-theme="light"] .theme-button .icon-moon { display: inline-block; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); border-bottom: 1px solid var(--stroke); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45; background-image: linear-gradient(var(--stroke) 1px, transparent 1px), linear-gradient(90deg, var(--stroke) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(180deg, transparent 0%, #000 65%, transparent 100%); pointer-events: none; }
.hero-glow { position: absolute; width: 610px; height: 610px; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: -1; }
.hero-glow-a { top: -310px; left: -220px; background: rgba(0, 132, 203, .13); }
.hero-glow-b { bottom: -420px; right: -160px; background: rgba(0, 220, 226, .1); }
html[data-theme="light"] .hero-glow-a { background: rgba(0, 145, 196, .08); }
html[data-theme="light"] .hero-glow-b { background: rgba(0, 200, 215, .08); }
.hero-inner { padding-block: 54px 88px; position: relative; }
.hero-logo-stage { width: min(960px, 100%); margin: 0 auto 13px; position: relative; min-height: 170px; display: grid; align-items: center; }
.hero-logo-stage::after { content: ""; position: absolute; width: 72%; left: 14%; bottom: 5%; height: 1px; background: linear-gradient(90deg, transparent, var(--stroke-strong), transparent); }
.hero-logo { display: block; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 5px 24px rgba(0, 217, 225, .07)); }
.logo-light { display: none; }
html[data-theme="light"] .logo-dark { display: none; }
html[data-theme="light"] .logo-light { display: block; }
.hero-content { max-width: 850px; margin-inline: auto; text-align: center; }
.eyebrow { margin: 0 0 19px; color: var(--accent-dark); font-weight: 750; font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 11px; }
.status-dot { width: 8px; height: 8px; border-radius: 100%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { overflow-wrap: anywhere; hyphens: auto; }
h1 { letter-spacing: -2.4px; font-weight: 850; font-size: clamp(34px, 5.2vw, 64px); line-height: 1.14; margin-bottom: 24px; }
h1 span { display: block; }
.gradient-text { background: linear-gradient(100deg, var(--accent-dark) 6%, var(--accent) 55%, #2b8bd5 98%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-description { max-width: 740px; margin: 0 auto; font-size: clamp(15px, 1.65vw, 17px); line-height: 1.85; color: var(--ink-secondary); }
.hero-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; }
.button { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; border-radius: 11px; padding: 12px 20px; font-size: 13px; line-height: 1.4; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border .2s ease; }
.button:hover { transform: translateY(-3px); }
.button .icon { width: 18px; height: 18px; }
.button .outbound { width: 16px; height: 16px; opacity: .75; }
.button-primary { background: #00e1de; color: #052132; box-shadow: 0 11px 30px rgba(0, 219, 219, .16); }
.button-primary:hover { background: #39f1ed; box-shadow: 0 17px 35px rgba(0, 219, 219, .25); }
.button-secondary { background: var(--bg-elevated); color: var(--ink); border-color: var(--stroke-strong); }
.button-secondary:hover { border-color: var(--accent-dark); }
.brand-coverage { margin-top: 50px; display: flex; flex-direction: column; gap: 13px; align-items: center; }
.coverage-caption { color: var(--ink-muted); font-size: 11px; letter-spacing: 1.8px; font-weight: 750; text-transform: uppercase; }
.brand-names { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
.brand-names span { font-size: 15px; font-weight: 780; letter-spacing: -.5px; color: var(--ink-secondary); }
.brand-names b { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-dark); opacity: .8; }

/* Service cards */
.section { padding-block: 98px; }
.section-heading { max-width: 710px; margin-bottom: 39px; }
.section-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-dark); font-size: 11px; letter-spacing: 2.35px; line-height: 1.6; font-weight: 800; text-transform: uppercase; }
.kicker-line, .section-kicker::after { width: 23px; height: 2px; background: var(--accent); flex: 0 0 23px; }
.section-kicker::after { content: ""; display: block; }
.section-services .section-heading { text-align: center; margin-inline: auto; }
.section-services .section-heading p { margin-inline: auto; }
.bot-kicker-row { display: flex; justify-content: center; margin-bottom: 36px; }

h2 { font-size: clamp(31px, 3.3vw, 43px); line-height: 1.18; letter-spacing: -1.5px; font-weight: 820; margin: 15px 0 15px; }
.section-heading p, .bot-intro > p { font-size: 15.5px; color: var(--ink-secondary); line-height: 1.9; max-width: 630px; margin: 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card { display: flex; flex-direction: column; position: relative; min-width: 0; min-height: 292px; padding: 26px; background: var(--bg-card); border: 1px solid var(--stroke); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .23s, border-color .23s, box-shadow .23s; }
.service-card:hover { transform: translateY(-4px); border-color: rgba(0, 201, 210, .45); box-shadow: 0 18px 56px rgba(0, 135, 180, .09); }
.featured-card { background: linear-gradient(150deg, var(--accent-soft), var(--bg-card) 70%); border-color: rgba(0, 193, 204, .32); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 25px; }
.service-icon { background: var(--accent-soft); color: var(--accent-dark); width: 49px; height: 49px; display: grid; place-items: center; border: 1px solid rgba(0, 211, 223, .12); border-radius: 14px; }
.service-icon .icon { width: 24px; height: 24px; }
.card-index { font-size: 11px; font-weight: 750; letter-spacing: 1px; color: var(--ink-muted); direction: ltr; }
.service-card h3 { font-size: 17.5px; line-height: 1.35; font-weight: 785; letter-spacing: -.35px; margin-bottom: 10px; }
.service-card p { color: var(--ink-secondary); font-size: 13.5px; line-height: 1.78; margin-bottom: 22px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; }
.card-tags span { display: inline-flex; align-items: center; border: 1px solid var(--stroke); background: var(--bg-soft); border-radius: 6px; padding: 4px 7px; color: var(--ink-secondary); font-size: 10px; font-weight: 750; letter-spacing: .2px; line-height: 1.25; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
/* SFD status: clearly separate supported SFD1 from unavailable SFD2. */
.sfd-card { border-color: rgba(0, 201, 210, .28); }
.sfd-card .service-icon { color: var(--accent-dark); }
.sfd-availability { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: auto; }
.sfd-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; font-size: 10px; font-weight: 650; line-height: 1.45; }
.sfd-pill b { font-size: 10.5px; font-weight: 800; }
.sfd-dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.is-supported { color: #00b994; border: 1px solid rgba(0, 185, 148, .28); background: rgba(0, 185, 148, .075); }
.is-unavailable { color: #d0a36d; border: 1px solid rgba(208, 163, 109, .25); background: rgba(208, 163, 109, .075); }
html[data-theme="dark"] .is-supported { color: #45e4bd; }
html[data-theme="dark"] .is-unavailable { color: #e2b788; }
.compatibility-note { display: flex; align-items: center; gap: 9px; margin: 23px 0 0; font-size: 12.5px; color: var(--ink-muted); }
.compatibility-note .icon { width: 17px; height: 17px; color: var(--accent-dark); }

/* Telegram tool panel */
.section-bot { background: var(--bot-bg); border-block: 1px solid var(--stroke); position: relative; overflow: hidden; }
.section-bot::before { content: ""; width: 460px; height: 460px; background: radial-gradient(circle, rgba(0, 220, 220, .07), transparent 65%); position: absolute; left: -150px; bottom: -210px; pointer-events: none; }
.bot-layout { display: grid; grid-template-columns: minmax(280px, .83fr) minmax(0, 1.45fr); gap: 60px; align-items: center; }
.bot-intro h2 { margin-top: 0; }
.bot-intro > p { margin-bottom: 28px; }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.tool-card { background: var(--bg-card); padding: 25px; border: 1px solid var(--stroke); border-radius: 17px; min-height: 222px; transition: border-color .2s, transform .2s; }
.tool-card:hover { border-color: rgba(0, 200, 210, .42); transform: translateY(-3px); }
.tool-icon { display: inline-grid; place-items: center; width: 45px; height: 45px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 16px; }
.tool-icon .icon { width: 22px; height: 22px; }
.tool-card h3 { font-size: 15.5px; margin: 0 0 10px; line-height: 1.35; font-weight: 780; letter-spacing: -.25px; }
.tool-card p { color: var(--ink-secondary); line-height: 1.75; font-size: 13px; margin: 0; }

/* Contact */
.centered-heading { text-align: center; margin-inline: auto; }
.centered-heading .section-kicker { justify-content: center; }
.centered-heading p { margin-inline: auto; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.contact-card { display: flex; gap: 15px; align-items: flex-start; background: var(--bg-card); padding: 24px 19px; border-radius: 17px; border: 1px solid var(--stroke); min-width: 0; position: relative; transition: transform .2s, border-color .2s; }
.contact-card:hover { transform: translateY(-4px); border-color: var(--accent-dark); }
.contact-icon { height: 47px; width: 47px; display: grid; place-items: center; border-radius: 13px; background: var(--accent-soft); color: var(--accent-dark); flex-shrink: 0; }
.contact-icon .icon { width: 22px; height: 22px; }
.contact-copy { min-width: 0; }
.contact-copy h3 { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.contact-copy p { margin: 0 0 8px; color: var(--ink-muted); font-size: 12.5px; }
.contact-copy span { color: var(--ink-secondary); font-size: 12.5px; display: block; overflow-wrap: anywhere; }
.contact-arrow { position: absolute; inset-inline-end: 17px; top: 22px; color: var(--ink-muted); width: 17px; height: 17px; }

/* Footer preferences and floating back-to-top button */
.site-footer { border-top: 1px solid var(--stroke); background: var(--bg-elevated); }
.footer-inner { display: flex; direction: ltr; justify-content: flex-start; align-items: center; min-height: 96px; }
.back-to-top { position: fixed; z-index: 80; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 17px; min-height: 46px; border: 1px solid var(--stroke-strong); border-radius: 14px; background: var(--bg-elevated); box-shadow: 0 10px 35px rgba(0, 0, 0, .25); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 12px; font-weight: 750; color: var(--ink); white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px); transition: opacity .2s ease, visibility .2s ease, transform .2s ease, border-color .2s ease; }
.back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { color: var(--accent-dark); border-color: var(--accent-dark); }
.back-to-top .icon { width: 16px; height: 16px; transform: rotate(-45deg); }
.footer-bottom { display: flex; justify-content: flex-start; gap: 24px; flex-wrap: wrap; direction: ltr; border-top: 1px solid var(--stroke); padding-block: 16px; font-size: 11px; color: var(--ink-muted); }

/* Tablet and mobile */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bot-layout { grid-template-columns: 1fr; gap: 36px; }
  .bot-intro { max-width: 600px; }
  .contact-grid { gap: 12px; }
  .contact-card { padding: 20px 14px; gap: 10px; }
  .contact-icon { width: 41px; height: 41px; }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 36px, 600px); }
  .footer-controls { gap: 7px; }
  .lang-wrap { padding-inline: 8px 5px; height: 38px; }
  .lang-wrap select { min-width: 75px; max-width: 87px; font-size: 11.5px; }
  .icon-button { width: 38px; height: 38px; }
  .hero-inner { padding-block: 42px 69px; }
  .hero-logo-stage { min-height: unset; margin-bottom: 34px; }
  h1 { letter-spacing: -1.6px; }
  .hero-description { line-height: 1.75; }
  .brand-coverage { margin-top: 39px; }
  .brand-names { gap: 10px 13px; }
  .brand-names span { font-size: 13px; }
  .section { padding-block: 70px; }
  .section-heading { margin-bottom: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 20px; }
  .footer-inner { min-height: 88px; padding-block: 22px; }
  .back-to-top { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
}
@media (max-width: 570px) {
  .hero-inner { padding-top: 34px; }
  .hero-logo-stage { margin-bottom: 36px; }
  .eyebrow { font-size: 10.5px; letter-spacing: 1.5px; }
  h1 { font-size: clamp(31px, 9vw, 46px); }
  h2 { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .brand-names b { width: 3px; height: 3px; }
  .services-grid, .tools-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 260px; padding: 24px; }
  .tool-card { min-height: 0; }
  .compatibility-note { align-items: flex-start; }
  .compatibility-note .icon { margin-top: 3px; }
  .footer-bottom { gap: 5px; }
}
@media (max-width: 390px) {
  .shell { width: calc(100% - 28px); }
  .lang-wrap > .icon:first-child { display: none; }
  .lang-wrap select { max-width: 68px; min-width: 61px; font-size: 10.5px; }
  .footer-controls { gap: 5px; }
  .icon-button { width: 35px; height: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* Keep technical Latin codes and marks readable when Arabic is selected. */
[dir="rtl"] .brand-coverage .brand-names, [dir="rtl"] .card-tags { direction: ltr; }

