/* ============================================================
   ROX DEVELOPMENT — design tokens
   ============================================================ */
:root{
  --void:        #0A0E14;   /* base night background */
  --panel:       #10151F;   /* raised panel */
  --panel-line:  #1C2634;   /* hairline borders on panels */
  --steel:       #2C4A63;   /* muted secondary blue */
  --sky:         #38BDF8;   /* primary brand accent */
  --sky-dim:     #1E3A4E;   /* sky blue at low opacity, for washes */
  --alert:       #E24868;   /* sparse — limited/hot badges only */
  --text:        #EAF2FA;
  --text-muted:  #8393A6;
  --text-faint:  #506173;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1440px;
  --pad: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(.16,.84,.44,1);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
html{
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* old Edge/IE */
}
html::-webkit-scrollbar{
  display: none;               /* Chrome, Safari, new Edge */
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

:focus-visible{
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

/* ---------- type scale ---------- */
h1,h2,h3,h4{
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--text);
  text-transform: uppercase;
}
h1{ font-size: clamp(2.6rem, 6vw, 5rem); line-height: 0.98; }
h2{ font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.02; }
h3{ font-size: 1.4rem; line-height: 1.1; }

p{ margin: 0; color: var(--text-muted); max-width: 62ch; }
.lede{ font-size: 1.15rem; color: var(--text-muted); max-width: 46ch; }

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  color: #06121C;
  background: linear-gradient(135deg, var(--sky) 0%, #0099ff 100%);
  padding: 5px 12px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.25);
}

/* ---------- layout ---------- */
.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
section{ padding: 96px 0; }
.hr{
  border: none;
  height: 1px;
  background: var(--panel-line);
  margin: 0;
}

/* ---------- header / nav ---------- */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,20,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-line);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: var(--max);
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}
.brand img{ height: 38px; width: auto; transition: transform 0.35s var(--ease); }
.brand:hover img{ transform: rotate(-6deg) scale(1.06); }
.brand-text{ display: flex; }
.brand-word-1{ color: var(--text); margin-right: 3px; }
.brand-word-2{ color: var(--sky); }

nav.primary{
  display: flex;
  align-items: center;
  gap: 36px;
}
nav.primary a{
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 2px;
  transition: color 0.25s ease;
}
nav.primary a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--sky);
  transition: right 0.35s var(--ease);
}
nav.primary a:hover,
nav.primary a[aria-current="page"]{
  color: var(--text);
}
nav.primary a:hover::after,
nav.primary a[aria-current="page"]::after{
  right: 0;
}

.nav-toggle{ display: none; }

