/* =========================================================
   KAINGS — Landing pages (AI / Design / Engineering)
   Simpler than home — content-first, SEO-optimized,
   same brand aesthetic without the full animation spectacle
   ========================================================= */

:root {
  --black: #030303;
  --ink: #0a0806;
  --gold-dark: #a98326;
  --gold: #d4af37;
  --gold-light: #f5e1a0;
  --champagne: #fbf0c4;
  --text: #e8dcb8;
  --text-dim: rgba(232, 220, 184, 0.72);
  --text-faint: rgba(232, 220, 184, 0.45);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-lux: cubic-bezier(0.65, 0, 0.35, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--black);
}
html, body {
  background: var(--black);
  color: var(--text);
  font-family: "Instrument Serif", Georgia, serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  position: relative;
  min-height: 100vh;
  padding-bottom: 80px;
  overflow-x: hidden;
}

.mono {
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  font-weight: 300;
  letter-spacing: 0.18em;
  font-size: 11px;
  text-transform: uppercase;
}

/* Ambient background */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.bg-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,175,55,0.32) 0%, transparent 70%);
  top: -200px; left: -180px;
  animation: orb-drift 26s ease-in-out infinite;
}
.bg-orb-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(197,197,197,0.15) 0%, transparent 72%);
  bottom: -180px; right: -160px;
  animation: orb-drift 32s ease-in-out infinite reverse;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(80px, 100px); }
}

.bg-grain {
  position: fixed; inset: -10%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.bg-vignette {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 0%, transparent 40%, rgba(3,3,3,0.6) 80%, rgba(3,3,3,0.9) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.06) 0%, transparent 50%);
}

/* Nav */
.nav-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  background: linear-gradient(180deg, rgba(3,3,3,0.95), rgba(3,3,3,0.7) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.24em;
  transition: color 0.3s var(--ease-lux);
}
.back-link:hover { color: var(--gold-light); }
.arrow-left { color: var(--gold); font-size: 14px; }
.brand-mono { font-weight: 500; }

.nav-landing {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
}
.nav-landing a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.nav-landing a:hover { color: var(--gold-light); }
.nav-landing a.active {
  color: var(--gold-light);
  border-color: var(--gold);
}
.nav-landing .dot { color: var(--gold); }

/* Main layout */
.landing {
  position: relative;
  z-index: 5;
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 28px 60px;
}

