/* MikiSolutions — landing page
   Palette: warm paper + ink, one restrained accent. */

:root {
  --paper:      #f7f6f3;
  --paper-alt:  #f1efea;
  --ink:        #14140f;
  --ink-soft:   #5c5b53;
  --line:       #e2dfd7;
  --accent:     #1f4fd8;
  --card:       #fdfcfa;

  --wrap: 1100px;
  --gutter: clamp(1.25rem, 5vw, 3rem);

  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:     #0d0d0c;
    --paper-alt: #131312;
    --ink:       #f2f1ec;
    --ink-soft:  #9c9a92;
    --line:      #26261f;
    --accent:    #7c9cff;
    --card:      #131312;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--paper); }

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: .6rem 1rem;
  z-index: 99;
}
.skip:focus { left: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Logo ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}
.logo__mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--ink);
  transform: rotate(45deg);
  transition: background .25s var(--ease), transform .35s var(--ease);
}
.logo:hover .logo__mark { background: var(--accent); transform: rotate(135deg); }
.logo__text { font-weight: 600; }
.logo__text span { font-weight: 400; color: var(--ink-soft); }
.logo--sm { font-size: 1rem; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: .9375rem;
}
.nav__links a { color: var(--ink-soft); transition: color .2s var(--ease); }
.nav__links a:hover { color: var(--ink); }

.nav__cta {
  color: var(--ink) !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .4rem 1rem;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav__cta:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }

@media (max-width: 560px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(5rem, 16vh, 9rem) clamp(4rem, 12vh, 7rem);
}
.hero .eyebrow { margin-bottom: 1.5rem; }

.hero__title {
  font-size: clamp(2.6rem, 7.5vw, 5rem);
  max-width: 15ch;
  letter-spacing: -0.04em;
}
.hero__lead {
  margin-top: 1.75rem;
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  text-wrap: pretty;
}
.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent); }

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

/* ---------- Sections ---------- */

.section { padding-block: clamp(4rem, 10vw, 7rem); }
.section--alt {
  background: var(--paper-alt);
  border-block: 1px solid var(--line);
}

.section__head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section__title {
  margin-top: .9rem;
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
}

/* ---------- Services ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.card {
  background: var(--card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: background .25s var(--ease);
}
.card:hover { background: var(--paper-alt); }
.card__num {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--ink-soft);
}
.card h3 {
  margin-top: 1.5rem;
  font-size: 1.1875rem;
}
.card p {
  margin-top: .6rem;
  color: var(--ink-soft);
  font-size: .9375rem;
  text-wrap: pretty;
}

/* ---------- Process ---------- */

.steps {
  display: grid;
  border-top: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.step__num {
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--ink-soft);
  padding-top: .35rem;
}
.step h3 { font-size: 1.25rem; }
.step p {
  margin-top: .55rem;
  max-width: 58ch;
  color: var(--ink-soft);
  text-wrap: pretty;
}

@media (max-width: 520px) {
  .step { grid-template-columns: 1fr; gap: .5rem; }
  .step__num { padding-top: 0; }
}

/* ---------- CTA ---------- */

.cta { padding-block: clamp(5rem, 12vw, 8rem); }
.cta__inner { text-align: center; }
.cta__title {
  margin-top: 1.25rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
}
.cta__lead {
  margin: 1.25rem auto 0;
  max-width: 42ch;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.mailto {
  display: inline-block;
  margin-top: 2.25rem;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  padding-bottom: .25rem;
  border-bottom: 1px solid var(--line);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.mailto:hover { color: var(--accent); border-bottom-color: currentColor; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 2.25rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer__meta {
  font-size: .8125rem;
  color: var(--ink-soft);
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Hero additions ---------- */

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: .5rem;
  border-radius: 50%;
  background: #22a06b;
  vertical-align: middle;
  box-shadow: 0 0 0 3px color-mix(in srgb, #22a06b 18%, transparent);
}

.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(3rem, 7vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line);
}
.promises li { display: flex; flex-direction: column; gap: .3rem; }
.promises strong { font-weight: 600; font-size: .9375rem; letter-spacing: -0.01em; }
.promises span { font-size: .875rem; color: var(--ink-soft); }

/* ---------- Stack strip ---------- */

.strip {
  border-block: 1px solid var(--line);
  background: var(--paper-alt);
  padding-block: 1.1rem;
  overflow: hidden;
}
.strip__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}
.strip__label {
  flex: none;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.strip__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem clamp(1rem, 2.5vw, 1.75rem);
  font-size: .875rem;
  color: var(--ink-soft);
}
.strip__list li { white-space: nowrap; transition: color .2s var(--ease); }
.strip__list li:hover { color: var(--ink); }

@media (max-width: 640px) {
  .strip__inner { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

/* ---------- Section lead ---------- */

.section__lead {
  margin-top: 1rem;
  max-width: 52ch;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.card__tags {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .04em;
  color: var(--ink-soft);
  opacity: .75;
}

/* ---------- Why ---------- */

.why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
}
.why li { position: relative; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.why h3 { font-size: 1.125rem; }
.why p { margin-top: .55rem; color: var(--ink-soft); font-size: .9375rem; text-wrap: pretty; }

/* ---------- FAQ ---------- */

.faq__wrap { max-width: 860px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.35rem;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  opacity: .5;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
  opacity: 1;
}
.faq details > p {
  padding-bottom: 1.5rem;
  max-width: 66ch;
  color: var(--ink-soft);
  font-size: .9375rem;
  text-wrap: pretty;
}
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] > p { animation: faq-in .3s var(--ease); }
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.cta__note {
  margin-top: 1.5rem;
  font-size: .8125rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.footer { padding-block: clamp(3rem, 6vw, 4rem) 2rem; }

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.footer__brand p {
  margin-top: .85rem;
  max-width: 26ch;
  font-size: .875rem;
  color: var(--ink-soft);
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  font-size: .875rem;
}
.footer__col h4 {
  margin: 0 0 .35rem;
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.footer__col a { color: var(--ink-soft); transition: color .2s var(--ease); width: fit-content; }
.footer__col a:hover { color: var(--ink); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  color: var(--ink-soft);
}

@media (max-width: 820px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .footer__inner { grid-template-columns: 1fr; }
}
