:root {
  --ink: #0b1220;
  --ember: #ff5a1f;
  --blaze: #e03a1a;
  --grow: #1fa971;
  --mist: #f3f5f8;
  --line: #d7dde8;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Custom scrollbar (Y) */
html {
  scrollbar-width: thin;
  scrollbar-color: #ff5a1f #e8ecf2;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #e8ecf2;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff5a1f, #e03a1a);
  border-radius: 999px;
  border: 2px solid #e8ecf2;
}

::-webkit-scrollbar-thumb:hover {
  background: #e03a1a;
}

.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
}

.section-title {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.section-copy {
  margin-top: 0.9rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(26, 35, 51, 0.62);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--ember), var(--blaze));
  padding: 0.8rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 90, 31, 0.28);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(255, 90, 31, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.8rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.btn-secondary:hover {
  border-color: #ffc4a8;
  background: #fff;
}

.icon-btn {
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.icon-btn:hover {
  border-color: var(--ember);
  background: #fff7f2;
}

/* Header — light hero default */
#site-header {
  background: transparent;
}

#site-header.is-scrolled {
  background: rgba(243, 245, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(11, 18, 32, 0.04);
}

#site-header .nav-link,
#site-header .header-auth {
  color: rgba(11, 18, 32, 0.72);
  transition: color 0.25s ease;
}

#site-header .nav-link:hover,
#site-header .header-auth:hover {
  color: var(--ember);
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.menu-bars {
  position: relative;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before {
  top: -6px;
}

.menu-bars::after {
  top: 6px;
}

#menu-toggle[aria-expanded="true"] .menu-bars {
  background: transparent;
}

#menu-toggle[aria-expanded="true"] .menu-bars::before {
  top: 0;
  transform: rotate(45deg);
}

#menu-toggle[aria-expanded="true"] .menu-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Modern hero background (no image) */
.hero {
  padding-bottom: 4rem;
  background: #eef1f6;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 18, 32, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 18, 32, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, #000 20%, transparent 75%);
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
  animation: orbFloat 14s ease-in-out infinite alternate;
}

.hero-orb-a {
  top: -8%;
  left: 12%;
  width: 28rem;
  height: 28rem;
  background: rgba(255, 90, 31, 0.28);
}

.hero-orb-b {
  top: 18%;
  right: -6%;
  width: 24rem;
  height: 24rem;
  background: rgba(224, 58, 26, 0.18);
  animation-delay: -4s;
}

.hero-orb-c {
  bottom: 8%;
  left: 38%;
  width: 20rem;
  height: 20rem;
  background: rgba(31, 169, 113, 0.12);
  animation-delay: -7s;
}

@keyframes orbFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 4%, 0) scale(1.08);
  }
}

.hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.net-lines path {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: drawLine 4.5s var(--ease) infinite alternate;
}

.net-lines path:nth-child(2) {
  animation-delay: 0.4s;
}
.net-lines path:nth-child(3) {
  animation-delay: 0.8s;
}
.net-lines path:nth-child(4) {
  animation-delay: 1.2s;
}
.net-lines path:nth-child(5) {
  animation-delay: 1.6s;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

.node {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 2.8s ease-in-out infinite;
}

.node:nth-child(2) {
  animation-delay: 0.3s;
}
.node:nth-child(3) {
  animation-delay: 0.6s;
}
.node:nth-child(4) {
  animation-delay: 0.9s;
}

@keyframes nodePulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

.pulse-ring {
  fill: none;
  stroke: rgba(255, 90, 31, 0.45);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: ringOut 2.8s ease-out infinite;
}

@keyframes ringOut {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

.hero-copy {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 0.8s var(--ease) forwards;
}

.hero-copy-delay {
  animation-delay: 0.12s;
}

.hero-copy-delay-2 {
  animation-delay: 0.24s;
}

.hero-copy-delay-3 {
  animation-delay: 0.36s;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.marketplace-panel {
  animation: panelRise 0.9s var(--ease) 0.28s both;
}

@keyframes panelRise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-chip {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(26, 35, 51, 0.7);
  transition: all 0.25s ease;
}

.filter-chip:hover {
  border-color: #ffc4a8;
  color: var(--ember);
}

.filter-chip.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--ember), var(--blaze));
  color: #fff;
}

.site-row {
  opacity: 0;
  transform: translateY(10px);
  animation: rowIn 0.45s var(--ease) forwards;
  animation-delay: var(--row-delay, 0ms);
  transition: background 0.25s ease;
}

.site-row:hover {
  background: #fff8f4;
}

@keyframes rowIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.traffic-spark {
  display: block;
}

.traffic-spark polyline {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: sparkDraw 1.1s var(--ease) forwards;
}

@keyframes sparkDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.metric-icon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
}

