/* ════════════════════════════════════════════════════
   PHYNXLABS — brushed-metal / chrome design system
   ════════════════════════════════════════════════════ */

:root {
  --bg:        #0b0c0e;
  --bg-panel:  #101214;
  --bg-card:   #131518;
  --line:      #24272c;
  --line-hi:   #3a3f47;
  --text:      #c9cdd3;
  --text-dim:  #82878f;
  --ember:     #e2551a;               /* phoenix accent — used sparingly */
  --chrome-grad: linear-gradient(180deg,
      #ffffff 0%, #d7dbe0 28%, #798088 48%,
      #eef0f3 53%, #969ca6 74%, #f4f6f8 100%);
  --steel-grad: linear-gradient(180deg,
      #f2f3f5 0%, #c6cad1 42%, #979ea8 50%, #d4d8dd 100%);
  --font-display: 'Michroma', ui-sans-serif, sans-serif;
  --font-body:    'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* fine brushed-metal grain over everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ── chrome text effect ─────────────────────────────── */
.chrome-text {
  background: var(--chrome-grad);
  background-size: 100% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s ease-in-out infinite;
}
@keyframes sheen {
  0%, 100% { background-position: 0 0; }
  50%      { background-position: 0 55%; }
}

/* ── kicker labels ──────────────────────────────────── */
.kicker {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .32em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.kicker__tick {
  width: 22px; height: 1px;
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember);
  flex: none;
}

/* ── buttons ────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .9rem 1.8rem;
  border-radius: 3px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn--sm { padding: .55rem 1.1rem; font-size: .7rem; }
.btn--chrome {
  background: var(--steel-grad);
  color: #17181b;
  border: 1px solid #e6e8eb;
  box-shadow:
    inset 0 1px 0 #ffffffcc,
    inset 0 -6px 12px #7c828c55,
    0 4px 18px #00000080;
}
.btn--chrome:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 #ffffffcc,
    inset 0 -6px 12px #7c828c55,
    0 8px 26px #000000a0,
    0 0 22px #ffffff22;
}
.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line-hi);
  background: linear-gradient(180deg, #ffffff08, #ffffff02);
}
.btn--ghost:hover {
  border-color: #8b929c;
  transform: translateY(-2px);
}

/* ── nav ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.nav.is-scrolled {
  background: #0b0c0ecc;
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: min(1240px, calc(100% - 3rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 1rem 0;
}
.nav__brand {
  display: flex;
  align-items: center;
}
.nav__logo {
  height: 30px;
  width: auto;
  display: block;
}
.nav__links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav__links a {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  transition: color .18s ease;
}
.nav__links a:hover { color: #fff; }
.nav__toggle { display: none; }

/* ── hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 11rem 0 6rem;
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff07 1px, transparent 1px),
    linear-gradient(90deg, #ffffff07 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.hero__glow {
  position: absolute;
  top: -280px; left: 50%;
  width: 900px; height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, #aeb6c22e 0%, transparent 65%);
  pointer-events: none;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: .01em;
  margin-bottom: 1.8rem;
  filter: drop-shadow(0 3px 14px #00000090);
}
.hero__sub {
  max-width: 620px;
  font-size: 1.06rem;
  color: var(--text-dim);
  margin-bottom: 2.6rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ── stats ──────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 5rem;
}
.stat {
  background: var(--bg-panel);
  padding: 2rem 2.2rem;
  position: relative;
}
/* corner ticks */
.stat::before, .stat::after {
  content: '';
  position: absolute;
  width: 9px; height: 9px;
  border-color: var(--line-hi);
  border-style: solid;
}
.stat::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.stat::after  { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  margin-bottom: .5rem;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── ticker ─────────────────────────────────────────── */
.ticker {
  border-block: 1px solid var(--line);
  padding: .85rem 0;
  overflow: hidden;
  background: var(--bg-panel);
  white-space: nowrap;
}
.ticker__track {
  display: inline-flex;
  animation: ticker 42s linear infinite;
}
.ticker__track span {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .28em;
  color: var(--text-dim);
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ── sections ───────────────────────────────────────── */
.section { padding: 7rem 0; position: relative; }
.section--panel {
  background: var(--bg-panel);
  border-block: 1px solid var(--line);
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  line-height: 1.18;
  margin-bottom: 3.5rem;
}

/* ── service cards ──────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  position: relative;
  background: linear-gradient(180deg, #17191d, var(--bg-card) 40%);
  border: 1px solid var(--line);
  border-top-color: var(--line-hi);      /* metallic edge catch-light */
  border-radius: 4px;
  padding: 2rem 1.8rem 2.2rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-hi);
  box-shadow: 0 18px 40px #00000073, inset 0 1px 0 #ffffff14;
}
.card::before, .card::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border-color: transparent;
  border-style: solid;
  transition: border-color .25s ease;
}
.card::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.card::after  { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.card:hover::before, .card:hover::after { border-color: var(--ember); }
.card__num {
  position: absolute;
  top: 1.4rem; right: 1.6rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--text-dim);
}
.card__icon {
  width: 34px; height: 34px;
  stroke: #aab0ba;
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1.4rem;
}
.card h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.08rem;
  color: #e8eaee;
  margin-bottom: .7rem;
  letter-spacing: .01em;
}
.card p {
  font-size: .92rem;
  color: var(--text-dim);
}

/* ── why ────────────────────────────────────────────── */
.why {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.why__copy p { color: var(--text-dim); margin-bottom: 1.2rem; max-width: 480px; }
.why__copy .section__title { margin-bottom: 1.6rem; }
.why__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.why__list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .98rem;
  color: var(--text);
}
.why__list li:first-child { border-top: 1px solid var(--line); }
.cross {
  flex: none;
  width: 11px; height: 11px;
  position: relative;
  transform: translateY(1px);
}
.cross::before, .cross::after {
  content: '';
  position: absolute;
  background: var(--ember);
  box-shadow: 0 0 6px #e2551a88;
}
.cross::before { left: 5px; top: 0; width: 1px; height: 11px; }
.cross::after  { top: 5px; left: 0; width: 11px; height: 1px; }

/* ── training ───────────────────────────────────────── */
.training {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.training__card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2.4rem 2.2rem;
  background:
    linear-gradient(135deg, #ffffff09 0%, transparent 34%),
    var(--bg-card);
  transition: border-color .25s ease, transform .25s ease;
}
.training__card:hover { border-color: var(--line-hi); transform: translateY(-4px); }
.training__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .26em;
  color: var(--ember);
  border: 1px solid #e2551a55;
  border-radius: 2px;
  padding: .32rem .7rem;
  margin-bottom: 1.4rem;
}
.training__card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #e8eaee;
  line-height: 1.4;
  margin-bottom: .9rem;
}
.training__card p {
  color: var(--text-dim);
  font-size: .95rem;
  margin-bottom: 1.8rem;
}