/* ---------- buttons ---------- */
.btn{
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 16px;
  padding: 12px 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

  /* FIX 1: Accelerated hardware rendering & explicit timing for smooth hover movement */
  will-change: transform, box-shadow;
  transition: background-color 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* shine element, hidden to the left initially */
.btn::after{
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

/* FIX 2: Smooth upward lift when cursor enters */
.btn:hover{
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  transition: background-color 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.25s ease-out,
              transform 0.25s ease-out; /* Ensured explicit transition on hover */
}

.btn:hover::after{
  left: 150%;
  transition: left 0.5s ease-out;
}

.btn:active{
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* click ripple — span injected by main.js */
.btn .ripple{
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transform: scale(0);
  animation: ripple-out 0.6s ease-out forwards;
  pointer-events: none;
}
.btn-outline .ripple{ background: rgba(255,255,255,0.3); }
@keyframes ripple-out{
  to{ transform: scale(1); opacity: 0; }
}

.btn-primary {
  background: linear-gradient(135deg, var(--sky) 0%, #0099ff 100%);
  color: #06121C; /* Matches the dark text of the tag */
  font-weight: 700; /* Optional: makes the text bold like the tag */
  border: none; /* Removes the default transparent border to look cleaner with gradients */
}

/* Because it's a gradient, we use opacity for hover/active effects instead of a solid color */
.btn-primary:hover { 
  opacity: 0.9; 
}

.btn-primary:active { 
  opacity: 0.7; 
}

.btn-outline{
  background-color: transparent;
  border-color: var(--steel);
  color: var(--text);
}
.btn-outline:hover{
  background-color: transparent;
  border-color: var(--text-muted);
  color: var(--text);
}
.btn-outline:active{
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text);
}

/* Custom Uiverse Dark Theme Notification Styles */
#custom-notification {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  animation: slideInUp 0.3s ease-out forwards;
}

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

.card {
  width: 330px;
  height: 80px;
  border-radius: 8px;
  box-sizing: border-box;
  padding: 10px 15px;
  background-color: #121214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 15px;
}
.wave {
  position: absolute;
  transform: rotate(90deg);
  left: -31px;
  top: 32px;
  width: 80px;
  fill: #04e40022;
}
.icon-container {
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(4, 228, 0, 0.15);
  border-radius: 50%;
  margin-left: 8px;
}
.icon {
  width: 17px;
  height: 17px;
  color: #04e400;
}
.message-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex-grow: 1;
}
.message-text,
.sub-text {
  margin: 0;
  cursor: default;
}
.message-text {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}
.sub-text {
  font-size: 13px;
  color: #9999a1;
}
.cross-icon {
  width: 18px;
  height: 18px;
  color: #9999a1;
  cursor: pointer;
  transition: color 0.2s ease;
}
.cross-icon:hover {
  color: #ffffff;
}

.btn-row{ display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- hero ---------- */
.hero{
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--panel-line);
}
.hero-bg{
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 70%;
  z-index: 0;
}
.hero-bg::after{
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,14,20,0.96) 0%, rgba(10,14,20,0.78) 42%, rgba(10,14,20,0.25) 75%, rgba(10,14,20,0.55) 100%),
    linear-gradient(0deg, rgba(10,14,20,1) 0%, rgba(10,14,20,0.1) 40%);
}
.hero-inner{
  position: relative;
  z-index: 2;
  min-height: 780px;
  padding: 90px 0 0;
}
.hero-copy{ padding-right: 20px; max-width: 620px; }
.hero-copy .tag{ margin-bottom: 22px; }
.hero-copy h1{ margin-bottom: 22px; }
.hero-copy .lede{ margin-bottom: 34px; }

.hero-art{
  position: absolute;
  right: -200px;
  bottom: 0;
  overflow: visible;
}
.hero-art img{
  height: 700px;
  max-height: 85vh;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0;
  transform: translateY(28px);
  animation:
    rise 0.9s cubic-bezier(.2,.7,.2,1) 0.15s forwards,
    float 5.5s ease-in-out 1.05s infinite;
}
@keyframes float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-16px); }
}

.hero-copy > *{
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-copy .tag{ animation-delay: 0s; }
.hero-copy h1{ animation-delay: 0.08s; }
.hero-copy .lede{ animation-delay: 0.18s; }
.hero-copy .btn-row{ animation-delay: 0.28s; }

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

/* ---------- HUD stat strip ---------- */
.hud{
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--panel-line);
  background: rgba(10,14,20,0.6);
}
.hud .wrap{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-left: 0;
  padding-right: 0;
}
.hud-item{
  padding: 26px 20px; /* Added internal left & right padding so text doesn't touch lines */
  border-right: 1px solid var(--panel-line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left; /* Keep left aligned, or use center for balanced stats */
}
.hud-item:last-child{ border-right: none; }
.hud-num{
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--sky);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hud-label{
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 6px;
  letter-spacing: 0.01em;
}

/* ---------- feature rows (categories) ---------- */
.feature-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--panel-line);
}
.feature-row:last-of-type{ border-bottom: none; }
.feature-row.reverse{ direction: rtl; }
.feature-row.reverse > *{ direction: ltr; }