.cat-pill {
  display: inline-flex;
  border-radius: 999px;
  background: #fff0e8;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #b33a12;
  white-space: nowrap;
}

.buy-btn {
  display: inline-flex;
  overflow: hidden;
  border-radius: 0.65rem;
  box-shadow: 0 8px 18px rgba(11, 18, 32, 0.08);
}

.buy-btn .action {
  background: var(--ink);
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  transition: background 0.25s ease;
}

.buy-btn .action:hover {
  background: var(--ember);
}

.buy-btn .price {
  background: linear-gradient(135deg, var(--ember), var(--blaze));
  padding: 0.45rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.service-row {
  transition: background 0.35s ease;
}

.service-row:hover {
  background: #fff8f4;
}

.review-card {
  flex: 0 0 min(20rem, 85vw);
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--mist);
  padding: 1.4rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(11, 18, 32, 0.08);
}

.stars {
  color: #e8a317;
  letter-spacing: 0.08em;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.faq-trigger svg {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.faq-item.is-open .faq-trigger svg {
  transform: rotate(180deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.3s ease, padding 0.3s ease;
}

.faq-item.is-open .faq-panel {
  max-height: 12rem;
  opacity: 1;
  padding-bottom: 1.1rem;
}

.faq-panel p {
  max-width: 42rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(26, 35, 51, 0.65);
}

.cta-panel {
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at 90% 20%, rgba(255, 90, 31, 0.45), transparent 55%),
    linear-gradient(135deg, #121a2a 0%, #1a1020 45%, #2a120f 100%);
}

.cta-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.25), transparent 70%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.7;
  }
  to {
    transform: translate3d(-8%, -6%, 0) scale(1.12);
    opacity: 1;
  }
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 90, 31, 0.25);
  background: linear-gradient(135deg, #ff5a1f, #e03a1a);
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 90, 31, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.92);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  transform: translateY(-2px) scale(1.03);
}

/* Inner content pages */
.page-hero {
  background:
    radial-gradient(ellipse 50% 60% at 80% 0%, rgba(255, 90, 31, 0.12), transparent 60%),
    #eef1f6;
}

.page-content h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-content h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.page-content p,
.page-content li {
  color: rgba(26, 35, 51, 0.72);
  line-height: 1.7;
  font-size: 0.98rem;
}

.page-content ul,
.page-content ol {
  margin: 0.75rem 0 0.75rem 1.15rem;
  display: grid;
  gap: 0.4rem;
}

.page-content a:not(.btn-primary) {
  color: var(--ember);
  font-weight: 600;
}

.page-content .btn-primary {
  margin-top: 1rem;
}

.team-grid,
.contact-grid,
.post-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .team-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.team-card,
.post-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--mist);
  padding: 1.1rem 1.2rem;
}

.post-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(26, 35, 51, 0.45);
}

.contact-list {
  list-style: none;
  margin-left: 0 !important;
  display: grid;
  gap: 1rem;
}

.contact-layout {
  display: grid;
  gap: 1.5rem;
  margin-top: 0.25rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 0.9fr 1.2fr;
    align-items: start;
  }
}

.contact-form-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .contact-form-card {
    padding: 1.5rem;
  }
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.78rem;
  font-weight: 700;
}

.req {
  color: #e11d48;
  font-weight: 900;
  margin-left: 2px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fbfcfd;
  color: var(--ink);
  padding: 0.8rem 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2363738b' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 2.4rem;
  cursor: pointer;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #ffc4a8;
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.12);
}

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select {
  border-color: #e11d48;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.field-error {
  display: none;
  color: #e11d48;
  font-size: 0.75rem;
  font-weight: 600;
}

.field.is-invalid .field-error {
  display: block;
}

.word-meta {
  display: flex;
  justify-content: flex-end;
  font-size: 0.7rem;
  color: rgba(26, 35, 51, 0.5);
}

.word-meta.is-over {
  color: #a13232;
  font-weight: 700;
}

.form-status {
  display: none;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity 0.35s ease;
}

.form-status.show {
  display: block;
  opacity: 1;
}

.form-status.fade-out {
  opacity: 0;
}

.form-status.ok {
  background: rgba(31, 169, 113, 0.12);
  color: #167a50;
}

.form-status.err {
  background: rgba(196, 70, 70, 0.1);
  color: #a13232;
}

.form-submit {
  width: 100%;
  margin-top: 0.35rem;
}

.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-note {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(26, 35, 51, 0.55);
}

.faq-static h3 {
  margin-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-orb,
  .cta-panel::after,
  .marketplace-panel,
  .reveal,
  .hero-copy,
  .net-lines path,
  .node,
  .pulse-ring,
  .site-row,
  .traffic-spark polyline {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
}
