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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #080b18;
  color: #ffffff;
  line-height: 1.6;
}

/* Header */
header {
  width: 100%;
  padding: 20px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #22283c;
  position: sticky;
  top: 0;
  background: #080b18;
  z-index: 100;
}

.logo {
  font-size: 26px;
  font-weight: 700;
}

nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

nav a {
  color: #d8dbea;
  text-decoration: none;
  font-size: 15px;
  transition: 0.2s;
}

nav a:hover {
  color: #ffffff;
}

/* Hero */
.hero {
  min-height: 540px;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, #252b65 0%, transparent 35%),
    #080b18;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero p {
  max-width: 680px;
  color: #aeb5ca;
  font-size: 19px;
}

/* Search */
.search {
  width: min(680px, 100%);
  display: flex;
  margin-top: 35px;
}

.search input {
  width: 100%;
  padding: 17px 20px;
  background: #11162a;
  border: 1px solid #303751;
  border-right: 0;
  border-radius: 12px 0 0 12px;
  color: #ffffff;
  outline: none;
  font-size: 16px;
}

.search input:focus {
  border-color: #6d75ff;
}

.search button {
  padding: 0 28px;
  border: 0;
  border-radius: 0 12px 12px 0;
  background: #ffffff;
  color: #080b18;
  font-weight: 700;
  cursor: pointer;
}

/* Sections */
.section {
  width: min(1200px, 90%);
  margin: auto;
  padding: 70px 0;
}

.section h2 {
  font-size: 34px;
  margin-bottom: 30px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* Cards */
.card {
  padding: 27px;
  background: #11162a;
  border: 1px solid #252c43;
  border-radius: 18px;
  transition: transform 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #6d75ff;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  color: #aeb5ca;
  font-size: 15px;
}

/* Footer */
footer {
  margin-top: 50px;
  padding: 35px 20px;
  text-align: center;
  color: #8f97ad;
  border-top: 1px solid #22283c;
}

/* Mobile */
@media (max-width: 700px) {
  header {
    padding: 18px 5%;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 480px;
    padding: 60px 18px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 17px;
  }

  .section {
    width: 90%;
    padding: 50px 0;
  }

  .search button {
    padding: 0 18px;
  }
}

.category {
  display: inline-block;
  margin: 8px 0 14px;
  padding: 5px 10px;
  font-size: 12px;
  border: 1px solid #303751;
  border-radius: 20px;
  color: #b8c0ff;
}

.tool-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #ffffff;
  color: #080b18;
  text-decoration: none;
  font-weight: 700;
}

.tool-btn:hover {
  opacity: 0.9;
}

.contact-intro {
  margin: 15px 0 30px;
  color: #aeb5ca;
  max-width: 650px;
}

.contact-box {
  max-width: 700px;
  padding: 30px;
  background: #11162a;
  border: 1px solid #252c43;
  border-radius: 18px;
}

.contact-box form {
  display: flex;
  flex-direction: column;
}

.contact-box label {
  margin: 15px 0 7px;
  font-weight: 600;
}

.contact-box input,
.contact-box textarea {
  width: 100%;
  padding: 14px 16px;
  background: #080b18;
  border: 1px solid #303751;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  outline: none;
}

.contact-box input:focus,
.contact-box textarea:focus {
  border-color: #6d75ff;
}

.contact-box textarea {
  resize: vertical;
}

.contact-box .tool-btn {
  border: none;
  cursor: pointer;
  align-self: flex-start;
}

#formMessage {
  margin-top: 20px;
  color: #aeb5ca;
}

.footer-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: #aeb5ca;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: #aeb5ca;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {

  header {
    padding: 16px 20px;
    flex-direction: column;
    gap: 14px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  nav a {
    margin-left: 0;
    font-size: 14px;
  }

  .hero {
    min-height: 420px;
    padding: 50px 20px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

  .search {
    width: 100%;
  }

  .section {
    width: 92%;
    padding: 45px 0;
  }

  .section h2 {
    font-size: 28px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    width: 100%;
  }

  .contact-box {
    padding: 20px;
  }
}