/* Softverse — corporate site. No framework, no CDN, no build step: one stylesheet the whole team
   can read, and a page that loads on a phone in a lift. Colours are tokens, spacing is a scale.

   The palette is the LOGO's, sampled from the artwork rather than guessed at: the mark runs cyan
   through blue and indigo into magenta, on black. A site whose accent colour is a near-miss of its
   own logo looks like two companies, so these four are the source and everything else is neutral
   around them. */

:root {
  /* Neutrals lean cool and very dark, because the logo is drawn for a black ground. */
  --ink-1000: #000000;
  --ink-950: #05060a;
  --ink-900: #0a0c12;
  --ink-850: #0f1219;
  --ink-800: #141822;
  --ink-700: #1d2330;
  --ink-600: #2a3242;
  --ink-400: #6b7890;
  --ink-300: #96a3b8;
  --ink-100: #d6dde9;
  --ink-50: #f2f5fa;

  /* Straight off the mark. */
  --cyan: #0bfdfe;
  --blue: #0184de;
  --indigo: #3d3088;
  --magenta: #e6007e;

  /* Kept as aliases so nothing downstream has to know which brand colour it is asking for. */
  --blue-soft: #35a8f0;
  --teal: var(--cyan);
  --violet: #6b52c8;

  /* The mark's own sweep, in the mark's own order. */
  --grad: linear-gradient(115deg, var(--cyan) 0%, var(--blue) 35%, var(--indigo) 68%, var(--magenta) 100%);
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;

  --maxw: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--ink-100);
  font: 400 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s5); }

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.12; }

.skip {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 100;
  background: var(--ink-50); color: var(--ink-950);
  padding: var(--s3) var(--s4); border-radius: 0 0 var(--radius-s) 0;
}
.skip:focus { inset-inline-start: 0; }

:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 3px; border-radius: 6px; }

/* ─────────────── nav ─────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink-950) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--ink-800); background: color-mix(in srgb, var(--ink-950) 92%, transparent); }
.nav-inner { display: flex; align-items: center; gap: var(--s5); height: 68px; }

.brand { display: inline-flex; align-items: center; gap: var(--s3); flex: none; color: var(--ink-50); }
/* Sized by height, width follows: the viewBox is cropped to the artwork so 26px means 26px of
   logo rather than 26px of mostly-margin. */
.brand-lockup { height: 26px; width: auto; display: block; }
.brand:hover .brand-lockup { color: #fff; }
.brand-mark { width: 30px; height: 30px; display: block; }
.brand-word { font-weight: 700; letter-spacing: -.03em; font-size: 19px; color: var(--ink-50); }
.brand-word.small { font-size: 16px; }
.brand-dot { color: var(--cyan); }
/* The footer signs off with the drawn mark rather than the word set in the body face — the
   wordmark is artwork, and typing it in another typeface is a different logo. */
.foot-brand { display: inline-flex; align-items: center; gap: var(--s3); }
.foot-mark { width: 22px; height: 22px; display: block; }
/* The logo in the hero, at a size a logo is actually read at. It was 84px of wordless mark, which
   is a lot of geometry and no name; the lockup says who this is in the same space. Roughly 230px
   wide is where the lettering is comfortable without competing with the headline underneath. */
.hero-lockup {
  width: clamp(180px, 26vw, 230px); height: auto; display: block;
  margin-bottom: var(--s5);
  filter: drop-shadow(0 8px 28px rgba(11, 253, 254, .14));
}

.nav-links { display: flex; gap: var(--s5); margin-inline-start: auto; font-size: 15px; color: var(--ink-300); }
.nav-links a { position: relative; padding: var(--s2) 0; transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--ink-50); }
.nav-links a::after {
  content: ""; position: absolute; inset-inline-start: 0; inset-inline-end: 100%; bottom: 0; height: 2px;
  background: var(--grad); border-radius: 2px; transition: inset-inline-end .25s var(--ease);
}
.nav-links a:hover::after { inset-inline-end: 0; }

.nav-right { display: flex; align-items: center; gap: var(--s3); margin-inline-start: var(--s3); }
.lang { display: inline-flex; border: 1px solid var(--ink-700); border-radius: 999px; overflow: hidden; }
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--ink-400);
  font: 600 12px/1 inherit; letter-spacing: .06em;
  padding: 8px 11px; cursor: pointer; transition: color .2s var(--ease), background .2s var(--ease);
}
.lang button:hover { color: var(--ink-50); }
.lang button[aria-pressed="true"] { background: var(--ink-800); color: var(--ink-50); }

.burger { display: none; appearance: none; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink-100); border-radius: 2px; }
.burger span + span { margin-top: 5px; }

