/* Neferu Systems — Apple-style system: quiet neutrals, the logo's gold for actions,
   and the gold of the logo as the only brand colour. Centred heroes, left-aligned reading text. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --fg: #1d1d1f;
  --fg-2: #6e6e73;
  --accent: #86683a;
  --line: #d2d2d7;
  --nav: rgba(251, 251, 253, 0.82);
  --tile: #ffffff;
  --btn-fg: #ffffff;
  --btn-bg: #b09460;
  --gold: #a88a52;
  --logo-light: block;
  --logo-dark: none;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 40rem;
  --wide: 980px;
  --gutter-l: max(22px, env(safe-area-inset-left, 0px));
  --gutter-r: max(22px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-alt: #161617;
    --fg: #f5f5f7;
    --fg-2: #a1a1a6;
    --accent: #d4b97a;
    --line: #424245;
    --nav: rgba(22, 22, 23, 0.82);
    --tile: #1d1d1f;
    --btn-fg: #ffffff;
    --btn-bg: #b09460;
    --gold: #d4b97a;
    --logo-light: none;
    --logo-dark: block;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #161617;
  --fg: #f5f5f7;
  --fg-2: #a1a1a6;
  --accent: #d4b97a;
  --line: #424245;
  --nav: rgba(22, 22, 23, 0.82);
  --tile: #1d1d1f;
  --btn-fg: #ffffff;
  --btn-bg: #b09460;
  --gold: #d4b97a;
  --logo-light: none;
  --logo-dark: block;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 600; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--bg); padding: 8px 12px; }

/* Wrappers: each band spans the width; its inner wrapper carries the gutter. */
.wrap {
  max-width: calc(var(--wide) + 44px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* Global nav */
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--nav);
}
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 48px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: auto; height: 26px; }
.theme-light { display: var(--logo-light); }
.theme-dark { display: var(--logo-dark); }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--fg); opacity: 0.8; font-size: 13px; letter-spacing: -0.01em; }
.nav ul a:hover, .nav ul a[aria-current="page"] { opacity: 1; text-decoration: none; }
@media (max-width: 480px) { .nav ul { gap: 18px; } }

/* Type scale */
.display { font-size: clamp(44px, 8vw, 80px); line-height: 1.05; letter-spacing: -0.015em; font-weight: 700; }
.headline { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.07; letter-spacing: -0.005em; font-weight: 600; }
.title { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.125; letter-spacing: 0.004em; font-weight: 600; }
.lede { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.33; letter-spacing: 0.009em; color: var(--fg-2); font-weight: 400; }
.small { font-size: 14px; line-height: 1.43; letter-spacing: -0.016em; color: var(--fg-2); }

/* Bands */
.band { padding-block: clamp(64px, 10vw, 112px); }
.band.alt { background: var(--bg-alt); }
.center { text-align: center; }
.center .lede { margin-inline: auto; max-width: 36rem; }
.stack { display: grid; gap: 18px; }

/* Links that act like Apple's paired CTAs */
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; margin-top: 28px; }
.btn {
  display: inline-block; background: var(--btn-bg); color: var(--btn-fg);
  padding: 11px 22px; border-radius: 980px; font-size: 17px; font-weight: 600;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.more::after { content: " \203A"; }
.ctas a:not(.btn) { padding-block: 11px; }

/* Hero */
.hero { padding-block: clamp(56px, 9vw, 96px) 0; overflow: hidden; }
.hero .lede { margin-top: 14px; }
.mark-stage {
  display: grid; place-items: center;
  margin-top: clamp(40px, 7vw, 72px);
  padding-bottom: clamp(48px, 8vw, 88px);
}
.mark-stage img { width: min(440px, 78vw); height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .mark-stage img { animation: rise 1.2s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: .35; transform: translateY(14px) scale(.97); } }
}

