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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #fafafa;
  color: #111;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 24px 0;
}

.navbar-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.logo {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #111;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #111;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
  padding-left: 20px;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-links .btn-login {
  font-weight: 500;
  color: #555;
}

.nav-links .btn-login:hover {
  color: #111;
}

.nav-links .btn-logout,
.mobile-menu .btn-logout {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.nav-links .btn-logout:hover,
.mobile-menu .btn-logout:hover {
  color: #e5563a;
}

.nav-links .btn-start {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  color: #fff !important;
  background: #e5563a;
  transition: background 0.2s, transform 0.2s;
}

.nav-links .btn-start:hover {
  background: #d04a30;
  transform: scale(1.03);
  color: #fff !important;
}

.nav-links .btn-start img {
  vertical-align: middle;
}

.mobile-cta {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  margin-left: auto;
  border: none;
  border-radius: 10px;
  color: #fff;
  background: #e5563a;
  transition: background 0.2s, transform 0.2s;
}

.mobile-cta:hover {
  background: #d04a30;
  color: #fff;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #111;
  position: absolute;
  left: 6px;
  transition: all 0.3s;
}

.mobile-menu-btn span:nth-child(1) {
  top: 10px;
}

.mobile-menu-btn span:nth-child(2) {
  top: 16px;
}

.mobile-menu-btn span:nth-child(3) {
  top: 22px;
}

.mobile-menu-btn.open span:nth-child(1) {
  top: 16px;
  transform: rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  top: 16px;
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  position: absolute;
  left: 24px;
  right: 24px;
  top: 100%;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  padding: 8px 20px 16px;
}

.mobile-menu a,
.mobile-menu .btn-logout {
  display: block;
  width: 100%;
  padding: 12px 0;
  text-align: left;
  font-size: 15px;
  color: #333;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-menu a:last-child,
.mobile-menu .btn-logout:last-child {
  border-bottom: none;
}

.mobile-menu.open {
  display: flex;
}

@media (max-width: 768px) {
  .navbar-inner {
    padding: 10px 16px;
  }

  .nav-links {
    display: none;
  }

  .mobile-cta {
    display: inline-flex;
  }

  .mobile-menu-btn {
    display: block;
    margin-left: 12px;
  }
}
