/* Amazing Feet — Home landing (standalone, lightweight) */
:root {
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ink: #f4efe6;
  --ink-soft: rgba(244, 239, 230, 0.72);
  --ink-mute: rgba(244, 239, 230, 0.48);
  --forest: #0a2a22;
  --forest-2: #123d32;
  --gold: #d4a017;
  --gold-soft: rgba(212, 160, 23, 0.35);
  --clay: #c45c2a;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { font-size: 16px; }

body.home {
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--forest);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

/* ── Background: Ghanaian Adinkra lattice ── */
.home-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-bg-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 15% 20%, rgba(212, 160, 23, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 60% at 88% 75%, rgba(196, 92, 42, 0.14), transparent 50%),
    linear-gradient(160deg, #071f19 0%, var(--forest) 45%, #0d3329 100%);
}

/* Sankofa + Dwennimmen–inspired tile (simplified geometry) */
.home-bg-adinkra {
  position: absolute;
  inset: -12%;
  opacity: 0.11;
  background-repeat: repeat;
  background-size: 140px 140px;
  will-change: transform;
}

.home-bg-adinkra--a {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23d4a017' stroke-width='2'%3E%3Ccircle cx='70' cy='70' r='28'/%3E%3Cpath d='M70 42c10 10 10 24 0 34-10-10-10-24 0-34z'/%3E%3Cpath d='M70 70c10 10 10 24 0 34-10-10-10-24 0-34z'/%3E%3Cpath d='M42 70c10-10 24-10 34 0-10 10-24 10-34 0z'/%3E%3Cpath d='M70 70c10-10 24-10 34 0-10 10-24 10-34 0z'/%3E%3Ccircle cx='70' cy='70' r='4' fill='%23d4a017' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  animation: adinkra-drift 48s linear infinite;
}

.home-bg-adinkra--b {
  opacity: 0.07;
  background-size: 96px 96px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23f4efe6' stroke-width='1.6'%3E%3Cpath d='M48 18v12M48 66v12M18 48h12M66 48h12'/%3E%3Cpath d='M30 30c8 0 12 6 18 18-6 12-10 18-18 18s-12-6-18-18c6-12 10-18 18-18z'/%3E%3Cpath d='M66 30c8 0 12 6 18 18-6 12-10 18-18 18s-12-6-18-18c6-12 10-18 18-18z'/%3E%3C/g%3E%3C/svg%3E");
  animation: adinkra-drift-rev 64s linear infinite;
}

.home-bg-glow {
  position: absolute;
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  border-radius: 50%;
  top: 48%;
  left: 72%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--gold-soft), transparent 68%);
  filter: blur(8px);
  animation: glow-breathe 7s ease-in-out infinite;
}

@keyframes adinkra-drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(-70px, -40px, 0) rotate(2deg); }
}
@keyframes adinkra-drift-rev {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(50px, 70px, 0); }
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.85; transform: translate(-50%, -50%) scale(1.06); }
}

/* ── Nav ── */
.home-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem clamp(1.25rem, 4vw, 3rem);
}

.home-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.home-nav-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(212, 160, 23, 0.18);
  color: var(--gold);
  border: 1px solid rgba(212, 160, 23, 0.35);
}

.home-nav-mark i { font-size: 0.9rem; }

.home-nav-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.home-nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(244, 239, 230, 0.18);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.home-nav-link:hover {
  color: var(--ink);
  background: rgba(244, 239, 230, 0.06);
  border-color: rgba(244, 239, 230, 0.32);
}

/* ── Hero ── */
.home-hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.5rem, 5vh, 3rem) clamp(1.25rem, 4vw, 3rem) 2rem;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.home-brand {
  font-size: clamp(1.75rem, 4.5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gold);
  margin-bottom: 0.85rem;
  line-height: 1.1;
}

.home-title {
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: 1rem;
  max-width: 18ch;
}

.home-desc {
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38ch;
  margin-bottom: 1.25rem;
}

.home-feat-row {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink-mute);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.home-adinkra-mini {
  width: 2rem;
  height: 2rem;
  color: var(--gold);
  flex-shrink: 0;
  animation: symbol-pulse 5.5s ease-in-out infinite;
}

/* ── Sign-in panel (same page as landing) ── */
.home-hero--auth {
  align-items: center;
}

.home-auth {
  width: 100%;
  max-width: 400px;
  justify-self: end;
}