.feature-media{
  position: relative;
  border: 1px solid var(--panel-line);
  border-top: 2px solid var(--sky);
  background: var(--panel);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s ease;
}
.feature-row:hover .feature-media{
  transform: translateY(-6px);
  border-color: var(--steel);
}
.feature-media .glyph{
  font-family: var(--display);
  font-size: 5.5rem;
  color: var(--steel);
  letter-spacing: 0.05em;
}
.feature-copy h3{ margin-bottom: 14px; }
.feature-copy p{ margin-bottom: 18px; }
.feature-list{
  list-style: none;
  padding: 0; margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-list li{
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}
.feature-list li::before{
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 1px;
  background: var(--sky);
}

/* ---------- script grid (featured, varied sizes) ---------- */
.script-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--panel-line);
  border: 1px solid var(--panel-line);
}
.script-card{
  background: var(--panel);
  padding: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--ty, 0px));
  transition: background 0.3s var(--ease), transform 0.25s var(--ease), box-shadow 0.3s var(--ease);
}
.script-card:hover{
  background: #131A26;
  --ty: -6px;
  box-shadow: 0 22px 44px -22px rgba(0,0,0,0.65);
  z-index: 1;
}
.script-card::after{
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(280px circle at var(--mx) var(--my), rgba(56,189,248,0.18), transparent 70%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.script-card:hover::after{ opacity: 1; }
.script-card.big{ grid-row: span 2; min-height: 460px; }
.script-card .kicker{
  font-size: 0.78rem;
  color: var(--sky);
  font-weight: 600;
  margin-bottom: 10px;
}
.script-card h3{ margin-bottom: 10px; }
.script-card p{ font-size: 0.92rem; margin-bottom: 18px; }
.script-card .meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--panel-line);
}
.script-card .price{
  font-family: var(--display);
  color: var(--text);
  font-size: 1.1rem;
}
.script-card .price small{ color: var(--text-faint); font-family: var(--body); font-size: 0.75rem; }
.script-card a.view{
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sky);
  border-bottom: 1px solid transparent;
}
.script-card a.view:hover{ border-color: var(--sky); }
.badge-hot{
  position: absolute; top: 20px; right: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--alert);
  background: rgba(226,72,104,0.1);
  border: 1px solid rgba(226,72,104,0.4);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ---------- Global Section Spacing ---------- */
section {
  padding: 45px 0; /* Adjust this value (e.g., 30px to 60px) to control the space between every section */
}

/* ---------- feedback / reviews ---------- */
.feedback {
  padding: 40px 0; /* Controls spacing above and below the section */
}
.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feedback-card {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  padding: 28px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.25s var(--ease), border-color 0.25s ease;
}
.feedback-card:hover {
  transform: translateY(-4px);
  border-color: var(--steel);
}
.feedback-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.author-name {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.project-name {
  font-size: 0.8rem;
  color: var(--sky);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.feedback-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 980px) {
  .feedback-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA banner ---------- */
.cta-banner{
  position: relative;
  border-top: 1px solid var(--sky);
  background: linear-gradient(180deg, var(--sky-dim), var(--void) 70%);
  padding: 80px 0;
  text-align: left;
}
.cta-banner .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-banner h2{ max-width: 14ch; }

/* ---------- footer ---------- */
footer{
  border-top: 1px solid var(--panel-line);
  padding: 56px 0 32px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .brand{ margin-bottom: 14px; }
.footer-brand p{ font-size: 0.9rem; }
.footer-col h4{
  font-size: 0.78rem;
  color: var(--text-faint);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  font-family: var(--body);
  text-transform: none;
}
.footer-col a{
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.2s ease, transform 0.2s var(--ease);
}
.footer-col a:hover{ color: var(--sky); transform: translateX(4px); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--panel-line);
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ---------- page header (non-home pages) ---------- */
.page-head{
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--panel-line);
}
.page-head .tag{ margin-bottom: 20px; }
.page-head p{ margin-top: 16px; }

.page-head > .wrap > *{
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s var(--ease) forwards;
}
.page-head .tag{ animation-delay: 0s; }
.page-head h1{ animation-delay: 0.08s; }
.page-head .lede{ animation-delay: 0.18s; }

/* ---------- filter tabs ---------- */
.filters{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 32px 0;
}
.filter-btn{
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--panel);
  border: 1px solid var(--panel-line);
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s var(--ease), border-color 0.25s ease, transform 0.15s ease;
}
.filter-btn:hover{ color: var(--text); border-color: var(--steel); }
.filter-btn:active{ transform: scale(0.95); }
.filter-btn.active{
  color: #06121C;
  background: var(--sky);
  border-color: var(--sky);
}

/* ---------- catalog list ---------- */
.catalog{
  display: flex;
  flex-direction: column;
}
.catalog-row{
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--panel-line);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.25s ease;
}
.catalog-updated {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}
a[target="_blank"]:not(.brand):not(.btn)::after {
  content: "↗";
  display: inline-block;
  margin-left: 4px;
  font-size: 0.85em;
  opacity: 0.7;
}
.catalog-row:first-child{ border-top: 1px solid var(--panel-line); }
.catalog-row{ position: relative; }
.catalog-row:hover{ background: rgba(255,255,255,0.025); }
.catalog-row::after{
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(56,189,248,0.08), transparent 70%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.catalog-row:hover::after{ opacity: 1; }
.catalog-row.is-hidden{
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
.catalog-idx{
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--text-faint);
}
.catalog-info h3{ font-size: 1.15rem; margin-bottom: 6px; text-transform: none; }
.catalog-info p{ font-size: 0.9rem; }
.catalog-cat{
  font-size: 0.78rem;
  color: var(--sky);
  font-weight: 600;
  white-space: nowrap;
}
.catalog-price{
  font-family: var(--display);
  font-size: 1.2rem;
  white-space: nowrap;
  text-align: right;
}

/* ---------- team / about ---------- */
.stat-band{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--panel-line);
  border-top: 2px solid var(--sky);
}
.stat-band > div{
  padding: 30px 26px;
  border-right: 1px solid var(--panel-line);
}
.stat-band > div:last-child{ border-right: none; }
.stat-band .n{ font-family: var(--display); font-size: 2.4rem; color: var(--sky); }
.stat-band .l{ font-size: 0.82rem; color: var(--text-faint); margin-top: 6px; }

