/* manitc.com — maniTC product site
   Orange (O) spectrum · Saptarang Ventures (OPC) Private Limited
   Tokens: colour/palettes/manitc.md */

@import url("/assets/fonts/fonts.css");

:root {
  --paper: #FFF8F2;
  --paper-2: #F5E8DC;
  --paper-3: #FFF4EB;
  --card: #FFFFFF;
  --ink: #1A1714;
  --ink-2: #4A3F36;
  --ink-3: #7A6B5C;
  --rule: #E8D5C4;
  --rule-2: #D4BDA8;

  --accent: #E2701B;
  --accent-text: #B85A14;
  --accent-ink: #FFFBF5;
  --accent-deep: #3D1C08;
  --link: #B85A14;

  --shadow: 0 1px 2px rgba(61, 28, 8, 0.06), 0 12px 32px -16px rgba(226, 112, 27, 0.35);
  --measure: 62ch;
  --wide: 1080px;
  --radius: 12px;

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Literata", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(ellipse 90% 60% at 12% -10%, rgba(226, 112, 27, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 8%, rgba(184, 90, 20, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(226, 112, 27, 0.08), transparent 55%),
    linear-gradient(180deg, var(--paper-3) 0%, var(--paper) 35%, var(--paper-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Soft grain */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 1; }

img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; color: var(--accent-deep); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 0.7rem 1.1rem; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.wrap { width: min(100% - 2.25rem, var(--wide)); margin-inline: auto; }
.narrow { width: min(100% - 2.25rem, 720px); margin-inline: auto; }
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-tight { padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.page-head { padding-block: clamp(2.25rem, 5vw, 3.5rem) 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.55em;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 5vw, 3.15rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1.1em; max-width: var(--measure); }
.lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--ink-2); line-height: 1.55; max-width: 38rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.75rem;
}

.mono { font-family: var(--mono); font-size: 0.92em; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
nav.site {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 248, 242, 0.82);
  border-bottom: 1px solid rgba(232, 213, 196, 0.7);
}
.nav-inner {
  width: min(100% - 2.25rem, var(--wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}
.nav-logo:hover { text-decoration: none; color: var(--ink); }
.logo-mark { flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px; }
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.wordmark small {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 0.2rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--display);
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent-text); }
.nav-links a.nav-cta {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
}
.nav-links a.nav-cta:hover { background: var(--accent-text); color: var(--accent-ink); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 1.125rem 1rem;
  border-top: 1px solid var(--rule);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  text-decoration: none;
  color: var(--ink-2);
  font-family: var(--display);
  font-weight: 500;
  padding: 0.45rem 0;
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100svh - 3.75rem);
  display: flex;
  align-items: center;
  padding-block: clamp(2.5rem, 8vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: 15%;
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 112, 27, 0.28), transparent 68%);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-4%, 6%) scale(1.08); }
}
.hero-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.2rem, 12vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 0.35em;
  animation: rise 0.9s ease-out both;
}
.hero-brand span {
  color: var(--accent);
}
.hero h1 {
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
  font-weight: 600;
  max-width: 18em;
  animation: rise 0.9s ease-out 0.12s both;
}
.hero .lede {
  animation: rise 0.9s ease-out 0.22s both;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: rise 0.9s ease-out 0.32s both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--accent-text);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-deep); color: var(--accent-ink); }
.btn-ghost {
  background: transparent;
  color: var(--accent-text);
  border-color: rgba(184, 90, 20, 0.45);
}
.btn-ghost:hover { background: rgba(226, 112, 27, 0.1); color: var(--accent-deep); }

/* Dual path band — below first viewport */
.dual {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.35);
}
.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}
@media (max-width: 700px) {
  .dual-grid { grid-template-columns: 1fr; }
}
.dual-item h2 {
  font-size: 1.35rem;
  color: var(--accent-text);
}
.dual-item p { color: var(--ink-2); margin-bottom: 0; }

.stack-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.35rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  margin: 1.5rem 0;
}
.stack-flow a { text-decoration: none; }
.stack-flow .arrow { color: var(--ink-3); font-weight: 400; padding: 0 0.15rem; }

.hub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.hub-list li {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.85rem;
}
.hub-list a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
}
.hub-list p { margin: 0.25rem 0 0; color: var(--ink-2); font-size: 0.98rem; }

.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { max-width: var(--measure); margin: 0 0 1.15em; padding-left: 1.25em; }
.prose li { margin-bottom: 0.4em; }
.prose code, .inline-code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(226, 112, 27, 0.1);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
.prose pre {
  background: var(--accent-deep);
  color: var(--accent-ink);
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 100%;
}
.prose pre code { background: none; padding: 0; color: inherit; }
.note {
  background: rgba(226, 112, 27, 0.08);
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1.1rem;
  margin: 1.25rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.note p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
th { font-family: var(--display); font-weight: 600; color: var(--accent-text); }

/* Footer */
footer.site {
  margin-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
  background: rgba(245, 232, 220, 0.55);
  padding-block: 2.5rem 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.75rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-about p { max-width: 36ch; color: var(--ink-2); }
footer h4 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.65rem;
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 0.35rem; }
footer a { text-decoration: none; color: var(--ink-2); }
footer a:hover { color: var(--accent-text); }
.footer-legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 0.85rem;
}
.footer-legal p { margin: 0 0 0.35em; max-width: none; }

.orange-rule {
  height: 3px;
  width: 4.5rem;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
  margin: 0 0 1.25rem;
}
