/* ============================================================
   PLYXIO Design System — assets/css/main.css
   ============================================================ */

/* --- Tokens --- */
:root {
  --bg:        #0A0A0A;
  --surface:   #1D1D1D;
  --surface2:  #262626;
  --cream:     #e7cfb1;
  --muted:     #cccccc;
  --orange:    #e5813e;
  --teal:      #6fa4b2;
  --border:    rgba(255,255,255,.08);
  --display:   'Bebas Neue', sans-serif;
  --sans:      'Onest', system-ui, sans-serif;
  --radius:    18px;
  --radius-lg: 24px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--orange); color: #0A0A0A; }

/* --- Typography --- */
h1, h2, h3, h4, h5, .display {
  font-family: var(--display);
  letter-spacing: .01em;
  line-height: .95;
  text-transform: uppercase;
  color: var(--cream);
}
h1  { font-size: clamp(52px, 9vw, 128px); }
h2  { font-size: clamp(36px, 6vw, 84px); }
h3  { font-size: clamp(28px, 4vw, 45px); }
h4  { font-size: 32px; }
h5  { font-size: 24px; }
h6  { font-family: var(--sans); font-size: 18px; font-weight: 600; color: var(--cream); }
p   { color: var(--muted); line-height: 1.7; }

/* --- Layout --- */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; position: relative; }

/* --- Background FX --- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at top, rgba(229,129,62,.15), transparent 60%);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 99px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: #0A0A0A;
  box-shadow: 0 8px 30px -10px rgba(229,129,62,.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 60px -15px rgba(229,129,62,.6);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* --- Cards --- */
.card {
  border: 1px solid var(--border);
  background: rgba(29,29,29,.5);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(229,129,62,.5); transform: translateY(-2px); }

.card-glass {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .25s;
}
.card-glass:hover { border-color: rgba(229,129,62,.4); }

/* --- Eyebrow / Labels --- */
.eyebrow {
  display: inline-block;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--muted);
}
.chip-dot {
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}

/* --- Section divider --- */
.section-divider {
  width: 48px; height: 3px;
  background: var(--orange);
  border-radius: 99px;
  margin: 20px 0;
}

/* --- Marquee --- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(29,29,29,.3);
  padding: 32px 0;
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 35s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-fast .marquee-track { animation-duration: 22s; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--display);
  letter-spacing: .2em;
  font-size: 22px;
  color: rgba(231,207,177,.5);
  white-space: nowrap;
}

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
  margin-top: 64px;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-number {
  font-family: var(--display);
  font-size: 52px;
  color: var(--orange);
  line-height: 1;
}
.stat-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* --- Hero --- */
.hero { padding: 80px 0 96px; }
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 3fr 2fr; } }

.hero-headline { margin-top: 24px; }
.hero-headline .accent {
  color: var(--orange);
  position: relative;
  display: inline-block;
}
.hero-headline .accent::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 5px; width: 100%;
  background: rgba(229,129,62,.6);
  border-radius: 99px;
  transform-origin: left;
  animation: underline 1s .5s ease both;
}
@keyframes underline {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.hero-lede {
  margin-top: 28px;
  max-width: 580px;
  font-size: 18px;
  color: var(--muted);
}
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* --- X Art --- */
.x-art {
  position: relative;
  height: 300px;
}
@media (min-width: 1000px) { .x-art { height: 420px; } }
.x-art .glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(229,129,62,.3), transparent 65%);
}
.x-art .x-spin {
  position: absolute;
  top: 50%; left: 50%;
  width: 75%; height: 75%;
  transform: translate(-50%, -50%);
  animation: spin 28s linear infinite;
}
.x-art .bar {
  position: absolute;
  left: 50%; top: 50%;
  width: 130%; height: 10px;
  border-radius: 99px;
  background: var(--orange);
  box-shadow: 0 0 48px rgba(229,129,62,.5);
  transform-origin: center;
}
.x-art .bar-a { transform: translate(-50%, -50%) rotate(45deg); }
.x-art .bar-b { transform: translate(-50%, -50%) rotate(-45deg); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* --- Services grid --- */
.svc-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) { .svc-grid { grid-template-columns: 1fr 1fr; } }

.svc-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(29,29,29,.5);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .25s;
}
.svc-card:hover { border-color: rgba(229,129,62,.5); }
.svc-card h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 12px; }
.svc-card p { font-size: 15px; max-width: 420px; }
.svc-arrow {
  position: absolute;
  top: 32px; right: 32px;
  color: var(--orange);
  font-size: 22px;
  transition: transform .25s;
}
.svc-card:hover .svc-arrow { transform: translate(4px, -4px); }
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.svc-tag {
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px 12px;
  color: rgba(231,207,177,.75);
}

/* --- Reviews --- */
.review-grid {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}
@media (min-width: 768px) { .review-grid { grid-template-columns: 1fr 1fr; } }

.review-card {
  border: 1px solid var(--border);
  background: rgba(29,29,29,.4);
  border-radius: var(--radius);
  padding: 28px;
}
.review-stars { color: var(--orange); font-size: 16px; margin-bottom: 14px; }
.review-card blockquote { font-size: 17px; color: var(--cream); line-height: 1.6; }
.review-card figcaption { margin-top: 20px; color: var(--muted); font-size: 14px; }
.review-card figcaption strong { color: var(--cream); }