.value-list{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--panel-line);
  border: 1px solid var(--panel-line);
}
.value-item{
  background: var(--panel);
  padding: 32px;
  position: relative;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--ty, 0px));
  transition: transform 0.25s var(--ease), background 0.3s ease;
}
.team-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.team-card{
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}
.team-card:hover{
  background: #131A26;
}
.team-card::after{
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(56,189,248,0.14), transparent 70%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.team-card:hover::after{ opacity: 1; }
.team-avatar{
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--void);
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card h3{ font-size: 1.05rem; margin-bottom: 4px; }
.team-card .role{ color: var(--sky); font-size: 0.88rem; font-weight: 600; }

@media (max-width: 720px){
  .team-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px){
  .team-grid{ grid-template-columns: 1fr; }
}
.value-item:hover{
  --ty: -5px;
  background: #131A26;
}
.value-item::after{
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(56,189,248,0.14), transparent 70%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.value-item:hover::after{ opacity: 1; }
.value-item .num{
  font-family: var(--display);
  color: var(--steel);
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.value-item h3{ font-size: 1.05rem; margin-bottom: 8px; text-transform: none; }
.value-item p{ font-size: 0.9rem; }

/* ---------- contact ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-form{
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field label{
  display: block;
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea{
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  color: var(--text);
  padding: 13px 16px;
  border-radius: 6px;
  font-family: var(--body);
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field textarea{ resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.15);
}
.contact-alt{ display: flex; flex-direction: column; gap: 24px; }
.contact-card{
  border: 1px solid var(--panel-line);
  border-left: 2px solid var(--sky);
  background: var(--panel);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transform: translateY(var(--ty, 0px));
  transition: transform 0.25s var(--ease), border-left-color 0.3s ease;
}
.contact-card:hover{
  --ty: -5px;
  border-left-color: #57C9FA;
}
.contact-card::after{
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(56,189,248,0.12), transparent 70%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.contact-card:hover::after{ opacity: 1; }
.contact-card h3{ font-size: 1rem; margin-bottom: 8px; text-transform: none; }
.contact-card p{ font-size: 0.9rem; margin-bottom: 14px; }

/* ---------- scroll reveal (class applied by main.js only — no JS, no hidden content) ---------- */
.reveal-el{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-el.in-view{
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */
@media (max-width: 980px){
  .hero-inner{ min-height: auto; padding-top: 60px; padding-bottom: 340px; }
  .hero-art{ position: absolute; right: 50%; transform: translateX(50%); bottom: 0; }
  .hero-art img{ height: 320px; }
  .hud .wrap{ grid-template-columns: repeat(2, 1fr); }
  .hud-item:nth-child(2){ border-right: none; }
  .feature-row{ grid-template-columns: 1fr; }
  .feature-row.reverse{ direction: ltr; }
  .script-grid{ grid-template-columns: 1fr; }
  .script-card.big{ grid-row: auto; min-height: 260px; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .stat-band{ grid-template-columns: repeat(2,1fr); }
  .stat-band > div:nth-child(2){ border-right: none; }
  .value-list{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .catalog-row{ grid-template-columns: 50px 1fr; row-gap: 6px; }
  .catalog-cat, .catalog-price{ grid-column: 2; text-align: left; }
}

@media (max-width: 720px){
  nav.primary{ display: none; }
  section{ padding: 64px 0; }
}