:root {
  --primary: #0077ff;
  --text: #333;
  --bg: #fff;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

header {
  background: #f8f8f8;
  border-bottom: 1px solid #ddd;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: auto;
  padding: 1rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.hero-banner {
  background-image: url('background.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 2;
  position: relative;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.apps-section {
  padding: 3rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 2rem;
}

.card {
  border: 1px solid #ddd;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: left;
  background: #fff;
  transition: 0.2s;
}

.card:hover {
  border-color: var(--primary);
}

.button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  margin: 1rem 0;
}

form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}

button {
  background: var(--primary);
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

input.honeypot {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  background: #f8f8f8;
  border-top: 1px solid #ddd;
}

/* App page styling */
.app-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
  text-align: center;
}

.hero-text {
  text-align: center;
  margin-bottom: 3rem;
}

.hero-text h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.features {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature h3 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.feature ul {
  margin: 0;
  padding-left: 1.5rem;
}

.feature li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.closing {
  background: #f8f8f8;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.disclaimer {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f0f0f0;
  border-radius: 6px;
}

/* Popup Modals */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-overlay.show {
  display: flex;
}

.popup-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: popupSlideIn 0.3s ease-out;
}

.popup-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.popup-content.success .popup-icon {
  color: #28a745;
}

.popup-content.error .popup-icon {
  color: #dc3545;
}

.popup-content h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.popup-content p {
  margin-bottom: 2rem;
  color: #666;
}

.popup-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.popup-btn:hover {
  background: #0056cc;
}

.popup-content.error .popup-btn {
  background: #dc3545;
}

.popup-content.error .popup-btn:hover {
  background: #c82333;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
