/* === ROOT VARIABLES (Your original theme) === */
:root {
  --bg: #0f1720;
  --card: #111827;
  --muted: #94a3b8;
  --accent: #f97316;
  --border-color: #24303a; /* Using your input border color */
}

/* === GLOBAL & TYPOGRAPHY === */
* {
  box-sizing: border-box;
}

body {
  font-family: Inter, system-ui, Arial;
  background: var(--bg);
  color: #fff;
  margin: 0;
  line-height: 1.6; /* Adds breathing room to text */
}

h1, h2, h3 {
  line-height: 1.2;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Fixes all unstyled links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* === HEADER & NAVIGATION === */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem; /* More horizontal padding */
  background: #06070a;
  border-bottom: 1px solid var(--border-color);
}

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

/* Styles the nav links */
.site-header nav {
  display: flex;
  gap: 0.5rem;
}
.site-header nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.site-header nav a:hover {
  background: var(--card);
  text-decoration: none;
}

/* === LAYOUT === */
.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem; /* Use padding on container for mobile */
}

.hero {
  padding: 3rem 1rem;
  text-align: center;
}
.hero h1 {
  font-size: 2.75rem;
  margin-top: 0;
}
.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 1rem auto 1.5rem;
}

/* === GRID & CARDS === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem; /* A bit more gap */
}

.card {
  background: var(--card);
  padding: 1rem;
  border-radius: 8px;
  /* Adds a border to separate card from bg */
  border: 1px solid var(--border-color);
  display: flex; /* Helps align content */
  flex-direction: column;
}
.card h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}
.card p {
  font-size: 0.9rem;
  color: var(--muted);
  flex-grow: 1; /* Pushes the "View" link down */
  margin-top: 0;
}
.card a {
  font-weight: 600;
  margin-top: 0.5rem;
}

/* === BUTTONS & FORMS === */
button,
.cta {
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem; /* Bigger click target */
  border: 0;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s ease;
}
button:hover,
.cta:hover {
  background: #e0600a; /* Darker orange on hover */
  color: #fff;
  text-decoration: none;
}

/* Form Styling */
form {
  max-width: 600px; /* Makes forms easier to read */
}
form label {
  display: block;
  margin-bottom: 1.25rem;
  font-weight: 500;
}
form label input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  /* Aligns checkbox with text */
  transform: translateY(2px);
}

input,
textarea {
  width: 100%;
  padding: 0.75rem; /* More padding */
  margin-top: 0.5rem; /* Space between label and input */
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: #0b1116;
  color: #fff;
  font-size: 1rem;
  font-family: Inter, system-ui, Arial;
}

/* === FOOTER === */
footer {
  padding: 2rem 1rem;
  margin-top: 3rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--border-color);
}

/* === MEDIA QUERIES === */
@media (max-width: 600px) {
  .hero {
    padding: 2rem 1rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
}