:root {
  --bg: #040510;
  --surface: rgba(9, 12, 28, 0.7);
  --accent: #46e7d3;
  --accent-soft: rgba(70, 231, 211, 0.14);
  --text: #f7f7f7;
  --muted: #9da3b5;
  --radius: 16px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  --width: min(1100px, 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #101235 0%, #040510 40%, #03040a 100%);
  color: var(--text);
  line-height: 1.6;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(4, 5, 16, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 5vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.nav a {
  margin-left: 1.4rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  transition: 0.2s;
}

.nav a:hover {
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 5rem 5vw 3.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 3.4vw, 3.2rem);
  margin-bottom: 1rem;
}

.hero-content p {
  max-width: 540px;
  color: var(--muted);
}

.primary-btn {
  margin-top: 1.8rem;
  background: linear-gradient(120deg, #46e7d3 0%, #32a4ff 100%);
  border: none;
  color: #020203;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.primary-btn:hover {
  transform: translateY(-1px);
}

.hero-card {
  background: radial-gradient(circle, rgba(6, 12, 39, 0.7), rgba(5, 10, 24, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  margin-top: 0.4rem;
  font-size: 1.1rem;
}

.hero-card ul {
  padding-left: 1.2rem;
  margin-top: 1rem;
}

.pill {
  display: inline-block;
  background: rgba(70, 231, 211, 0.18);
  color: var(--accent);
  border: 1px solid rgba(70, 231, 211, 0.4);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 5vw;
}

.section h2 {
  margin-bottom: 0.6rem;
}

.section p {
  color: var(--muted);
  max-width: 720px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.3rem;
}

.card {
  background: rgba(7, 9, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  padding: 1.4rem;
  backdrop-filter: blur(16px);
}

.card h3 {
  margin-top: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.project {
  background: rgba(3, 4, 10, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  padding: 1.1rem 1rem;
}

.contact {
  text-align: center;
}

.contact-form {
  margin: 1.6rem auto 0;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  color: #fff;
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.small {
  margin-top: 1rem;
  color: var(--muted);
}

.footer {
  text-align: center;
  padding: 2.2rem 5vw 3rem;
  background: rgba(3, 3, 5, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.8rem;
}

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

@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
  .hero-card {
    max-width: 420px;
  }
}
