/* ============================================================
   Saisalabs — independent software & AI studio
   Noir / editorial. Fraunces + Instrument Sans + IBM Plex Mono.
   ============================================================ */

:root {
  --bg:        #0E0E11;
  --bg-2:      #16161A;
  --bg-3:      #1B1B1F;
  --line:      #24242A;
  --line-2:    #2E2E36;
  --ink:       #FAFAF9;
  --muted:     #A6A6AE;
  --faint:     #71717A;
  --gold:      #E9C57E;
  --gold-soft: rgba(233, 197, 126, 0.14);
  --warm:      #E8823C;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --maxw: 1080px;
  --pad:  clamp(20px, 5vw, 44px);
  --r:    12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Atmosphere: a soft gold aurora + fine grain, both very restrained */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 88% -8%, rgba(233,197,126,0.10), transparent 60%),
    radial-gradient(50vw 40vh at 6% 8%, rgba(233,197,126,0.045), transparent 55%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .nav, .footer { position: relative; z-index: 1; }

::selection { background: var(--gold); color: #0E0E11; }

a { color: inherit; text-decoration: none; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #0E0E11;
  padding: 10px 16px;
  border-radius: var(--r);
  z-index: 100;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.skip:focus { left: 16px; top: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(14, 14, 17, 0.62);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(14, 14, 17, 0.82);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand .dot { color: var(--gold); }
.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  font-size: 0.9rem;
  color: var(--muted);
}
.nav-links a { position: relative; transition: color 0.25s var(--ease); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

/* ---------- Layout ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) var(--pad);
  border-top: 1px solid var(--line);
}
.label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 11vw, 132px) var(--pad) clamp(40px, 7vw, 72px);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at center, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
  opacity: 0.6;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  min-height: 1.2em;
  transition: opacity 0.4s var(--ease);
}
.eyebrow.fade { opacity: 0; }

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 16ch;
  color: var(--ink);
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}
.hero-sub {
  margin-top: 24px;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.6;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.mono-note {
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--faint);
  letter-spacing: 0.01em;
}
.mono-note .slash { color: var(--gold); }

.hero-aside { align-self: stretch; }
.index-mark {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--faint);
  text-align: right;
  padding-top: 6px;
}
.index-mark span {
  position: relative;
  padding-right: 16px;
}
.index-mark span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--line-2);
}
.index-mark span:first-child { color: var(--gold); }
.index-mark span:first-child::after { background: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-gold {
  background: var(--gold);
  color: #0E0E11;
}
.btn-gold:hover {
  transform: translateY(-2px);
  background: #F0D394;
}
.btn-ghost {
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ---------- Section heads ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px clamp(30px, 6vw, 72px);
  align-items: end;
  margin-bottom: 48px;
}
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.65;
  max-width: 52ch;
}

/* ---------- Cards (shared) ---------- */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 24px 26px;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease),
              background 0.28s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: #191920;
}

/* ---------- Approach / principles ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.principle .num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}
.principle h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.22rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.principle p { color: var(--muted); font-size: 0.94rem; line-height: 1.55; }

/* ---------- Product ---------- */
.product {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 6vw, 68px);
  align-items: center;
}
.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.product-title { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.mise-logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--warm);
  color: #1a0f06;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.product-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 24px;
}
.tags li {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--line-2);
  padding: 5px 12px;
  border-radius: 999px;
}
.arrow-link {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s var(--ease);
}
.arrow-link:hover { gap: 11px; }

/* Phone mock */
.product-visual { display: flex; justify-content: center; }
.phone {
  width: 232px;
  background: #1B1B1F;
  border: 1px solid var(--line-2);
  border-radius: 34px;
  padding: 9px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7);
  transition: transform 0.4s var(--ease);
}
.phone:hover { transform: translateY(-4px) rotate(-1.2deg); }
.phone-screen {
  background: #FBF3EA;
  border-radius: 26px;
  overflow: hidden;
  height: 420px;
  display: flex;
  flex-direction: column;
}
.app-bar {
  background: var(--warm);
  padding: 16px 16px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.app-fox { width: 20px; height: 20px; border-radius: 50%; background: #FBF3EA; display: inline-block; }
.app-name { color: #FFF7EF; font-size: 0.95rem; font-weight: 600; }
.app-body { padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.bubble { font-size: 0.82rem; line-height: 1.4; padding: 10px 12px; }
.bubble.user {
  align-self: flex-end;
  background: #F3D9C2;
  color: #6B3B18;
  border-radius: 14px 14px 4px 14px;
  max-width: 82%;
}
.bubble.bot {
  align-self: flex-start;
  background: #FFFFFF;
  border: 1px solid #EEE0CE;
  border-radius: 14px 14px 14px 4px;
  max-width: 92%;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.bot-tag { font-size: 0.68rem; color: #A9691F; font-family: var(--mono); }
.bot-title { font-size: 0.86rem; color: #3A2A1A; font-weight: 600; }
.bar { height: 6px; background: #F0E4D4; border-radius: 3px; }
.bar.short { width: 66%; }
.app-cta {
  align-self: flex-start;
  margin-top: 2px;
  background: var(--warm);
  color: #FFF7EF;
  font-size: 0.78rem;
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------- Ventures ---------- */
.ventures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.venture { display: flex; flex-direction: column; }
.venture-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.venture-head h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--ink);
}
.pill {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--faint);
  border: 1px solid var(--line-2);
  padding: 3px 9px;
  border-radius: 999px;
}
.venture > p { color: var(--muted); font-size: 0.94rem; line-height: 1.55; margin-bottom: 18px; }
.venture .arrow-link { margin-top: auto; }

/* Daily8 WhatsApp mock */
.wa {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  margin-bottom: 18px;
  background: #0B141A;
}
.wa-bar { background: #1F2C34; color: #E9EDEF; font-size: 0.78rem; padding: 9px 14px; font-weight: 600; }
.wa-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background:
    linear-gradient(rgba(11,20,26,0.92), rgba(11,20,26,0.92));
}
.wa-bubble {
  align-self: flex-start;
  background: #202C33;
  color: #E9EDEF;
  font-size: 0.76rem;
  padding: 7px 11px;
  border-radius: 8px 8px 8px 2px;
  max-width: 90%;
}
.wa-bubble b { color: #7Fe0c4; font-weight: 600; }
.wa-bubble.faint { opacity: 0.6; }

/* Byzzle marks */
.byzzle-marks { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.byzzle-marks span {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 6px;
}

/* ---------- Contact ---------- */
.contact { max-width: 640px; }
.contact h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 22px; }
.contact .lead { margin-bottom: 30px; font-size: clamp(1.02rem, 1.5vw, 1.16rem); }
.contact .lead a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); transition: border-color 0.25s var(--ease); }
.contact .lead a:hover { border-color: var(--gold); }
.contact-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.contact-mail { margin-top: 0; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px var(--pad) 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-meta {
  display: flex;
  gap: clamp(12px, 3vw, 26px);
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--faint);
  flex-wrap: wrap;
}
.footer-meta a { transition: color 0.25s var(--ease); }
.footer-meta a:hover { color: var(--gold); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Hero load-in (staggered) */
.hero-copy > * {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s var(--ease) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.15s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.25s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.35s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.45s; }
.hero-aside { opacity: 0; animation: fade 1s var(--ease) 0.6s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .product-visual { justify-content: flex-start; }
  .ventures { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-links { gap: 14px; font-size: 0.82rem; }
  .nav-links a:nth-child(1) { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-copy > *, .hero-aside { opacity: 1; transform: none; }
}
