body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #f9f9f9;
  color: #222;
}

header {
  padding: 1.5rem 2rem;
  text-align: right;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 500;
  color: #555;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #ff7000;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
}

.logo {
  width: 100%;
  max-width: 400px;
  margin-bottom: 30px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transform: translateX(-25px); /* Left shift for optical centering */
}

h1 {
  font-size: 2.5rem;
  margin: 0 0 1rem;
}

p {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  max-width: 500px;
}

.powered {
  color: #ff7000;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}

.powered:hover {
  text-decoration: underline;
}

.app-store-button img {
  height: 55px;
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.75rem;
  }

  p {
    font-size: 1rem;
  }

  .app-store-button img {
    height: 45px;
  }

  .logo {
    max-width: 260px;
    transform: translateX(-20px); /* Smaller shift on mobile */
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dark mode styles */
.dark-mode body {
  background-color: #171a1d;
  color: #f3f3f3;
}
.dark-mode header {
  background-color: #23272e;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.dark-mode nav a {
  color: #c7c7c7;
}
.dark-mode nav a:hover {
  color: #ff7000;
}
.dark-mode .powered {
  color: #ffb86c;
}
.dark-mode .app-store-button img {
  filter: brightness(0.9) contrast(1.1);
}

.theme-toggle {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  vertical-align: middle;
  padding: 0 0 0 2rem;
  transition: filter 0.3s;
}

.theme-toggle svg {
  width: 2.2rem;
  height: 2.2rem;
  display: block;
}

.theme-toggle .sun {
  transition: opacity 0.4s cubic-bezier(.4,2,.6,1), r 0.4s cubic-bezier(.4,2,.6,1);
}

.theme-toggle .moon {
  transition: opacity 0.4s cubic-bezier(.4,2,.6,1);
}

.theme-toggle .sun-rays {
  transition: opacity 0.4s cubic-bezier(.4,2,.6,1);
}
.dark-mode .theme-toggle .sun-rays {
  opacity: 0;
}

.dark-mode .theme-toggle .sun {
  opacity: 0;
  r: 7; /* visually gets hidden */
}

.dark-mode .theme-toggle .moon {
  opacity: 1;
}

.theme-toggle {
  color: #333;
}
.dark-mode .theme-toggle {
  color: #eee;
}

.tip-link {
  margin-top: 2rem;
  display: inline-block;
  font-size: 1.15rem;
  color: #ff7000;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s;
}
.tip-link:hover {
  color: #d85d00;
  text-decoration: none;
}