:root {
  --bg-color: #FAFAFA;
  --text-main: #1A1A1A;
  --text-muted: #666666;
  --accent: cyan;
  /* Accent color for links and features */
  --border: rgba(0, 0, 0, 0.08);
  /* More subtle borders for glass effect */
  --nav-bg: rgba(250, 250, 250, 0.35);
  /* High transparency for liquid glass */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0A0A0A;
    --text-main: #EFEFEF;
    --text-muted: #999999;
    --accent: cyan;
    --border: rgba(255, 255, 255, 0.08);
    /* More subtle borders for glass effect */
    --nav-bg: rgba(10, 10, 10, 0.35);
    /* High transparency for liquid glass */
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  padding: 1.25rem 5%;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;

  /* Liquid Glass Core */
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
}

header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
  border-radius: 0 0 16px 16px;
  /* Soften the bottom edges */
}

/* Optional rounded bottom for the header to enhance the liquid feel */
header {
  border-radius: 0 0 16px 16px;
}

header .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

header .logo img {
  height: 48px;
  width: auto;
  border-radius: 12px;
  /* Slight rounding for a nice app-icon look */
}

header nav a {
  text-decoration: none;
  color: var(--text-muted);
  margin-left: 1.5rem;
  font-size: 0.95rem;
  transition: color 0.2s;
}

header nav a:hover {
  color: var(--accent);
}

main {
  flex: 1;
  padding: 8rem 5% 4rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

p.subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

section {
  margin-bottom: 2.5rem;
}

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

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

p,
ul {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

ul {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Footer styling */
footer {
  margin-top: auto;
  padding: 3rem 5%;
  text-align: center;
  background-color: var(--bg-color);
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-main);
  text-decoration: none;
}

.store-badge {
  display: inline-block;
  height: 40px;
  transition: opacity 0.2s;
}

.store-badge:hover {
  opacity: 0.8;
}

.store-badge img {
  height: 100%;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
}
/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 2.5rem;
}

.primary-button {
  display: inline-block;
  background-color: var(--text-main);
  color: var(--bg-color);
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
}

.primary-button:hover {
  opacity: 0.9;
  text-decoration: none;
}

.primary-button:active {
  transform: scale(0.98);
}
