@font-face {
  font-family: 'Simula';
  src: url('/fonts/simula.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Simula';
  src: url('/fonts/simula.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

:root {
  --bg-color: #ffffff;
  --text-primary: #111111;
  --text-secondary: #444444;
  --nav-active-bg: #f5f5f5;
  --btn-bg: #f5f5f5;
  --brand-color: #0c1c38;
  --font-serif: 'Simula', serif;
  --font-mono:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

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

body {
  font-family: var(--font-mono);
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  background-color: #f3f3f3;
  border-top: 1px solid #e5e5e5;
  overflow-x: auto;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 100;
}

.nav-item {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  transition: all 0.1s ease;
  background-color: transparent;
  border-top: 2px solid transparent;
  border-right: 1px solid #e5e5e5;
  cursor: pointer;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.nav-item:first-child {
  border-left: 1px solid #e5e5e5;
}

.nav-item:hover {
  background-color: #e8e8e8;
  color: var(--text-primary);
}

.nav-item.active {
  background-color: var(--bg-color);
  color: var(--text-primary);
  border-top: 2px solid var(--brand-color);
}

.nav-item.touch-active {
  background-color: #e0e0e0;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  margin-top: -5vh; /* Slight adjustment to center visually */
}

/* Logo Area */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.brand-logo {
  height: 48px;
  width: auto;
}

/* Description */
.description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

/* Button */
.cta-button {
  background-color: #052049;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  width: 320px;
  padding: 0.85rem 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    opacity 0.2s ease,
    transform 0.1s ease;
  margin-bottom: 2.5rem;
}

.cta-button:hover {
  opacity: 0.8;
}

.cta-button.touch-active {
  opacity: 0.7;
  transform: scale(0.98);
}

/* Features List */
.features-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.feature-dot {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Footer */
.bottom-right {
  position: absolute;
  bottom: 5rem;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .main-content {
    margin-top: 0;
    padding-top: 3rem;
  }
  .brand-logo {
    height: 40px;
  }
  .description br {
    display: none;
  }
  .description {
    padding: 0 1rem;
  }
  .cta-button {
    width: 260px;
  }
  .bottom-right {
    position: static;
    margin-top: 3rem;
    padding-bottom: 6rem; /* Extra space to prevent hiding behind the fixed tabs */
    text-align: center;
  }
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-logo {
  height: 48px;
  width: auto;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
}
