/* Nortruva Labs — studio site. Vanilla CSS, no dependencies. */

:root {
  --ink: #1B261D;
  --ink-soft: #243329;
  --cream: #F6F8F5;
  --cream-deep: #EDF1EA;
  --accent: #166534;
  --accent-deep: #14532D;
  --hairline: #D3DCD0;
  --hairline-dark: rgba(255, 255, 255, 0.14);
  --text: #1B261D;
  --muted: #5C6B5E;
  --text-on-dark: #F6F8F5;
  --muted-on-dark: #A9B8AB;
  --radius: 16px;
  --font-display: "Space Grotesk", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 680px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 245, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--hairline); }

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.wordmark-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--ink) 100%);
  display: inline-block;
}

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-quiet {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 18px;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.nav-quiet:hover { background: #fff; border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 50% -10%, rgba(22, 101, 52, 0.35), transparent 65%),
    var(--ink);
  color: var(--text-on-dark);
  padding: 130px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}
.hero .eyebrow { color: #8FD6A4; }
.eyebrow-light { color: #8FD6A4; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--muted-on-dark);
  max-width: 620px;
  margin-bottom: 44px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 30px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost {
  color: var(--text-on-dark);
  border: 1px solid var(--hairline-dark);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.05); }
.btn-small { font-size: 15px; padding: 12px 24px; }

.hero-rule {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--hairline-dark);
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-dark { background: var(--ink); color: var(--text-on-dark); }

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 54px;
  font-weight: 700;
}
.section-dark h2 { color: var(--text-on-dark); }

/* ---------- Principle cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(27, 38, 29, 0.08);
}
.card-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 18px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.card p { color: var(--muted); font-size: 16px; }

/* ---------- Apps ---------- */
.apps-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
}
.app-card {
  background: var(--ink-soft);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius);
  padding: 42px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.app-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.28); }
.app-card-ghost {
  background: transparent;
  border-style: dashed;
  justify-content: flex-start;
}
.app-card-ghost:hover { transform: none; border-color: rgba(255, 255, 255, 0.28); }

.app-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8FD6A4;
  border: 1px solid var(--hairline-dark);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}
.app-badge-ghost { color: var(--muted-on-dark); }

.app-card h3 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.app-tagline {
  font-family: var(--font-display);
  font-size: 18px;
  color: #8FD6A4;
  margin-bottom: 16px;
}
.app-desc { color: var(--muted-on-dark); font-size: 16px; margin-bottom: 22px; }

.app-features { list-style: none; display: grid; gap: 12px; }
.app-features li {
  color: var(--muted-on-dark);
  font-size: 15px;
  padding-left: 26px;
  position: relative;
}
.app-features li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(22, 101, 52, 0.25);
}
.app-features strong { color: var(--text-on-dark); font-weight: 600; }

.app-card-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.play-badge {
  font-size: 14px;
  color: var(--muted-on-dark);
  border: 1px dashed var(--hairline-dark);
  border-radius: 999px;
  padding: 10px 18px;
}

/* ---------- Contact ---------- */
#contact p { color: var(--muted); margin-bottom: 18px; font-size: 18px; }
.email-link {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.email-link:hover { border-bottom-color: var(--accent); }
.location { font-size: 15px !important; letter-spacing: 0.04em; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 34px 0;
  background: var(--cream);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}
.footer-links { margin-left: auto; }
.footer-links a { color: var(--accent); text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-note { font-style: italic; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero { padding: 96px 0 84px; }
  .nav-links { display: none; }
  .nav-quiet { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .app-card:hover { transform: none; }
}
