/* ---------- Tokens ---------- */
:root {
  --red: #d81e2c;
  --red-dark: #a8121e;
  --red-light: #ff4d55;
  --ink: #17171b;
  --ink-soft: #4a4a52;
  --grey-50: #fafafa;
  --grey-100: #f2f2f4;
  --grey-200: #e6e6ea;
  --grey-300: #d4d4d9;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(23,23,27,0.06), 0 1px 1px rgba(23,23,27,0.04);
  --shadow-md: 0 8px 24px rgba(23,23,27,0.08);
  --shadow-lg: 0 20px 48px rgba(23,23,27,0.14);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Manrope', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--grey-50);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; }
p { line-height: 1.65; color: var(--ink-soft); margin: 0 0 16px; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.eyebrow.center { text-align: center; }
.section-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.section-title.center { text-align: center; max-width: 620px; margin-left: auto; margin-right: auto; }
.section-sub.center { text-align: center; max-width: 560px; margin: -8px auto 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-family: var(--font-head);
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(216,30,44,0.32);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(216,30,44,0.4); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--grey-300);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light {
  background: var(--white);
  color: var(--red-dark);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,250,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 17px; color: var(--ink); flex-shrink: 0; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
}
.logo-text strong { color: var(--red); }

.main-nav { display: flex; gap: 32px; margin: 0 auto; }
.main-nav a { font-weight: 600; font-size: 14.5px; color: var(--ink-soft); transition: color 0.15s ease; }
.main-nav a:hover { color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform 0.2s ease, opacity 0.2s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 90px;
  overflow: hidden;
  background: var(--grey-50);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 85% -10%, rgba(216,30,44,0.16), transparent 60%),
    radial-gradient(500px 360px at -10% 20%, rgba(216,30,44,0.08), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 780px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 60px); font-weight: 800; }
.hero-sub { font-size: 18px; max-width: 640px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0 56px; }

.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat .num { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--red); }
.hero-stat .label { font-size: 13px; color: var(--ink-soft); font-weight: 600; }

/* ---------- Services ---------- */
.services { padding: 100px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--red-light); }
.service-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grey-100);
  font-size: 24px;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- Portfolio ---------- */
.portfolio { padding: 100px 0; background: var(--grey-100); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.portfolio-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.portfolio-thumb { position: relative; height: 190px; overflow: hidden; }

.status-badge {
  position: absolute;
  top: 46px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(23,23,27,0.55);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
  white-space: nowrap;
}
.badge-pending { background: rgba(168,18,30,0.75); }
.badge-desktop { background: rgba(56,66,78,0.8); }
.badge-wip { background: rgba(154,107,26,0.82); }
.browser-chrome {
  position: absolute; top: 0; left: 0; right: 0;
  height: 34px;
  background: rgba(0,0,0,0.2);
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
}
.browser-chrome .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); flex-shrink: 0; }
.chrome-url {
  flex: 1;
  min-width: 0;
  margin-left: 6px;
  background: rgba(255,255,255,0.14);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-family: var(--font-body);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thumb-repair   { background: linear-gradient(135deg, #2b2b30, #17171b); }
.thumb-summoner { background: linear-gradient(135deg, #d81e2c, #6e0f17); }
.thumb-stick    { background: linear-gradient(135deg, #38424e, #1a2027); }
.thumb-tarkov   { background: linear-gradient(135deg, #4a5a3d, #232b1c); }

.portfolio-body { padding: 26px; }
.portfolio-body .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.portfolio-body h3 { font-size: 20px; margin-bottom: 8px; }
.portfolio-body p { font-size: 14.5px; margin-bottom: 14px; }
.portfolio-link { font-weight: 700; font-size: 14px; color: var(--ink); }
.portfolio-card:hover .portfolio-link { color: var(--red); }

/* ---------- About / Why Us ---------- */
.about { padding: 100px 0; }
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.about-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.about-list li {
  padding-left: 28px;
  position: relative;
  font-size: 15px;
  color: var(--ink-soft);
}
.about-list li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--red);
  mask: none;
}
.about-visual { display: flex; flex-direction: column; gap: 16px; }
.about-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-weight: 700;
  font-family: var(--font-head);
  box-shadow: var(--shadow-sm);
}
.about-card:nth-child(2) { margin-left: 28px; }
.about-card:nth-child(3) { margin-left: 56px; }
.about-card:nth-child(4) { margin-left: 84px; }
.about-card-num {
  font-size: 20px;
  color: var(--red);
  min-width: 32px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  padding: 72px 0;
}
.cta-banner-inner { text-align: center; }
.cta-banner h2 { color: var(--white); font-size: clamp(26px,3.4vw,36px); }
.cta-banner p { color: rgba(255,255,255,0.88); max-width: 480px; margin-left: auto; margin-right: auto; }

/* ---------- Contact ---------- */
.contact { padding: 100px 0; }
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.contact-detail { margin-top: 22px; }
.contact-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 4px; }
.contact-detail a, .contact-detail .discord-tag { font-weight: 700; font-size: 16px; color: var(--ink); }
.contact-detail a:hover { color: var(--red); }
.contact-detail + .contact-detail { margin-top: 14px; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.form-row input, .form-row select, .form-row textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1.5px solid var(--grey-200);
  background: var(--grey-50);
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
}
.form-submit { margin-top: 4px; }
.form-note { font-size: 13.5px; font-weight: 600; color: var(--red); min-height: 18px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer .logo { color: var(--white); }
.site-footer .logo-text strong { color: var(--red-light); }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 600; }
.footer-nav a:hover { color: var(--white); }
.footer-copy { color: rgba(255,255,255,0.45); font-size: 13px; margin: 0; width: 100%; text-align: center; order: 3; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; }
}

@media (max-width: 760px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--grey-200);
    box-shadow: var(--shadow-md);
  }
  .site-header.nav-open .header-cta {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    transform: translateY(210px);
    padding: 0 24px 20px;
    background: var(--white);
  }
  .site-header.nav-open .header-cta .btn { width: 100%; }
  .hero { padding: 90px 0 60px; }
  .hero-actions .btn { width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .about-card:nth-child(2) { margin-left: 14px; }
  .about-card:nth-child(3) { margin-left: 28px; }
  .about-card:nth-child(4) { margin-left: 42px; }
}
