/* ============ Prismasoft — landing ============ */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --ink: #0b1220;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e4e7ec;
  --accent: #3b5bfd;
  --accent-ink: #2a45d8;
  --teal: #0ea5a4;
  --amber: #f59e0b;
  --radius: 14px;
  --container: 1120px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff;
  font-weight: 500; font-size: 15px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--small { height: 38px; padding: 0 16px; font-size: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand__mark { width: 28px; height: 28px; color: var(--ink); }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.nav__links a { white-space: nowrap; }
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 14px; }

.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang__btn {
  border: 0; background: transparent; cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 999px; color: var(--muted);
}
.lang__btn[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--teal), var(--amber));
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -0.03em; font-weight: 700; }
h3 { font-size: 18px; line-height: 1.35; letter-spacing: -0.01em; font-weight: 600; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); margin-top: 24px; max-width: 40em; }
.lead strong { color: var(--ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(59,91,253,.08), transparent 70%),
    radial-gradient(500px 260px at 95% 60%, rgba(14,165,164,.06), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Flow diagram card */
.flow {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 1px 2px rgba(11,18,32,.04), 0 12px 32px -12px rgba(11,18,32,.12);
}
.flow__title { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.flow__node {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt);
}
.flow__node--accent { background: #fff; border-color: rgba(59,91,253,.45); box-shadow: 0 0 0 4px rgba(59,91,253,.07); }
.flow__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); margin-top: 7px; flex: none; }
.flow__node--accent .flow__dot { background: var(--accent); }
.flow__name { font-weight: 600; font-size: 15px; }
.flow__meta { font-size: 13px; color: var(--muted); }
.flow__link {
  position: relative; height: 44px; margin-left: 20px; padding-left: 22px;
  display: flex; align-items: center; font-size: 12px; color: var(--muted);
}
.flow__link::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--accent) 0 4px, transparent 4px 8px);
  opacity: .55;
}

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 80px; border-top: 1px solid var(--line);
}
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat dt { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stat dd { margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 18em; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__intro { margin-top: 16px; color: var(--ink-2); font-size: 17px; }

/* Industries */
.industries { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.industry {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; display: flex; flex-direction: column;
}
.industry__label { font-size: 13px; font-weight: 600; color: var(--accent-ink); letter-spacing: .02em; }
.industry__client { font-size: 26px; letter-spacing: -0.025em; margin-top: 8px; line-height: 1.2; }
.industry__text { color: var(--ink-2); margin-top: 14px; }
.checks { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(59,91,253,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%233b5bfd' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* Services */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.service { padding: 32px 28px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; }
.service:hover { background: var(--bg-alt); }
.service__num { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 28px; font-variant-numeric: tabular-nums; }
.service p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }

.stack { display: flex; gap: 24px; align-items: baseline; margin-top: 48px; flex-wrap: wrap; }
.stack__label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stack__list { display: flex; flex-wrap: wrap; gap: 8px; }
.stack__list li { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: #fff; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { padding-top: 24px; border-top: 2px solid var(--ink); }
.step__num { display: block; font-size: 13px; font-weight: 600; color: var(--accent-ink); margin-bottom: 12px; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; }
.contact__points { margin-top: 32px; display: grid; gap: 12px; }
.contact__points li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 15px; }
.contact__points li::before { content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 2px; background: var(--accent); }

.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: grid; gap: 18px;
  box-shadow: 0 12px 32px -16px rgba(11,18,32,.12);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; padding: 12px 14px; font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center/14px no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(59,91,253,.12);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #dc2626; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form__note { font-size: 13px; color: var(--muted); max-width: 26em; }
.form__status { font-size: 14px; min-height: 1.4em; }
.form__status.is-ok { color: #047857; }
.form__status.is-error { color: #b91c1c; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .contact { grid-template-columns: 1fr; gap: 48px; }
  .industries { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { padding-bottom: 24px; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
}
@media (max-width: 720px) {
  .hero { padding-top: 64px; }
  .section { padding: 80px 0; }
  .services, .steps, .form__row { grid-template-columns: 1fr; }
  .industry, .form { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
