/* codeOK — shared stylesheet. Brand: charcoal #3a4048 (ink) + lime #c0d460 (logo accent). */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;800&display=swap');

:root {
  --ink: #3a4048;
  --lime: #c0d460;
  --color-text: #3a4048;
  --color-bg: #ffffff;
  --color-surface: #f4f5f2;
  --color-accent: #c0d460;
  --color-accent-100: #f7fadf;
  --color-accent-200: #eef3c4;
  --color-accent-300: #dfe99a;
  --color-accent-400: #cfdd78;
  --color-accent-500: #c0d460;
  --color-accent-600: #b0c452;
  --color-accent-700: #55631a;
  --color-accent-800: #3f4a12;
  --color-accent-900: #2b330c;
  --color-divider: color-mix(in srgb, #3a4048 40%, transparent);

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-heading-weight: 800;
  --font-body: "Archivo", system-ui, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px;
  --radius-md: 0px; --radius-lg: 0px;

  --leading: 28px;
  --half: 14px;
  --edge: clamp(20px, 5vw, 72px);
  --measure: 58ch;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
* , *::before, *::after { box-sizing: border-box; }
body { margin: 0; text-wrap: pretty; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2); }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-800); }
img { display: block; max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent-700); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--lime) 40%, transparent); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--edge); }
.rule2 { height: 2px; border: 0; margin: 0; background: var(--color-divider); }

.kicker { display: block; font-size: 13px; line-height: var(--half); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-accent-700); font-feature-settings: "tnum" 1;
  margin: 0 0 calc(var(--leading) - var(--half)); }

/* — buttons — */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none; font-family: var(--font-heading);
  font-weight: var(--font-heading-weight); font-size: 14px; line-height: 1.2;
  color: var(--color-text); background: transparent; border: 2px solid transparent;
  padding: 11px 22px; border-radius: var(--radius-md); }
