/* OK Innovations — Apple-clean light marketing site
   System fonts, #f5f5f7 canvas, calm hierarchy. Mobile-first.
   Layout: one shared content max-width, equal gutters, even media crops. */

:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-soft: #f5f5f7;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-dim: rgba(0, 113, 227, 0.08);
  --dark: #1d1d1f;
  --dark-hover: #000;
  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 52px;
  /* One content column for nav + sections + hero wall + proof + footer */
  --max: 1080px;
  --gutter: 1.25rem; /* equal L/R on all breakpoints */
  --section-y: 5.5rem;
  --section-y-lg: 7rem;
  --grid-gap: 1.25rem;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

@media (min-width: 720px) {
  :root {
    --gutter: 1.5rem;
  }
}

@media (min-width: 1060px) {
  :root {
    --gutter: 2rem;
    --section-y: var(--section-y-lg);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
  border-radius: 8px;
  font-size: 0.875rem;
}
.skip:focus {
  top: 12px;
}

/* Shared content shell — same max + gutters everywhere */
.wrap,
.nav-inner,
.hero-inner,
.hero-wall,
.proof,
.footer-inner {
  width: min(var(--max), calc(100% - (2 * var(--gutter))));
  margin-inline: auto;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.brand img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--text);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  padding: 0.25rem 0;
  transition: color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--text);
}

.lang-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  white-space: nowrap;
  user-select: none;
  background: rgba(255, 255, 255, 0.6);
}

.nav-links .lang-chip {
  margin-left: 0.15rem;
}

.menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 8px;
}
.menu-btn span {
  display: block;
  height: 1.5px;
  width: 18px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav.is-open .menu-btn span:nth-child(1) {
  transform: translateY(3.75px) rotate(45deg);
}
.nav.is-open .menu-btn span:nth-child(2) {
  transform: translateY(-3.75px) rotate(-45deg);
}

.nav-panel {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 0.35rem var(--gutter) 1.1rem;
}
.nav.is-open .nav-panel {
  display: block;
}
.nav-panel a {
  display: block;
  padding: 0.85rem 0.2rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.nav-panel .lang-chip {
  margin-top: 0.9rem;
}

@media (min-width: 900px) {
  .menu-btn,
  .nav-panel {
    display: none !important;
  }
  .nav-links {
    display: flex;
  }
}

/* ---------- HERO ---------- */
.hero {
  padding: 4.5rem 0 0;
  background: var(--bg);
}

.hero-inner {
  text-align: center;
  padding-bottom: 2.75rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-weight: 600;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--text);
}

.hero .lede {
  margin: 1.1rem auto 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2.4vw, 1.3125rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.hero-cta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 980px;
  padding: 0.72rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  padding-inline: 0.85rem;
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-block {
  width: 100%;
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
}

.hero-wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-radius: 22px;
  overflow: hidden;
}
@media (min-width: 720px) {
  .hero-wall {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    border-radius: 28px;
  }
}

.wall-tile {
  margin: 0;
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
}
.wall-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0;
  margin-top: 1.75rem;
  margin-bottom: 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--line);
}
.proof span {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 0.25rem 0.85rem;
  border-right: 1px solid var(--line-strong);
  line-height: 1.2;
}
.proof span:last-child {
  border-right: 0;
}
.proof .proof-lang {
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--accent);
  font-weight: 500;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: var(--section-y) 0;
}
.section-alt {
  background: #fafafa;
}

.sec-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.75rem;
}
.sec-head .kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}
.sec-head h2 {
  font-weight: 600;
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text);
}
.sec-head .sub {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

/* ---------- PRODUCTS ---------- */
.prod-grid {
  display: grid;
  gap: var(--grid-gap);
}
@media (min-width: 600px) {
  .prod-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (min-width: 960px) {
  .prod-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.prod-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 0.75rem 0.75rem 1.35rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.prod-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}
.prod-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-soft);
  margin-bottom: 1rem;
  width: 100%;
}
.prod-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s var(--ease);
}
.prod-card:hover .prod-media img {
  transform: scale(1.03);
}
.prod-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 0 0.35rem;
  margin-bottom: 0.35rem;
}
.prod-card > p {
  padding: 0 0.35rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
  flex: 1;
}