/* --- CTA banner --- */
.cta-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--surface), var(--bg));
  padding: 64px 40px;
}
@media (min-width: 768px) { .cta-banner { padding: 80px 64px; } }
.cta-banner::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(229,129,62,.18);
  filter: blur(80px);
}
.cta-banner::after {
  content: "";
  position: absolute;
  left: -80px; bottom: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(111,164,178,.1);
  filter: blur(80px);
}
.cta-banner-inner {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 768px) { .cta-banner-inner { grid-template-columns: 1fr 1fr; } }

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: var(--cream);
  gap: 16px;
}
.faq-question:hover { color: var(--orange); }
.faq-icon {
  width: 24px; height: 24px;
  border-radius: 99px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  color: var(--orange);
  transition: transform .3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p { padding-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* --- Reveal animation --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* --- Utility --- */
.text-orange { color: var(--orange); }
.text-muted  { color: var(--muted); }
.text-cream  { color: var(--cream); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10,10,10,.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 32px;
}
.nav-logo img { height: 36px; width: auto; }
.nav-logo-text {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: .18em;
  color: var(--cream);
}
.nav-logo-dot {
  width: 10px; height: 10px;
  border-radius: 99px;
  background: var(--orange);
  box-shadow: 0 0 20px var(--orange);
  display: inline-block;
  margin-right: 8px;
}

/* Desktop nav */
.nav-menu {
  display: none;
  flex: 1;
}
@media (min-width: 960px) { .nav-menu { display: flex; align-items: center; } }

/* The actual <ul> must be flex so items sit in a row */
.nav-menu > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-menu > ul > li { position: relative; }
.nav-menu > ul > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-menu > ul > li > a:hover,
.nav-menu > ul > li > a.active { color: var(--cream); background: rgba(255,255,255,.05); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  background: rgba(18,18,18,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s;
  z-index: 200;
}
.nav-menu > ul > li:hover .nav-dropdown,
.nav-menu > ul > li:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-dropdown a:hover { color: var(--cream); background: rgba(255,255,255,.06); }

/* Mega menu */
.nav-mega {
  position: absolute;
  top: calc(100% + 12px);
  left: -120px;
  width: 680px;
  background: rgba(18,18,18,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s;
  z-index: 200;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 24px;
}
.nav-menu > ul > li:hover .nav-mega,
.nav-menu > ul > li:focus-within .nav-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-col-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--orange);
  padding: 6px 10px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  grid-column: span 1;
}
.nav-mega a {
  display: block;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-mega a:hover { color: var(--cream); background: rgba(255,255,255,.06); }

/* Nav CTA */
.nav-cta { display: none; }
@media (min-width: 960px) { .nav-cta { display: inline-flex; } }

/* Hamburger */
.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
@media (min-width: 960px) { .nav-hamburger { display: none; } }
.nav-hamburger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10,10,10,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow-y: auto;
  padding: 100px 24px 48px;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 14px 4px;
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: .04em;
  color: var(--cream);
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--orange); }
.mobile-menu .mobile-sub { display: none; flex-direction: column; gap: 0; padding-left: 16px; }
.mobile-menu .mobile-sub.open { display: flex; }
.mobile-menu .mobile-sub a { font-family: var(--sans); font-size: 16px; font-weight: 500; border: 0; padding: 10px 4px; color: var(--muted); }
.mobile-menu .mobile-sub a:hover { color: var(--orange); }
.mobile-acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 14px 4px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 32px;
  color: var(--cream);
  letter-spacing: .04em;
  text-align: left;
}
.mobile-acc-icon { font-size: 20px; color: var(--orange); transition: transform .3s; }
.mobile-acc-btn.open .mobile-acc-icon { transform: rotate(45deg); }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(29,29,29,.3);
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  gap: 48px;
  padding: 64px 0 48px;
}
@media (min-width: 768px)  { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand img { height: 32px; width: auto; }
.footer-brand-name {
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: .18em;
  color: var(--cream);
}
.footer-tagline { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 300px; line-height: 1.6; }
.footer-socials { display: flex; gap: 10px; margin-top: 24px; }
.footer-social {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: border-color .2s, color .2s;
}
.footer-social:hover { border-color: var(--orange); color: var(--orange); }
.footer-col-title { color: var(--cream); font-weight: 600; font-size: 15px; margin-bottom: 16px; }
.footer-col ul li { margin: 8px 0; }
.footer-col ul li a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-col ul li a:hover { color: var(--cream); }
.footer-col ul li span { color: var(--muted); font-size: 14px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* --- Page header (inner pages) --- */
.page-hero {
  padding: 140px 0 80px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(40px, 7vw, 96px); }

/* --- Blog / Archive --- */
.posts-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  border: 1px solid var(--border);
  background: rgba(29,29,29,.4);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.post-card:hover { border-color: rgba(229,129,62,.4); transform: translateY(-3px); }
.post-card-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--surface2); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-body { padding: 24px; }
.post-card-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.post-card-title { font-family: var(--display); font-size: 24px; color: var(--cream); margin-bottom: 10px; line-height: 1.1; }
.post-card-excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* --- Forms --- */
.plyxio-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.plyxio-form input,
.plyxio-form textarea,
.plyxio-form select {
  width: 100%;
  background: rgba(29,29,29,.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
}
.plyxio-form input:focus,
.plyxio-form textarea:focus,
.plyxio-form select:focus { border-color: var(--orange); }
.plyxio-form input::placeholder,
.plyxio-form textarea::placeholder { color: rgba(204,204,204,.4); }
.plyxio-form textarea { resize: vertical; min-height: 140px; }
.plyxio-form .form-group { margin-bottom: 20px; }
.plyxio-form .form-row {
  display: grid;
  gap: 16px;
}
@media (min-width: 600px) { .plyxio-form .form-row { grid-template-columns: 1fr 1fr; } }

/* --- Responsive utils --- */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .section { padding: 64px 0; }
}
@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}
