/* ===== fonts (self-hosted, latin subset) ===== */
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/hanken-grotesk.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

/* ===== base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #17110f;
  color: #efe6df;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
main { position: relative; z-index: 1; }

::selection {
  background: #8a3f6a;
  color: #fff7fb;
}

:focus-visible {
  outline: 2px solid #e0a0bd;
  outline-offset: 3px;
}

@keyframes plfloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes plrise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes plfade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 60px);
}

/* ===== nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(23, 17, 15, .72);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px clamp(22px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand-dot {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #d987ad, #8a3f6a);
}
.brand-name {
  font: 400 25px/1 'Instrument Serif', serif;
  letter-spacing: .3px;
  color: #efe6df;
}
.nav-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-link {
  font: 500 11px/1 'JetBrains Mono', monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(239, 230, 223, .55);
  padding: 10px 14px;
  text-decoration: none;
  border-radius: 8px;
  transition: color .2s;
}
.nav-link:hover { color: #efe6df; }
.btn-hi {
  font: 600 12px/1 'Hanken Grotesk', sans-serif;
  color: #17110f;
  background: #e9cfdc;
  padding: 11px 20px;
  border-radius: 30px;
  text-decoration: none;
  transition: transform .2s, background .2s;
  margin-left: 6px;
}
.btn-hi:hover {
  background: #f3ddea;
  transform: translateY(-1px);
}

/* ===== orbs (viewport-anchored ambient layer) ===== */
.orbs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  pointer-events: none;
  z-index: 0;
  animation: plfade 1.4s ease both;
}
.orb-big {
  position: absolute;
  top: -65px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, rgba(216, 135, 180, .5), rgba(138, 63, 106, .12) 55%, transparent 72%);
  filter: blur(12px);
}
.orb-small {
  position: absolute;
  top: 215px;
  right: 90px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #e6b27a, #cf8f5a);
  opacity: .5;
  filter: blur(4px);
  animation: plfloat 8s ease-in-out infinite;
}

/* ===== hero ===== */
.hero {
  position: relative;
  padding: 96px 0 84px;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-title {
  font: 400 clamp(52px, 8.4vw, 104px)/.97 'Instrument Serif', serif;
  letter-spacing: -.01em;
  margin: 0;
  max-width: 980px;
  text-wrap: balance;
  animation: plrise .8s cubic-bezier(.16, .84, .44, 1) both;
}
.hero-title em {
  font-style: italic;
  color: #e0a0bd;
}
.hero-subwrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
  animation: plrise .8s cubic-bezier(.16, .84, .44, 1) .15s both;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(239, 230, 223, .62);
  margin: 0;
  max-width: 470px;
}