.home-auth-card {
  background: rgba(10, 28, 24, 0.72);
  border: 1px solid rgba(212, 160, 23, 0.28);
  border-radius: 16px;
  padding: 1.6rem 1.45rem 1.35rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.home-auth-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.home-auth-sub {
  font-size: 0.88rem;
  color: var(--ink-mute);
  margin-bottom: 1.25rem;
}

.home-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: rgba(214, 53, 53, 0.14);
  border: 1px solid rgba(214, 53, 53, 0.35);
  color: #ffb4b4;
  font-size: 0.88rem;
  line-height: 1.4;
}
.home-alert i { margin-top: 0.15rem; flex-shrink: 0; }

.home-auth-form { display: flex; flex-direction: column; gap: 0.95rem; }

.home-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.4rem;
}

.home-field input {
  width: 100%;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(244, 239, 230, 0.06);
  border: 1.5px solid rgba(244, 239, 230, 0.16);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.home-field input::placeholder { color: rgba(244, 239, 230, 0.32); }
.home-field input:focus {
  border-color: rgba(212, 160, 23, 0.65);
  background: rgba(244, 239, 230, 0.09);
}

.home-btn-block { width: 100%; margin-top: 0.25rem; }

.home-demo {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(244, 239, 230, 0.12);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--ink-mute);
}
.home-demo strong { color: var(--ink-soft); }

.home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  box-sizing: border-box;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0.75rem 1.25rem;
  min-height: 2.75rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.home-btn:hover { transform: translateY(-1px); }
.home-btn:active { transform: translateY(0); }

.home-btn-primary {
  background: var(--gold);
  color: #1a1408;
  box-shadow: 0 8px 28px rgba(212, 160, 23, 0.28);
}
.home-btn-primary:hover {
  background: #e0b122;
  box-shadow: 0 10px 32px rgba(212, 160, 23, 0.38);
}

.home-btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(244, 239, 230, 0.28);
}
.home-btn-ghost:hover {
  border-color: rgba(244, 239, 230, 0.5);
  background: rgba(244, 239, 230, 0.05);
}

/* Feature Adinkra panel */
.home-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-visual-frame {
  width: min(100%, 340px);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  background: transparent;
  border: none;
  box-shadow: none;
  animation: frame-rise 1.1s var(--ease) both, frame-float 6.5s ease-in-out 1.2s infinite;
}

.home-adinkra-feat {
  width: 68%;
  color: var(--gold);
  filter: drop-shadow(0 0 28px rgba(212, 160, 23, 0.32));
  animation: symbol-pulse 5.5s ease-in-out infinite;
}

@keyframes symbol-pulse {
  0%, 100% { filter: drop-shadow(0 0 22px rgba(212, 160, 23, 0.28)); opacity: 0.92; }
  50% { filter: drop-shadow(0 0 36px rgba(212, 160, 23, 0.48)); opacity: 1; }
}

.home-visual-caption {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}

@keyframes frame-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes frame-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Footer */
.home-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem 1.5rem;
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

.home-foot-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}

.home-foot-link {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.home-foot-link:hover {
  color: #e0b122;
  border-bottom-color: rgba(212, 160, 23, 0.55);
}

/* Entrance motion */
.anim {
  opacity: 0;
  transform: translateY(14px);
  animation: rise-in 0.75s var(--ease) forwards;
}
.anim-1 { animation-delay: 0.05s; }
.anim-2 { animation-delay: 0.16s; }
.anim-3 { animation-delay: 0.28s; }
.anim-4 { animation-delay: 0.4s; }
.anim-5 { animation-delay: 0.22s; }
.anim-6 { animation-delay: 0.55s; }

@keyframes rise-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .anim,
  .home-bg-adinkra,
  .home-bg-glow,
  .home-visual-frame,
  .home-adinkra-feat,
  .home-adinkra-mini {
    animation: none !important;
  }
  .anim { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 860px) {
  .home-hero {
    grid-template-columns: 1fr;
    text-align: left;
    padding-top: 1.25rem;
  }
  .home-auth {
    justify-self: stretch;
    max-width: none;
  }
  .home-visual { order: -1; }
  .home-visual-frame {
    width: min(72vw, 260px);
    margin: 0 auto 0.25rem;
  }
  .home-title { max-width: none; }
  .home-desc { max-width: 42ch; }
  .home-brand { font-size: clamp(1.6rem, 7vw, 2.2rem); }
}

@media (max-width: 480px) {
  .home-cta { flex-direction: column; align-items: stretch; }
  .home-btn { width: 100%; }
  .home-nav { padding-inline: 1rem; }
  .home-auth-card { padding: 1.25rem 1.1rem; }
}
