:root {
  --primary: #1c1917;
  --secondary: #44403c;
  --gold: #ca8a04;
  --gold-light: #e5a80a;
  --amber: #b45309;
  --bg: #fafaf9;
  --card: #ffffff;
  --warm: #f5f0eb;
  --text: #0c0a09;
  --muted: #78716c;
  --border: #e7e5e4;
  --serif: "Noto Serif SC", serif;
  --sans: "Inter", "Noto Sans SC", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.auth-locked main,
body.auth-locked .footer {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

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

button,
input {
  font: inherit;
}

.site-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 1000;
  display: flex;
  width: calc(100% - 2rem);
  max-width: 1120px;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.1rem 0.75rem 1.35rem;
  border: 1px solid rgba(202, 138, 4, 0.22);
  border-radius: 16px;
  background: rgba(28, 25, 23, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(-50%);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(202, 138, 4, 0.9);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-links a {
  position: relative;
  color: #d6d3d1;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: color 180ms ease;
}

.nav-links a::after {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transition: width 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold-light);
  outline: none;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.language-toggle,
.login-trigger {
  min-height: 36px;
  padding: 0 0.85rem;
  border: 1px solid rgba(202, 138, 4, 0.28);
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(202, 138, 4, 0.08);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.language-toggle:hover,
.login-trigger:hover,
.language-toggle:focus-visible,
.login-trigger:focus-visible {
  border-color: rgba(202, 138, 4, 0.55);
  background: rgba(202, 138, 4, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.nav-toggle,
.nav-toggle-button {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(202, 138, 4, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(202, 138, 4, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 80% 18%, rgba(202, 138, 4, 0.16), transparent 34%),
    linear-gradient(165deg, #0c0a09 0%, #1c1917 34%, #292524 66%, #1c1917 100%);
  background-size: 54px 54px, 54px 54px, auto, auto;
  color: #fafaf9;
}

.hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 10, 9, 0.88), rgba(12, 10, 9, 0.18));
  content: "";
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: 4rem;
  padding: 7rem 0 5rem;
}

.hero-label-top {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.4rem 1.15rem;
  border: 1px solid rgba(202, 138, 4, 0.35);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.hero-name {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 4.9rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.08;
}

.hero-subtitle {
  margin: 0.75rem 0 1.25rem;
  color: #d6d3d1;
  font-size: 1.08rem;
  font-weight: 300;
  letter-spacing: 0.16em;
}

.hero-divider {
  width: 60px;
  height: 2px;
  margin-bottom: 1.25rem;
  background: var(--gold);
}

.hero-desc {
  max-width: 520px;
  margin: 0 0 1.8rem;
  color: #a8a29e;
  font-size: 0.98rem;
  line-height: 1.95;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-tag {
  padding: 0.42rem 0.95rem;
  border: 1px solid rgba(202, 138, 4, 0.25);
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(202, 138, 4, 0.06);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.btn-primary {
  border: 1px solid rgba(202, 138, 4, 0.5);
  color: #1c1917;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: 0 18px 38px rgba(202, 138, 4, 0.24);
}

.btn-ghost {
  border: 1px solid rgba(214, 211, 209, 0.22);
  color: #d6d3d1;
  background: rgba(255, 255, 255, 0.04);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  display: grid;
  width: min(420px, 82vw);
  aspect-ratio: 1;
  place-items: center;
}

.glow-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(202, 138, 4, 0.24);
  border-radius: 50%;
  animation: slow-spin 16s linear infinite;
}

.glow-ring:nth-child(2) {
  inset: 28px;
  border-style: dashed;
  opacity: 0.75;
  animation-direction: reverse;
}

@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-image {
  position: relative;
  z-index: 1;
  width: 72%;
  height: 72%;
  border: 8px solid rgba(250, 250, 249, 0.08);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35), 0 0 60px rgba(202, 138, 4, 0.18);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #78716c;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero-scroll-line {
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scroll-pulse 1.8s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scaleY(0.7);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.section {
  position: relative;
  padding: 6rem 1.5rem;
  overflow: hidden;
}

.container {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.bg-warm {
  background: var(--warm);
}

.bg-dark {
  background: var(--primary);
  color: #fafaf9;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 4rem;
  text-align: center;
}

.section-label {
  margin: 0 0 0.65rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--primary);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.bg-dark .section-title {
  color: #fafaf9;
}

.section-subtitle {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.bg-dark .section-subtitle {
  color: #a8a29e;
}

.section-line {
  width: 56px;
  height: 2px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.content-card {
  position: relative;
  display: flex;
  min-height: 278px;
  flex-direction: column;
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.04);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.content-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--amber), transparent);
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}

.content-card:hover,
.content-card:focus-visible {
  border-color: rgba(202, 138, 4, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.09);
  outline: none;
  transform: translateY(-6px);
}

.content-card:hover::before,
.content-card:focus-visible::before {
  opacity: 1;
}

.feature-card {
  background: linear-gradient(180deg, #fff, rgba(202, 138, 4, 0.05));
}

.dark-card {
  border-color: rgba(202, 138, 4, 0.2);
  background: rgba(250, 250, 249, 0.04);
}

.bg-dark .content-card h3,
.dark-card h3 {
  color: #fafaf9;
}

.dark-card p {
  color: #a8a29e;
}

.card-tag {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 0 0.75rem;
  border: 1px solid rgba(202, 138, 4, 0.24);
  border-radius: 999px;
  color: #92400e;
  background: rgba(202, 138, 4, 0.08);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.dark-card .card-tag {
  color: var(--gold-light);
}

.content-card h3 {
  margin: 1.35rem 0 0;
  color: var(--primary);
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.42;
}

.content-card p {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

.content-card time {
  margin-top: auto;
  padding-top: 1.8rem;
  color: #a8a29e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.social-link {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  padding: 0 0.7rem;
  border: 1px solid rgba(202, 138, 4, 0.22);
  border-radius: 999px;
  color: #d6d3d1;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  font-weight: 900;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: #1c1917;
  background: var(--gold);
  outline: none;
  transform: translateY(-3px);
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.login-modal.is-open {
  display: flex;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 9, 0.72);
  backdrop-filter: blur(8px);
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 2rem;
  border: 1px solid rgba(202, 138, 4, 0.24);
  border-radius: 22px;
  background: #fafaf9;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}

.login-card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: 2rem;
}

.login-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.login-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 1.2rem;
}

.login-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.login-form label {
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 800;
}

.login-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

.login-form input:focus {
  border-color: rgba(202, 138, 4, 0.55);
  box-shadow: 0 0 0 4px rgba(202, 138, 4, 0.1);
  outline: none;
}

.login-status {
  margin-top: 1rem !important;
  color: #92400e !important;
  font-weight: 700;
}

.footer {
  padding: 3.5rem 1.5rem;
  background: #0c0a09;
  color: #a8a29e;
  text-align: center;
}

.footer-brand {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.footer-motto {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .nav-toggle-button {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 12px;
    background: rgba(202, 138, 4, 0.1);
    cursor: pointer;
  }

  .nav-toggle-button span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #d6d3d1;
  }

  .nav-panel {
    position: absolute;
    top: 62px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(202, 138, 4, 0.22);
    border-radius: 16px;
    background: rgba(28, 25, 23, 0.96);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links {
    display: grid;
    gap: 0.8rem;
    text-align: center;
  }

  .language-toggle,
  .login-trigger {
    width: 100%;
  }

  .nav-toggle:checked ~ .nav-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-divider,
  .hero-desc {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-tags,
  .hero-actions,
  .social-links {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    padding-top: 2rem;
  }

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

  .section {
    padding: 4.5rem 1rem;
  }
}

@media (min-width: 981px) and (max-width: 1120px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
