:root {
  --ink: #0f1d2c;
  --ink-soft: #17283a;
  --paper: #f3f1eb;
  --paper-bright: #fbfaf6;
  --gold: #c59a2d;
  --gold-soft: #d9bc73;
  --muted: #9ba5af;
  --line: rgba(255, 255, 255, 0.14);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper-bright);
  background: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, transparent 0 55%, rgba(255,255,255,.025) 55.1% 55.3%, transparent 55.4%),
    linear-gradient(22deg, transparent 0 60%, rgba(197,154,45,.05) 60.1% 60.25%, transparent 60.35%);
}

.ambient__glow {
  position: absolute;
  width: 52rem;
  height: 52rem;
  right: -17rem;
  top: -25rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,154,45,.13), rgba(197,154,45,0) 68%);
  animation: breathe 9s ease-in-out infinite alternate;
}

.ambient__threads {
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    repeating-linear-gradient(118deg, transparent 0 9px, rgba(255,255,255,.025) 10px, transparent 11px 20px),
    repeating-linear-gradient(62deg, transparent 0 13px, rgba(197,154,45,.025) 14px, transparent 15px 28px);
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1380px, calc(100% - 64px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: block; width: 146px; }
.brand img { display: block; width: 100%; height: auto; }

.topbar__right { display: flex; align-items: center; gap: 30px; }
.topbar__label { color: var(--muted); font-size: .88rem; }
.corporate-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  font-size: .88rem;
  transition: color .35s ease, background .35s ease, border-color .35s ease;
}
.corporate-link:hover { color: var(--ink); background: var(--paper-bright); border-color: var(--paper-bright); }

main { flex: 1; }

.intro {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  padding: clamp(56px, 8vh, 100px) 0 clamp(42px, 6vh, 72px);
}

.eyebrow {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-soft);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.eyebrow span { width: 36px; height: 1px; background: var(--gold); }

h1 {
  max-width: 920px;
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.5rem, 7.2vw, 7.4rem);
  line-height: .9;
  letter-spacing: -.065em;
  font-weight: 600;
}
h1 em { color: var(--gold); font-style: normal; }

.intro__lead {
  margin: 26px 0 0;
  color: #bdc4ca;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.index-mark { display: flex; align-items: flex-end; gap: 14px; padding-bottom: 5px; }
.index-mark__number {
  font-family: "Manrope", sans-serif;
  color: var(--gold);
  font-size: clamp(3rem, 5vw, 5.4rem);
  line-height: .8;
  letter-spacing: -.07em;
}
.index-mark__label { color: var(--muted); font-size: .72rem; line-height: 1.35; letter-spacing: .12em; text-transform: uppercase; }

.apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  min-height: 340px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255,255,255,.035);
  text-decoration: none;
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-out), border-color .4s ease, background .4s ease;
  will-change: transform;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(460px circle at var(--mx) var(--my), rgba(255,255,255,.14), transparent 42%);
  transition: opacity .4s ease;
}

.app-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transform: scale(.965);
  transition: transform .55s var(--ease-out), border-color .55s ease;
  pointer-events: none;
}

.app-card:hover { border-color: rgba(217,188,115,.65); background: rgba(255,255,255,.055); }
.app-card:hover::before { opacity: 1; }
.app-card:hover::after { transform: scale(1); border-color: rgba(197,154,45,.24); }

.app-card__wash {
  position: absolute;
  width: 20rem;
  height: 20rem;
  right: -8rem;
  bottom: -10rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,154,45,.13), transparent 67%);
  transition: transform .8s var(--ease-out);
}
.app-card:hover .app-card__wash { transform: translate(-24px, -24px) scale(1.15); }

.app-card__topline, .app-card__body, .app-card__action { position: relative; z-index: 1; transform: translateZ(20px); }
.app-card__topline { display: flex; justify-content: space-between; align-items: center; }
.app-card__number { color: #778391; font-size: .75rem; letter-spacing: .18em; }

.status { display: flex; align-items: center; gap: 8px; color: #b9c3ca; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #72cf9b; box-shadow: 0 0 0 5px rgba(114,207,155,.09); animation: pulse 2.4s ease-in-out infinite; }

.app-card__body { display: grid; align-content: end; justify-items: start; margin-top: auto; padding-top: 38px; }
.app-card__icon { width: 46px; height: 46px; margin-bottom: 28px; display: grid; place-items: center; border: 1px solid rgba(197,154,45,.45); color: var(--gold-soft); }
.app-card__icon svg { width: 24px; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.app-card__kicker { margin-bottom: 9px; color: var(--gold-soft); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.app-card strong { font-family: "Manrope", sans-serif; font-size: clamp(1.75rem, 3vw, 2.65rem); line-height: 1.1; letter-spacing: -.045em; }
.app-card__description { max-width: 470px; margin-top: 14px; color: #aeb7bf; font-size: .95rem; line-height: 1.55; }

.app-card__action { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; font-size: .88rem; font-weight: 500; }
.app-card__action i { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: var(--paper-bright); color: var(--ink); font-style: normal; transition: transform .45s var(--ease-out), background .35s ease; }
.app-card:hover .app-card__action i { transform: rotate(45deg) scale(1.08); background: var(--gold); }

.footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #7f8b96;
  font-size: .72rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.footer__line { width: 36px; height: 1px; background: #536170; }

.reveal { opacity: 0; transform: translateY(22px); animation: reveal .95s var(--ease-out) forwards; animation-delay: var(--delay, 0ms); }

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(114,207,155,0); } }
@keyframes breathe { to { transform: translate(-4rem, 4rem) scale(1.08); } }

@media (max-width: 760px) {
  .shell { width: min(100% - 36px, 680px); }
  .topbar { min-height: 92px; }
  .brand { width: 118px; }
  .topbar__label { display: none; }
  .corporate-link { padding: 10px 14px; }
  .intro { grid-template-columns: 1fr; padding: 56px 0 42px; }
  h1 { font-size: clamp(3.25rem, 15vw, 5.5rem); }
  .index-mark { display: none; }
  .apps { grid-template-columns: 1fr; }
  .app-card { min-height: 320px; }
  .footer { min-height: 82px; }
}

@media (max-width: 430px) {
  .shell { width: calc(100% - 28px); }
  .corporate-link { border: 0; padding: 8px 0; }
  .app-card { padding: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .app-card { transform: none !important; }
}
