/* ============================================================
   iotashan website — shared styles
   Built on the iotashan design tokens.
   ============================================================ */
@import url("tokens/fonts.css");
@import url("tokens/colors.css");
@import url("tokens/spacing.css");
@import url("tokens/effects.css");

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-800);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* ---- layout ---- */
.io-container { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.io-section { padding: 84px 0; }
.io-section--tight { padding: 60px 0; }
.io-wash {
  background: var(--purple-05);
  border-top: 1px solid var(--purple-10);
  border-bottom: 1px solid var(--purple-10);
}

/* ---- type ---- */
.io-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple-100);
  margin: 0 0 16px;
}
.io-eyebrow .s { color: var(--purple-100); }
h1, h2, h3, .io-display {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink-900);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.io-h1 { font-weight: 700; font-size: 56px; line-height: 1.02; margin: 0 0 22px; }
.io-h2 { font-weight: 600; font-size: 36px; line-height: 1.08; margin: 0 0 16px; }
.io-h3 { font-weight: 600; font-size: 21px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.02em; }
.io-lead { font-size: 19px; line-height: 1.6; color: var(--ink-500); text-wrap: pretty; }
.io-body { font-size: 16px; line-height: 1.6; color: var(--ink-500); text-wrap: pretty; }
.io-slash { color: var(--purple-100); }

/* ---- nav ---- */
.io-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--ink-100);
}
.io-nav__inner {
  max-width: 1080px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.io-wordmark {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 21px; letter-spacing: -0.04em; color: var(--ink-900);
  text-decoration: none;
}
.io-wordmark .io-iota { color: var(--purple-100); }
.io-navlinks { display: flex; align-items: center; gap: 28px; }
.io-navlink {
  font-size: 15px; font-weight: 500; color: var(--ink-700);
  text-decoration: none; padding: 6px 2px; position: relative;
  transition: color var(--dur-fast, 120ms) ease;
}
.io-navlink:hover { color: var(--purple-100); }
.io-navlink[aria-current="page"] { color: var(--purple-100); }
.io-navlink[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px; background: var(--purple-100);
}

/* ---- buttons ---- */
.io-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "IBM Plex Sans", sans-serif; font-weight: 600; font-size: 17px;
  border-radius: 12px; padding: 14px 26px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: all var(--dur-base, 200ms) cubic-bezier(.22,1,.36,1);
}
.io-btn--primary {
  color: #fff; background: var(--purple-100); border-color: var(--purple-100);
  box-shadow: 0 8px 24px rgba(78,42,132,0.26);
}
.io-btn--primary:hover { background: var(--purple-120); border-color: var(--purple-120); transform: translateY(-1px); }
.io-btn--primary:active { transform: translateY(1px); }
.io-btn--ghost { color: var(--purple-90); background: transparent; border-color: var(--purple-30); }
.io-btn--ghost:hover { background: var(--purple-05); border-color: var(--purple-40); }
.io-btn--gold { color: var(--purple-140); background: var(--bright-gold); border-color: var(--bright-gold); }
.io-btn--gold:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,197,32,0.32); }

/* ---- cards ---- */
.io-card {
  background: var(--white); border: 1px solid var(--ink-200); border-radius: 12px;
  padding: 26px; box-shadow: 0 1px 3px rgba(29,2,53,0.08);
  transition: transform var(--dur-base,200ms) cubic-bezier(.22,1,.36,1), box-shadow var(--dur-base,200ms) ease;
}
.io-card--link { text-decoration: none; color: inherit; display: block; }
.io-card--link:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(78,42,132,0.16); }
.io-card--accent { position: relative; overflow: hidden; }
.io-card--accent::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple-100), var(--purple-60));
}
.io-meta {
  font-family: "IBM Plex Mono", monospace; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400);
}

/* ---- grids ---- */
.io-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.io-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* ---- footer ---- */
.io-footer { background: var(--purple-140); color: #fff; margin-top: 0; }
.io-footer__inner {
  max-width: 1080px; margin: 0 auto; padding: 56px 32px 40px;
}
.io-footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.io-footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.io-footer h4 {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--purple-40);
  margin: 0 0 14px;
}
.io-footer__link {
  display: block; color: #e9e3f4; text-decoration: none; font-size: 15px;
  margin-bottom: 10px; transition: color var(--dur-fast,120ms) ease;
}
.io-footer__link:hover { color: #fff; }
.io-footer__bar {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--purple-40);
}

/* ---- contact CTA band ---- */
.io-cta {
  background: var(--purple-140); border-radius: 18px; padding: 48px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.io-cta h2 { color: #fff; font-size: 30px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.02em; }
.io-cta p { color: var(--purple-30); margin: 0; font-size: 16px; }

/* ---- avatar ring ---- */
.io-avatar {
  border-radius: 999px; background: var(--purple-05); border: 8px solid var(--purple-100);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(78,42,132,0.28);
}
.io-avatar img { width: 92%; display: block; }

/* ---- reveal-on-load (visible end-state is the base; animate FROM hidden) ---- */
.io-reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .io-reveal { opacity: 0; transform: translateY(14px); animation: ioRise .7s cubic-bezier(.22,1,.36,1) forwards; }
  .io-reveal.d1 { animation-delay: .06s; }
  .io-reveal.d2 { animation-delay: .12s; }
  .io-reveal.d3 { animation-delay: .18s; }
  .io-reveal.d4 { animation-delay: .24s; }
  @keyframes ioRise { to { opacity: 1; transform: none; } }
}

/* ---- responsive ---- */
@media (max-width: 860px) {
  .io-grid-3 { grid-template-columns: 1fr; }
  .io-grid-2 { grid-template-columns: 1fr; }
  .io-h1 { font-size: 40px; }
  .io-h2 { font-size: 28px; }
  .io-navlinks { gap: 18px; }
  .io-section { padding: 56px 0; }
}