/* Pillar tiles (homepage) */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-block: 12px; }
.tile {
  background: var(--bg-alt); border-radius: 28px;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 44px);
  text-align: center; display: grid; gap: 10px; align-content: start; min-width: 0;
}
.tile .ctas { margin-top: 10px; }
@media (max-width: 760px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* Platform list */
.platforms {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  list-style: none; padding: 0; margin: 36px auto 0; max-width: 46rem;
}
.platforms li {
  border: 1px solid var(--line); border-radius: 980px; padding: 8px 18px; font-size: 15px; color: var(--fg);
}

/* Feature rows (services) */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.feature + .feature { margin-top: clamp(64px, 9vw, 104px); }
.feature h2 { position: sticky; top: 80px; }
.feature .body { display: grid; gap: 22px; max-width: var(--measure); }
.feature .body p { color: var(--fg-2); }
.feature .body strong { color: var(--fg); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { background: var(--tile); border-radius: 10px; padding: 6px 12px; font-size: 14px; color: var(--fg); }
.band:not(.alt) .chips li { background: var(--bg-alt); }
@media (max-width: 760px) { .feature { grid-template-columns: minmax(0, 1fr); gap: 18px; } .feature h2 { position: static; } }

/* Experience line under the services intro */
.experience {
  margin: 44px auto 0; max-width: 34rem;
  font-size: clamp(22px, 2.8vw, 28px); line-height: 1.25; font-weight: 600; letter-spacing: -0.005em; color: var(--fg); text-wrap: balance;
}
.experience::before { content: ""; display: block; width: 56px; height: 2px; margin: 0 auto 28px; background: var(--gold); }

/* Process: a real sequence, so it is numbered */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; border-top: 1px solid var(--line); padding-top: 18px; min-width: 0; }
.steps li::before { content: counter(step); font-size: 14px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 19px; }
.steps p { color: var(--fg-2); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Apps placeholder */
.app-slot {
  margin: 48px auto 0; max-width: 560px; border: 1px dashed var(--line); border-radius: 28px;
  padding: 40px 28px; display: grid; gap: 14px; justify-items: center; text-align: center;
}
.app-icon {
  width: 96px; height: 96px; border-radius: 22px; background: var(--bg-alt);
  display: grid; place-items: center; border: 1px solid var(--line);
}
.app-icon svg { width: 44px; height: 44px; color: var(--fg-2); }

/* Support */
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 48px; }
.panel { background: var(--tile); border-radius: 28px; padding: clamp(28px, 4vw, 44px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.band:not(.alt) .panel { background: var(--bg-alt); }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.email { font-size: clamp(22px, 3vw, 28px); font-weight: 600; letter-spacing: -0.01em; color: var(--fg); user-select: all; overflow-wrap: anywhere; }
.copy {
  font: inherit; font-size: 14px; color: var(--accent); background: transparent;
  border: 1px solid var(--accent); border-radius: 980px; padding: 5px 14px; cursor: pointer;
}
form { display: grid; gap: 12px; }
label { font-size: 14px; color: var(--fg-2); display: grid; gap: 6px; }
input, select, textarea {
  font: inherit; font-size: 17px; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form .btn:disabled { opacity: .6; cursor: default; }
form .btn { border: 0; cursor: pointer; font: inherit; justify-self: start; }
.form-note { font-size: 14px; color: var(--fg-2); min-height: 1.4em; }
.faq { margin-top: 64px; max-width: var(--measure); margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 18px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--fg-2); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--fg-2); margin-top: 10px; }
@media (max-width: 760px) { .support-grid { grid-template-columns: minmax(0, 1fr); } }

/* Legal / long-form */
.legal { max-width: var(--measure); margin-inline: auto; }
.legal h2 { font-size: 24px; margin-top: 44px; }
.legal p, .legal li { color: var(--fg-2); }
.legal p + p, .legal h2 + p, .legal ul { margin-top: 12px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; }
.legal strong { color: var(--fg); font-weight: 600; }

/* Footer */
.footer { background: var(--bg-alt); color: var(--fg-2); font-size: 12px; line-height: 1.33; letter-spacing: -0.01em; }
.footer .wrap { padding-block: 22px 28px; display: grid; gap: 14px; }
.footer .note { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 0; }
.footer nav a { color: var(--fg-2); padding-inline: 10px; border-left: 1px solid var(--line); }
.footer nav a:first-child { padding-left: 0; border-left: 0; }
.footer nav a:hover { color: var(--fg); }
