/* LogSuite suite landing — dark, spacious presence */

:root {
  --ink: #e8edf6;
  --ink-soft: #c5cede;
  --muted: #8b95a8;
  --paper: #090a0f;
  --paper-elevated: #10131c;
  --paper-band: #0c0e15;
  --line: rgba(232, 237, 246, 0.1);
  --line-strong: rgba(232, 237, 246, 0.16);
  --accent: #c9a46c;
  --accent-bright: #e2c48a;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: #070b14;
  padding: 0.5rem 0.85rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.page-shell {
  min-height: 100vh;
  background: var(--paper);
}

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px) saturate(1.15);
  background: rgba(9, 10, 15, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}

.topbar.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(9, 10, 15, 0.92);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  object-fit: cover;
  flex-shrink: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}


/* Hero — photo atmosphere + centered type */

.hero {
  position: relative;
  min-height: min(78vh, 36rem);
  display: grid;
  align-items: center;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
  color: #f4f7fc;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #090a0f;
}

.hero__banner {
  position: absolute;
  inset: 0;
}

.hero__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.12);
  filter: brightness(1.45) contrast(1.28) saturate(1.45);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 237, 246, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 237, 246, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, #000 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, #000 15%, transparent 75%);
  opacity: 0.22;
  pointer-events: none;
}

.hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 52% 46% at 50% 40%,
      rgba(9, 10, 15, 0.1) 0%,
      rgba(9, 10, 15, 0.28) 58%,
      rgba(9, 10, 15, 0.55) 100%
    ),
    linear-gradient(
      180deg,
      rgba(9, 10, 15, 0.32) 0%,
      rgba(9, 10, 15, 0.06) 48%,
      rgba(9, 10, 15, 0.5) 100%
    );
}

.hero__stage {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero__content {
  max-width: 44rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 237, 246, 0.16);
  background: rgba(9, 10, 15, 0.55);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(210, 220, 236, 0.88);
}

.hero__badge-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 10px rgba(226, 196, 138, 0.7);
  flex-shrink: 0;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.45rem, 6.4vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #fff;
  text-wrap: balance;
}

.hero__accent {
  display: inline;
  background: linear-gradient(105deg, #f0d7a0 0%, #e2c48a 42%, #9ec4ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  margin: 0 0 1.65rem;
  color: #fff;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.55;
  max-width: 38rem;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  border-radius: 0.65rem;
  padding: 0.9rem 1.45rem;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn--primary {
  color: #0a0d14;
  background: linear-gradient(180deg, #edd5a2 0%, var(--accent) 100%);
  box-shadow: 0 10px 28px rgba(201, 164, 108, 0.28);
}

.btn--primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #f2dfb4 0%, #d4b078 100%);
}

.hero__trust {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.01em;
  text-align: center;
}

/* Apps — showcase cards with one-line value */

.apps-section {
  padding: 4.5rem 0 4.75rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.apps-section__head {
  margin: 0 auto 2.75rem;
  max-width: 40rem;
  text-align: center;
}

.apps-section__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.apps-section__head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}

.apps-section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.5;
}

.app-dir {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .app-dir {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .app-dir {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

.app-dir__item {
  --tile: #c9a46c;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  padding: 1.55rem 1.2rem 1.5rem;
  border-radius: 1rem;
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  text-align: center;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

a.app-dir__item:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 237, 246, 0.22);
  background: #121a2c;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

a.app-dir__item:hover .app-dir__name {
  color: var(--tile);
}

a.app-dir__item:focus-visible {
  outline: 2px solid var(--tile);
  outline-offset: 3px;
}

.app-dir__logo {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 0.9rem;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.app-dir__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  width: 100%;
}

.app-dir__name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #fff;
  transition: color 180ms ease;
  line-height: 1.2;
}

.app-dir__field {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.3;
}

.app-dir__blurb {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 18.5rem;
}

/* Principles — compact trust strip */

.principles {
  padding: 3.25rem 0 3.75rem;
  background: var(--paper-band);
  border-top: 1px solid var(--line);
}

.principles__head {
  margin: 0 auto 1.75rem;
  text-align: center;
}

.principles__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #fff;
}

.principles__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .principles__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.principle-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.principle-card strong {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
}

.principle-card > span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Footer */

.site-footer {
  padding: 0 0 2.75rem;
  background: var(--paper-band);
}

.site-footer__inner {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer__brand {
  margin: 0 0 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-soft);
}

.site-footer__brand img {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.3rem;
  object-fit: cover;
}

.site-footer p {
  margin: 0;
  max-width: 42rem;
}


/* Motion */

/* Above-the-fold never waits on reveal */
.hero__stage {
  opacity: 1;
  transform: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="40"].is-in {
  transition-delay: 40ms;
}
[data-reveal-delay="80"].is-in {
  transition-delay: 80ms;
}
[data-reveal-delay="120"].is-in {
  transition-delay: 120ms;
}
[data-reveal-delay="160"].is-in {
  transition-delay: 160ms;
}
[data-reveal-delay="200"].is-in {
  transition-delay: 200ms;
}
[data-reveal-delay="240"].is-in {
  transition-delay: 240ms;
}
[data-reveal-delay="280"].is-in {
  transition-delay: 280ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .app-dir__item,
  .btn {
    transition: none;
  }

  a.app-dir__item:hover,
  .btn--primary:hover {
    transform: none;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding: 2.75rem 0 3rem;
  }

  .hero__badge {
    max-width: 100%;
  }

  .apps-section {
    padding: 3.25rem 0 3.5rem;
  }

  .app-dir__item {
    padding: 1.35rem 1.1rem 1.35rem;
  }

  .app-dir__logo {
    width: 3.1rem;
    height: 3.1rem;
  }

  .app-dir__blurb {
    max-width: none;
  }
}
