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

:root {
  --header-height: 80px;
  --hero-viewport: 100vh;
  --logo-max-height: 56px;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f7f9fc;
  color: #333;
  padding-top: var(--header-height);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow: hidden;
}
.logo {
  font-weight: 600;
  color: #1d5c92;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}
.logo img {
  display: block;
  height: auto;
  max-height: var(--logo-max-height);
  width: auto;
  max-width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: #333;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
nav {
  position: relative;
  z-index: 1;
}
nav a {
  margin-left: 20px;
  color: #333;
  text-decoration: none;
  font-weight: 600;
}
nav a:hover {
  color: #1d5c92;
}
.hero {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--hero-viewport) - var(--header-height));
  min-height: calc(var(--hero-viewport) - var(--header-height));
  overflow: hidden;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0a2a43;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 2px 2px;
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #0a2a43 0%, #02111d 100%);
  z-index: -2;
  display: block;
}

.hero h1,
.hero p,
.hero a {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: 3em;
  margin-bottom: 0.2em;
}
.hero p {
  font-size: 1.2em;
  margin-bottom: 1em;
}
.btn {
  background: #1d5c92;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
.btn:hover {
  background: #164d7a;
}
.edit-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1d5c92;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  z-index: 1000;
}
.edit-btn:hover {
  background: #164d7a;
}
.features {
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  background: #fff;
}
.feature {
  max-width: 250px;
  text-align: center;
}
.feature span {
  font-size: 40px;
}
.feature h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #1d5c92;
}
footer {
  background: #0a2a43;
  color: #9ec5e8;
  text-align: center;
  padding: 20px;
}

.content {
  position: relative;
  z-index: 0;
}

.about {
  padding: 80px 20px;
  text-align: center;
  background: #fff;
}
.about h2 {
  color: #1d5c92;
  margin-bottom: 20px;
}
.about p {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.cta {
  padding: 80px 20px;
  text-align: center;
  background: #f0f5fb;
}
.cta h2 {
  color: #1d5c92;
  margin-bottom: 20px;
}
.cta p {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --logo-max-height: 50px;
  }

  header {
    padding: 10px 20px;
  }

  .logo {
    max-width: calc(100% - 70px);
  }

  .logo img {
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav.open {
    max-height: 300px;
  }

  nav a {
    margin: 15px;
  }

  .hero h1 {
    font-size: 2.2em;
  }

  .hero p {
    font-size: 1em;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }

  .feature {
    max-width: 100%;
  }
}

@supports (height: 100svh) {
  :root {
    --hero-viewport: 100svh;
  }
}
