/* Khoshab — landing page */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2-variations"),
       url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0B2A4A;
  --navy-deep: #071D34;
  --navy-soft: #13385F;
  --teal: #2DD4BF;
  --teal-ink: #0F766E;
  --teal-wash: #E6FAF7;
  --ink: #0B2A4A;
  --text: #33465C;
  --muted: #4B5B6E;
  --mist: #A9C1D6;
  --line: #E1EAF2;
  --bg: #FFFFFF;
  --bg-soft: #F4F8FB;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 42, 74, .04), 0 8px 24px rgba(11, 42, 74, .06);
  --shadow-lg: 0 24px 60px rgba(7, 29, 52, .18);
  --container: 1180px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.45; margin: 0; font-weight: 800; }
p { margin: 0; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.skip {
  position: absolute; inset-inline-start: 16px; top: -48px;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { top: 12px; }

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

/* Icons */
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.4;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .i { width: 18px; height: 18px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-soft); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(11, 42, 74, .22); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-sm { padding: 9px 20px; font-size: 15px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 46px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 30px; font-size: 15.5px; font-weight: 500; }
.site-nav a:not(.btn) { color: var(--muted); position: relative; padding-block: 6px; transition: color .2s; }
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--teal); transform: scaleX(0); transition: transform .25s;
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; border-radius: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Typography helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--teal-ink);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.eyebrow-light { color: var(--teal); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 96px;
  background:
    radial-gradient(60% 70% at 15% 30%, rgba(45, 212, 191, .10), transparent 70%),
    radial-gradient(50% 60% at 90% 0%, rgba(11, 42, 74, .06), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 900; letter-spacing: -.01em; line-height: 1.35; }
.hero .hl { color: var(--navy); background: linear-gradient(transparent 62%, rgba(45, 212, 191, .45) 62%); padding-inline: 4px; border-radius: 4px; }
.lead { margin-top: 22px; font-size: clamp(16.5px, 1.6vw, 19px); color: var(--muted); max-width: 40em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust { margin-top: 28px; font-size: 14.5px; color: var(--muted); }

.hero-visual { display: flex; justify-content: center; }
.orbit-card {
  position: relative; width: min(100%, 460px); aspect-ratio: 1;
  border-radius: 36px;
  background:
    radial-gradient(70% 70% at 50% 45%, rgba(45, 212, 191, .18), transparent 70%),
    linear-gradient(160deg, var(--navy-soft), var(--navy-deep));
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.orbit-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
}
.orbit { width: 64%; height: auto; position: relative; overflow: visible; }
.ring { transform-box: view-box; transform-origin: 50px 50px; }
.ring-outer { animation: spin 26s linear infinite; }
.ring-inner { animation: spin 16s linear infinite reverse; }
.core { transform-box: view-box; transform-origin: 50px 50px; animation: pulse 3.2s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.12); } }

.chip {
  position: absolute; white-space: nowrap;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: #fff;
  background: rgba(19, 56, 95, .94);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 10px 24px rgba(7, 29, 52, .25);
  animation: float 6s ease-in-out infinite;
}
.chip::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-inline-end: 8px; vertical-align: middle; }
.chip-1 { top: 11%; inset-inline-end: -4%; }
.chip-2 { top: 40%; inset-inline-start: -8%; animation-delay: -1.5s; }
.chip-3 { bottom: 20%; inset-inline-end: -6%; animation-delay: -3s; }
.chip-4 { bottom: 6%; inset-inline-start: 10%; animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Sections */
.section { padding: 104px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); }
.section-head p:not(.eyebrow) { margin-top: 14px; color: var(--muted); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--teal-wash); color: var(--teal-ink); margin-bottom: 20px;
}
.card-icon .i { width: 26px; height: 26px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--muted); line-height: 1.95; }

