@font-face {
  font-family: 'Bebas';
  src: url('fonts/BebasNeue-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('fonts/Lora-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('fonts/Lora-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('fonts/Lora-Italic.ttf') format('truetype');
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0b0e13;
  --bg-soft: #11161d;
  --bg-elevated: #171d26;
  --surface: rgba(20, 26, 35, 0.72);
  --surface-strong: rgba(24, 31, 41, 0.9);
  --surface-soft: rgba(255, 255, 255, 0.025);
  --ink: #f3f5f7;
  --muted: #93a0b0;
  --muted-strong: #c5cfda;
  --line: rgba(255, 255, 255, 0.065);
  --line-strong: rgba(255, 255, 255, 0.11);
  --gold: #c2a073;
  --gold-strong: #e1bd8e;
  --cyan: #7ea6bc;
  --olive: #82a28c;
  --text-body: #d4dce6;
  --text-soft: #a6b2c0;
  --card-radius: 30px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 16px 44px rgba(0, 0, 0, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(194, 160, 115, 0.12), transparent 24%),
    radial-gradient(circle at 88% 16%, rgba(126, 166, 188, 0.1), transparent 22%),
    linear-gradient(180deg, #0a0d12 0%, #0d1117 45%, #10151c 100%);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  line-height: 1.82;
  letter-spacing: 0.003em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 150px 150px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
  opacity: 0.45;
}

body::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 18%),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 40%);
}

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

p {
  color: var(--text-body);
}

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

::selection {
  background: var(--gold);
  color: #0a0d12;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: fade-up 0.7s var(--ease) both;
}

.site > main {
  flex: 1 0 auto;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.wrap {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
}

@media (min-width: 768px) {
  .wrap {
    width: min(1240px, calc(100% - 4rem));
  }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 72px;
  padding: 0 1rem;
  backdrop-filter: blur(20px) saturate(1.15);
  background: rgba(11, 14, 19, 0.66);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .nav {
    padding: 0 2rem;
  }
}

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

.nav-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(240, 183, 116, 0.1), rgba(126, 166, 188, 0.06)),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.nav-mark::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-mark::after {
  content: '';
  position: absolute;
  width: 34px;
  height: 34px;
  right: -12px;
  top: -12px;
  background: radial-gradient(circle, rgba(240, 183, 116, 0.48), rgba(240, 183, 116, 0));
  opacity: 0.9;
}

.nav-mark-core {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
}

.nav-word {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  line-height: 1;
}

.nav-word strong {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav-word small {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(225, 189, 142, 0.92);
}

.nav-spacer {
  flex: 1;
}

.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.012);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 0.95rem;
  border-radius: 999px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-strong);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.on {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.nav-links a:hover {
  transform: translateY(-1px);
}

.nav-badge {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(100, 199, 132, 0.06), rgba(255, 255, 255, 0.02));
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64c784;
  box-shadow: 0 0 0 0 rgba(100, 199, 132, 0.35);
  animation: pulse 2.2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(100, 199, 132, 0.35); }
  50% { box-shadow: 0 0 0 9px rgba(100, 199, 132, 0); }
}

.nav-burger {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  cursor: pointer;
}

.nav-burger span {
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 250;
  padding: 1.2rem;
  background:
    linear-gradient(180deg, rgba(9, 11, 15, 0.97), rgba(13, 17, 23, 0.99)),
    radial-gradient(circle at top right, rgba(199, 154, 97, 0.1), transparent 28%);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}

.nav-mobile.open {
  display: flex;
  flex-direction: column;
}

.nav-mobile a {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-mobile .mob-cta {
  margin-top: auto;
  padding-top: 1rem;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.nav-mobile .mob-cta a {
  display: inline;
  padding: 0;
  border: 0;
  font-size: inherit;
  font-family: inherit;
  color: var(--gold-strong);
}

@media (min-width: 920px) {
  .nav-links,
  .nav-badge {
    display: flex;
  }

  .nav-burger {
    display: none;
  }
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-strong), transparent);
}

.section-title {
  font-family: 'Bebas', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0.015em;
  text-wrap: balance;
}

.section-intro {
  max-width: 660px;
  font-size: 1.02rem;
  color: var(--text-soft);
  line-height: 1.84;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.92rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  transition:
    transform 0.28s var(--ease),
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.28s var(--ease);
}

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

.btn-solid {
  background: linear-gradient(135deg, #e7c394, #caa06e);
  color: #10151c;
  box-shadow: 0 14px 30px rgba(202, 160, 110, 0.18);
}

.btn-solid:hover {
  box-shadow: 0 18px 38px rgba(202, 160, 110, 0.24);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.btn-soft {
  border-color: rgba(126, 166, 188, 0.14);
  background: rgba(126, 166, 188, 0.07);
  color: var(--muted-strong);
}

.btn-soft:hover {
  border-color: rgba(126, 166, 188, 0.26);
  color: var(--ink);
}

.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    border-color 0.25s ease,
    box-shadow 0.35s var(--ease);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 45%);
  pointer-events: none;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.085);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.28);
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.018);
}

.rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(199, 154, 97, 0.9), rgba(199, 154, 97, 0.08));
}

.footer {
  margin-top: 2.8rem;
  padding: 1.4rem 1rem 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  align-items: center;
}

@media (min-width: 768px) {
  .footer {
    padding-inline: 2rem;
  }
}

.footer-meta {
  text-transform: none;
  letter-spacing: 0.08em;
}

.footer-link {
  text-transform: uppercase;
}

.scroll-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 220;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(14, 19, 27, 0.86);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.scroll-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.scroll-top:hover {
  border-color: rgba(225, 189, 142, 0.35);
  background: rgba(20, 27, 37, 0.94);
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

@media (max-width: 767px) {
  .wrap {
    width: min(100%, calc(100% - 1.25rem));
  }

  .nav {
    height: 64px;
    padding: 0 0.75rem;
  }

  .nav-logo {
    gap: 0.65rem;
  }

  .nav-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .nav-mark-core {
    width: 24px;
    height: 24px;
  }

  .nav-word strong {
    font-size: 0.82rem;
  }

  .nav-word small {
    font-size: 0.44rem;
  }

  .nav-mobile {
    top: 64px;
    padding: 1rem;
  }

  .nav-mobile a {
    font-size: 1.02rem;
    padding: 0.85rem 0;
  }

  .section-title {
    font-size: clamp(2rem, 12vw, 3.2rem);
    line-height: 1;
  }

  .label {
    font-size: 0.56rem;
    letter-spacing: 0.14em;
  }

  .btn {
    width: 100%;
    min-height: 46px;
    padding: 0.9rem 1rem;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .card {
    border-radius: 22px;
  }

  .footer {
    margin-top: 1.4rem;
    gap: 0.45rem;
    justify-content: center;
    text-align: center;
    padding: 1rem 0.9rem calc(1rem + env(safe-area-inset-bottom, 0px));
    letter-spacing: 0.08em;
  }

  .scroll-top {
    right: 0.8rem;
    bottom: 0.8rem;
    width: 44px;
    height: 44px;
  }
}