.btn-primary { background: var(--lime); color: #3a4048; }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: #9db13f; }
.btn-secondary { border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.btn-ghost { color: var(--color-accent-700); padding-inline: var(--space-2); }
.btn-ghost:hover { color: var(--color-accent-800); background: color-mix(in srgb, var(--color-accent-700) 10%, transparent); }

/* — nav — */
.nav { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) 0;
  padding-inline: max(var(--edge), calc((100% - 1200px) / 2 + var(--edge))); }
.nav a:not(.brand-lockup) { color: inherit; text-decoration: none; font-size: 14px; white-space: nowrap; }
.nav a:not(.brand-lockup):hover, .nav a[aria-current='location'] { color: var(--color-accent-700); }
.nav .brand-lockup { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
.nav .brand-lockup img { display: block; width: 34px; height: 34px; }
@media (max-width: 720px) { .nav a:not(.brand-lockup):not(.lang button):not(.theme-btn) { display: none; } }

.lang { display: flex; border: 2px solid var(--ink); }
.lang button { appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--ink); padding: 5px 10px; line-height: 1; }
.lang button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.lang button[aria-pressed="true"] { background: var(--lime); color: #3a4048; }
.lang button:focus-visible { outline: 2px solid var(--color-accent-700); outline-offset: 2px; }

.theme-btn { display: flex; align-items: center; justify-content: center; width: 32px; height: 28px;
  border: 2px solid var(--ink); background: transparent; cursor: pointer; color: var(--ink); padding: 0; }
.theme-btn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.theme-btn svg { width: 14px; height: 14px; display: block; }
.theme-btn .i-sun { display: none; }
html[data-theme="dark"] .theme-btn .i-sun { display: block; }
html[data-theme="dark"] .theme-btn .i-moon { display: none; }

/* — hero — */
.hero { padding: calc(4 * var(--leading)) 0 calc(3 * var(--leading));
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: calc(2 * var(--leading)) clamp(24px, 4vw, 64px); align-items: center; }
.hero-copy { min-width: 0; }
.display { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(38px, 6vw, 78px); line-height: clamp(41px, 6.3vw, 83px);
  letter-spacing: -0.02em; margin: 0 0 0 -0.05em; }
.display .line { display: block; }
.display .ok { color: var(--color-accent-700); }
.hero .sub { font-size: 17px; line-height: var(--leading); max-width: var(--measure);
  margin: calc(1.5 * var(--leading) - 1cap) 0 0; }
.hero .row { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--leading); }

/* — 3D device scene — */
.scene { perspective: 1400px; min-width: 0; }
.dev-group { position: relative; transform-style: preserve-3d; transform: rotateX(8deg) rotateY(-14deg);
  will-change: transform; animation: dev-float 7s ease-in-out infinite alternate; }
.scene:hover .dev-group { animation-play-state: paused; }
@keyframes dev-float { from { translate: 0 -6px; } to { translate: 0 8px; } }
@media (prefers-reduced-motion: reduce) { .dev-group { animation: none; } }
.spark { width: 12px; height: 12px; flex: none; }
.laptop { transform-style: preserve-3d; border-radius: 14px 14px 4px 4px;
  background: linear-gradient(180deg, #23272c, #16191d); padding: 9px 9px 12px;
  box-shadow: 0 40px 70px -28px rgba(10, 14, 18, 0.55); }
.lap-cam { width: 5px; height: 5px; border-radius: 50%; background: #3d444c; margin: 0 auto 6px; }
.lap-screen { background: #fff; border-radius: 4px; overflow: hidden; }
.laptop .bar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: #eef0f2; border-bottom: 1px solid #d6dade; }
.laptop .bar i { width: 8px; height: 8px; border-radius: 50%; background: #c8cdd2; }
.laptop .bar i:first-child { background: var(--lime); }
.laptop .url { margin-left: 8px; font-size: 9px; letter-spacing: 0.05em; color: #7a828b;
  background: #fff; border-radius: 8px; padding: 2px 10px; }
.lap-body { display: grid; grid-template-columns: 5fr 4fr; min-height: 225px; }
.lap-main { padding: 14px; border-right: 1px solid #e3e6e9; }
.sk { height: 8px; border-radius: 4px; background: #dfe3e7; margin-bottom: 8px; }
.sk.h { height: 14px; background: #3a4048; width: 70%; margin-bottom: 12px; }
.sk.w60 { width: 60%; } .sk.w85 { width: 85%; } .sk.w45 { width: 45%; }
.sk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.sk-grid div { height: 42px; border-radius: 6px; background: #f0f2f4; border: 1px solid #e3e6e9; }
.ai-panel { padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #f7fadf; }
.ai-head { display: flex; align-items: center; gap: 6px; }
.ai-head .sk { width: 46%; margin: 0; background: #c6cfa0; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.ai-line { height: 7px; border-radius: 4px; background: #a4b74e; transform-origin: left; animation: stream 3.6s ease-in-out infinite; }
.ai-line:nth-child(3) { width: 88%; animation-delay: 0.25s; }
.ai-line:nth-child(4) { width: 64%; animation-delay: 0.5s; }
.ai-line:nth-child(5) { width: 76%; animation-delay: 0.75s; }
@keyframes stream { 0% { transform: scaleX(0); } 35%, 80% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.ai-prompt { margin-top: auto; border: 1px solid #cdd6a2; border-radius: 14px; background: #fff; padding: 6px 9px; display: flex; align-items: center; gap: 6px; }
.ai-prompt .sk { width: 55%; margin: 0; height: 6px; }
.caret { display: inline-block; width: 2px; height: 11px; background: #55631a; animation: pulse 1s steps(2, start) infinite; }
.lap-base { height: 13px; border-radius: 2px 2px 10px 10px; background: linear-gradient(180deg, #dfe2e5, #aab1b8);
  transform-origin: top; transform: rotateX(-70deg); width: 112%; margin-left: -6%; position: relative; }
.lap-base::after { content: ""; position: absolute; left: 44%; right: 44%; top: 0; height: 4px;
  border-radius: 0 0 6px 6px; background: #969ea6; }
.phone { position: absolute; right: -6%; bottom: -14%; width: 30%; transform: translateZ(70px) rotateY(6deg);
  transform-style: preserve-3d; border-radius: 18px; background: #16191d; padding: 6px;
  box-shadow: 0 30px 50px -18px rgba(10, 14, 18, 0.55); }
.p-screen { background: #fff; border-radius: 13px; overflow: hidden; }
.p-notch { width: 34%; height: 8px; border-radius: 8px; background: #16191d; margin: 5px auto 0; }
.p-head { display: flex; align-items: center; gap: 5px; padding: 8px 9px 6px; border-bottom: 1px solid #e9ecee; }
.p-head .sk { width: 40%; margin: 0; height: 6px; }
.p-head .spark { width: 10px; height: 10px; }
.p-chat { padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 148px; }
.bub { max-width: 78%; padding: 6px 7px; border-radius: 9px; display: flex; flex-direction: column; gap: 4px; }
.bub .sk { margin: 0; height: 5px; border-radius: 3px; }
.bub.user { align-self: flex-end; background: #3a4048; border-bottom-right-radius: 2px; width: 58%; }
.bub.user .sk { background: #6b727b; }
.bub.ai { align-self: flex-start; background: #eef3c4; border-bottom-left-radius: 2px; width: 70%; }
.bub.ai .sk { background: #b3c463; }
.typing { align-self: flex-start; display: flex; gap: 3px; padding: 6px 7px; border-radius: 9px; background: #f0f2f4; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: #8a9350; animation: pulse 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
.p-prompt { border-top: 1px solid #e9ecee; padding: 7px 9px; display: flex; align-items: center; gap: 5px; }
.p-prompt .sk { width: 60%; margin: 0; height: 5px; }

/* — stats strip — */
.stats { padding: calc(2.5 * var(--leading)) 0; }
.stats .grid { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: calc(1.5 * var(--leading)) var(--leading); }
.stat-num { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(32px, 3.2vw, 46px); line-height: calc(2 * var(--leading)); color: var(--ink);
  margin: 0 0 0 -0.04em; }
.stat-label { font-size: 13px; line-height: var(--half); letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 70%, transparent); margin: var(--half) 0 0; max-width: 22ch; }

/* — feature rows — */
.features { padding: calc(3 * var(--leading)) 0 calc(2.5 * var(--leading)); }
.feature { display: grid; grid-template-columns: minmax(64px, 160px) minmax(0, 420px) minmax(0, 1fr);
  gap: var(--leading) clamp(24px, 4vw, 72px); align-items: baseline; padding: calc(1.5 * var(--leading)) 0; }
.feature + .feature { border-top: 2px solid var(--color-divider); }
.f-num { position: relative; font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 15px; line-height: var(--leading); color: var(--color-text); font-feature-settings: "tnum" 1; margin: 0; }
.f-num::before { content: ""; position: absolute; left: -24px; top: calc(0.5cap - 5px); width: 10px; height: 10px;
  background: var(--lime); outline: 2px solid var(--ink); outline-offset: -2px; }
@media (max-width: 1280px) { .f-num::before { display: none; } }
.f-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 24px;
  line-height: var(--leading); letter-spacing: -0.01em; margin: 0; }
.f-copy { font-size: 15.5px; line-height: var(--leading); margin: 0; color: color-mix(in srgb, var(--color-text) 78%, transparent); max-width: 52ch; }

/* — process steps ("how we work") — */
.process { padding: calc(2.5 * var(--leading)) 0 calc(3 * var(--leading)); }
.process .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--leading) clamp(16px, 3vw, 40px); }
.step { border-top: 2px solid var(--ink); padding-top: var(--half); }
.step-num { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 14px;
  color: var(--color-accent-700); font-feature-settings: "tnum" 1; margin: 0 0 6px; }
.step-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 19px; margin: 0 0 6px; }
.step-copy { font-size: 14.5px; line-height: 22px; color: color-mix(in srgb, var(--color-text) 78%, transparent); margin: 0; }
@media (max-width: 860px) { .process .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process .grid { grid-template-columns: 1fr; } }

.split-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 32px;
  line-height: calc(1.5 * var(--leading)); letter-spacing: -0.015em; margin: 0; }

/* — company statement / about teaser — */
.about { padding: calc(2.5 * var(--leading)) 0 calc(3.5 * var(--leading)); }
.about .statement { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(24px, 2.6vw, 34px); line-height: calc(1.5 * var(--leading)); letter-spacing: -0.015em;
  max-width: 34ch; margin: 0; }
.about .note { font-size: 15.5px; line-height: var(--leading); color: color-mix(in srgb, var(--color-text) 70%, transparent);
  margin: calc(2 * var(--leading) - 1cap) 0 0; max-width: 52ch; }

/* — the close — */
.close { background: #3a4048; color: var(--lime); }
.close .wrap { padding-top: calc(3 * var(--leading)); padding-bottom: calc(3 * var(--leading)); }
.close h3 { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(32px, 4vw, 52px); line-height: clamp(34px, 4.2vw, 55px); letter-spacing: -0.015em;
  margin: 0 0 0 -0.05em; }
.close h3 .line { display: block; }
.close .mail { font-size: 17px; line-height: var(--leading); margin: calc(1.5 * var(--leading) - 1cap) 0 0; color: #f3f2f2; }
.close .mail a { color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.close .mail a:hover { color: var(--color-accent-300); }
.close .row { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: calc(1.5 * var(--leading)); }
.close .btn-primary { background: var(--lime); color: #3a4048; }
.close .btn-primary:hover { background: var(--color-accent-400); }
.close .btn-secondary { color: var(--lime); border-color: var(--lime); }
.close .btn-secondary:hover { background: color-mix(in srgb, var(--lime) 14%, transparent); color: var(--lime); }

/* — footer — */
footer.site-footer { padding: calc(2 * var(--leading)) 0; font-size: 13px; line-height: var(--leading);
  color: color-mix(in srgb, var(--color-text) 70%, transparent); }
footer.site-footer .frow { display: flex; flex-wrap: wrap; gap: var(--half) calc(2 * var(--leading)); justify-content: space-between; align-items: flex-start; }
footer.site-footer .fcol h4 { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 var(--half);
  color: color-mix(in srgb, var(--color-text) 55%, transparent); }
footer.site-footer .fcol a { display: block; color: inherit; text-decoration: none; margin-bottom: 6px; }
footer.site-footer .fcol a:hover { color: var(--color-accent-700); }
footer.site-footer .fbottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--half);
  margin-top: calc(1.5 * var(--leading)); padding-top: var(--half); border-top: 2px solid var(--color-divider); }

@media (max-width: 1100px) {
  .feature { grid-template-columns: 1fr; gap: var(--half); }
  .f-copy { max-width: var(--measure); }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .scene { max-width: 480px; margin-top: var(--leading); }
  .stats .grid { grid-template-columns: repeat(2, 1fr); justify-content: start; }
}
@media (max-width: 720px) {
  .hero { padding-top: calc(2.5 * var(--leading)); }
  .phone { right: 0; }
}

/* — dark mode: page ground matches the dark logo tile — */
html[data-theme="dark"] {
  --color-bg: #3a4048;
  --color-text: #f3f2f2;
  --ink: #f3f2f2;
  --color-surface: #444b54;
  --color-divider: color-mix(in srgb, #f3f2f2 40%, transparent);
  --color-accent-700: #c0d460;
  --color-accent-800: #cfdd78;
}
html[data-theme="dark"] .close { background: var(--lime); color: #3a4048; }
html[data-theme="dark"] .close .mail { color: #3a4048; }
html[data-theme="dark"] .close .mail a { color: #3a4048; }
html[data-theme="dark"] .close .mail a:hover { color: #16191d; }
html[data-theme="dark"] .close .btn-primary { background: #3a4048; color: var(--lime); }
html[data-theme="dark"] .close .btn-primary:hover { background: #2e343b; }
html[data-theme="dark"] .close .btn-secondary { color: #3a4048; border-color: #3a4048; }
html[data-theme="dark"] .close .btn-secondary:hover { background: color-mix(in srgb, #3a4048 12%, transparent); color: #3a4048; }
