/* ============================================================
   WEBXPERTS — SHARED DESIGN SYSTEM v2
   Techy / modern — Space Grotesk + Share Tech Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
  /* Sunset palette */
  --rose: #f43f5e;
  --orange: #fb923c;
  --yellow: #fde047;
  --indigo: #1e1b4b;
  --indigo-deep: #312e81;
  --plum: #7e22ce;

  /* Neutrals */
  --ink: #0f0a1f;
  --ink-soft: #4a4368;
  --paper: #fff8f3;
  --paper-warm: #fde9da;
  --line: rgba(15, 10, 31, 0.08);
  --line-strong: rgba(15, 10, 31, 0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 243, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(15, 10, 31, 0.08);
  border: 1px solid var(--line);
}

.site-logo img {
  height: 44px;
  width: auto;
}

/* ============ BURGER MENU ============ */
.burger-toggle {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 0.7rem 1.1rem;
  border-radius: 6px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
}

.burger-toggle:hover {
  background: var(--rose);
}

.burger-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.burger-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-toggle.open .burger-icon span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.burger-toggle.open .burger-icon span:nth-child(2) {
  opacity: 0;
}
.burger-toggle.open .burger-icon span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Slide-out menu panel */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 31, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 200;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(440px, 90vw);
  height: 100vh;
  background: var(--ink);
  color: var(--paper);
  padding: 2.5rem 2.5rem 2rem;
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.menu-panel.open {
  transform: translateX(0);
}

.menu-panel::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--rose), transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}

.menu-panel::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--plum), transparent 70%);
  opacity: 0.2;
  pointer-events: none;
}

.menu-close {
  align-self: flex-end;
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  position: relative;
  z-index: 5;
}

.menu-close:hover { background: var(--rose); border-color: var(--rose); }

.menu-section {
  margin-top: 2rem;
  position: relative;
  z-index: 5;
}

.menu-section-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.4;
  margin-bottom: 1rem;
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.menu-list a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--paper);
  padding: 0.6rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.02em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.menu-list a:hover {
  color: var(--orange);
  transform: translateX(8px);
}

.menu-list a::before {
  content: "→";
  opacity: 0;
  transition: opacity 0.2s ease;
  font-family: 'Share Tech Mono', monospace;
  color: var(--orange);
}

.menu-list a:hover::before {
  opacity: 1;
}

.menu-list a.active {
  color: var(--rose);
}

.menu-list a.active::before {
  content: "//";
  opacity: 1;
  color: var(--rose);
}

.menu-switch {
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  text-decoration: none;
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
  transition: background 0.2s ease;
}

.menu-switch:hover { background: rgba(255,255,255,0.08); }

.menu-switch-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.5;
}

.menu-switch-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

.menu-switch-arrow {
  font-family: 'Share Tech Mono', monospace;
  color: var(--orange);
  font-size: 1.5rem;
}

.menu-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.4;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 5;
}

.menu-footer a:hover { opacity: 0.8; color: var(--orange); }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 5rem 2rem 1.5rem;
  margin-top: 6rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--rose), transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  bottom: -150px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--plum), transparent 70%);
  opacity: 0.2;
  pointer-events: none;
}

.site-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.site-footer-block h4 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.site-footer-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.site-footer-block a {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.site-footer-block a:hover { color: var(--yellow); }

.site-footer-block a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.site-footer-block p {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.site-footer-cta {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}

.site-footer-cta em {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
  display: inline-block;
  padding: 0 0.05em;
  margin: 0 -0.05em;
}

.site-footer-bottom {
  max-width: 1400px;
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  position: relative;
  z-index: 2;
}

/* ============ TYPOGRAPHY UTILITIES ============ */
.kicker {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--rose);
  font-weight: 400;
}

.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }

h1 em, h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--rose), var(--orange) 60%, var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  display: inline-block;
  padding: 0 0.05em;
  margin: 0 -0.05em;
}

p.lead {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  font-weight: 400;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 4px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 400;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover {
  background: var(--rose);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.3);
}

.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn-arrow { transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ============ LAYOUT CONTAINERS ============ */
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section-tight { padding: 3.5rem 0; }

/* ============ MOBILE / RESPONSIVE ============ */
@media (max-width: 900px) {
  .site-header-inner { padding: 0.7rem 1rem; }
  .site-logo img { height: 36px; }

  .site-footer-inner { grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3rem; }
  .site-footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .site-footer { padding: 4rem 1.5rem 2rem; margin-top: 4rem; }
  .section { padding: 3.5rem 0; }
  .container { padding: 0 1.5rem; }

  .menu-list a { font-size: 1.25rem; }
  .menu-panel { padding: 1.5rem 1.5rem 1.5rem; }
}

/* ============ FADE-IN ON SCROLL ============ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-up.in { opacity: 1; transform: translateY(0); }

/* ============ SHARED HERO TREATMENT ============ */
.page-hero {
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 50%; right: -150px;
  transform: translateY(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--rose), transparent 70%);
  opacity: 0.08;
  pointer-events: none;
}

.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 { margin-top: 1.25rem; max-width: 18ch; }
.page-hero p.lead { margin-top: 1.5rem; }

/* Subtle grid pattern */
.grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}