/* Hero */
.hero-stage {
  text-align: center;
  margin-bottom: 80px;
}
.eyebrow {
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.bracket { color: var(--gold); }

.page-title {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
  color: var(--text);
}
.page-title em {
  font-style: italic;
  background: linear-gradient(115deg, #a98326 0%, #f5e1a0 40%, #ffffff 50%, #f5e1a0 60%, #a98326 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.page-sub {
  font-family: "Instrument Serif", serif;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-meta {
  color: var(--text-faint);
  font-size: 10px;
  letter-spacing: 0.28em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.dot-ok {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.8); }
}

/* Content blocks */
.block {
  margin-bottom: 64px;
  padding: 0 4px;
}
.block-title {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px);
  color: var(--gold-light);
  margin-bottom: 28px;
  line-height: 1.1;
  position: relative;
  padding-left: 24px;
}
.block-title::before {
  content: "§";
  position: absolute;
  left: 0; top: 0.3em;
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.55em;
  font-style: normal;
}

.block-body {
  font-family: "Instrument Serif", serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
  max-width: 680px;
}
.block-body em {
  color: var(--gold-light);
  font-style: italic;
}

/* Grid of cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 680px) {
  .grid-2 { grid-template-columns: 1fr; }
}
.card {
  padding: 24px 22px;
  background: rgba(10, 8, 3, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 2px;
  transition: border-color 0.4s var(--ease-lux), background 0.4s var(--ease-lux), transform 0.4s var(--ease-lux);
}
.card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(14, 11, 4, 0.75);
  transform: translateY(-2px);
}
.card-k {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.28em;
  margin-bottom: 10px;
}
.card h3 {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  color: var(--gold-light);
  margin-bottom: 10px;
  line-height: 1.2;
}
.card p {
  font-family: "Instrument Serif", serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* Stack list */
.stack-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 6px;
  padding: 24px 22px;
  background: rgba(10, 8, 3, 0.35);
  border-left: 1px solid var(--gold);
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: none;
}
.stack-list li {
  padding: 6px 0;
  position: relative;
  padding-left: 18px;
}
.stack-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding: 20px 0;
  transition: border-color 0.3s;
}
.faq-item:first-of-type { border-top: 1px solid rgba(212, 175, 55, 0.15); }
.faq-item summary {
  cursor: pointer;
  font-family: "Instrument Serif", serif;
  font-size: 19px;
  color: var(--gold-light);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: color 0.3s var(--ease-lux);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: "JetBrains Mono", monospace;
  color: var(--gold);
  font-size: 20px;
  transition: transform 0.4s var(--ease-lux);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary:hover { color: #fff; }
.faq-item p {
  font-family: "Instrument Serif", serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-dim);
  margin-top: 14px;
  padding-right: 40px;
}
.faq-item a {
  color: var(--gold-light);
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  text-decoration: none;
}

/* CTA block */
.cta-block {
  text-align: center;
  padding: 60px 20px;
  margin: 80px 0 40px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.12) 0%, transparent 60%),
    rgba(10, 8, 3, 0.6);
  border-radius: 2px;
}
.cta-heading {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--text);
  margin-bottom: 14px;
}
.cta-body {
  font-family: "Instrument Serif", serif;
  font-size: 18px;
  color: var(--text-dim);
  max-width: 460px;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 40px;
  background: rgba(3, 3, 3, 0.6);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  text-decoration: none;
  font-family: "Unbounded", "Arial Black", sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: 0.01em;
  transition: all 0.4s var(--ease-lux);
}
.cta-button:hover {
  background: var(--gold-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}
.arrow-right { color: inherit; font-size: 1.1em; transition: transform 0.3s; }
.cta-button:hover .arrow-right { transform: translateX(4px); }
.cta-meta {
  margin-top: 24px;
  color: var(--text-faint);
  font-size: 10px;
  letter-spacing: 0.28em;
}

/* Cross-discipline nav */
.discipline-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 680px) {
  .discipline-nav { grid-template-columns: 1fr; }
}
.discipline-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: rgba(10, 8, 3, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.18);
  text-decoration: none;
  color: var(--text);
  transition: all 0.4s var(--ease-lux);
  position: relative;
  overflow: hidden;
}
.discipline-card:hover {
  background: rgba(14, 11, 4, 0.8);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.dc-k {
  color: var(--gold);
  margin-bottom: 10px;
  font-size: 10px;
}
.discipline-card h3 {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.discipline-card p {
  font-family: "Instrument Serif", serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.dc-arrow {
  color: var(--gold);
  font-size: 18px;
  margin-top: auto;
  transition: transform 0.4s var(--ease-lux);
}
.discipline-card:hover .dc-arrow {
  transform: translateX(6px);
}

/* Footer */
.foot-landing {
  position: relative;
  z-index: 5;
  padding: 28px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 10px;
  letter-spacing: 0.24em;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  margin-top: 60px;
}
.foot-landing a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.foot-landing a:hover { color: var(--gold-light); }
.foot-landing .sep { color: rgba(212,175,55,0.4); }
.foot-landing .dot-live {
  display: inline-block;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
  vertical-align: middle;
  margin-right: 6px;
}

/* Responsive nav */
@media (max-width: 680px) {
  .nav-top { padding: 16px 20px; flex-direction: column; gap: 10px; }
  .landing { padding: 60px 20px 40px; }
  .hero-stage { margin-bottom: 60px; }
  .block { margin-bottom: 48px; }
  .cta-block { padding: 48px 20px; margin: 60px 0 32px; }
  .faq-item summary { font-size: 17px; }
  .faq-item p { font-size: 16px; padding-right: 10px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus-visible */
:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
