:root {
  --bg-color: #121212;
  --surface-color: #1e1e1e;
  --primary-color: #007AFF;
  --text-color: #ffffff;
  --text-secondary: #a0a0a0;
  --border-color: #333;
  --success-color: #34C759;
  --spacing-unit: 1rem;
  --max-width: 1200px;
}

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

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

header {
  background-color: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-color);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--text-color);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.8rem;
  margin-top: 3rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.hero {
  position: relative;
  text-align: center;
  padding: 6rem 0;
  /* Increased padding for emphasis */
  overflow: hidden;
  color: #fff;
}

.slideshow-container {
  position: relative;
  /* Ensure text is readable over images */
}

.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  /* Behind content */
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Cover the entire hero area */
  filter: brightness(0.4);
  /* Darken image for text readability */
}

/* Ensure initial slide is visible if JS fails or before it runs (optional, but JS handles logic) */
.slide:first-child {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
}


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

.card {
  background-color: var(--surface-color);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-2px);
}

.screenshot-container {
  margin-top: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.screenshot-container img {
  width: 100%;
  height: auto;
  display: block;
}

.step-number {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  font-weight: bold;
}

footer {
  text-align: center;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  margin: 0 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Form Styles */
form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

input,
textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background-color: var(--surface-color);
  color: var(--text-color);
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #0069d9;
}

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

  .nav-links {
    gap: 1rem;
  }
}