/* AI section */
.section-dark {
  background:
    radial-gradient(50% 80% at 10% 50%, rgba(45, 212, 191, .12), transparent 70%),
    linear-gradient(180deg, var(--navy), var(--navy-deep));
  color: #C9D8E5;
}
.section-dark h2 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 18px; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: #E3ECF4; }
.checks li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 4px; border-radius: 50%;
  background: rgba(45, 212, 191, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232DD4BF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.chat {
  background: #fff; color: var(--text); border-radius: 24px; padding: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  display: grid; gap: 14px;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chat-head strong { display: block; color: var(--ink); font-size: 15.5px; line-height: 1.4; }
.chat-head small { color: var(--muted); font-size: 12.5px; }
.msg { padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.9; max-width: 92%; }
.msg-user { justify-self: start; background: var(--navy); color: #fff; border-start-start-radius: 4px; }
.msg-bot { justify-self: end; background: var(--bg-soft); border: 1px solid var(--line); border-start-end-radius: 4px; }
.msg-bot b { color: var(--teal-ink); }
.mini-chart { display: flex; align-items: flex-end; gap: 10px; height: 110px; margin: 14px 0 6px; padding-bottom: 22px; }
.mini-chart span { position: relative; flex: 1; height: var(--h); background: #C9D8E5; border-radius: 6px 6px 2px 2px; }
.mini-chart span.now { background: var(--teal); }
.mini-chart i { position: absolute; top: 100%; inset-inline: -10px; text-align: center; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 4px; }
.source { display: block; font-size: 12px; color: var(--muted); }
.chat-input {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px;
  color: #8496A9; font-size: 14px;
}
.chat-input .i { color: var(--navy); width: 18px; height: 18px; }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 27px; inset-inline: 10%; height: 2px;
  background: repeating-linear-gradient(to left, var(--mist) 0 8px, transparent 8px 16px);
}
.steps li { position: relative; text-align: center; padding: 0 6px; }
.step-n {
  position: relative; display: grid; place-items: center; margin: 0 auto 18px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 2px solid var(--navy); color: var(--navy);
  font-size: 20px; font-weight: 800;
}
.steps li:last-child .step-n { background: var(--navy); color: var(--teal); }
.steps h3 { font-size: 17.5px; margin-bottom: 6px; }
.steps p { font-size: 14.5px; color: var(--muted); line-height: 1.9; }
.quote { margin-top: 56px; text-align: center; font-size: clamp(18px, 2vw, 22px); font-weight: 700; color: var(--navy); }

/* Clients */
.logos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.logos li {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 20px 18px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: transform .25s, box-shadow .25s;
}
.logos li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.logo-box { height: 72px; width: 100%; display: grid; place-items: center; }
.logo-box img { max-height: 64px; max-width: 72%; width: auto; height: auto; object-fit: contain; }
.logo-box img.logo-wide { max-height: 48px; max-width: 78%; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.about-copy h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 20px; }
.about-copy p + p { margin-top: 14px; }
.about-copy p:not(.eyebrow) { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.stats div { border-inline-start: 3px solid var(--teal); padding-inline-start: 14px; }
.stats strong { display: block; font-size: 30px; font-weight: 900; color: var(--navy); line-height: 1.3; }
.stats span { font-size: 14px; color: var(--muted); }

.facts { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.facts h3 { font-size: 18px; margin-bottom: 14px; }
.facts dl { margin: 0; }
.facts dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed #D3DFEA; font-size: 15px; }
.facts dl div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); flex: none; }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; text-align: end; }

/* Contact */
.contact { padding-top: 24px; }
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 56px; border-radius: 28px;
  background:
    radial-gradient(60% 90% at 0% 100%, rgba(45, 212, 191, .22), transparent 70%),
    linear-gradient(150deg, var(--navy-soft), var(--navy-deep));
  color: #C9D8E5;
}
.contact-card h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.contact-card .btn-primary { background: var(--teal); color: var(--navy-deep); }
.contact-card .btn-primary:hover { background: #5EEAD4; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-sm); padding: 16px 18px; font-size: 15px; line-height: 1.9; color: #E3ECF4;
}
.contact-list .i { color: var(--teal); margin-top: 4px; }
.contact-list small { display: block; color: var(--mist); font-size: 13px; }
.contact-list a { color: #fff; font-weight: 600; }
.contact-list a:hover { color: var(--teal); }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--mist); padding: 56px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-brand img { height: 46px; width: auto; }
.footer-brand p { margin-top: 14px; max-width: 30em; font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; }
.footer-nav a:hover { color: var(--teal); }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: #8BA3BA; }

/* Reveal on scroll */
.reveal { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s ease, transform .25s, box-shadow .25s, border-color .25s; }
.reveal.in { opacity: 1; translate: none; }

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    box-shadow: 0 16px 30px rgba(11, 42, 74, .08);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 14px; justify-content: center; }

  .hero { padding: 40px 0 72px; }
  .hero-grid, .ai-grid, .about-grid, .contact-card { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .orbit-card { width: min(100% - 48px, 400px); }
  .ai-grid { gap: 44px; }
  .section { padding: 80px 0; }
  .contact-card { padding: 36px 24px; gap: 32px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; text-align: start; }
  .steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; text-align: start; padding: 0; }
  .steps li .step-n { grid-row: span 2; margin: 0; }
  .logos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .logos li { padding: 20px 12px 14px; font-size: 13px; text-align: center; }
  .logos li:last-child { grid-column: 1 / -1; }
  .logo-box { height: 56px; }
  .logo-box img { max-height: 50px; }
  .logo-box img.logo-wide { max-height: 38px; }
  .stats strong { font-size: 24px; }
  .chip { font-size: 12px; padding: 6px 12px; }
  .chip-2 { inset-inline-start: -4%; }
  .chip-1, .chip-3 { inset-inline-end: -2%; }
  .facts dl div { flex-direction: column; gap: 2px; }
  .facts dd { text-align: start; }
}

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