/* ================================================================
   doradca.cloud — Apple-style design system
   off-white · system blue · cinematic scroll
   ================================================================ */

:root {
  /* --- color --- */
  --bg:           #FBFBFD;          /* Apple off-white */
  --bg-deep:      #F5F5F7;          /* secondary panel */
  --bg-dark:      #0A0A0B;          /* cinematic dark scenes */
  --bg-dark-2:    #15151A;
  --ink:          #1D1D1F;          /* Apple SF body */
  --ink-2:        #6E6E73;          /* secondary */
  --ink-3:        #86868B;          /* tertiary */
  --line:         rgba(0,0,0,0.08);
  --line-strong:  rgba(0,0,0,0.16);

  --blue:         #0A84FF;          /* Apple system blue */
  --blue-deep:    #0066CC;
  --blue-soft:    rgba(10, 132, 255, 0.10);
  --blue-glow:    rgba(10, 132, 255, 0.30);

  --green:        #30D158;
  --orange:       #FF9F0A;
  --pink:         #FF375F;

  /* dark scene tokens */
  --dark-ink:     #F5F5F7;
  --dark-ink-2:   rgba(245, 245, 247, 0.65);
  --dark-line:    rgba(255, 255, 255, 0.10);

  /* --- type --- */
  --display: "Inter Display", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --text:    "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --mono:    "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* --- layout --- */
  --max:    1240px;
  --gutter: clamp(20px, 4vw, 48px);

  /* --- motion --- */
  --ease:       cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.5, 1.4, 0.4, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.47;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.011em;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; padding: 0; }

/* ===== layout helpers ===== */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--wide { max-width: 1440px; }
.wrap--narrow { max-width: 880px; }

/* ============================================================
   typography
   ============================================================ */
.t-eyebrow {
  font-family: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--blue);
  margin: 0 0 18px;
}
.t-eyebrow--ink { color: var(--ink); }
.t-eyebrow--dim { color: var(--ink-2); }

/* huge display headlines — SF Pro Display style */
h1, h2, h3, h4 { margin: 0; font-family: var(--display); }

.t-display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 9.5vw, 144px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin: 0;
}
.t-h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0;
}
.t-h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}
.t-h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.t-lead {
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.42;
  color: var(--ink-2);
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: pretty;
}
.t-body {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}
.t-mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ink-3);
}
.t-grad-blue {
  background: linear-gradient(180deg, var(--ink) 0%, var(--blue) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.t-blue { color: var(--blue); }
.t-light { font-weight: 300; }

/* ============================================================
   header — sticky translucent
   ============================================================ */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  height: 52px;
}
.hdr__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}
.brand {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.brand em {
  font-style: normal;
  color: var(--blue);
}
.nav {
  list-style: none;
  display: inline-flex;
  gap: 2px;
  margin: 0;
  padding: 4px;
  background: rgba(0, 0, 0, 0.045);
  border: 1px solid var(--line);
  border-radius: 980px;
  backdrop-filter: blur(10px);
}
.nav a {
  display: inline-flex;
  align-items: center;
  font-family: var(--text);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  padding: 7px 16px;
  border-radius: 980px;
  transition: background 220ms var(--ease), color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.nav a:hover {
  background: rgba(0, 0, 0, 0.05);
}
.nav a.is-active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 2px rgba(0, 0, 30, 0.06), 0 1px 1px rgba(0, 0, 30, 0.04);
}

.hdr__cta {
  display: flex;
  gap: 8px;
}

/* ============================================================
   buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 980px;
  padding: 10px 22px;
  transition: transform 220ms var(--ease), background 220ms var(--ease), color 220ms;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--primary:hover {
  background: var(--blue-deep);
  transform: scale(1.02);
}
.btn--ghost {
  background: transparent;
  color: var(--blue);
}
.btn--ghost:hover {
  background: var(--blue-soft);
}
.btn--lg {
  font-size: 17px;
  padding: 14px 32px;
}
.btn--xl {
  font-size: 19px;
  padding: 16px 36px;
  font-weight: 500;
}
.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--dark:hover {
  background: #000;
  transform: scale(1.02);
}
.btn--on-dark {
  background: #fff;
  color: var(--ink);
}
.btn--on-dark:hover { background: var(--bg-deep); }

/* arrow chevron baked in (no emoji) */
.btn .arrow {
  width: 1em;
  height: 1em;
  transition: transform 240ms var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   reveal — generic enter animation (JS adds .is-in)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal-d-1 { transition-delay: 80ms; }
.reveal-d-2 { transition-delay: 160ms; }
.reveal-d-3 { transition-delay: 240ms; }
.reveal-d-4 { transition-delay: 320ms; }

/* letter-by-letter title reveal — used by JS to wrap each char */
.split-text { display: inline-block; }
.split-text .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(40%) rotateX(35deg);
  transform-origin: 50% 100%;
  transition: opacity 0.55s var(--ease-out), transform 0.65s var(--ease-out);
  white-space: pre;
}
.split-text.is-in .ch {
  opacity: 1;
  transform: none;
}

/* ============================================================
   footer
   ============================================================ */
.ftr {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 40px 0;
  font-size: 12px;
  color: var(--ink-3);
}
.ftr__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.ftr a:hover { color: var(--blue); }

/* ============================================================
   reduce motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .split-text .ch { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
}