.placeholder {
  display: grid;
  place-items: center;
  background: #f0f0f2;
  position: relative;
  /* no min-height — inherit .prod-media aspect-ratio */
  width: 100%;
  height: 100%;
  min-height: 0;
}
.placeholder.coming {
  background: #f5f5f7;
  border: 1px solid rgba(29, 29, 31, 0.06);
}
.placeholder span {
  position: relative;
  z-index: 1;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--muted);
  text-align: center;
  padding: 0.5rem 1rem;
}

/* ---------- CAPABILITIES ---------- */
.cap-grid {
  display: grid;
  gap: var(--grid-gap);
}
@media (min-width: 640px) {
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .cap-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  /* Leave 7th card left-aligned for even column rhythm (no centered orphan) */
}

.cap-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.section-alt .cap-card {
  background: var(--bg);
}
.cap-card:hover {
  border-color: rgba(0, 113, 227, 0.35);
  background: #fff;
}
.cap-card .num {
  display: inline-block;
  align-self: flex-start;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
}
.cap-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.45rem;
}
.cap-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
  flex: 1;
}

/* ---------- PROCESS ---------- */
.steps {
  display: grid;
  gap: var(--grid-gap);
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
}

.step {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.step-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
@media (min-width: 900px) {
  .step-img {
    aspect-ratio: 3 / 4;
  }
}
.step-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.step figcaption {
  padding: 0.85rem 0.1rem 0;
}
.step .num {
  display: block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}
.step h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.step p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* ---------- QUALITY ---------- */
.marks {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.mark {
  width: 64px;
  height: 64px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text);
}
.quality-line {
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 1rem;
}

.quality-grid {
  display: grid;
  gap: var(--grid-gap);
}
@media (min-width: 640px) {
  .quality-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
@media (min-width: 1000px) {
  .quality-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.q-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.q-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.q-card .body {
  padding: 1.1rem 1.15rem 1.3rem;
  flex: 1;
}
.q-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.35rem;
}
.q-card p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

/* ---------- WHO ---------- */
.people {
  display: grid;
  gap: var(--grid-gap);
  max-width: 720px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .people {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.person {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0 0 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.person-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: var(--bg-soft);
  border-radius: 0;
}
.person-body {
  padding: 1.15rem 1.25rem 0;
}
.person h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.person .role {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0.15rem 0 0.3rem;
}
.person p:not(.role) {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.form {
  display: grid;
  gap: 0.85rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.6rem;
}
.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.form input,
.form textarea,
.form select {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form textarea {
  min-height: 96px;
  resize: vertical;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%236e6e73' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: #fff;
  padding-right: 2rem;
}
.form-row {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 520px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.form .note {
  margin-top: 0.15rem;
  color: var(--muted-2);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
}

.thanks {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.thanks[hidden] {
  display: none !important;
}
.thanks h3 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.thanks p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.aside-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.15rem;
}
.mail-link {
  display: block;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
  word-break: break-all;
}
.mail-link:hover,
.mail-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.aside-note {
  margin-top: 0.35rem;
  color: var(--muted-2);
  font-size: 0.8125rem;
}
.contact-visual {
  margin: 1.5rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.contact-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 35%;
  background: #f5f5f7;
  display: block;
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.25rem;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 0.75rem;
}
.footer-inner a {
  color: var(--accent);
}
.footer-inner a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- FOCUS / A11Y ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

/* ---------- PRODUCT PHOTO EDITOR (photos.html only) ---------- */
.photo-status {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}
.photo-status[data-state="ok"] {
  color: #1d1d1f;
  border-color: rgba(52, 199, 89, 0.35);
  background: rgba(52, 199, 89, 0.08);
}
.photo-status[data-state="err"] {
  color: #1d1d1f;
  border-color: rgba(255, 59, 48, 0.35);
  background: rgba(255, 59, 48, 0.08);
}
.photo-card .photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 0.35rem 0;
  margin-top: auto;
}
.photo-card .photo-actions .btn {
  font-size: 0.8125rem;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}
.photo-card .photo-actions .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.photo-replace {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.photo-file,
input.photo-file[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
