/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #050807;
  --bg-card: #0B1110;
  --bg-card-hover: #151E1B;
  --bg-alt: #080e0b;
  --bg-inset: #091110;
  --text: #E8EDE9;
  --text-bright: #F2F5F3;
  --text-dim: #A9B5AF;
  --accent: #A7F12B;
  --accent-dim: rgba(167, 241, 43, 0.12);
  --accent-hover: #C8FF3D;
  --purple: #8B5CF6;
  --purple-dim: rgba(139, 92, 246, 0.12);
  --purple-border: rgba(139, 92, 246, 0.35);
  --purple-glow: rgba(139, 92, 246, 0.15);
  --purple-light: #B388FF;
  --neutral: #5F7F86;
  --neutral-dim: rgba(95, 127, 134, 0.10);
  --neutral-border: rgba(95, 127, 134, 0.30);
  --yellow: #E7D76B;
  --yellow-dim: rgba(231, 215, 107, 0.12);
  --border: rgba(95, 127, 134, 0.18);
  --border-visible: rgba(95, 127, 134, 0.35);
  --radius: 8px;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }

/* ===== Nav ===== */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(5, 8, 7, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.5px;
}
.nav-logo:hover { color: var(--text-bright); }
.nav-logo .accent { color: var(--purple); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-bright); }
.nav-cta {
  background: var(--accent);
  color: #050807 !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    url('images/hero-bg-overview.png')
    center right / cover no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      rgba(5, 8, 7, 0.95) 0%,
      rgba(5, 8, 7, 0.85) 40%,
      rgba(5, 8, 7, 0.45) 75%,
      rgba(5, 8, 7, 0.2) 100%
    );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
}
.hero-tag {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
  max-width: 650px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #050807;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #050807;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(168, 233, 43, 0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--purple-light);
  border: 1px solid var(--purple-border);
}
.btn-ghost:hover {
  border-color: var(--purple);
  color: var(--text-bright);
  background: var(--purple-dim);
  transform: translateY(-1px);
}

/* ===== Sections ===== */
.section {
  padding: clamp(4rem, 7vw, 6rem) 0;
  position: relative;
}
.section-alt { background: var(--bg-alt); }
.section-tag {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

/* ===== Services ===== */
.section-intro {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.pillar {
  margin-bottom: 56px;
}
.pillar:last-child { margin-bottom: 0; }
.pillar-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.pillar-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--neutral-dim);
  border: 1px solid var(--neutral-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar-icon svg {
  width: 24px;
  height: 24px;
  color: var(--neutral);
}
.pillar-icon-pixel {
  width: 96px;
  height: 96px;
  min-width: 96px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: none;
  padding: 0;
}
.pillar-icon-pixel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.about-tag-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.about-tag-row .section-tag { margin-bottom: 0; }
.pixel-badge {
  width: 56px;
  height: 56px;
  border-radius: 0;
  overflow: visible;
  border: none;
  background: transparent;
}
.pixel-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.pillar-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.2;
}
.pillar-sub {
  font-size: 13px;
  color: var(--accent);
  margin-top: 2px;
  letter-spacing: 0.5px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* Service card - Digimon panel style */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
  position: relative;
}
.service-card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--neutral-border), transparent);
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 24px rgba(167, 241, 43, 0.1);
}
.service-card h4 {
  font-size: 14px;
  color: var(--text-bright);
  margin: 0;
  padding: 16px 20px 0;
  font-weight: 600;
}
.service-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.65;
  padding: 10px 20px 18px;
}

/* ===== Outcome Services Grid ===== */
.services-outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-outcome-card {
  background: var(--bg-card);
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.2s;
}
.service-outcome-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.service-outcome-card .pillar-icon-pixel {
  width: 64px;
  height: 64px;
  min-width: 64px;
  margin-bottom: 16px;
}
.service-outcome-card h3 {
  font-size: 17px;
  color: var(--text-bright);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.service-outcome-card > p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 12px;
}
.service-includes {
  font-size: 12px;
  color: var(--neutral);
  line-height: 1.6;
  font-style: italic;
}
.service-supporting-note {
  font-size: 13px;
  color: var(--neutral);
  text-align: center;
  margin-top: 24px;
  font-style: italic;
}
.cta-upwork-link {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 16px;
}
.cta-upwork-link a {
  color: var(--accent);
  text-decoration: none;
}
.cta-upwork-link a:hover { text-decoration: underline; }