/* ===== approach ===== */
.approach {
  position: relative;
  z-index: 2;
  padding: 20px 0 30px;
  scroll-margin-top: 80px;
}
.kicker {
  font: 500 11px/1 'JetBrains Mono', monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(239, 230, 223, .56);
  margin: 0 0 8px;
}
.principle {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 34px 0;
}
.principle:last-of-type {
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.principle-num {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: rgba(224, 160, 189, .13);
  border: 1px solid rgba(224, 160, 189, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 500 13px/1 'JetBrains Mono', monospace;
  color: #e0a0bd;
}
.principle h3 {
  font: 400 34px/1 'Instrument Serif', serif;
  margin: 0;
  width: 320px;
  flex: none;
}
.principle p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(239, 230, 223, .55);
  margin: 5px 0 0;
}

/* ===== apps ===== */
.apps {
  position: relative;
  z-index: 2;
  padding: 64px 0 30px;
  scroll-margin-top: 80px;
}
.apps-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 26px;
}
.apps-head h2 {
  font: 400 34px/1 'Instrument Serif', serif;
  margin: 0;
}
.apps-tag {
  font: 500 11px/1 'JetBrains Mono', monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(239, 230, 223, .55);
}
.app-card {
  display: flex;
  align-items: center;
  gap: 26px;
  border-radius: 22px;
}
.app-card-live {
  background: #1f1714;
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 30px 34px;
  text-decoration: none;
  color: inherit;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.app-card-live:hover {
  transform: translateY(-3px);
  border-color: rgba(224, 160, 189, .4);
  box-shadow: 0 18px 50px rgba(138, 63, 106, .22);
}
.app-index {
  font: 400 50px/1 'Instrument Serif', serif;
  color: rgba(239, 230, 223, .28);
  flex: none;
}
.app-icon {
  width: 62px;
  height: 62px;
  border-radius: 17px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.app-icon svg {
  width: 44px;
  height: 44px;
  display: block;
}
.app-meta { flex: 1; }
.app-title-row {
  display: flex;
  align-items: center;
  gap: 11px;
}
.app-name {
  font: 400 32px/1 'Instrument Serif', serif;
}
.badge-live {
  font: 600 11px/1 'Hanken Grotesk', sans-serif;
  background: #e0a0bd;
  color: #1f1714;
  padding: 5px 10px;
  border-radius: 20px;
}
.app-desc {
  display: block;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(239, 230, 223, .6);
  margin-top: 9px;
  max-width: 560px;
}
.app-visit {
  font: 600 13px/1 'Hanken Grotesk', sans-serif;
  color: #e0a0bd;
  white-space: nowrap;
}
.app-card-soon {
  background: rgba(255, 255, 255, .025);
  border: 1px dashed rgba(255, 255, 255, .14);
  padding: 26px 34px;
  margin-top: 14px;
}
.app-card-soon .app-index {
  color: rgba(239, 230, 223, .18);
}
.soon-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .05) 6px, transparent 6px, transparent 12px);
  flex: none;
}
.soon-title {
  font: 400 24px/1 'Instrument Serif', serif;
  font-style: italic;
  color: rgba(239, 230, 223, .55);
}
.soon-desc {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(239, 230, 223, .4);
  margin-top: 8px;
}

/* ===== contact / footer ===== */
.contact {
  position: relative;
  z-index: 2;
  padding: 48px 0 26px;
  scroll-margin-top: 80px;
}
.contact-card {
  background: linear-gradient(145deg, #8a3f6a 0%, #6d2f54 60%, #5a2747 100%);
  border-radius: 26px;
  padding: clamp(40px, 5vw, 60px);
  position: relative;
  overflow: hidden;
}
.contact-glow {
  position: absolute;
  bottom: -90px;
  right: -30px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(230, 178, 122, .45), transparent 65%);
  filter: blur(6px);
  pointer-events: none;
}
.contact-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.contact-title {
  font: 400 clamp(34px, 4vw, 46px)/1 'Instrument Serif', serif;
  margin: 0 0 16px;
  color: #fff;
}
.contact-mail {
  font-size: 18px;
  color: #f3d0e0;
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 208, 224, .5);
  padding-bottom: 2px;
  transition: color .2s;
}
.contact-mail:hover { color: #fff; }
.contact-legal {
  font: 500 11px/1.5 'JetBrains Mono', monospace;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .6);
  text-align: right;
}

/* ===== not-found page ===== */
.nf-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}
.nf-title {
  font: 400 clamp(44px, 7vw, 84px)/1 'Instrument Serif', serif;
  letter-spacing: -.01em;
  margin: 0;
  animation: plrise .8s cubic-bezier(.16, .84, .44, 1) both;
}
.nf-sub {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(239, 230, 223, .62);
  max-width: 430px;
  margin: 0 0 8px;
  animation: plrise .8s cubic-bezier(.16, .84, .44, 1) .15s both;
}

/* ===== mobile ===== */
@media (max-width: 820px) {
  .hero-title { font-size: 52px; }
  .hero-sub { max-width: none; }
  .hero-subwrap { justify-content: flex-start; margin-top: 26px; }
  .nav-link { display: none; }
  .orb-small { top: 95px; right: -30px; width: 90px; height: 90px; }
  .principle { flex-wrap: wrap; gap: 14px 20px; }
  .principle h3 { width: 100%; font-size: 28px; }
  .app-card { flex-wrap: wrap; }
  .app-card .app-meta { flex: 1 1 100%; }
  .contact-row { flex-direction: column; align-items: flex-start; gap: 26px; }
}
