/* Layout: one teal-to-plum "route" runs through the page (Idea → MVP → Product → Business),
   echoing the gradient in the ProdtoB and OTA logos. Calm white sections, hexagon icons, one deep-plum band. */
:root {
  --teal: #3e9cbf;          /* logo cyan-teal */
  --plum: #4b1a4f;          /* logo plum */
  --brand-grad: linear-gradient(90deg, #3e9cbf, #4b1a4f);  /* fixed: buttons and icon tiles */
  --grad: linear-gradient(90deg, var(--teal), var(--plum));
  --bg: #ffffff;
  --tint: #f6f3f8;
  --surface: #ffffff;
  --ink: #21162e;
  --muted: #675d74;
  --line: #e7e1ed;
  --accent-ink: #2a7896;    /* teal dark enough for text on white */
  --deep: #2a1236;          /* dark band, same in both themes */
  --deep-ink: #f4edf7;
  --deep-muted: #c6b5cf;
  --focus: #2a7896;
  --logo-light: block;
  --logo-dark: none;

  --f-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --f-fa: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.2rem;
  --step-2: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-3: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --step-4: clamp(2.4rem, 1.4rem + 4.2vw, 4.6rem);

  --radius: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #100b17; --tint: #160f20; --surface: #1c1428; --ink: #efe9f4; --muted: #aa9fb7; --line: #2d2340;
    --accent-ink: #6cc3e0; --plum: #c08bcf; --deep: #1f0e2b; --deep-ink: #f4edf7; --deep-muted: #c6b5cf; --focus: #6cc3e0;
    --logo-light: none; --logo-dark: block;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #100b17; --tint: #160f20; --surface: #1c1428; --ink: #efe9f4; --muted: #aa9fb7; --line: #2d2340;
    --accent-ink: #6cc3e0; --plum: #c08bcf; --deep: #1f0e2b; --deep-ink: #f4edf7; --deep-muted: #c6b5cf; --focus: #6cc3e0;
    --logo-light: none; --logo-dark: block;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 99; }
.skip:focus { inset-inline-start: 8px; }

.eyebrow { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); font-weight: 500; }
.sub { color: var(--muted); max-width: 60ch; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--brand-grad); color: #fff; font: 600 1rem var(--f-body);
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 20px -8px rgba(62, 156, 191, .6);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -8px rgba(62, 156, 191, .7); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent-ink); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.logo-word { font: 700 1.35rem var(--f-display); letter-spacing: -0.03em; color: var(--ink); }
.logo-word b { color: var(--plum); font-weight: 700; }
.logo-img { height: 42px; width: auto; }
.logo-img.on-light { display: var(--logo-light); }
.logo-img.on-dark { display: var(--logo-dark); }
.site-footer .logo-img { height: 48px; }
[dir="rtl"] .logo-img { height: 46px; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.lang { text-decoration: none; font-weight: 600; color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.lang:hover { color: var(--ink); background: var(--tint); }
[lang="fa"].lang, .social [lang="fa"] { font-family: var(--f-fa); }
[lang="en"].lang { font-family: var(--f-body); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--plum) 22%, transparent), transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 22px; }
.hero h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.035em; max-width: 14ch; }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.route { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.route::before {
  content: ""; position: absolute; inset-inline: 9px; top: 8px; height: 3px; border-radius: 3px;
  background: var(--grad); transform-origin: left; animation: draw 1.4s .2s cubic-bezier(.6,.1,.2,1) both;
}
.stop { display: grid; gap: 4px; padding-inline-end: 18px; position: relative; min-width: 0; }
.stop .dot { width: 19px; height: 19px; border-radius: 50%; background: var(--bg); border: 3px solid var(--teal); margin-bottom: 12px; position: relative; z-index: 1; }
.stop:nth-child(2) .dot { border-color: color-mix(in srgb, var(--teal) 67%, var(--plum)); }
.stop:nth-child(3) .dot { border-color: color-mix(in srgb, var(--teal) 33%, var(--plum)); }
.stop:last-child .dot { background: var(--plum); border-color: var(--plum); }
.stop .mono { color: var(--muted); }
.stop strong { font: 600 var(--step-2) var(--f-display); letter-spacing: -0.02em; }
.stop em { font-style: normal; color: var(--muted); font-size: .95rem; }
@keyframes draw { from { transform: scaleX(.02); } to { transform: scaleX(1); } }

/* Stats */
.stats { border-block: 1px solid var(--line); background: var(--tint); }
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-row > div { padding-block: 26px; padding-inline: 0 16px; display: grid; gap: 2px; }
.stats-row b { font: 700 var(--step-3) var(--f-display); letter-spacing: -0.03em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.stats-row span { color: var(--muted); font-size: .95rem; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tint { background: var(--tint); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(32px, 5vw, 52px); }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service {
  display: grid; align-content: start; gap: 14px; padding: 28px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service:hover { border-color: rgba(62, 156, 191, .45); box-shadow: 0 8px 50px 0 rgba(62, 156, 191, .16); transform: translateY(-2px); }
.service p { color: var(--muted); }
.service ul { list-style: none; padding: 14px 0 0; margin: 0; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.service li { padding-inline-start: 22px; position: relative; font-size: .97rem; }
.service li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 10px; height: 2px; background: var(--plum); }
.hex { width: 52px; height: 52px; display: grid; place-items: center; background: var(--brand-grad); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.hex svg, .industries svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; align-content: start; gap: 10px; padding-block: 28px 32px; padding-inline: 0 28px; border-bottom: 1px solid var(--line); }
.steps li .mono { color: var(--accent-ink); font-size: .85rem; }
.steps p { color: var(--muted); }

.industries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.industries article { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-content: start; }
.industries svg { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 12px; stroke: var(--accent-ink); background: var(--tint); border: 1px solid var(--line); }
.industries p { color: var(--muted); font-size: .97rem; }

.section-dark { background: var(--deep); color: var(--deep-ink); }
.section-dark .eyebrow { color: #8fd3ec; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-copy { display: grid; gap: 18px; }
.about-copy p { color: var(--deep-muted); max-width: 58ch; }
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; }
.values li { background: var(--deep); padding: 20px; display: grid; gap: 4px; }
.values b { font: 600 1.02rem var(--f-display); color: var(--deep-ink); }
.values span { color: var(--deep-muted); font-size: .93rem; }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; }

.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding-block: 20px; padding-inline: 0 40px; position: relative; font: 600 1.08rem var(--f-display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 16px; font: 400 1.6rem var(--f-body); color: var(--accent-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 62ch; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-grid > div { display: grid; gap: 14px; }
.contact-list { margin: 12px 0 0; display: grid; gap: 14px; }
.contact-list div { display: grid; gap: 2px; }
.contact-list dt { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 0; font: 600 1.15rem var(--f-display); }
.contact-list a { text-decoration: none; }
.contact-list .dd-sub { display: block; font: 400 .95rem var(--f-body); color: var(--muted); }
.footer-row .foot-addr { font-size: .92rem; }
.contact-list a:hover { color: var(--accent-ink); }
.form { display: grid; gap: 16px; padding: clamp(22px, 4vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.field [aria-invalid="true"] { border-color: #d14b4b; }
.form .btn { justify-self: start; }
.form-note { color: var(--muted); font-size: .9rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 28px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-row p { color: var(--muted); margin-top: 6px; }
.footer-row nav, .social { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-row nav a, .social a { text-decoration: none; color: var(--muted); }
.footer-row nav a:hover, .social a:hover { color: var(--ink); }
.legal { color: var(--muted); font-size: .88rem; margin-top: 28px; }

/* Persian (right-to-left) */
[dir="rtl"] { --f-display: var(--f-fa); --f-body: var(--f-fa); }
[dir="rtl"] body { line-height: 1.85; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }
[dir="rtl"] .hero h1 { letter-spacing: 0; max-width: 16ch; }
[dir="rtl"] .eyebrow, [dir="rtl"] .mono, [dir="rtl"] .contact-list dt { font-family: var(--f-fa); letter-spacing: 0; text-transform: none; font-weight: 600; }
[dir="rtl"] .route::before { background: linear-gradient(270deg, var(--teal), var(--plum)); transform-origin: right; }
[dir="rtl"] .logo-word, [dir="rtl"] .stats-row b, [dir="rtl"] .stop strong { letter-spacing: 0; }
[dir="rtl"] .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Responsive */
@media (max-width: 960px) {
  .services, .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services .service:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid, .faq-wrap, .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: var(--header-h); inset-inline: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .header-cta .btn { display: none; }
  .header-cta { margin-inline-start: auto; }
}
@media (max-width: 640px) {
  .route { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  [dir="rtl"] .route::before { background: linear-gradient(180deg, var(--teal), var(--plum)); transform-origin: top; }
  .route::before { inset-inline: 8px auto; top: 9px; bottom: 9px; width: 3px; height: auto; background: linear-gradient(180deg, var(--teal), var(--plum)); transform-origin: top; animation-name: draw-v; }
  .stop { grid-template-columns: 19px minmax(0, 1fr); column-gap: 16px; padding: 0; }
  .stop .dot { grid-row: span 3; margin: 0; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services, .industries, .steps, .values { grid-template-columns: minmax(0, 1fr); }
  .steps li { padding-inline-end: 0; }
}
@keyframes draw-v { from { transform: scaleY(.02); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
