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

:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --accent: #6c63ff;
  --accent-hover: #5a52e0;
  --text: #e4e4e7;
  --text-muted: #9ca3af;
}

html {
  scroll-behavior: smooth;
}

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

/* ---- Nav ---- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
}

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

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

/* ---- Button ---- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.8rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--accent-hover);
}

/* ---- Features ---- */
.features {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.features h2 {
  margin-bottom: 2.5rem;
  font-size: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border-radius: 10px;
  padding: 2rem;
  transition: transform 0.2s;
}

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

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---- About ---- */
.about {
  padding: 4rem 1.5rem;
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.about p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---- Contact ---- */
.contact {
  padding: 4rem 1.5rem;
  max-width: 550px;
  margin: 0 auto;
  text-align: center;
}

.contact h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input,
.contact textarea {
  background: var(--surface);
  border: 1px solid #2a2d3a;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

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

.form-msg {
  margin-top: 1rem;
  color: var(--accent);
}

/* ---- Footer ---- */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid #1f2230;
  margin-top: 3rem;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }
}