/* ── testimonials ───────────────────────────────────── */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.5rem;
}
.quote {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-card);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.quote p {
  font-size: .95rem;
  color: var(--text);
  flex: 1;
}
.quote footer {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.quote footer strong {
  font-weight: 500;
  color: #e8eaee;
  font-size: .92rem;
}
.quote footer span {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── contact ────────────────────────────────────────── */
.contact { text-align: left; }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 3rem;
}
.contact__item {
  background: var(--bg-panel);
  padding: 1.8rem 2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: background .2s ease;
}
a.contact__item:hover { background: #16181c; }
.contact__label {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .3em;
  color: var(--ember);
}
.contact__value {
  color: #e8eaee;
  font-size: .98rem;
  line-height: 1.55;
}

/* ── footer ─────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0;
  background: var(--bg-panel);
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__brand img {
  height: 26px;
  width: auto;
  display: block;
}
.footer__links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.footer__links a {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
}
.footer__links a:hover { color: #fff; }
.footer__copy {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--text-dim);
}

/* ── reveal animation ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .cards, .quotes { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; gap: 2.5rem; }
  .training { grid-template-columns: 1fr; }
  .stats, .contact__grid { grid-template-columns: 1fr; }
  .nav__links, .nav .btn { display: none; }
  .nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
  }
  .nav__toggle span {
    width: 22px; height: 1.5px;
    background: #e8eaee;
    transition: transform .25s ease;
  }
  .nav.is-open { background: #0b0c0ef2; border-bottom-color: var(--line); }
  .nav.is-open .nav__inner { flex-wrap: wrap; }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    order: 10;
    padding: 1.4rem 0 1rem;
    margin-left: 0;
  }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { padding-top: 8.5rem; }
  .section { padding: 4.5rem 0; }
}
