/* ================================================================
   Uhuru — design tokens
   ================================================================ */

:root {
  /* Surface */
  --bg:           #060b1a;
  --bg-deep:      #03060f;
  --surface:      #0c1530;
  --surface-2:    #111c3d;
  --surface-3:    #15234d;
  --border:       #1d2a52;
  --border-soft:  #131e3e;
  --border-hi:    #2a3d72;

  /* Type */
  --text:         #f1f4fb;
  --text-muted:   #9aabd2;
  --text-dim:     #6b7da4;

  /* Accent — electric royal blue */
  --accent:       #5b8cff;
  --accent-hi:    #8fb1ff;
  --accent-lo:    #3d6ee0;
  --accent-glow:  rgba(91, 140, 255, 0.22);
  --accent-soft:  rgba(91, 140, 255, 0.10);

  /* Warm spark */
  --spark:        #f5c24a;

  /* Status colors */
  --status-live:    #4ade80;
  --status-soon:    #f5c24a;
  --status-design:  #9aabd2;

  /* Shape */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Layout */
  --max-width: 1080px;
  --content-pad: clamp(20px, 4vw, 32px);
}

/* ================================================================
   Reset
   ================================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Atmospheric gradient backdrop — subtle depth without imagery */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 50% -10%, rgba(91, 140, 255, 0.18), transparent 70%),
    radial-gradient(50vw 40vh at 90% 10%, rgba(91, 140, 255, 0.06), transparent 70%),
    radial-gradient(40vw 30vh at 0% 30%, rgba(143, 177, 255, 0.05), transparent 70%);
  z-index: 0;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4, p {
  margin: 0;
}

a {
  color: var(--accent-hi);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

/* ================================================================
   Layout primitives
   ================================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--content-pad);
}

.section {
  padding-block: clamp(72px, 9vw, 120px);
  position: relative;
}

.section--tight {
  padding-block: clamp(48px, 6vw, 80px);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ================================================================
   Header
   ================================================================ */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--text);
}

.brand .uhuru-mark {
  width: 28px;
  height: 28px;
  color: var(--text);
}

.brand-name {
  font-size: 18px;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface);
}

@media (max-width: 480px) {
  .site-nav a {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* ================================================================
   Hero
   ================================================================ */

.hero {
  text-align: center;
  padding-top: clamp(120px, 16vw, 180px);
  padding-bottom: clamp(56px, 9vw, 104px);
  position: relative;
}

.hero .uhuru-mark--lg {
  width: clamp(96px, 13vw, 124px);
  height: clamp(96px, 13vw, 124px);
  margin: 0 auto 32px;
  color: var(--text);
  filter: drop-shadow(0 0 24px var(--accent-glow));
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #c8d4ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lede {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  margin-top: 22px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.hero .sub-lede {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 38ch;
  margin-inline: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding: 8px 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(91, 140, 255, 0.28);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-hi);
  letter-spacing: 0.01em;
}

.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.22);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.22); }
  50%      { box-shadow: 0 0 0 7px rgba(91, 140, 255, 0.10); }
}

/* ================================================================
   The point — short prose row
   ================================================================ */

.point {
  border-top: 1px solid var(--border-soft);
}

.point__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.point__inner p {
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  line-height: 1.7;
  color: var(--text-muted);
}

.point__inner p strong {
  color: var(--text);
  font-weight: 600;
}

/* ================================================================
   Apps grid
   ================================================================ */

.apps {
  border-top: 1px solid var(--border-soft);
}

.apps__heading {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.apps__heading h2 {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

.apps__heading p {
  margin-top: 14px;
  color: var(--text-muted);
  max-width: 52ch;
  margin-inline: auto;
}

.apps__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 24px);
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.8vw, 28px);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 100% 0%, var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.app-card[href]:hover {
  transform: translateY(-2px);
  border-color: var(--border-hi);
  box-shadow: 0 12px 32px -16px rgba(91, 140, 255, 0.4);
}

.app-card[href]:hover::before {
  opacity: 1;
}

.app-card[aria-disabled="true"] {
  cursor: default;
  opacity: 0.85;
}

.app-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.app-card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--accent-hi);
}

.app-card__icon svg {
  width: 24px;
  height: 24px;
}

.app-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}

.app-card__desc {
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--text-muted);
  position: relative;
}

.app-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
  position: relative;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.tag--live {
  background: rgba(74, 222, 128, 0.10);
  border: 1px solid rgba(74, 222, 128, 0.28);
  color: var(--status-live);
}

.tag--live .dot {
  background: var(--status-live);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}

.tag--soon {
  background: rgba(245, 194, 74, 0.10);
  border: 1px solid rgba(245, 194, 74, 0.30);
  color: var(--status-soon);
}

.tag--soon .dot {
  background: var(--status-soon);
}

.tag--design {
  background: rgba(154, 171, 210, 0.08);
  border: 1px solid rgba(154, 171, 210, 0.22);
  color: var(--status-design);
}

.tag--design .dot {
  background: var(--status-design);
}

.app-card__arrow {
  color: var(--text-dim);
  transition: color 0.25s ease, transform 0.25s ease;
}

.app-card[href]:hover .app-card__arrow {
  color: var(--accent-hi);
  transform: translateX(2px);
}

@media (max-width: 720px) {
  .apps__grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   Contact
   ================================================================ */

.contact {
  border-top: 1px solid var(--border-soft);
  background:
    radial-gradient(60vw 50vh at 50% 100%, rgba(91, 140, 255, 0.10), transparent 70%);
}

.contact__inner {
  max-width: 580px;
  margin: 0 auto;
}

.contact__heading {
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.contact__heading h2 {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

.contact__heading p {
  margin-top: 14px;
  color: var(--text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}

.field input:hover,
.field textarea:hover {
  border-color: var(--border-hi);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-lo) 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 6px 20px -8px rgba(91, 140, 255, 0.6);
}

.btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 28px -8px rgba(91, 140, 255, 0.7);
  color: #ffffff;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin: 0;
  min-height: 1.5em;
  font-size: 14px;
  text-align: center;
  color: var(--text-muted);
}

.form-status.is-success {
  color: var(--status-live);
}

.form-status.is-error {
  color: #fca5a5;
}

/* ================================================================
   Footer
   ================================================================ */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding-block: 36px;
  background: var(--bg-deep);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer .brand .uhuru-mark {
  width: 22px;
  height: 22px;
}

.site-footer .brand-name {
  font-size: 15px;
}

.site-footer__meta {
  font-size: 13px;
  color: var(--text-dim);
}

/* ================================================================
   Focus
   ================================================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ================================================================
   Scroll fade
   ================================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }

  .status-pill .dot {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