/* ─────────────── hero ─────────────── */
.hero { position: relative; padding: var(--s9) 0 var(--s8); overflow: hidden; }
.hero-grid {
  position: absolute; inset: -40% -10% auto -10%; height: 140%;
  background-image:
    linear-gradient(var(--ink-800) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-800) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 70% at 50% 12%, #000 0%, transparent 72%);
  opacity: .5;
}
.hero-glow {
  /* Centred on purpose: 50% is the same edge in both directions, so this needs no logical form. */
  position: absolute; left: 50%; top: -220px; width: 900px; height: 620px; translate: -50% 0;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--blue) 28%, transparent), transparent 70%);
  filter: blur(20px);
}
.hero-inner { position: relative; }

.eyebrow {
  margin: 0 0 var(--s4); font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--teal);
}
/* Two lines by design, and each one balanced: the headline is translated, so a width that suits
   Turkish leaves English breaking after "into". `balance` lets the browser even them out. */
.hero-title { font-size: clamp(40px, 6.4vw, 70px); font-weight: 800; max-width: 22ch; }
.hero-title span { display: block; text-wrap: balance; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin: var(--s5) 0 0; max-width: 62ch; font-size: clamp(17px, 2vw, 20px); color: var(--ink-300); }

.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--s5); border-radius: 999px;
  font-weight: 650; font-size: 15px; border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--grad); color: #04121a; box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--blue) 70%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px color-mix(in srgb, var(--blue) 80%, transparent); }
.btn-ghost { border-color: var(--ink-700); color: var(--ink-100); }
.btn-ghost:hover { border-color: var(--ink-600); background: var(--ink-900); transform: translateY(-2px); }

.stats { display: flex; flex-wrap: wrap; gap: var(--s7); margin: var(--s8) 0 0; }
.stats dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); }
.stats dd { margin: var(--s2) 0 0; font-size: 26px; font-weight: 750; color: var(--ink-50); letter-spacing: -.02em; }

/* ─────────────── sections ─────────────── */
.section { padding: var(--s9) 0; }
.section-alt { background: linear-gradient(180deg, var(--ink-950), var(--ink-900) 18%, var(--ink-900) 82%, var(--ink-950)); }
.h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 780; max-width: 20ch; }
.section-lead { margin: var(--s4) 0 var(--s7); max-width: 66ch; color: var(--ink-300); font-size: 17px; }

/* ─────────────── service cards ─────────────── */
.cards { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  position: relative; padding: var(--s5); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
  border: 1px solid var(--ink-800); overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity .25s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--ink-600); }
.card:hover::before { opacity: 1; }
/* The logo's four colours, cycled across the grid. Structural rather than decorative: the page is
   the company's, and the company's colours are these — one borrowed blue for every card said
   nothing about whose page this is. */
