/* Stock Manager landing page. One stylesheet for every page; logical
   properties so right-to-left languages mirror without extra rules. */

:root {
  --navy: #1e3a5f;
  --navy-soft: #2b4d78;
  --teal: #0ea5a4;
  --teal-dark: #0b8483;
  --ink: #0f172a;
  --muted: #56657d;
  --bg: #f5f8fc;
  --card: #ffffff;
  --line: #e2e8f2;
  --ring: rgba(14, 165, 164, 0.35);
  --shadow: 0 18px 40px -24px rgba(15, 35, 60, 0.35);
  --radius: 18px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef8;
    --muted: #9fb0c6;
    --bg: #0b1220;
    --card: #131d2c;
    --line: #22314a;
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", "Noto Sans Hebrew",
    "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Tamil",
    "Noto Sans Telugu", "Noto Sans Sinhala", "Noto Sans Myanmar",
    "Noto Sans Ethiopic", "Noto Sans Thai", "Noto Sans JP", "Noto Sans KR",
    "Noto Sans SC", "Noto Sans TC", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 750;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
}

h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.3rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1em;
}

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

.skip {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 12px;
  background: var(--teal);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 60;
  text-decoration: none;
}

.skip:focus {
  inset-block-start: 12px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
  backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-block-end: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: none;
}

.brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 620px) {
  .site-header__inner {
    min-height: 60px;
    gap: 8px;
  }

  .brand span {
    display: none;
  }

  /* The hero already has the download button; the header keeps the language
     picker only, so a narrow phone never overflows. */
  .header-tools .btn {
    display: none;
  }

  .lang select {
    max-width: 148px;
  }
}

.site-nav {
  margin-inline-start: auto;
  display: none;
  gap: 26px;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding-block: 6px;
  border-block-end: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  border-block-end-color: var(--teal);
}

.header-tools {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
    margin-inline-start: 34px;
  }

  .header-tools {
    margin-inline-start: auto;
  }
}

/* language picker */
.lang {
  position: relative;
}

.lang select {
  appearance: none;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 34px 8px 12px;
  padding-inline: 12px 34px;
  max-width: 190px;
  cursor: pointer;
}

[dir="rtl"] .lang select {
  background-position: left 10px center;
}

.lang::after {
  content: "";
  position: absolute;
  inset-inline-end: 13px;
  inset-block-start: 50%;
  width: 7px;
  height: 7px;
  border-inline-end: 2px solid var(--muted);
  border-block-end: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(180deg, var(--teal), var(--teal-dark));
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(14, 165, 164, 0.9);
}

.btn--primary:hover {
  box-shadow: 0 16px 30px -14px rgba(14, 165, 164, 0.95);
}

.btn--ghost {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--teal);
}

.btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(34px, 6vw, 76px) clamp(30px, 5vw, 64px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 620px;
  background: radial-gradient(
      46% 60% at 18% 20%,
      rgba(14, 165, 164, 0.22),
      transparent 70%
    ),
    radial-gradient(44% 60% at 82% 8%, rgba(30, 58, 95, 0.22), transparent 72%);
  z-index: -1;
}

.hero__grid {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

@media (min-width: 880px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent);
  padding: 7px 12px;
  border-radius: 999px;
  margin-block-end: 18px;
}

@media (prefers-color-scheme: dark) {
  .eyebrow {
    color: #6fe3e2;
  }
}

.hero__lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--muted);
  max-width: 34em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 26px 18px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__trust svg {
  width: 15px;
  height: 15px;
  color: var(--teal);
  flex: none;
}

/* ---------- phone frame around the real screenshot ---------- */

.phone {
  justify-self: center;
  width: min(304px, 82vw);
  border-radius: 46px;
  background: linear-gradient(160deg, #10233c, #1e3a5f 55%, #123049);
  padding: 11px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.phone__screen {
  border-radius: 36px;
  overflow: hidden;
  background: #0b1220;
  line-height: 0;
}

.phone__shot {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- sections ---------- */

.section {
  padding-block: clamp(44px, 7vw, 84px);
  /* keeps an anchor jump clear of the sticky header */
  scroll-margin-block-start: 84px;
}

.section--tint {
  background: color-mix(in srgb, var(--navy) 5%, var(--bg));
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 42em;
  margin-block-end: clamp(26px, 4vw, 44px);
}

.section__head p {
  color: var(--muted);
  margin-block-end: 0;
}

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 620px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 700px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-block-end: 6px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-block-end: 14px;
  color: var(--teal-dark);
  background: color-mix(in srgb, var(--teal) 13%, transparent);
}

@media (prefers-color-scheme: dark) {
  .icon-badge {
    color: #7ce6e5;
  }
}

.icon-badge svg {
  width: 22px;
  height: 22px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  position: relative;
  padding-inline-start: 64px;
  padding-block: 4px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 750;
  color: #fff;
  background: linear-gradient(160deg, var(--navy-soft), var(--navy));
}

.step h3 {
  margin-block-end: 4px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.chips li {
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
}

.chips li.is-active {
  border-color: var(--teal);
  color: var(--teal-dark);
  font-weight: 650;
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
  max-width: 60em;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  padding-block: 14px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-weight: 700;
  color: var(--teal-dark);
  font-size: 1.2rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* CTA band */
.band {
  background: linear-gradient(150deg, #12304d, #1e3a5f 45%, #14505f);
  color: #f2f7ff;
  border-radius: 24px;
  padding: clamp(26px, 5vw, 48px);
  display: grid;
  gap: 22px;
  align-items: center;
  box-shadow: var(--shadow);
}

@media (min-width: 800px) {
  .band {
    grid-template-columns: 1.4fr auto;
  }
}

.band h2 {
  color: #fff;
  margin-block-end: 8px;
}

.band p {
  margin: 0;
  color: #c8d7ea;
}

.band .btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.band .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ---------- footer ---------- */

.site-footer {
  border-block-start: 1px solid var(--line);
  padding-block: 44px 30px;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer__grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 720px) {
  .footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}

.footer__brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 26em;
}

.footer__brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex: none;
}

.footer__brand strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.footer h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 10px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__legal {
  margin-block-start: 34px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ---------- prose pages ---------- */

.page {
  padding-block: clamp(30px, 5vw, 56px) clamp(44px, 6vw, 72px);
}

.prose {
  max-width: 46em;
}

.prose h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  margin-block: 34px 8px;
}

.prose h2:first-of-type {
  margin-block-start: 18px;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-inline-start: 22px;
  margin: 0 0 1em;
}

.prose li {
  margin-block-end: 6px;
}

.prose strong {
  color: var(--ink);
}

.notice {
  border-inline-start: 3px solid var(--teal);
  background: color-mix(in srgb, var(--teal) 8%, transparent);
  border-radius: 0 12px 12px 0;
  padding: 12px 16px;
  font-size: 0.92rem;
  color: var(--muted);
  margin-block: 18px;
}

[dir="rtl"] .notice {
  border-radius: 12px 0 0 12px;
}

.page-head {
  max-width: 40em;
  margin-block-end: 26px;
}

.page-head p {
  color: var(--muted);
}

.values {
  display: grid;
  gap: 16px;
  margin-block: 30px;
}

@media (min-width: 780px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-block: 26px;
  box-shadow: var(--shadow);
}

.contact-card a {
  color: var(--teal-dark);
  font-weight: 650;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 8px;
}