/* ===== Projects ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
  position: relative;
}
.project-card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--purple-border), transparent);
}
.project-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: 0 4px 24px var(--purple-glow);
}
.project-info { padding: 24px; }
.project-info h3 {
  font-size: 17px;
  color: var(--text-bright);
  margin-bottom: 10px;
  font-weight: 600;
}
.project-info p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 16px;
}
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.project-tags span {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.project-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin: 16px 0 0 24px;
}
.status-live { background: rgba(34,197,94,0.15); color: #22c55e; }
.status-production { background: rgba(59,130,246,0.15); color: #3b82f6; }
.status-working { background: rgba(168,85,247,0.15); color: #a855f7; }
.status-prototype { background: rgba(234,179,8,0.15); color: #eab308; }
.project-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  background: transparent;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.project-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ===== Problems ===== */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.3s, transform 0.2s;
}
.problem-card:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
}
.problem-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  margin-bottom: 14px;
}
.problem-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.problem-card h4 {
  font-size: 15px;
  color: var(--text-bright);
  margin-bottom: 8px;
  font-weight: 600;
}
.problem-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ===== Inline CTAs ===== */
.section-inline-cta {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  border: 1px dashed var(--neutral-border);
  border-radius: var(--radius);
}
.section-inline-cta p {
  font-size: 15px;
  color: var(--text-dim);
}
.section-inline-cta a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.section-inline-cta a:hover { text-decoration: underline; }

/* ===== Process ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.process-step {
  background: var(--bg-card);
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: border-color 0.3s;
}
.process-step:hover { border-color: var(--accent); }
.process-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.process-step h4 {
  font-size: 15px;
  color: var(--text-bright);
  margin-bottom: 8px;
  font-weight: 600;
}
.process-step p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ===== FAQ ===== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius);
  padding: 24px;
}
.faq-item h4 {
  font-size: 14px;
  color: var(--text-bright);
  margin-bottom: 8px;
  font-weight: 600;
}
.faq-item p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ===== Hero Trust Line ===== */
.hero-trust {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 20px;
  letter-spacing: 0.3px;
}

/* ===== CTA Reassurance ===== */
.cta-reassurance {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 8px;
  margin-bottom: 24px;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text p {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--text-dim);
}

/* Stats - parameter display style */
.about-stats {
  display: flex;
  gap: 0;
  margin-top: 32px;
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.stat {
  flex: 1;
  text-align: center;
  padding: 20px 16px;
}
.stat + .stat {
  border-left: 1px solid var(--border);
}
.stat-num {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
}
.stat-label {
  font-size: 11px;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

/* Tech card */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.about-card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--accent), transparent);
}
.about-card-inner { padding: 28px; }
.about-card h4 {
  font-size: 14px;
  color: var(--yellow);
  margin-bottom: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.about-card-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}
.about-card-tools {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 16px;
  line-height: 1.6;
  font-style: italic;
  opacity: 0.7;
}
.tech-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tech-tags span {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s;
  background: rgba(20, 30, 27, 0.8);
  color: var(--text);
  border: 1px solid rgba(95, 127, 134, 0.2);
}
.tech-tags span:hover {
  border-color: var(--accent);
  color: var(--text-bright);
  box-shadow: 0 0 12px rgba(167, 241, 43, 0.08);
}
.tech-tags .tag-ai {
  border-left: 2px solid var(--purple);
}
.tech-tags .tag-ai:hover {
  border-color: var(--purple);
  border-left: 2px solid var(--purple);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.1);
}

/* ===== CTA Section ===== */
.section-cta {
  position: relative;
  text-align: center;
  background:
    url('images/hero-bg-canyon.png')
    center / cover no-repeat;
  padding: clamp(5rem, 8vw, 7rem) 0;
}
.cta-overlay {
  background:
    radial-gradient(
      circle at center,
      rgba(5, 8, 7, 0.9) 0%,
      rgba(5, 8, 7, 0.72) 50%,
      rgba(5, 8, 7, 0.5) 100%
    );
}
.section-cta .section-title { margin-bottom: 16px; }
.section-cta .section-tag { color: var(--purple-light); }
.cta-sub {
  font-size: 17px;
  color: var(--text-dim);
  margin-bottom: 8px;
  line-height: 1.7;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer p { font-size: 13px; color: var(--text-dim); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-dim); }
.footer-links a:hover { color: var(--accent); }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: rgba(5, 8, 7, 0.95);
    backdrop-filter: blur(12px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: flex; }

  .hero h1 { max-width: 100%; }
  .hero-sub br { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { justify-content: flex-start; }

  .projects-grid { grid-template-columns: 1fr; }
  .services-outcome-grid { grid-template-columns: 1fr; }
  .problems-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }

  .cta-sub br { display: none; }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-content { padding: 100px 20px 60px; }
  .hero-buttons { flex-direction: column; }
  .about-stats { gap: 0; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ===== Scroll Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