.card:nth-child(4n + 1) { --accent: var(--cyan); }
.card:nth-child(4n + 2) { --accent: var(--blue-soft); }
.card:nth-child(4n + 3) { --accent: var(--violet); }
.card:nth-child(4n + 4) { --accent: var(--magenta); }
.card-icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent, var(--blue)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--blue)) 30%, transparent);
  margin-bottom: var(--s4);
}
.card-icon svg {
  width: 20px; height: 20px; stroke: var(--accent, var(--blue-soft)); fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
/* The hover line picks up the card's own colour rather than the full spectrum, so a grid of six
   does not flash a rainbow at somebody moving a mouse across it. */
.card::before { background: linear-gradient(90deg, var(--accent, var(--blue)), transparent); }
.card h3 { font-size: 18px; font-weight: 680; margin-bottom: var(--s2); color: var(--ink-50); }
.card p { margin: 0; font-size: 15px; color: var(--ink-300); line-height: 1.6; }

/* ─────────────── product ─────────────── */
.product {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: var(--s6); align-items: center;
  padding: var(--s6); border-radius: var(--radius-l);
  background: linear-gradient(140deg, var(--ink-850), var(--ink-900));
  border: 1px solid var(--ink-800);
}
.product-head { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s4); }
.product-mark {
  width: 48px; height: 48px; flex: none; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad); color: #04121a; font-weight: 800; font-size: 22px;
}
.product-name { font-size: 24px; font-weight: 760; color: var(--ink-50); letter-spacing: -.01em; }
.product-kind { margin: 2px 0 0; font-size: 14px; color: var(--ink-400); }
.product-desc { margin: 0 0 var(--s4); color: var(--ink-300); max-width: 60ch; }
.product-points { margin: 0 0 var(--s5); padding: 0; list-style: none; display: grid; gap: var(--s2); }
.product-points li { position: relative; padding-inline-start: 24px; font-size: 15px; color: var(--ink-300); }
.product-points li::before {
  content: ""; position: absolute; inset-inline-start: 4px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
}
.product-cta { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.badge {
  font-size: 12px; font-weight: 650; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 999px;
  color: var(--teal); border: 1px solid color-mix(in srgb, var(--teal) 34%, transparent);
  background: color-mix(in srgb, var(--teal) 10%, transparent);
}
.product-visual { display: grid; place-items: center; min-height: 190px; }
.wave { display: flex; align-items: flex-end; gap: 7px; height: 120px; }
.wave span {
  width: 9px; border-radius: 999px; background: var(--grad);
  animation: pulse 1.6s var(--ease) infinite;
}
.wave span:nth-child(1) { height: 34%; animation-delay: 0s; }
.wave span:nth-child(2) { height: 62%; animation-delay: .12s; }
.wave span:nth-child(3) { height: 88%; animation-delay: .24s; }
.wave span:nth-child(4) { height: 100%; animation-delay: .36s; }
.wave span:nth-child(5) { height: 76%; animation-delay: .48s; }
.wave span:nth-child(6) { height: 50%; animation-delay: .6s; }
.wave span:nth-child(7) { height: 28%; animation-delay: .72s; }
@keyframes pulse { 0%, 100% { transform: scaleY(.55); opacity: .55; } 50% { transform: scaleY(1); opacity: 1; } }

.more { margin: var(--s6) 0 0; color: var(--ink-400); font-size: 15px; }

/* ─────────────── steps ─────────────── */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { position: relative; padding: var(--s5); border-radius: var(--radius); border: 1px solid var(--ink-800); background: var(--ink-900); }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 13px; font-weight: 800; letter-spacing: .1em;
  color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text;
  margin-bottom: var(--s3);
}
.steps h3 { font-size: 17px; font-weight: 680; margin-bottom: var(--s2); color: var(--ink-50); }
.steps p { margin: 0; font-size: 15px; color: var(--ink-300); }

/* ─────────────── about ─────────────── */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s7); align-items: start; }
.about-text { color: var(--ink-300); max-width: 60ch; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.values li {
  padding: var(--s4) var(--s5); border-radius: var(--radius);
  border: 1px solid var(--ink-800); background: var(--ink-850);
}
.values strong { display: block; color: var(--ink-50); font-weight: 660; margin-bottom: 4px; }
.values span { color: var(--ink-300); font-size: 15px; }

/* ─────────────── contact ─────────────── */
.contact-cards { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 720px; }
.contact-card {
  display: grid; gap: 6px; padding: var(--s5); border-radius: var(--radius);
  border: 1px solid var(--ink-800); background: var(--ink-900);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
a.contact-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.contact-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400); }
.contact-value { font-size: 17px; color: var(--ink-50); font-weight: 600; }

/* ─────────────── footer ─────────────── */
.footer { border-top: 1px solid var(--ink-800); padding: var(--s6) 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.copy { color: var(--ink-400); font-size: 14px; }

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

/* ─────────────── responsive ─────────────── */
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .product-visual { order: -1; min-height: 120px; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav-links {
    position: absolute; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--ink-950); border-bottom: 1px solid var(--ink-800);
    padding: var(--s3) var(--s5) var(--s5); display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: var(--s3) 0; font-size: 16px; }
  .nav-links a::after { display: none; }
  .hero { padding: var(--s8) 0 var(--s7); }
  .hero-title { max-width: none; }
  .hero-cta { display: grid; grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .stats { gap: var(--s6); }
  .section { padding: var(--s8) 0; }
}


/* ─────────────── right-to-left ───────────────
   The layout above is written with logical properties (padding-inline, inset-inline-start,
   margin-inline-start), so `dir="rtl"` mirrors nearly all of it for free. What is left are the
   things that are not directional in CSS terms but are to a reader: a Latin brand name that must
   stay left-to-right inside Arabic text, and the numerals in the stat row. */
[dir="rtl"] .brand-word,
[dir="rtl"] .product-name,
[dir="rtl"] .contact-value,
[dir="rtl"] .stats dd { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .stats > div,
[dir="rtl"] .contact-card { text-align: start; }
/* The eyebrow's wide tracking is a Latin typographic device; Arabic letterforms join, and spacing
   them apart breaks the words. */
[dir="rtl"] .eyebrow,
[dir="rtl"] .contact-label,
[dir="rtl"] .stats dt { letter-spacing: 0; }
[dir="rtl"] .lang button { letter-spacing: 0; }
/* Arabic script sits lower and needs a little more room between lines to stay comfortable. */
[dir="rtl"] body { line-height: 1.8; }
[dir="rtl"] .hero-title { line-height: 1.3; }
