/* FILE: public/assets/css/base.css */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f3f4f6;
  color: #111827;
  line-height: 1.5;
}

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

img {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 32px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #0f172a;
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
}

.logo-mark::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(
    135deg,
    #60a5fa,
    #3b82f6,
    #6366f1,
    #8b5cf6,
    #60a5fa
  );
  background-size: 300% 300%;
  animation: logoBorderFlow 4s linear infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    120% 120% at 20% 15%,
    rgba(255, 255, 255, 0.18),
    transparent 40%
  );
  pointer-events: none;
}

@keyframes logoBorderFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text-main {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #111827;
}

.logo-text-sub {
  font-size: 11px;
  color: #6b7280;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  flex-wrap: wrap;
}

.nav-link {
  color: #4b5563;
  white-space: nowrap;
  transition: color 0.12s ease;
}

.nav-link:hover {
  color: #111827;
}

.nav-link-active {
  font-weight: 600;
  color: #111827;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color 0.12s ease,
    border-color 0.12s ease,
    color 0.12s ease,
    box-shadow 0.12s ease,
    transform 0.12s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: #0f172a;
  color: #f9fafb;
  border-color: #0f172a;
}

.btn-primary:hover {
  background: #020617;
  border-color: #020617;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

.btn-outline {
  background: #ffffff;
  color: #111827;
  border-color: #d1d5db;
}

.btn-outline:hover {
  background: #f9fafb;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.footer-copy {
  font-size: 13px;
  color: #6b7280;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
}

.footer-link {
  color: #6b7280;
  transition: color 0.12s ease;
}

.footer-link:hover {
  color: #111827;
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    font-size: 13px;
    gap: 12px 16px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 24px 0;
  }

  .header-inner {
    gap: 14px;
  }

  .logo-text-main {
    font-size: 12px;
  }

  .logo-text-sub {
    font-size: 10px;
  }

  .btn {
    padding: 9px 16px;
    font-size: 13px;
  }

  .footer-nav {
    gap: 10px 14px;
  }
}